Skip to content

Update Changesets dependencies - #465

Merged
diegohaz merged 1 commit into
mainfrom
update/changesets-2026-11-30
Dec 1, 2026
Merged

diegohaz merged 1 commit into
mainfrom
update/changesets-2026-11-30

Conversation

@diegohaz

@diegohaz diegohaz commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Motivation

The Changesets toolchain has eligible minor releases (@changesets/apply-release-plan 8.2.0, @changesets/cli 3.1.0, @changesets/config 4.1.0, and @changesets/types 7.1.0, all published on 2026-11-27 and past the 3-day minimumReleaseAge policy), but Renovate cannot regenerate the lockfile because pnpm-workspace.yaml pins the custom changelog hook patch to @changesets/apply-release-plan@8.1.1.

Solution

Update @changesets/apply-release-plan, @changesets/cli, @changesets/config, and @changesets/types in the root package.json, regenerate the @changesets/apply-release-plan patch against 8.2.0 (dist/index.mjs renamed changelogOpts to changelogFormatterOptions on the context line above the hook), switch the patchedDependencies entry in pnpm-workspace.yaml to a versionless key (patches/@changesets__apply-release-plan.patch) so compatible future bumps reuse the patch while upstream drift still fails pnpm install loudly, update .changeset/get-changelog-entry.test.ts to use format: false instead of the removed prettier: false option, and regenerate pnpm-lock.yaml.

Dependencies

Declaration Workspace Old New Source
@changesets/apply-release-plan root 8.1.1 8.2.0 changelog, compare
@changesets/cli root 3.0.3 3.1.0 changelog, compare
@changesets/config root 4.0.1 4.1.0 changelog, compare
@changesets/types root 7.0.0 7.1.0 changelog, compare

Relevant changes:

  • @changesets/apply-release-plan 8.2.0: Passes optional frontmatter _ metadata to changelog formatter functions and renames changelogOpts to changelogFormatterOptions in dist/index.mjs, which required regenerating patches/@changesets__apply-release-plan.patch.
  • @changesets/cli 3.1.0: Fixes remoteTagExists suffix matching when checking git tags during changeset publish, and adds optional Biome formatting and staged publishing support.
  • @changesets/config 4.1.0: Adds schema and config parsing support for Biome formatting and stagedPublishing; compatible with .changeset/config.json.
  • @changesets/types 7.1.0: Adds optional metadata on changeset types and config types for Biome formatting and stagedPublishing; compatible with .changeset/changelog.ts without code changes.

Verification

  • pnpm build
  • pnpm test --run
  • pnpm tsc
  • pnpm lint
  • pnpm --filter examples build
  • pnpm exec changeset status --since=origin/main
  • pnpm install --frozen-lockfile

@diegohaz

diegohaz commented Dec 1, 2026

Copy link
Copy Markdown
Owner Author

This dependency update is non-mechanical because the repository patches @changesets/apply-release-plan so .changeset/changelog.ts can run its custom getChangelogEntry hook.

In @changesets/apply-release-plan@8.2.0, upstream renamed changelogOpts to changelogFormatterOptions on the line immediately before the hook in dist/index.mjs, so the 8.1.1 patch could not be carried verbatim. The patch was regenerated against 8.2.0 (patches/@changesets__apply-release-plan.patch) with the same 3-line hook, its patchedDependencies entry in pnpm-workspace.yaml was switched to a versionless key so compatible future updates reuse the patch while upstream drift still fails pnpm install loudly, and .changeset/get-changelog-entry.test.ts was updated from the removed prettier: false option to format: false.

pnpm install --frozen-lockfile applied the patch cleanly, pnpm test --run (including .changeset/get-changelog-entry.test.ts), pnpm build, pnpm tsc, pnpm lint, pnpm --filter examples build, and pnpm exec changeset status --since=origin/main all passed. Automerge is disabled so a human reviewer can verify the regenerated patch.

@diegohaz
diegohaz merged commit bf9de8f into main Dec 1, 2026
8 checks passed
@diegohaz
diegohaz deleted the update/changesets-2026-11-30 branch December 1, 2026 02:54
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