-
Notifications
You must be signed in to change notification settings - Fork 4k
chore: release 11.3.0 #8150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: release 11.3.0 #8150
Conversation
Release ManagerRelease workflow run: https://github.com/npm/cli/actions/runs/14323665357 Release Checklist for v11.3.0
|
c0773db to
900b40b
Compare
dde087d to
d9957bb
Compare
5586bf2 to
90a987f
Compare
611b9a5 to
f5dc19b
Compare
dc5caab to
da1d171
Compare
85ec0c9 to
26b6454
Compare
5b3e1e7 to
b150799
Compare
b150799 to
d1492e5
Compare
d1492e5 to
0e3ff80
Compare
|
🤖 Created releases:
🌻 |
The `--no-package-lock` workaround was added due to npm bug #4828, where npm < 11.3.0 generates incomplete lockfiles for packages with optional platform dependencies (esbuild, rollup). Optional cross-platform dependencies were restored to `package-lock.json` in 358f276, so npm will be able to install from the lock file in the GitHub Actions. Also, fixed in npm 11.3.0 (Apr 2025), but Node v22 ships npm v10 and will remain affected out-of-the-box. Investigation notes follow. What happened? -------------- 1. Switch from yarn to npm: `package-lock.json` added, `yarn.lock` removed - modelcontextprotocol@702f827 Presumably: - run `npm install` to generate a `package-lock.json` from the yarn-managed `node_modules`, on macos - bug #4828: npm omitted optional cross-platform dependencies from the lock file 2. Pull 47, tries `npm ci`, and reverts, on 11 Nov 2024 modelcontextprotocol@3789ef9 - "Try restoring npm ci" --> testing the new node release for the bug? - ran against `setup-node`, `node-version: 18`, likely: 18.20.5 (released nov 11, 2024; ~same day) - git show 3789ef9:.github/workflows/main.yml - Failed action, and logs have expired - https://github.com/modelcontextprotocol/inspector/actions/runs/11782443393/job/32817472448 - https://nodejs.org/en/download/archive/v18.20.5 - uses npm 10.8.2 - Re-tried in inspector fork - workflow run at 3789ef9 - change `node-version: 18` to `18.20.5` (exact node / npm on commit date) - Fails due to missing `linux-x64-gnu` platform dep (rollup, would similarly affect esbuild) 3. Cross-platform dependencies restored to lockfile on 1 May 2025 modelcontextprotocol#372 - modelcontextprotocol@358f276 - worked because `package-lock.json` and `node_modules` were both removed - i.e., not the bug conditions -> even npm < 11.3.0 generates correct lockfile - At that point, `--no-package-lock` could've been removed from CI, Dockerfile, etc. NPM --- npm (aborist) fixed #4828 npm/cli#8184 - npm/cli#4828 --> frequent http 500, due to many comments - npm/cli@a96d8f6 - will not be backported Released in 11.3.0 on 8 Apr npm/cli#8150 - https://github.com/npm/cli/releases/tag/v11.3.0 - arborist 9.0.2 - https://github.com/npm/cli/releases/tag/arborist-v9.0.2 - npm v11.3.0 ships with node v24.2.0, on 6 May 2025 - https://nodejs.org/en/download/archive/v24 Node v22 ships npm v10 - https://nodejs.org/en/download/archive/v22 - will always be affected, no backport coming
The `--no-package-lock` workaround was added due to npm bug #4828, where npm < 11.3.0 generates incomplete lockfiles for packages with optional platform dependencies (esbuild, rollup). Optional cross-platform dependencies were restored to `package-lock.json` in 358f276, so npm will be able to install from the lock file in the GitHub Actions. Also, fixed in npm 11.3.0 (Apr 2025), but Node v22 ships npm v10 and will remain affected out-of-the-box. Investigation notes follow. What happened? -------------- 1. Switch from yarn to npm: `package-lock.json` added, `yarn.lock` removed - modelcontextprotocol@702f827 Presumably: - run `npm install` to generate a `package-lock.json` from the yarn-managed `node_modules`, on macos - bug #4828: npm omitted optional cross-platform dependencies from the lock file npm can't easily fix this. `npm install [email protected]` could write a resolved dependency, but at the exact version so `foo` would be pinned, and semver operator twiddling would be required to restore it as-was. The fix would be to "manually" re-add the missing metadata. 2. Pull 47, tries `npm ci`, and reverts, on 11 Nov 2024 modelcontextprotocol@3789ef9 - "Try restoring npm ci" --> testing the new node release for the bug? - ran against `setup-node`, `node-version: 18`, likely: 18.20.5 (released nov 11, 2024; ~same day) - git show 3789ef9:.github/workflows/main.yml - Failed action, and logs have expired - https://github.com/modelcontextprotocol/inspector/actions/runs/11782443393/job/32817472448 - https://nodejs.org/en/download/archive/v18.20.5 - uses npm 10.8.2 - Re-tried in inspector fork - workflow run at 3789ef9 - change `node-version: 18` to `18.20.5` (exact node / npm on commit date) - Fails due to missing `linux-x64-gnu` platform dep (rollup, would similarly affect esbuild) 3. Cross-platform dependencies restored to lockfile on 1 May 2025 modelcontextprotocol#372 - modelcontextprotocol@358f276 - worked because `package-lock.json` and `node_modules` were both removed - i.e., not the bug conditions -> even npm < 11.3.0 generates correct lockfile - At that point, `--no-package-lock` could've been removed from CI, Dockerfile, etc. NPM --- npm (aborist) fixed #4828 npm/cli#8184 - npm/cli#4828 --> frequent http 500, due to many comments - npm/cli@a96d8f6 - will not be backported Released in 11.3.0 on 8 Apr npm/cli#8150 - https://github.com/npm/cli/releases/tag/v11.3.0 - arborist 9.0.2 - https://github.com/npm/cli/releases/tag/arborist-v9.0.2 - npm v11.3.0 ships with node v24.2.0, on 6 May 2025 - https://nodejs.org/en/download/archive/v24 Node v22 ships npm v10 - https://nodejs.org/en/download/archive/v22 - will always be affected, no backport coming
🤖 I have created a release beep boop
11.3.0
11.3.0 (2025-04-08)
Features
b306d25#8129 addnode-gypas actual config (@wraithgar)Bug Fixes
2f5392a#8135 makenpm runautocomplete work with workspaces (fix: makenpm runautocomplete work with workspaces #8135) (@terrainvidia)Documentation
26b6454fix grammer in local path note (@cgay)1c0e83d#7886 fix typo in package-json.md (docs: fix typo in package-json.md #7886) (@stoneLeaf)14efa57#8178 fix example package name inoverridesexplainer (docs: fix example package name inoverridesexplainer #8178) (@G-Rath)4183cba#8162 logging: replace proceeding with preceding in loglevels details (docs(logging): replace proceeding with preceding in loglevels details #8162) (@tyleralbee)Dependencies
e57f112#8207[email protected]3daabb1#8207[email protected]c7a7527#8207[email protected]20b09b6#8207[email protected]679bc4a#8129@npmcli/[email protected]Chores
3fbed84#8207 install rimraf as a devdependency for smoke tests (@owlstronaut)43f0b41#8207 dev dependency updates (@wraithgar)26803bc#8147 release integration node 23 yml (chore: release integration node 23 yml #8147) (@reggi)d679a1a#8146 release integration node 23 (chore: release integration node 23 #8146) (@reggi)@npmcli/[email protected]@npmcli/[email protected][email protected][email protected][email protected][email protected]arborist: 9.0.2
9.0.2 (2025-04-08)
Bug Fixes
a96d8f6#8184 arborist: omit failed optional dependencies from installed deps (fix(arborist): omit failed optional dependencies from installed deps #8184) (@owlstronaut, @zkat)04f53ce#8180 arborist: safely fallback on unresolved $ dependency references (fix(arborist): safely fallback on unresolved $ dependency references #8180) (@owlstronaut)885accd#8185 arborist: only replace hostname for resolved URL (fix(arborist): only replace hostname for resolved URL #8185) (@billy-briggs-dev)8b7bb12#8168 arborist: Allow downgrades to hoisted version dedupe workspace i… (fix(arborist): Allow downgrades to hoisted version dedupe workspace i… #8168) (@owlstronaut)1642556#8160 arborist: workspaces respect overrides on subsequent installs (fix(arborist): workspaces respect overrides on subsequent installs #8160) (@owlstronaut)Chores
88a7b52#8174 add load-virtual and reify tests for workspace override test coverage (chore: add load-virtual and reify tests for workspace override test coverage #8174) (@owlstronaut, @TrevorBurnham)config: 10.2.0
10.2.0 (2025-04-08)
Features
b306d25#8129 addnode-gypas actual config (@wraithgar)Bug Fixes
9e73338#8129 warn on non-default npm-version (@wraithgar)1814b45#8145 re-add positional arg and abbrev warnings (fix: re-add positional arg and abbrev warnings #8145) (@wraithgar)libnpmdiff: 8.0.2
Dependencies
@npmcli/[email protected]libnpmexec: 10.1.1
10.1.1 (2025-04-08)
Bug Fixes
386f328#8154 npx: always save true when installing to npx cache (fix(npx): always save true when installing to npx cache #8154) (@milaninfy)Dependencies
@npmcli/[email protected]libnpmfund: 7.0.2
Dependencies
@npmcli/[email protected]libnpmpack: 9.0.2
Dependencies
@npmcli/[email protected]This PR was generated with Release Please. See documentation.