Skip to content

refactor(nextjs)!: retire legacy Document plugins - #284

Merged
TorinAsakura merged 3 commits into
build/nextjs-workspace-releasefrom
fix/retire-helmet-document
Oct 13, 2026
Merged

TorinAsakura merged 3 commits into
build/nextjs-workspace-releasefrom
fix/retire-helmet-document

Conversation

@TorinAsakura

@TorinAsakura TorinAsakura commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Таска

  • Refs atls/infrastructure#1662
  • Убрать из ветки выпуска все четыре legacy Document workspace: next-document-with-helmet, next-document-with-gtag, next-document-with-icons и next-document-with-opengraph. Вместе с ними удаляются React 19 форк Helmet, локальный Yarn patch типов, записи в README и четыре major-решения. Identity integration и sitemap generator сохраняются.
  • После попадания результата в master отдельно пометить опубликованные версии четырёх пакетов как deprecated в npm. Этот PR не меняет реестр.

Проверка прежнего эффекта и штатного пути для новых приложений:

Пакет Текущий эффект Потребители в доступном кодовом поиске ATLS Штатный путь для нового Pages Router приложения
next-document-with-gtag Вставляет загрузчик Google Tag Manager, несмотря на имя и старое описание про gtag.js Не найдены next/script; GoogleTagManager из пока экспериментального @next/third-parties/google
next-document-with-icons Добавляет статические link rel=icon и apple-touch-icon Не найдены next/head с нужными link
next-document-with-opengraph Добавляет один meta property=og:image Не найдены next/head с meta

Для Helmet-кейсов title и meta покрывает next/head; html lang требует отдельной передачи локали в _document. Serenity сейчас в рефакторинге и не служит проверкой работающего потребителя. Опубликованные версии остаются в npm до отдельного deprecation-шага после доставки в master.

Как проверять

  1. Контекст: ветка этого PR поверх build/nextjs-workspace-release.
    Действие: выполнить node .yarn/releases/yarn.js install --immutable, node .yarn/releases/yarn.js workspaces list --json и поиск ссылок на четыре Document-пакета в manifest, lockfile и исходниках.
    Ожидаемый результат: установка не меняет lockfile; список содержит только identity integration и sitemap generator, а четыре Document workspace, форк и patch отсутствуют.
  2. Контекст: два оставшихся пакета и deferred version file.
    Действие: выполнить node .yarn/releases/yarn.js check --verify, node .yarn/releases/yarn.js workspaces foreach -A -t --no-private run build, node .yarn/releases/yarn.js version check и node .yarn/releases/yarn.js version apply --all --dry-run.
    Ожидаемый результат: проверки и сборки проходят; dry run оставляет только два patch-релиза, без Document-пакетов.

Пруфы

  • Локально прошли immutable install, полный check (Format, Lint, TypeCheck, четыре unit-теста), сборка двух публичных пакетов, version check и dry run; нативные commit hooks прошли
  • После удаления rg не находит ссылок на четыре Document-пакета или Helmet-зависимости; Yarn перечисляет только два публичных workspace
  • Аудит сопоставлен с документацией next/head и Google Third Parties для Pages Router

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-13T00:47:41.077157Z 7950157 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@TorinAsakura TorinAsakura changed the title refactor(nextjs)!: retire Helmet document workspace refactor(nextjs)!: retire legacy Document plugins Oct 13, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8fb013b86e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@TorinAsakura
TorinAsakura merged commit 27ca7a6 into build/nextjs-workspace-release Oct 13, 2026
1 check passed
@TorinAsakura
TorinAsakura deleted the fix/retire-helmet-document branch October 13, 2026 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant