Repository navigation
chore(deps): update npm to v12 (maintenance/legacy-runtime-e990eda) - #341
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
根 package.json 与 package-lock.json 中的 npm 版本不一致,而 CI 和发布流程运行 npm ci,可能导致安装直接失败。
1 open issue
What changed in this PR
This pull request updates the repository's npm toolchain from 11.21.2 to 12.2.2 for the newer runtime.
Changes:
- Updates the
packageManagerdeclaration to[email protected]. - Updates the root
npmdevelopment dependency to12.2.2. - The lockfile and local setup documentation still require synchronization with the new version.
| File | Description |
|---|---|
| package.json | Updates the declared package manager and root development dependency from npm 11.21.2 to npm 12.2.2. |
Review effort: Lite
## 摘要 修复维护 npm 工具链更新在托管端缺少配套锁文件的问题。真实 PR #341 更新两项 npm 声明到 12.2.2,但 `npm install --package-lock-only` 报 EALLOWREMOTE,随后维护 CI 正确拒绝清单与锁不一致。 ## 变更原因 npm 12.2.2 在完整 ideal tree 检查 bundled dependencies 时,将 registry 自身 tarball 当作 remote 处理;准确 Node 24.22.0/npm 12.2.2 隔离复现与 Mend job `af5b9cae-0d6a-40ca-b33b-b7bd36b7c4c6` 一致。官方 [npm/cli#9800](npm/cli#9800) 已记录 package-lock-only 路径,[修复 #9818](npm/cli#9818) 当前尚未合并发布。 ## 主要改动 仅为现有准确维护 npm 工具组增加 `skipInstalls: false`,采用 Renovate [官方支持的安装模式](https://docs.renovatebot.com/configuration-options/#skipinstalls),生成锁时运行普通安装。范围保持 `maintenance/legacy-runtime-e990eda`、npm manager、根 package.json、npm 的 packageManager/devDependencies 两字段。 ## 关联事项 关联 #324、#341。正式目标 npm 12.2.2 来自实际 registry 与托管发现,不固定旧 major,也不手工填写 #341 的锁来替代托管事务。 ## 验证结果 - 准确 Node 24.22.0/npm 12.2.2:lock-only 原命令复现 EALLOWREMOTE;普通 `install --no-audit --ignore-scripts` 成功,90 项锁变化仅根/npm 子树,根声明与实际包版本均为 12.2.2。 - 新锁在同一准确版本下 `npm ci --ignore-scripts --no-audit --no-fund` 成功。 - 官方 Renovate 有效规则 18 个针对性案例通过,仅准确维护 npm 两字段命中;strict schema 通过,Windows已有 RE2 回落警告保留,未修改任何正则。 - 官方 Renovate 44.222.5 源码确认普通安装与 ignoreScripts 独立;全局 ignoreScripts=true 保持。 - 本 PR 最终 head 的 CI/AI 按实际结果验收;采用后仍须观察真实 Mend 对 #341 的重建、锁一致性、artifacts 和 required 终态。 ## 影响分析 普通安装会在该组托管临时目录安装整个锁对应的依赖树,增加下载与磁盘工作。安装脚本仍禁用,npm 默认 allow-remote 限制保持;其他分组、默认分支行为、版本发现和原有限流保持。 ## 发布与迁移 通过最终检查和审查后按中央协调窗口正常采用。随后对既有 #341 通过 Mend 原生重试/重建核查实际结果;人工请求来源单独记录。配置采用不等于 npm 托管事务通过。 ## 回退方式 通过正常 PR 撤回这一属性,恢复原安装策略;原失败事务与检查记录保留。 ## AI 使用声明 本次由 AI 编程助手在已授权 R1 范围内实施与验证。服务部署、维护版本合并不属于本配置修正操作。
e709138 to
74bb70c
Compare
There was a problem hiding this comment.
🟡 Changes recommended
package.json 已切换至 [email protected],但 README.md 和 CONTRIBUTING.md 仍要求使用 npm 11.21.2,导致工具链约定不一致且文档会误导贡献者。
2 open issues
Review effort: Lite
74bb70c to
5d5bcbd
Compare
There was a problem hiding this comment.
🔵 Needs a closer look
package.json 已更新为 [email protected],但 README.md 和 CONTRIBUTING.md 仍要求 npm 11.21.2,导致文档与项目配置及 lockfile 不一致,需同步版本说明。
2 open issues
Review effort: Lite
5d5bcbd to
6be83e0
Compare
6be83e0 to
2578e47
Compare
There was a problem hiding this comment.
🔵 Needs a closer look
package.json 已指定 [email protected],但 README.md 和 CONTRIBUTING.md 仍要求 npm 11.21.2,文档与仓库配置不一致的问题尚未解决。
2 open issues
Review effort: Lite
2578e47 to
9915ef9
Compare
9915ef9 to
7d0cb79
Compare
There was a problem hiding this comment.
🟡 Changes recommended
变更仅声明了 [email protected],却未同步更新 README.md 和 CONTRIBUTING.md,且 CI 仍直接执行未固定版本的 npm ci,导致文档与实际工具链不一致。
3 open issues
Review effort: Lite
7d0cb79 to
1e7483b
Compare



本 PR 包含以下依赖更新:
This PR contains the following updates:
11.21.2→12.2.3Release Notes
npm/cli (npm)
v12.2.3Compare Source
Bug Fixes
8f92e74#10117 unpublish: refuse to unpublish a version when registry has no versions (#10117) (@meganemura)a41b85a#10068 skip disconnected orphans in install script checks (#10068) (@JamieMagee)09a15bb#10135 libnpmexec: install npx cache despite dryRun or packageLockOnly (#10135) (@ljharb)be2acee#10191 treat UCRT64 Git Bash as a unix shell on Windows (#10191) (@ump45nose)Dependencies
d538936#10254[email protected](#10254) (@martinrrm)Chores
bd8b339#10234 restore release integration (@reggi, @Copilot)e04a5f8#10241 migrate Cygwin installer (@reggi, @Copilot)@npmcli/[email protected]@npmcli/[email protected][email protected][email protected][email protected][email protected]v12.2.2Compare Source
Bug Fixes
347dbb2#10175 accept supported Node.js prereleases at startup (#10175) (@reggi, @Copilot)085f9f6#9798 patch: stop a workdir cleanup race from masking update errors (#9798) (@manzoorwanijk)Documentation
52f3093#10108 propose Markdown conventions in CONTRIBUTING (#10108) (@ump45nose)Dependencies
89e9555#10204[email protected](@reggi, @Copilot)158315c#10152[email protected](@martinrrm, @Copilot)820b297#10152[email protected](@martinrrm, @Copilot)9196a4c#10152[email protected](@martinrrm, @Copilot)b34bba5#10170[email protected]9a7e3b6#10170[email protected]Chores
6642613#10181 drop clinic and weak from node-integration knownFailures (@ump45nose)fc517df#10033 prefix Node staging PR titles (#10033) (@reggi)7c78fe0#10021 handle unavailable node nightly source (#10021) (@reggi)311ff5e#10151 align release integration with supported Node versions (#10151) (@reggi, @Copilot)[email protected]v12.2.1Compare Source
Bug Fixes
b317f16#9941 write registry allowScripts keys under install-strategy=linked (#9941) (@manzoorwanijk)Dependencies
7b0c2e8#10088[email protected](@reggi)e9e99b4#10088[email protected](@reggi)857d7df#10088[email protected](@reggi)bc7bb3a#10088[email protected](@reggi)7614360#10088[email protected](@reggi)@npmcli/[email protected][email protected][email protected][email protected][email protected]v12.2.0Compare Source
Features
9741b64#10038 dist-tag: support OIDC authentication (#10038) (@reggi, @Copilot)Documentation
0c3b82a#10017 update npm stage docs to reflect that it can create new packages (#10017) (@shmam, @Copilot)Dependencies
@npmcli/[email protected]v12.1.0Compare Source
Features
6400533#9948 token: support read-write-stage-only granular access tokens (#9948) (@Tayvon, @Copilot)8723f53#9898 stage: display staged package status (#9898) (@joelverhagen)Bug Fixes
c9876d7#9882 provenance-file takes precedence over OIDC auto-generated provenance (#9882) (@yunseo-kim)b016aa2#9913 config: avoid exporting persistent allow-scripts (#9913) (@Fnine59)d6c6122#9914 arborist: match allowScripts keys for local paths (#9914) (@martinrrm, @Copilot)a8c9b2f#9823 keep dry-run output valid json (#9823) (@martinrrm)da50c34#9881 arborist: reject uninstall args that carry a version (#9881) (@lazerg)71915e8#9756 exempt explicit pack targets from allow-directory (#9756) (@ychampion, @ychampion)51c2bf8#9864 don't print the funding message for global installs (#9864) (@lazerg)Documentation
bea9066#9838 document npm 12 install script blocking (#9838) (@reggi)Dependencies
6e40f73#9871[email protected](@martinrrm, @Copilot)05bd2a4#9871[email protected](@martinrrm, @Copilot)b7c490d#9871[email protected](@martinrrm, @Copilot)75a943d#9843[email protected](#9843) (@martinrrm, @Copilot)Chores
7b50811#9961 pack: select workspace through config (#9961) (@reggi)81a901c#9915 recognize prefixed Node.js PR titles (#9915) (@reggi)4cdccea#9836 updatenode-integrationworkflow template to latest actions (#9836) (@MikeMcC399)278df04#9822 pass nodedir to node-gyp via npm_package_config env in node integration (#9822) (@reggi, @Copilot)@npmcli/[email protected]@npmcli/[email protected][email protected][email protected][email protected][email protected][email protected]v12.0.2Compare Source
Bug Fixes
834408e#9760 pack: honor min-release-age-exclude (#9760) (@martinrrm, @Copilot)ef6cfea#9786 owner: use scoped registry for user lookup (#9786) (@martinrrm, @Copilot)Documentation
9e17dc0#9805 clarify npm 12 unknown-config breaking change in changelogs (#9805) (@Hashim1999164)Chores
7b1f6c1#9747 parse pack --json object output in node integration (#9747) (@reggi, @Copilot)Dependencies
@npmcli/[email protected]@npmcli/[email protected][email protected][email protected][email protected][email protected]v12.0.1Compare Source
Features
6400533#9948 token: support read-write-stage-only granular access tokens (#9948) (@Tayvon, @Copilot)8723f53#9898 stage: display staged package status (#9898) (@joelverhagen)Bug Fixes
c9876d7#9882 provenance-file takes precedence over OIDC auto-generated provenance (#9882) (@yunseo-kim)b016aa2#9913 config: avoid exporting persistent allow-scripts (#9913) (@Fnine59)d6c6122#9914 arborist: match allowScripts keys for local paths (#9914) (@martinrrm, @Copilot)a8c9b2f#9823 keep dry-run output valid json (#9823) (@martinrrm)da50c34#9881 arborist: reject uninstall args that carry a version (#9881) (@lazerg)71915e8#9756 exempt explicit pack targets from allow-directory (#9756) (@ychampion, @ychampion)51c2bf8#9864 don't print the funding message for global installs (#9864) (@lazerg)Documentation
bea9066#9838 document npm 12 install script blocking (#9838) (@reggi)Dependencies
6e40f73#9871[email protected](@martinrrm, @Copilot)05bd2a4#9871[email protected](@martinrrm, @Copilot)b7c490d#9871[email protected](@martinrrm, @Copilot)75a943d#9843[email protected](#9843) (@martinrrm, @Copilot)Chores
7b50811#9961 pack: select workspace through config (#9961) (@reggi)81a901c#9915 recognize prefixed Node.js PR titles (#9915) (@reggi)4cdccea#9836 updatenode-integrationworkflow template to latest actions (#9836) (@MikeMcC399)278df04#9822 pass nodedir to node-gyp via npm_package_config env in node integration (#9822) (@reggi, @Copilot)@npmcli/[email protected]@npmcli/[email protected][email protected][email protected][email protected][email protected][email protected]v12.0.0Compare Source
npm sbom --sbom-format=cyclonedxnow reports thenamefield from each package'spackage.jsoninstead of the on-disk directory name. Thename,bom-ref, andpurlof the root component and of aliased dependencies may change.man npm-installwill no longer work, butnpm help installis unaffected.npm pkgoutput is no longer forced to json. This means you can get single values without having to worry about wrapping of the values. It also outputs non-json content more similarly tonpm view.npm shrinkwrapis removed, theshrinkwrapconfig alias is removed, andnpm-shrinkwrap.jsonis no longer loaded or honored at the project root or from inside dependency tarballs. Rename project-rootnpm-shrinkwrap.jsontopackage-lock.json; usebundleDependenciesif you need to ship a locked dependency tree.npm packandnpm publishhave changed. They are now always consistent, and in the same format.star,starsandunstarcommands have been removednpm addusercommand has been removed. Create and manage user accounts on the npm website, and usenpm loginto authenticate on the command line.npm inithas been changed from "ISC" to an empty string. If not set, the license field will be omitted from new packages.npmnow supports node^22.22.2 || ^24.15.0 || >=26.0.0.npmrcconfigs still warn by default; opt into erroring with the newstrict-npmrcconfig.)allowScriptspolicy. After installing, runnpm install-scripts approveto record approvals andnpm rebuildto execute newly approved scripts.Chores
b77b532#9735 remove pre-release mode from npm 12 and workspaces (#9735) (@reggi, @Copilot)Dependencies
@npmcli/[email protected]@npmcli/[email protected][email protected][email protected][email protected][email protected][email protected][email protected][email protected][email protected][email protected][email protected]v11.21.3Compare Source
Configuration
📅 Schedule: (in timezone Asia/Bangkok)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
本 PR 由 Renovate 自动生成。