更新日志
选择命令行版本:
See Details
目录
11.4.0(2025-05-15)
功能
¥Features
-
57aa89f
#8265 默认使用 run 并使用 run-script 作为别名 (#8265) (@owlstronaut)¥
57aa89f
#8265 use run by default and run-script as the alias (#8265) (@owlstronaut) -
0d4c023
#8234 安装:将包信息添加到 JSON 输出 (#8234) (@wraithgar)¥
0d4c023
#8234 install: add package info to json output (#8234) (@wraithgar)
错误修复
¥Bug Fixes
-
8794fd9
#8297 powershell:支持使用 Invoke-Expression 的管道输入 (#8297) (@alexsch01)¥
8794fd9
#8297 powershell: support pipeline input with Invoke-Expression (#8297) (@alexsch01) -
b5173d1
#8293 文档:更正了 github_path (#8293) (@xaos7991)¥
b5173d1
#8293 docs: corrected github_path (#8293) (@xaos7991) -
2210d7a
#8278 powershell:使用 Invoke-Expression 传递参数 (#8278) (@alexsch01)¥
2210d7a
#8278 powershell: use Invoke-Expression to pass args (#8278) (@alexsch01) -
8669d09
#8228 添加 otplease 用于启用、禁用和访问 (#8228) (@reggi, @wraithgar)¥
8669d09
#8228 add otplease for enable-2fa, disable-2fa, access (#8228) (@reggi, @wraithgar) -
78b5a6f
#8269 正确处理前缀为 cwd 的情 况 (#8269) (@owlstronaut, @ficocelliguy)¥
78b5a6f
#8269 correctly handle scenario where prefix is the cwd (#8269) (@owlstronaut, @ficocelliguy) -
fdc3413
#8221 执行:无法执行以 Shell 关键字命名的二进制文件 (#8221) (@13sfaith)¥
fdc3413
#8221 exec: Fails to Execute Binaries Named After Shell Keywords (#8221) (@13sfaith) -
4b08e2e
#8245 文档:准备本地包链接的脚本运行 (@milaninfy)¥
4b08e2e
#8245 docs: prepare script runs for local package links (@milaninfy) -
1622ac4
#8241 处理包中缺少的time
以防止npm view
崩溃 (@owlstronaut)¥
1622ac4
#8241 handle missingtime
in packument to prevent crash onnpm view
(@owlstronaut) -
db8f5da
#8110 已过时:在长输出中添加依赖位置 (#8110) (@milaninfy, @wraithgar)¥
db8f5da
#8110 outdated: add dependent location in long output (#8110) (@milaninfy, @wraithgar)
文档
¥Documentation
-
d2498df
#8295 将CHANGELOG
从永不忽略列表中移除 (#8295) (@mrazauskas)¥
d2498df
#8295 RemoveCHANGELOG
from never-ignored list (#8295) (@mrazauskas) -
4d5c3c1
#8283 修复 package-json.md 中的overrides
示例 (#8283) (@glasser)¥
4d5c3c1
#8283 fixoverrides
example in package-json.md (#8283) (@glasser) -
96cc4f9
#8226 格式发布为代码以高亮 (@LiangYingC)¥
96cc4f9
#8226 format publish as code to highlight it (@LiangYingC) -
4990ea0
#8226 澄清 npm login 和 adduser 命令中旧版 token 的创建方式 (@LiangYingC)¥
4990ea0
#8226 clarify legacy token creation in npm login and adduser commands (@LiangYingC)
依赖
¥Dependencies
杂务
¥Chores
-
7eca19c
#8215 更新用于更新 Node PR 的工作流权限 (@owlstronaut)¥
7eca19c
#8215 update workflow permissions for updating Node PR (@owlstronaut) -
工作区:
@npmcli/arborist@9.1.0
¥workspace:
@npmcli/arborist@9.1.0
-
工作区:
@npmcli/config@10.3.0
¥workspace:
@npmcli/config@10.3.0
-
工作区:
libnpmaccess@10.0.1
¥workspace:
libnpmaccess@10.0.1
-
工作区:
libnpmdiff@8.0.3
¥workspace:
libnpmdiff@8.0.3
-
工作区:
libnpmexec@10.1.2
¥workspace:
libnpmexec@10.1.2
-
工作区:
libnpmfund@7.0.3
¥workspace:
libnpmfund@7.0.3
-
工作区:
libnpmpack@9.0.3
¥workspace:
libnpmpack@9.0.3
-
工作区:
libnpmteam@8.0.1
¥workspace:
libnpmteam@8.0.1
-
工作区:
libnpmversion@8.0.1
¥workspace:
libnpmversion@8.0.1
11.3.0(2025-04-08)
功能
¥Features
错误修复
¥Bug Fixes
-
2f5392a
#8135 使npm run
自动补齐功能与工作区兼容 (#8135) (@terrainvidia)¥
2f5392a
#8135 makenpm run
autocomplete work with workspaces (#8135) (@terrainvidia)
文档
¥Documentation
-
26b6454
修复了本地路径注释中的语法问题 (@cgay)¥
26b6454
fix grammer in local path note (@cgay) -
1c0e83d
#7886 修复 package-json.md 中的拼写错误(#7886) (@stoneLeaf)¥
1c0e83d
#7886 fix typo in package-json.md (#7886) (@stoneLeaf) -
14efa57
#8178 修复overrides
解释器中的示例包名称 (#8178) (@G-Rath)¥
14efa57
#8178 fix example package name inoverrides
explainer (#8178) (@G-Rath) -
4183cba
#8162 日志记录:在日志级别详细信息中将 proceeding 替换为 prior (#8162) (@tyleralbee)¥
4183cba
#8162 logging: replace proceeding with preceding in loglevels details (#8162) (@tyleralbee)
依赖
¥Dependencies
杂务
¥Chores
-
3fbed84
#8207 安装 rimraf 作为冒烟测试的开发依赖 (@owlstronaut)¥
3fbed84
#8207 install rimraf as a devdependency for smoke tests (@owlstronaut) -
26803bc
#8147 发布集成节点 23 yml (#8147) (@reggi)¥
26803bc
#8147 release integration node 23 yml (#8147) (@reggi) -
工作区:
@npmcli/arborist@9.0.2
¥workspace:
@npmcli/arborist@9.0.2
-
工作区:
@npmcli/config@10.2.0
¥workspace:
@npmcli/config@10.2.0
-
工作区:
libnpmdiff@8.0.2
¥workspace:
libnpmdiff@8.0.2
-
工作区:
libnpmexec@10.1.1
¥workspace:
libnpmexec@10.1.1
-
工作区:
libnpmfund@7.0.2
¥workspace:
libnpmfund@7.0.2
-
工作区:
libnpmpack@9.0.2
¥workspace:
libnpmpack@9.0.2
11.2.0(2025-03-05)
功能
¥Features
-
2a1e11f
#8071 将 nerfDart 列表移至 @npmcli/config (@wraithgar)¥
2a1e11f
#8071 move nerfDart list into @npmcli/config (@wraithgar)
错误修复
¥Bug Fixes
-
8461186
#8100 当 spec 为范围时,如果可能则更新 npx 缓存(@wraithgar)¥
8461186
#8100 update npx cache if possible when spec is a range (@wraithgar) -
e345cc5
#8050 不会建议在有效引擎范围之外进行 npm 更新 (#8050) (@milaninfy)¥
e345cc5
#8050 don't suggest npm update outside of valid engine range (#8050) (@milaninfy) -
811ca29
#8115 停止解决npm-package-arg@12.0.2
中已修复的错误 (@TrevorBurnham)¥
811ca29
#8115 stop working around bug fixed innpm-package-arg@12.0.2
(@TrevorBurnham) -
879303c
#8078 对无效的 publishConfig 发出警告 (#8078) (@wraithgar)¥
879303c
#8078 warn on invalid publishConfig (#8078) (@wraithgar) -
41417de
#8080 当 TUF 获取密钥失败时发出警告 (#8080) (@wraithgar)¥
41417de
#8080 warn when TUF fetching of keys fails (#8080) (@wraithgar) -
593c849
#8076 对无效的单连字符 cli 标志发出警告 (#8076) (@wraithgar)¥
593c849
#8076 warn on invalid single-hyphen cli flags (#8076) (@wraithgar)
依赖
¥Dependencies
杂务
¥Chores
-
cc72b89
#8143 修复冒烟测试,使其能够解释工作区内的新发布版本 (#8143) (@reggi)¥
cc72b89
#8143 fix smoke tests to account for new release versions within a workspace (#8143) (@reggi) -
ed85b01
#8071 测试配置警告/更改(@wraithgar)¥
ed85b01
#8071 tests for config warnings/changes (@wraithgar) -
工作区:
@npmcli/arborist@9.0.1
¥workspace:
@npmcli/arborist@9.0.1
-
工作区:
@npmcli/config@10.1.0
¥workspace:
@npmcli/config@10.1.0
-
工作区:
libnpmdiff@8.0.1
¥workspace:
libnpmdiff@8.0.1
-
工作区:
libnpmexec@10.1.0
¥workspace:
libnpmexec@10.1.0
-
工作区:
libnpmfund@7.0.1
¥workspace:
libnpmfund@7.0.1
-
工作区:
libnpmpack@9.0.1
¥workspace:
libnpmpack@9.0.1
11.1.0(2025-01-29)
功能
¥Features
-
7f6c997
#8009 添加 dry-run 功能以弃用/取消弃用命令 (@wraithgar)¥
7f6c997
#8009 add dry-run to deprecate/undeprecate commands (@wraithgar)
错误修复
¥Bug Fixes
-
31455b2
#8054 发布:尊重无 dist 标签和注册表版本检查 (#8054) (@reggi)¥
31455b2
#8054 publish: honor force for no dist tag and registry version check (#8054) (@reggi) -
8a911ff
#8038 发布:计算最高版本时忽略已弃用的版本 (@wraithgar)¥
8a911ff
#8038 publish: disregard deprecated versions when calculating highest version (@wraithgar) -
7f72944
#8038 发布:接受 publishConfig.tag 以覆盖最高语义版本号检查 (@wraithgar)¥
7f72944
#8038 publish: accept publishConfig.tag to override highes semver check (@wraithgar) -
ab9ddc0
#7992 sbom:删除重复的 sbom 依赖 (#7992) (@bdehamer)¥
ab9ddc0
#7992 sbom: deduplicate sbom dependencies (#7992) (@bdehamer) -
f7da341
#7980 搜索:正确显示多个搜索词 (#7980) (@wraithgar)¥
f7da341
#7980 search: properly display multiple search terms (#7980) (@wraithgar)
文档
¥Documentation
-
3644e79
#8055 更新 Node.js 版本的自述文件,移除标记 (#8055) (@wraithgar)¥
3644e79
#8055 update readme for Node.js versions, remove badges (#8055) (@wraithgar) -
f1af61f
#8041 修复 "package-json" 中的拼写错误 (#8041) (@maxkoryukov)¥
f1af61f
#8041 fix typos in "package-json" (#8041) (@maxkoryukov) -
e90c6fe
#8051 深度标志默认值 (#8051) (@milaninfy)¥
e90c6fe
#8051 depth flag default value (#8051) (@milaninfy) -
866b5ee
#8030 更安全的文档 URL、代码库和软件包 (#8030) (@reggi)¥
866b5ee
#8030 safer documentation urls, repos, packages (#8030) (@reggi)
依赖
¥Dependencies
杂务
¥Chores
-
61f00e3
#8069 将冒烟测试与发布试运行测试分离 (#8069) (@reggi)¥
61f00e3
#8069 splits out smoke-tests from publish-dryrun tests (#8069) (@reggi) -
6d0f46e
#8058 停止检查 git clean 中的发布冒烟 (#8058) (@reggi)¥
6d0f46e
#8058 stop publish smoke from check git clean (#8058) (@reggi) -
9281ebf
#8057 修复预发布版冒烟测试需要单独字符串参数的问题 (#8057) (@reggi)¥
9281ebf
#8057 fix smoke tests prerelease needs separate string args (#8057) (@reggi) -
859a71c
#8052 更新发布集成测试的节点版本 (#8052) (@wraithgar)¥
859a71c
#8052 update node versions for release integration tests (#8052) (@wraithgar) -
7e7961d
#8038 将 @npmcli/eslint-config 升级到 5.1.0 (@wraithgar)¥
7e7961d
#8038 bump @npmcli/eslint-config to 5.1.0 (@wraithgar) -
工作区:
@npmcli/config@10.0.1
¥workspace:
@npmcli/config@10.0.1
11.0.0(2024-12-16)
文档
¥Documentation
-
8a911da
#7963 ls:删除设计变更待处理部分注释 (#7963) (@milaninfy)¥
8a911da
#7963 ls: removed design change pending section note (#7963) (@milaninfy)
依赖
¥Dependencies
-
5319e48
#7973 删除 node_modules 中不必要的 sprintf-js 文件 (#7973)¥
5319e48
#7973 remove unnecessary sprintf-js files in node_modules (#7973)
杂务
¥Chores
-
687ab12
#7970 从 npm 11 和工作区中删除预发布模式 (#7970) (@wraithgar)¥
687ab12
#7970 remove pre-release mode from npm 11 and workspaces (#7970) (@wraithgar) -
工作区:
@npmcli/arborist@9.0.0
¥workspace:
@npmcli/arborist@9.0.0
-
工作区:
@npmcli/config@10.0.0
¥workspace:
@npmcli/config@10.0.0
-
工作区:
libnpmaccess@10.0.0
¥workspace:
libnpmaccess@10.0.0
-
工作区:
libnpmdiff@8.0.0
¥workspace:
libnpmdiff@8.0.0
-
工作区:
libnpmexec@10.0.0
¥workspace:
libnpmexec@10.0.0
-
工作区:
libnpmfund@7.0.0
¥workspace:
libnpmfund@7.0.0
-
工作区:
libnpmorg@8.0.0
¥workspace:
libnpmorg@8.0.0
-
工作区:
libnpmpack@9.0.0
¥workspace:
libnpmpack@9.0.0
-
工作区:
libnpmpublish@11.0.0
¥workspace:
libnpmpublish@11.0.0
-
工作区:
libnpmsearch@9.0.0
¥workspace:
libnpmsearch@9.0.0
-
工作区:
libnpmteam@8.0.0
¥workspace:
libnpmteam@8.0.0
-
工作区:
libnpmversion@8.0.0
¥workspace:
libnpmversion@8.0.0
11.0.0-pre.1(2024-12-06)
⚠️ BREAKING CHANGES
-
发布后,为了应用默认的 "latest" dist 标签,该命令现在会检索软件包的所有先前版本。这要求你尝试发布的版本高于注册表中最新的 semver 版本,不包括预发布标签。
¥Upon publishing, in order to apply a default "latest" dist tag, the command now retrieves all prior versions of the package. It will require that the version you're trying to publish is above the latest semver version in the registry, not including pre-release tags.
-
npm init
现在具有type
提示符,并对创建的软件包条目进行不同的排序。¥
npm init
now has atype
prompt, and sorts the entries the created packages differently -
bun.lockb
文件现在在打包过程中包含在严格忽略列表中¥
bun.lockb
files are now included in the strict ignore list during packing
功能
¥Features
-
f3ac7b7
#7939 当 latest > version 时,发布时没有隐式的 latest 标签 (#7939) (@reggi, @ljharb)¥
f3ac7b7
#7939 no implicit latest tag on publish when latest > version (#7939) (@reggi, @ljharb)
错误修复
¥Bug Fixes
-
e362c6d
#7944 前缀:从使用输出中删除重复的 -g (#7944) (@wraithgar)¥
e362c6d
#7944 prefix: remove duplicate -g from usage output (#7944) (@wraithgar)
文档
¥Documentation
-
2af31dd
#7947 将 certfile 更改为 cafile (#7947) (@wraithgar)¥
2af31dd
#7947 change certfile to cafile (#7947) (@wraithgar)
依赖
¥Dependencies
杂务
¥Chores
-
工作区:
@npmcli/arborist@9.0.0-pre.1
¥workspace:
@npmcli/arborist@9.0.0-pre.1
-
工作区:
@npmcli/config@10.0.0-pre.1
¥workspace:
@npmcli/config@10.0.0-pre.1
-
工作区:
libnpmdiff@8.0.0-pre.1
¥workspace:
libnpmdiff@8.0.0-pre.1
-
工作区:
libnpmexec@10.0.0-pre.1
¥workspace:
libnpmexec@10.0.0-pre.1
-
工作区:
libnpmfund@7.0.0-pre.1
¥workspace:
libnpmfund@7.0.0-pre.1
-
工作区:
libnpmorg@8.0.0-pre.1
¥workspace:
libnpmorg@8.0.0-pre.1
-
工作区:
libnpmpack@9.0.0-pre.1
¥workspace:
libnpmpack@9.0.0-pre.1
11.0.0-pre.0(2024-11-26)
⚠️ BREAKING CHANGES
-
发布预发布版本的软件包时,必须明确指定标签。
¥When publishing a package with a pre-release version, you must explicitly specify a tag.
-
--ignore-scripts
现在适用于所有生命周期脚本,包括prepare
¥
--ignore-scripts
now applies to all lifecycle scripts, includeprepare
-
如果批量咨询请求失败,npm 将不再回退到旧的审计端点。
¥npm will no longer fall back to the old audit endpoint if the bulk advisory request fails.
-
如果别名为 "npmg" 或 "npm-g" 等,npm 将不再切换到全局模式。
¥npm will no longer switch to global mode if aliased to "npmg" or "npm-g" etc.
-
npm hook
命令已被移除¥The
npm hook
command has been removed -
此软件包所做 的证明将不再在 npm 10.6.0 之前的版本中生效。
¥Attestations made by this package will no longer validate in npm versions prior to 10.6.0
-
npm 现在支持 Node
^20.17.0 || >=22.9.0
¥npm now supports node
^20.17.0 || >=22.9.0
-
@npmcli/docs now supports node
^20.17.0 || >=22.9.0
功能
¥Features
错误修复
¥Bug Fixes
-
16b7367
#7910 发布预发布版本需要显式标记 (#7910) (@reggi)¥
16b7367
#7910 publishing prerelease requires explicit tag (#7910) (@reggi) -
e19bff0
#7901 性能:如果存在编译缓存,则启用 (#7901) (@H4ad)¥
e19bff0
#7901 perf: enable compile cache if present (#7901) (@H4ad) -
080a0f2
#7911 删除旧的审计回退请求 (@wraithgar)¥
080a0f2
#7911 remove old audit fallback request (@wraithgar) -
780afc5
#7855 pkg:显示是否存在多个属性 (#7855) (@Sanderovich)¥
780afc5
#7855 pkg: display if any of multiple attributes exist (#7855) (@Sanderovich) -
ecd2d23
#7842 如果别名为 npmg,则不会进入全局模式 (#7842) (@wraithgar)¥
ecd2d23
#7842 don't go into global mode if aliased to npmg (#7842) (@wraithgar) -
7f541e8
#7815 使 pack 和 exec 与 git hash 引用兼容 (#7815) (@milaninfy)¥
7f541e8
#7815 make pack and exec work with git hash refs (#7815) (@milaninfy) -
3162620
#7831 将 Node 引擎范围设置为^20.17.0 || >=22.9.0
(@reggi)¥
3162620
#7831 sets node engine range to^20.17.0 || >=22.9.0
(@reggi) -
@npmcli/docs 的
4c8ba0a
#7831 将 Node 引擎范围设置为^20.17.0 || >=22.9.0
(@reggi)¥
4c8ba0a
#7831 for @npmcli/docs sets node engine range to^20.17.0 || >=22.9.0
(@reggi) -
70cd88d
#7808 视图:对 dist-tags 进行排序和截断 (#7808) (@wraithgar)¥
70cd88d
#7808 view: sort and truncate dist-tags (#7808) (@wraithgar) -
534ad77
#7795 删除未使用的参数 catch 语句 (#7795) (@btea)¥
534ad77
#7795 remove unused parameters catch statements (#7795) (@btea)
文档
¥Documentation
-
feb54f7
#7822 package.json:添加 libc 字段 (#7822) (@wraithgar)¥
feb54f7
#7822 package.json: add libc field (#7822) (@wraithgar)
依赖
¥Dependencies
杂务
¥Chores
-
2d530a5
#7941 测试:npm 预发布版本时需考虑 (#7941) (@wraithgar)¥
2d530a5
#7941 tests: account for when npm is a prerelease (#7941) (@wraithgar) -
475285b
#7920 清理依赖图仓库 (#7920) (@hashtagchris)¥
475285b
#7920 clean up dependency graph repos (#7920) (@hashtagchris) -
ec57f5f
#7911 修复循环工作区依赖的依赖脚本 (@wraithgar)¥
ec57f5f
#7911 fix dependencies script for circular workspace deps (@wraithgar) -
ccd8420
#7911 修复 CLI 测试以移除审计回退 (@wraithgar)¥
ccd8420
#7911 fix cli tests for audit fallback removal (@wraithgar) -
286739c
#7824 添加创建 DEPENDENCIES.json 文件的功能 (#7824) (@reggi)¥
286739c
#7824 add creation of a DEPENDENCIES.json file (#7824) (@reggi) -
95d009e
#7831 更新操作中的引擎^20.17.0 || >=22.9.0
(@reggi)¥
95d009e
#7831 update engine^20.17.0 || >=22.9.0
in actions (@reggi) -
5a74478
#7831 更新包模 板中的引擎^20.17.0 || >=22.9.0
(@reggi)¥
5a74478
#7831 update engines^20.17.0 || >=22.9.0
in package template (@reggi) -
工作区:
@npmcli/arborist@9.0.0-pre.0
¥workspace:
@npmcli/arborist@9.0.0-pre.0
-
工作区:
@npmcli/config@10.0.0-pre.0
¥workspace:
@npmcli/config@10.0.0-pre.0
-
工作区:
libnpmaccess@10.0.0-pre.0
¥workspace:
libnpmaccess@10.0.0-pre.0
-
工作区:
libnpmdiff@8.0.0-pre.0
¥workspace:
libnpmdiff@8.0.0-pre.0
-
工作区:
libnpmexec@10.0.0-pre.0
¥workspace:
libnpmexec@10.0.0-pre.0
-
工作区:
libnpmfund@7.0.0-pre.0
¥workspace:
libnpmfund@7.0.0-pre.0
-
工作区:
libnpmorg@8.0.0-pre.0
¥workspace:
libnpmorg@8.0.0-pre.0
-
工作区:
libnpmpack@9.0.0-pre.0
¥workspace:
libnpmpack@9.0.0-pre.0
-
工作区:
libnpmpublish@11.0.0-pre.0
¥workspace:
libnpmpublish@11.0.0-pre.0
-
工作区:
libnpmsearch@9.0.0-pre.0
¥workspace:
libnpmsearch@9.0.0-pre.0
-
工作区:
libnpmteam@8.0.0-pre.0
¥workspace:
libnpmteam@8.0.0-pre.0
-
工作区:
libnpmversion@8.0.0-pre.0
¥workspace:
libnpmversion@8.0.0-pre.0