Skip to content

docs: package names in changelog headers - #13683

Merged
cixzhang merged 4 commits into
mainfrom
lane4/changelog-package-names
Nov 23, 2026
Merged

cixzhang merged 4 commits into
mainfrom
lane4/changelog-package-names

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Reader impact

People reading a published package's CHANGELOG (on npm, in node_modules, or here) see the package's own name as the title, and older entries name packages by the @astryxdesign/* names they install today. Ten package CHANGELOGs started with a title that was not the package's name, and some older entries used names that were never on the public registry.

Source of truth

Each package's package.json name. Changesets titles a new CHANGELOG # <name>; the titles here predate that and were never regenerated, and neither the changesets writer nor scripts/format-changelogs.mjs rewrites an existing title.

Correction

  • Line 1 of each package CHANGELOG is now # <its package.json name>: core, cli, lab and the seven theme packages (build already matched).
  • Older entries that named a package by an earlier name now use its current @astryxdesign/* name, or generic wording where the entry describes the scope move itself. No entry's meaning changes; release versions and entry order are untouched. Entries about the v0.1.0 upgrade codemods name their inputs as the earlier scope's packages, since that is what the codemods match. Pinned core versions that shipped only under the earlier scope (0.0.4, 0.0.5 and 0.0.13) name that scope's core; 0.0.15 shipped on the public registry as @astryxdesign/core and keeps that name.
  • pnpm check:changesets now also checks that every package CHANGELOG starts with # <its package.json name>, so a title cannot drift again. The rule compares against each package's own name, with no list of names to avoid.

Evidence

  • Against main, the new check reports 10 CHANGELOG title problems; on this branch it reports none (check:changesets: all changesets valid, no title problems).
  • scripts/check-changesets.test.mjs: new cases for a matching title, a title naming another package, a missing title, and a repository with a private package and a package with no CHANGELOG yet.

Scope

Components: package CHANGELOGs, check:changesets

  • This PR changes documentation only, or names every necessary generated artifact. (It also adds one check in scripts/check-changesets.mjs that guards the corrected titles.)
  • Runtime, API, visual, and policy changes were removed or split.
  • Public text and artifacts contain no internal Meta context.

Testing

  • pnpm check:changesets
  • pnpm exec vitest run --project node scripts/check-changesets.test.mjs: 22 of 22 pass (5 new)
  • prettier --check on the changed files

Each package CHANGELOG now starts with its own package.json name, and older
entries name packages by their current @astryxdesign names. check:changesets
checks that a CHANGELOG's first line is the title for its own package.
@cixzhang cixzhang added the lane:4 Astryx fix-loop lane 4 owns this label Nov 23, 2026
@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 23, 2026 10:31pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 23, 2026
@astracat-bot

astracat-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 23, 2026, 11:45 PM UTC

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 4d477bb

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 9d64303

Storybook · Sandbox · built from this PR's head

Package size:

  • @astryxdesign/cli 6.32 MB packed (−53 B); no new dependencies
  • @astryxdesign/core 8.01 MB packed (−50 B); no new dependencies

Not run on this PR: add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.


Generated by PR Enrichment workflow | View full report

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested: the CHANGELOG titles and the new check:changesets title rule work as described, but eight CLI CHANGELOG entries now misdescribe what the v0.1.0 upgrade codemods rewrite.

  • packages/cli/CHANGELOG.md lines 5123, 5299, 5310–5311, 5417–5419 and 5443 now say the codemods rewrite @astryxdesign/* inputs such as @astryxdesign/core/xds.css, @astryxdesign/theme-daily and declare module "@astryxdesign/core/...", but the codemods match only the earlier @xds/* specifiers (drop-xds-prefix-imports.mjs:65, migrate-xds-module-specifiers.mjs:63, migrate-xds-css-surfaces.mjs:66, migrate-xds-declare-module.mjs:35-48), so these entries change meaning, despite the description's "No entry's meaning changes".

To fix this, name the codemod inputs in those entries by the earlier scope, as the codemod sources already do, or use generic wording as the scope-move entry does, then update the description.

Non-blocking: the new helper sits between checkRepository's JSDoc and its function (scripts/check-changesets.mjs:169-193), and pinned lines such as Tracks @astryxdesign/core@0.0.15 name versions that shipped only under the earlier scope.

Claims and files checked

Review mode: same-head; reason: none

  • Changed rules (0): none since the earlier review at this revision.
  • Claim: ten package CHANGELOGs opened with a title other than their package name. Verified: the new check, run over main, reports exactly ten (cli, core, lab and the seven themes).
  • Claim: every package CHANGELOG now opens with its package.json name, and build already did. Verified for all 13 package CHANGELOGs, and pnpm check:changesets passes.
  • Claim: changesets titles a new CHANGELOG with the name, and neither it nor format-changelogs.mjs rewrites an existing title. Verified in the changesets writer's prependFile and in scripts/format-changelogs.mjs:252-289.
  • Claim: older entries now use current package names or generic wording. Partly false: packages/cli/CHANGELOG.md:5123 and :5419 name @astryxdesign/theme-default/@astryxdesign/theme-daily, while the earlier theme-daily package's current name is @astryxdesign/theme-neutral.
  • Claim: no entry's meaning changes. False for the eight CLI codemod entries above.
  • Claim: release versions and entry order are untouched. Verified: no version heading changes.
  • Claim: check:changesets compares each CHANGELOG title with its own package name and keeps no list of names. Verified at scripts/check-changesets.mjs:185-191 and :228-238.
  • Claim: the check reports 10 problems on main and none on this branch. Verified by running it on both.
  • Claim: new tests cover a matching title, another package's title, a missing title, a private package and a package with no CHANGELOG. Verified: there are five new cases.
  • Claim: the test file passes 22 of 22. Verified, as did prettier --check on the changed files.
  • Claim: some older names were never on the public registry. Unverified: registry history could not be checked.
  • Claim: the change is documentation plus one named check, with no runtime, API or visual change. Verified: no package source changes.
  • Claim: the public text contains no internal context. Verified.
  • Changeset claim: each package's CHANGELOG starts with its own name. Verified.
  • Changeset claim: older entries use current names. Partly false, as above.
  • File .changeset/changelog-package-names.md: valid and optional for a docs change; its second clause is partly false.
  • File packages/cli/CHANGELOG.md: blocking finding above.
  • Files packages/build/CHANGELOG.md and packages/core/CHANGELOG.md: clear.
  • Files packages/lab/CHANGELOG.md and packages/themes/{butter,chocolate,gothic,matcha,neutral,stone,y2k}/CHANGELOG.md: clear, with the non-blocking pinned-version note.
  • File scripts/check-changesets.mjs: clear, with the non-blocking JSDoc note.
  • File scripts/check-changesets.test.mjs: clear.

Automated review (maintainer link)

Comment thread packages/cli/CHANGELOG.md Resolved
Comment thread packages/cli/CHANGELOG.md Resolved
Comment thread packages/cli/CHANGELOG.md Resolved
Comment thread packages/cli/CHANGELOG.md Resolved
Comment thread packages/cli/CHANGELOG.md Resolved
Comment thread scripts/check-changesets.mjs Resolved
…ir inputs by the earlier scope

Those codemods match the earlier package scope, not @astryxdesign, so
the entries describe their inputs as the earlier scope's packages.
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 4fdca04

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved pending CI: CI has not run on this head yet, and it runs once the pull request is marked ready for review. The eight CLI CHANGELOG entries about the v0.1.0 upgrade codemods now name their inputs as the earlier scope's packages, which matches what the codemods rewrite, and the CHANGELOG titles and the new check:changesets title rule work as described.

Non-blocking: the new helper still sits between checkRepository's JSDoc and its function (scripts/check-changesets.mjs:169-193), and pinned lines such as Tracks @astryxdesign/core@0.0.15 name versions that shipped only under the earlier scope.

Claims and files checked

Review mode: incremental; reason: none

  • changed rules (0): none.
  • Claim: ten package CHANGELOGs opened with a title other than their package name. Verified: the new check, run over the base CHANGELOGs (identical on main), reports exactly ten (cli, core, lab and the seven themes).
  • Claim: every package CHANGELOG now opens with its package.json name, and build already did. Verified for all 13 package CHANGELOGs, and check:changesets passes.
  • Claim: changesets titles a new CHANGELOG with the name, and neither it nor format-changelogs.mjs rewrites an existing title. Verified in the changesets writer and in scripts/format-changelogs.mjs:252-289.
  • Claim: older entries now use current package names, or generic wording where an entry describes the scope move. Verified: entries about codemod inputs say "the earlier scope's" package.
  • Claim: no entry's meaning changes. Verified for the eight CLI codemod entries, which now match the codemods (drop-xds-prefix-imports.mjs:65, migrate-xds-module-specifiers.mjs:63, migrate-xds-css-surfaces.mjs:66, migrate-xds-declare-module.mjs:35-48); the pinned-version wording above is the one slip.
  • Claim: release versions and entry order are untouched. Verified: only the ten title lines change among the headings.
  • Claim: check:changesets compares each CHANGELOG title with its own package name and keeps no list of names. Verified at scripts/check-changesets.mjs:185-191 and :228-238.
  • Claim: the check reports 10 problems against main and none on this branch. Verified by running it on both.
  • Claim: new tests cover a matching title, another package's title, a missing title, a private package and a package with no CHANGELOG. Verified: five new cases.
  • Claim: the test file passes 22 of 22. Verified at the previous revision; the script and test file are unchanged since.
  • Claim: prettier --check passes on the changed files. Verified at the previous revision; the CLI CHANGELOG lines rewritten since pass format-changelogs.mjs --check.
  • Claim: some older names were never on the public registry. Unverified: registry history was not checked.
  • Claim: the change is documentation plus one named check, with no runtime, API or visual change. Verified: no package source changes.
  • Claim: the public text contains no internal context. Verified.
  • Commit claim: the v0.1.0 codemods match the earlier package scope, not @astryxdesign. Verified in the four codemod sources.
  • Changeset claim: each package's CHANGELOG starts with its own name. Verified.
  • Changeset claim: older entries use current names. Verified, with the codemod-input entries using "the earlier scope's" wording.
  • File .changeset/changelog-package-names.md: clear; valid and optional for a docs change.
  • File packages/cli/CHANGELOG.md: clear.
  • Files packages/build/CHANGELOG.md and packages/core/CHANGELOG.md: clear.
  • Files packages/lab/CHANGELOG.md and packages/themes/{butter,chocolate,gothic,matcha,neutral,stone,y2k}/CHANGELOG.md: clear, with the non-blocking pinned-version note.
  • File scripts/check-changesets.mjs: clear, with the non-blocking JSDoc note.
  • File scripts/check-changesets.test.mjs: clear.

Automated review (maintainer link)

…e title check above checkRepository's doc

core 0.0.4, 0.0.5 and 0.0.13 shipped only under the earlier scope, so
their dependency lines name that scope's core. 0.0.15 shipped under
@astryxdesign and keeps its name.
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 5ee31f9

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved pending CI: CI has not run on this head yet; it runs once the pull request is marked ready for review. The CHANGELOG titles, the reworded older entries and the new check:changesets title rule work as described, and both earlier notes are settled: the title helper now sits above checkRepository's doc, and pins older than 0.0.15 name the earlier scope.

  • Land this before the next release branch is cut: release merge-back makes main's CHANGELOGs equal the published branch's, so a branch cut earlier would bring back the old titles and fail the new rule.
  • Optional: checkRepository's JSDoc (scripts/check-changesets.mjs:187-188) still describes only Changeset validation; the file header already lists the title rule.
Claims and files checked

Review mode: incremental; reason: none

  • changed rules (0): none.
  • Claim: ten package CHANGELOGs opened with a title other than their package name. Verified: the new check over main's CHANGELOGs reports exactly ten (cli, core, lab and the seven themes).
  • Claim: line 1 of every package CHANGELOG is now its package.json name, and build already matched. Verified for all 13 package CHANGELOGs; check:changesets passes on this head and on its merge with main.
  • Claim: Changesets titles a new CHANGELOG with the name, and neither it nor format-changelogs.mjs rewrites an existing title. Verified: scripts/format-changelogs.mjs:255-258 and :289 copy the title lines through; the Changesets writer was checked at an earlier revision.
  • Claim: older entries use current package names, or generic wording where an entry is about the scope move. Verified: no earlier-scope package name remains in any package CHANGELOG; codemod inputs and pre-0.0.15 pins say "the earlier scope's".
  • Claim: no entry's meaning changes. Verified: the codemod entries name the inputs the codemods match, pins older than 0.0.15 name the earlier scope (packages/lab/CHANGELOG.md:86, :95; packages/themes/neutral/CHANGELOG.md:523, :538, :546), and the 0.0.15 pins name a published @astryxdesign/core version.
  • Claim: release versions and entry order are untouched. Verified: the only headings that change are the ten title lines.
  • Claim: the check compares each title with the package's own name and keeps no list of names. Verified at scripts/check-changesets.mjs:178-184 and :228-238.
  • Claim: the check reports 10 problems against main and none on this branch. Verified by running it on both.
  • Claim: new tests cover a matching title, another package's title, a missing title, a private package and a package with no CHANGELOG. Verified: five new cases (scripts/check-changesets.test.mjs:289-371).
  • Claim: the test file passes 22 of 22. Verified: all 22 cases pass.
  • Claim: prettier --check passes on the changed files. Not rerun on this head; the lines changed since it was last checked are CHANGELOG entries that pass format-changelogs.mjs --check and a JSDoc block moved unchanged.
  • Claim: some older names were never on the public registry. Unverified: public registry history was not checked.
  • Claim: the change is documentation plus one named check, with no runtime, API, visual or policy change. Verified: no package source changes.
  • Claim: the public text contains no internal context. Verified.
  • Commit claim: package names in the CHANGELOG headers. Verified.
  • Commit claim: CHANGELOG entries for the v0.1.0 upgrade codemods name their inputs by the earlier scope. Verified against the four codemod sources.
  • Commit claim: pinned pre-0.0.15 core versions name the earlier scope, and the title check moves above checkRepository's doc. Verified at the five pin lines above and scripts/check-changesets.mjs:169-192.
  • Changeset claim: each package's CHANGELOG starts with its own name. Verified.
  • Changeset claim: older entries name packages by their current names. Verified, with the earlier scope's packages named as such where that is what an entry means.
  • Changeset: a [docs] patch for build, cli, core and the seven themes with a contributor. Valid under check:changesets, and optional for a documentation change.
  • File .changeset/changelog-package-names.md: clear.
  • Files packages/build/CHANGELOG.md, packages/cli/CHANGELOG.md and packages/core/CHANGELOG.md: clear.
  • Files packages/lab/CHANGELOG.md and packages/themes/neutral/CHANGELOG.md: clear.
  • Files packages/themes/{butter,chocolate,gothic,matcha,stone,y2k}/CHANGELOG.md: clear.
  • File scripts/check-changesets.mjs: clear, with the optional doc note.
  • File scripts/check-changesets.test.mjs: clear.

Automated review (maintainer link)

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 9d64303

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved: CI passes on this head. The CHANGELOG titles, the reworded older entries and the new check:changesets title rule work as described.

  • Land this before the next release branch is cut: release merge-back makes main's CHANGELOGs equal the published branch's, so a branch cut earlier would bring back the old titles and fail the new rule.
Claims and files checked

Review mode: same-head; reason: none

  • changed rules (0): none.
  • Claim: ten package CHANGELOGs opened with a title other than their package name. Verified: the new check over main's CHANGELOGs reports exactly ten (cli, core, lab and the seven themes).
  • Claim: line 1 of each package CHANGELOG is now its package.json name, and build already matched. Verified for all 13 package CHANGELOGs (charts and richtext also already matched).
  • Claim: Changesets titles a new CHANGELOG with the name, and neither it nor format-changelogs.mjs rewrites an existing title. Verified for scripts/format-changelogs.mjs, which keeps the title lines as they are (:255-258, :289); the Changesets part is library behavior and is not in the repository.
  • Claim: older entries use current package names, or generic wording where an entry describes the scope move. Verified: no earlier-scope package name remains in any package CHANGELOG.
  • Claim: no entry's meaning changes; codemod entries name their inputs as the earlier scope's packages; pins of 0.0.4, 0.0.5 and 0.0.13 name that scope's core while 0.0.15 keeps @astryxdesign/core. Verified against the v0.1.0 codemod sources, which match the earlier scope's specifiers, the pin lines (packages/lab/CHANGELOG.md:86, :95; packages/themes/neutral/CHANGELOG.md:523, :538, :546), and the repository history, where core is renamed to @astryxdesign/core at version 0.0.15.
  • Claim: release versions and entry order are untouched. Verified: the only headings that change are the ten title lines.
  • Claim: the check compares each title with the package's own name and keeps no list of names. Verified at scripts/check-changesets.mjs:178-184 and :229-239.
  • Claim: the check reports 10 problems against main and none on this branch. Verified on both, on this branch merged with main, and in CI's Lint job.
  • Claim: new tests cover a matching title, another package's title, a missing title, a private package and a package with no CHANGELOG. Verified: five new cases (scripts/check-changesets.test.mjs:289-371).
  • Claim: the test file passes 22 of 22. Verified: all 22 cases pass, and the new ones fail without the change.
  • Claim: prettier --check passes on the changed files. Verified: CI's changed-file formatting check passes on this head.
  • Claim: some older names were never on the public registry, and 0.0.15 shipped there as @astryxdesign/core. Consistent with the repository history; the registry itself was not read.
  • Claim: the change is documentation plus one named check, with no runtime, API, visual or policy change. Verified: no package source changes.
  • Claim: the public text contains no internal context. Verified.
  • Commit claims: package names in the CHANGELOG headers; codemod entries name their inputs by the earlier scope; pins older than 0.0.15 name the earlier scope and the title check sits above checkRepository's doc; checkRepository's doc names the title check. Verified (scripts/check-changesets.mjs:169-193).
  • Changeset claim: each package's CHANGELOG starts with its own name. Verified.
  • Changeset claim: older entries name packages by their current names. Verified, with the earlier scope's packages named as such where that is what an entry means.
  • Changeset: a [docs] patch for build, cli, core and the seven themes with a contributor. Valid under check:changesets, and optional for a documentation change.
  • File .changeset/changelog-package-names.md: clear.
  • Files packages/build/CHANGELOG.md, packages/cli/CHANGELOG.md and packages/core/CHANGELOG.md: clear.
  • Files packages/lab/CHANGELOG.md and packages/themes/neutral/CHANGELOG.md: clear.
  • Files packages/themes/{butter,chocolate,gothic,matcha,stone,y2k}/CHANGELOG.md: clear.
  • File scripts/check-changesets.mjs: clear.
  • File scripts/check-changesets.test.mjs: clear.

Automated review (maintainer link)

@cixzhang
cixzhang marked this pull request as ready for review November 23, 2026 23:20
@cixzhang
cixzhang merged commit 4f4b365 into main Nov 23, 2026
155 checks passed

This branch was successfully deployed

1 active deployment
Preview — 9d64303a Deployed Nov 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. lane:4 Astryx fix-loop lane 4 owns this

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant