Skip to content

chore(deps): update npm to v12 (maintenance/legacy-runtime-e990eda) - #341

Merged
axiomoth merged 2 commits into
maintenance/legacy-runtime-e990edafrom
renovate/maintenance/legacy-runtime-e990eda-maintenance-npm-toolchain
Nov 19, 2026
Merged

axiomoth merged 2 commits into
maintenance/legacy-runtime-e990edafrom
renovate/maintenance/legacy-runtime-e990eda-maintenance-npm-toolchain

Conversation

@renovate

@renovate renovate Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

本 PR 包含以下依赖更新:

This PR contains the following updates:

组件 版本变化 Age Confidence
npm (source) 11.21.2 → 12.2.3 age confidence

Release Notes

npm/cli (npm)

v12.2.3

Compare Source

Bug Fixes
Dependencies
Chores

v12.2.2

Compare Source

Bug Fixes
Documentation
Dependencies
Chores

v12.2.1

Compare Source

Bug Fixes
Dependencies

v12.2.0

Compare Source

Features
Documentation
Dependencies

v12.1.0

Compare Source

Features
Bug Fixes
Documentation
Dependencies
Chores

v12.0.2

Compare Source

Bug Fixes
Documentation
Chores
Dependencies

v12.0.1

Compare Source

Features
Bug Fixes
Documentation
Dependencies
Chores

v12.0.0

Compare Source

