Repository navigation
docs: package names in changelog headers - #13683
Conversation
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec 4d477bb |
PR Analysis Report🔎 Preview ·
|
There was a problem hiding this comment.
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.mdlines 5123, 5299, 5310–5311, 5417–5419 and 5443 now say the codemods rewrite@astryxdesign/*inputs such as@astryxdesign/core/xds.css,@astryxdesign/theme-dailyanddeclare 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.jsonname, and build already did. Verified for all 13 package CHANGELOGs, andpnpm check:changesetspasses. - Claim: changesets titles a new CHANGELOG with the name, and neither it nor
format-changelogs.mjsrewrites an existing title. Verified in the changesets writer'sprependFileand inscripts/format-changelogs.mjs:252-289. - Claim: older entries now use current package names or generic wording. Partly false:
packages/cli/CHANGELOG.md:5123and:5419name@astryxdesign/theme-default/@astryxdesign/theme-daily, while the earliertheme-dailypackage'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:changesetscompares each CHANGELOG title with its own package name and keeps no list of names. Verified atscripts/check-changesets.mjs:185-191and:228-238. - Claim: the check reports 10 problems on
mainand 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 --checkon 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.mdandpackages/core/CHANGELOG.md: clear. - Files
packages/lab/CHANGELOG.mdandpackages/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.
…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.
|
/approve-spec 4fdca04 |
There was a problem hiding this comment.
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.jsonname, and build already did. Verified for all 13 package CHANGELOGs, andcheck:changesetspasses. - Claim: changesets titles a new CHANGELOG with the name, and neither it nor
format-changelogs.mjsrewrites an existing title. Verified in the changesets writer and inscripts/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:changesetscompares each CHANGELOG title with its own package name and keeps no list of names. Verified atscripts/check-changesets.mjs:185-191and:228-238. - Claim: the check reports 10 problems against
mainand 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 --checkpasses on the changed files. Verified at the previous revision; the CLI CHANGELOG lines rewritten since passformat-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.mdandpackages/core/CHANGELOG.md: clear. - Files
packages/lab/CHANGELOG.mdandpackages/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.
…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.
|
/approve-spec 5ee31f9 |
There was a problem hiding this comment.
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.jsonname, and build already matched. Verified for all 13 package CHANGELOGs;check:changesetspasses on this head and on its merge withmain. - Claim: Changesets titles a new CHANGELOG with the name, and neither it nor
format-changelogs.mjsrewrites an existing title. Verified:scripts/format-changelogs.mjs:255-258and:289copy 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/coreversion. - 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-184and:228-238. - Claim: the check reports 10 problems against
mainand 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 --checkpasses on the changed files. Not rerun on this head; the lines changed since it was last checked are CHANGELOG entries that passformat-changelogs.mjs --checkand 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 andscripts/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 undercheck:changesets, and optional for a documentation change. - File
.changeset/changelog-package-names.md: clear. - Files
packages/build/CHANGELOG.md,packages/cli/CHANGELOG.mdandpackages/core/CHANGELOG.md: clear. - Files
packages/lab/CHANGELOG.mdandpackages/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.
|
/approve-spec 9d64303 |
There was a problem hiding this comment.
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.jsonname, 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.mjsrewrites an existing title. Verified forscripts/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/coreat 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-184and:229-239. - Claim: the check reports 10 problems against
mainand none on this branch. Verified on both, on this branch merged withmain, 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 --checkpasses 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 undercheck:changesets, and optional for a documentation change. - File
.changeset/changelog-package-names.md: clear. - Files
packages/build/CHANGELOG.md,packages/cli/CHANGELOG.mdandpackages/core/CHANGELOG.md: clear. - Files
packages/lab/CHANGELOG.mdandpackages/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.
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.jsonname. Changesets titles a new CHANGELOG# <name>; the titles here predate that and were never regenerated, and neither the changesets writer norscripts/format-changelogs.mjsrewrites an existing title.Correction
# <its package.json name>: core, cli, lab and the seven theme packages (build already matched).@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'score; 0.0.15 shipped on the public registry as@astryxdesign/coreand keeps that name.pnpm check:changesetsnow 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
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
scripts/check-changesets.mjsthat guards the corrected titles.)Testing
pnpm check:changesetspnpm exec vitest run --project node scripts/check-changesets.test.mjs: 22 of 22 pass (5 new)prettier --checkon the changed files