From 5bcf4afe1b01fa513893a8fd25eddeea833d5fbf Mon Sep 17 00:00:00 2001 From: Alem Tuzlak Date: Thu, 14 May 2026 15:58:19 +0200 Subject: [PATCH] fix(release): move pnpm overrides + patchedDependencies to pnpm-workspace.yaml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pnpm v11 stopped reading settings from the \`pnpm\` field of \`package.json\` (https://github.com/pnpm/pnpm/releases/tag/v11.0.0). Settings have to live in \`pnpm-workspace.yaml\` instead. The repo's \`packageManager\` was bumped from pnpm v10 to v11.1.1 in #550, but the two settings under the \`pnpm\` key — \`overrides\` and \`patchedDependencies\` — weren't moved, so they've been silently ignored ever since. The \`abbrev\` override is benign, but the missing \`@changesets/assemble-release-plan\` patch is the cause of PR #554's broken bumps (anthropic 0.8.6 → 1.0.0 instead of → 0.9.0, gemini 0.10.3 → 1.0.0 instead of → 0.11.0, etc.). The patch short-circuits \`shouldBumpMajor\` for any \`peerDependencies\` change so peer-only bumps don't cascade into major bumps across the workspace. Verified locally with \`rm -rf node_modules && pnpm install\`: the patch is now applied (the early-return \`if (depType === 'peerDependencies')\` is present in \`node_modules/.pnpm/@changesets+assemble-releas_/node_modules/@changesets/assemble-release-plan/dist/changesets-assemble-release-plan.cjs.js\`). Once this lands, the changesets workflow on the next push to main will regenerate \`changeset-release/main\` with the correct minor bumps. --- package.json | 8 -------- pnpm-lock.yaml | 20 ++++++++++---------- pnpm-workspace.yaml | 8 ++++++++ 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index 16b11b630..eb92d3803 100644 --- a/package.json +++ b/package.json @@ -7,14 +7,6 @@ }, "packageManager": "pnpm@11.1.1", "type": "module", - "pnpm": { - "overrides": { - "abbrev": "^3.0.0" - }, - "patchedDependencies": { - "@changesets/assemble-release-plan@6.0.9": "patches/@changesets__assemble-release-plan@6.0.9.patch" - } - }, "scripts": { "clean": "pnpm --filter \"./packages/**\" run clean", "clean:all": "git clean -fdx --exclude=\"!.env\"", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 39bbee888..f5bde1784 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,6 +4,12 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false +overrides: + abbrev: ^3.0.0 + +patchedDependencies: + '@changesets/assemble-release-plan@6.0.9': 1bc53c741da20baad9cdeb674c599225dcf9fe6aa7b0de16ff87e63f12a97b24 + importers: .: @@ -6945,10 +6951,6 @@ packages: resolution: {integrity: sha512-nrUSn7hzt7J6JWgWGz78ZYI8wj+gdIJdk0Ynjpp8l+trkn58Uqsf6RYrYkEK+3X18EX+TNdtJI0WxAtc+L84SQ==} hasBin: true - abbrev@2.0.0: - resolution: {integrity: sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ==} - engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} - abbrev@3.0.1: resolution: {integrity: sha512-AO2ac6pjRB3SJmGJo+v5/aK6Omggp6fsLrs6wN9bd35ulu4cCwaAU9+7ZhXjeqHVkaHThLuzH0nZr0YpCDhygg==} engines: {node: ^18.17.0 || >=20.5.0} @@ -12514,7 +12516,7 @@ snapshots: resolve-from: 5.0.0 semver: 7.7.4 - '@changesets/assemble-release-plan@6.0.9': + '@changesets/assemble-release-plan@6.0.9(patch_hash=1bc53c741da20baad9cdeb674c599225dcf9fe6aa7b0de16ff87e63f12a97b24)': dependencies: '@changesets/errors': 0.2.0 '@changesets/get-dependents-graph': 2.1.3 @@ -12530,7 +12532,7 @@ snapshots: '@changesets/cli@2.30.0(@types/node@24.10.3)': dependencies: '@changesets/apply-release-plan': 7.1.0 - '@changesets/assemble-release-plan': 6.0.9 + '@changesets/assemble-release-plan': 6.0.9(patch_hash=1bc53c741da20baad9cdeb674c599225dcf9fe6aa7b0de16ff87e63f12a97b24) '@changesets/changelog-git': 0.2.1 '@changesets/config': 3.1.3 '@changesets/errors': 0.2.0 @@ -12589,7 +12591,7 @@ snapshots: '@changesets/get-release-plan@4.0.15': dependencies: - '@changesets/assemble-release-plan': 6.0.9 + '@changesets/assemble-release-plan': 6.0.9(patch_hash=1bc53c741da20baad9cdeb674c599225dcf9fe6aa7b0de16ff87e63f12a97b24) '@changesets/config': 3.1.3 '@changesets/pre': 2.0.2 '@changesets/read': 0.6.7 @@ -17647,8 +17649,6 @@ snapshots: dependencies: argparse: 2.0.1 - abbrev@2.0.0: {} - abbrev@3.0.1: {} abort-controller@3.0.0: @@ -21158,7 +21158,7 @@ snapshots: nopt@7.2.1: dependencies: - abbrev: 2.0.0 + abbrev: 3.0.1 nopt@8.1.0: dependencies: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 9928ca787..8e7194f7b 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -2,6 +2,14 @@ cleanupUnusedCatalogs: true linkWorkspacePackages: true preferWorkspacePackages: true +# pnpm v11 dropped support for these fields in package.json — they must live +# here. See https://github.com/pnpm/pnpm/releases/tag/v11.0.0. +overrides: + abbrev: ^3.0.0 + +patchedDependencies: + '@changesets/assemble-release-plan@6.0.9': patches/@changesets__assemble-release-plan@6.0.9.patch + packages: - 'packages/typescript/*' - 'packages/typescript/ai-code-mode/models-eval'