⚠️ BREAKING CHANGES
  • npm view --json now always returns an array.
  • npm sbom --sbom-format=cyclonedx now reports the name field from each package's package.json instead of the on-disk directory name. The name, bom-ref, and purl of the root component and of aliased dependencies may change.
  • npm no longer registers man pages with the system when installed globally. man npm-install will no longer work, but npm help install is unaffected.
  • The npm pkg output 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 to npm view.
  • npm shrinkwrap is removed, the shrinkwrap config alias is removed, and npm-shrinkwrap.json is no longer loaded or honored at the project root or from inside dependency tarballs. Rename project-root npm-shrinkwrap.json to package-lock.json; use bundleDependencies if you need to ship a locked dependency tree.
  • The Twitter and Freenode profile fields have been removed from the npm registry. This means that users will no longer be able to set or view these fields in their npm profiles.
  • npm will no longer attempt to resolve the path to node via whichnode. process.execPath is already set by Node to the resolved real path of the node binary, so the lookup was redundant. Scripts that expected npm to override process.execPath with a PATH-resolved (potentially symlinked) node path may be affected.
  • the --json output of npm pack and npm publish have changed. They are now always consistent, and in the same format.
  • the star, stars and unstar commands have been removed
  • The npm adduser command has been removed. Create and manage user accounts on the npm website, and use npm login to authenticate on the command line.
  • Preserve https protocol when working with git (#​8703)
  • The default license for npm init has been changed from "ISC" to an empty string. If not set, the license field will be omitted from new packages.
  • npm now supports node ^22.22.2 || ^24.15.0 || >=26.0.0
  • allow-git and allow-remote now default to "none"; set them to "all" (or "root") to install git or user-supplied tarball-URL dependencies.
  • root `preinstall` now runs before dependencies are installed.
  • unknown CLI flags, abbreviated flags, and single-hyphen multi-char shorthands now throw instead of warning. (Unknown .npmrc configs still warn by default; opt into erroring with the new strict-npmrc config.)
  • Dependency lifecycle scripts are now blocked by default unless allowed by the root package's allowScripts policy. After installing, run npm install-scripts approve to record approvals and npm rebuild to execute newly approved scripts.
Chores
Dependencies

v11.21.3

Compare Source


Configuration

📅 Schedule: (in timezone Asia/Bangkok)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • If you want to rebase/retry this PR, check this box

本 PR 由 Renovate 自动生成。

Copilot AI lite review requested due to automatic review settings November 11, 2026 09:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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 packageManager declaration to [email protected].
  • Updates the root npm development dependency to 12.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

Comment thread package.json Resolved
axiomoth added a commit that referenced this pull request Nov 11, 2026
## 摘要

修复维护 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 范围内实施与验证。服务部署、维护版本合并不属于本配置修正操作。
@renovate
renovate Bot force-pushed the renovate/maintenance/legacy-runtime-e990eda-maintenance-npm-toolchain branch from e709138 to 74bb70c Compare November 11, 2026 09:51
Copilot AI lite review requested due to automatic review settings November 11, 2026 09:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

package.json 已切换至 [email protected],但 README.md 和 CONTRIBUTING.md 仍要求使用 npm 11.21.2,导致工具链约定不一致且文档会误导贡献者。

2 open issues

Review effort: Lite

Comment thread package.json Resolved
@renovate
renovate Bot force-pushed the renovate/maintenance/legacy-runtime-e990eda-maintenance-npm-toolchain branch from 74bb70c to 5d5bcbd Compare November 13, 2026 12:36
Copilot AI lite review requested due to automatic review settings November 13, 2026 12:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

package.json 已更新为 [email protected],但 README.md 和 CONTRIBUTING.md 仍要求 npm 11.21.2,导致文档与项目配置及 lockfile 不一致,需同步版本说明。

2 open issues

Review effort: Lite

@renovate
renovate Bot force-pushed the renovate/maintenance/legacy-runtime-e990eda-maintenance-npm-toolchain branch from 5d5bcbd to 6be83e0 Compare November 13, 2026 14:35
Copilot AI lite review requested due to automatic review settings November 13, 2026 14:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

该 npm major 升级影响多个 GitHub Actions、本地 bootstrap 及旧 releaseToolchain,且当前未固定 CI 使用的 npm 版本,仍需在 Node 24.22.0 的 Windows/Linux runner 和代表性构建中验证行为与兼容性。

2 open issues

Review effort: Lite

@renovate
renovate Bot force-pushed the renovate/maintenance/legacy-runtime-e990eda-maintenance-npm-toolchain branch from 6be83e0 to 2578e47 Compare November 17, 2026 15:25
Copilot AI lite review requested due to automatic review settings November 17, 2026 15:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

package.json 已指定 [email protected],但 README.md 和 CONTRIBUTING.md 仍要求 npm 11.21.2,文档与仓库配置不一致的问题尚未解决。

2 open issues

Review effort: Lite

@renovate
renovate Bot force-pushed the renovate/maintenance/legacy-runtime-e990eda-maintenance-npm-toolchain branch from 2578e47 to 9915ef9 Compare November 17, 2026 19:30
Copilot AI lite review requested due to automatic review settings November 17, 2026 19:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

仓库文档仍要求使用 npm 11.21.2,而 package.json 已更新为 npm 12.2.2,导致本地环境配置说明与当前 package-manager 合同不一致。

2 open issues

Review effort: Lite

@renovate
renovate Bot force-pushed the renovate/maintenance/legacy-runtime-e990eda-maintenance-npm-toolchain branch from 9915ef9 to 7d0cb79 Compare November 18, 2026 16:59
Copilot AI lite review requested due to automatic review settings November 18, 2026 16:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

变更仅声明了 [email protected],却未同步更新 README.md 和 CONTRIBUTING.md,且 CI 仍直接执行未固定版本的 npm ci,导致文档与实际工具链不一致。

3 open issues

Review effort: Lite

Comment thread package.json Resolved
@renovate
renovate Bot force-pushed the renovate/maintenance/legacy-runtime-e990eda-maintenance-npm-toolchain branch from 7d0cb79 to 1e7483b Compare November 18, 2026 23:26
Copilot AI lite review requested due to automatic review settings November 19, 2026 16:13
@github-actions github-actions Bot added the auto/docs Documentation paths changed label Nov 19, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

CI 工作流在执行 npm ci 前未显式启用或安装 npm 12.2.3,而 packageManager 元数据不会替换 Node 自带的 npm,导致文档所述工具链版本无法得到保证。

3 open issues

Review effort: Lite

@axiomoth
axiomoth merged commit 1542e42 into maintenance/legacy-runtime-e990eda Nov 19, 2026
7 checks passed
@axiomoth
axiomoth deleted the renovate/maintenance/legacy-runtime-e990eda-maintenance-npm-toolchain branch November 19, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto/docs Documentation paths changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants