选择命令行版本:
🌐 Dependencies
080e201 #7930 hosted-git-info@6.1.3 (#7930)401bb86 #7928 tar@6.2.1cfb3b77 #7928 cross-spawn@7.0.66a5f8a8 #7928 debug@4.3.772df313 #7928 hosted-git-info@6.1.2🌐 Bug Fixes
88ea8c7 #7010 为搜索过滤流设置 objectMode (@lukekarrys)8d9d735 #7010 取消发布:冒泡显示解析本地 package.json 时的所有错误 (#7049) (@wraithgar)e0e75e5 #7010 取消发布 bug 修复 (#7039) (@wraithgar)4d59ce1 #7047 反转 SPDX SBOM 依赖的方向 (#7047) (@bdehamer, @antonbauhofer)878f22b #7008 正确捕获缺失的 URL 打开器错误 (@wraithgar)91a8eca #7008 在交互式提示中正确捕获缺失的 URL 打开器错误 (@wraithgar)🌐 Dependencies
1968e0e #7010 spdx-license-ids@3.0.17d130576 #7010 spdx-exceptions@2.5.000f28b8 #7010 signal-exit@4.1.057096c3 #7010 postcss-selector-parser@6.0.153ce677e #7010 minipass-fetch@3.0.489757ed #7010 is-core-module@2.13.1bc1e841 #7010 socks@2.8.101f4049 #7010 ignore-walk@6.0.415f8982 #7010 function-bind@1.1.288ff949 #7010 cmd-shim@6.0.23e298f6 #7010 bin-links@4.0.335a6286 #7010 are-we-there-yet@4.0.2aeb28c4 #7010 agentkeepalive@4.5.0edc7e23 #7010 @npmcli/query@3.1.000a3a08 #7010 tar@6.2.07f424c3 #7010 ssri@10.0.579b8538 #7010 semver@7.6.0b5faf10 #7010 npm-install-checks@6.3.02c62266 #7010 node-gyp@9.4.1cc0516b #7010 minipass@7.0.4651d362 #7010 json-parse-even-better-errors@3.0.14b239c6 #7010 glob@10.3.102f65b46 #7010 fs-minipass@3.0.36c73ddf #7010 diff@5.2.073ee6cc #7010 ci-info@4.0.064715a4 #7010 cacache@17.1.4@npmcli/arborist@6.5.1@npmcli/config@6.4.1libnpmaccess@7.0.3libnpmdiff@5.0.21libnpmexec@6.0.5libnpmfund@4.2.2libnpmhook@9.0.4libnpmorg@5.0.5libnpmpack@5.0.21libnpmpublish@7.5.2libnpmsearch@6.0.3libnpmteam@5.0.4libnpmversion@4.0.3🌐 Chores
77fa150 #7252 发布:不要在 CLI 发布提交中排除 docs 目录 (#7162) (@lukekarrys)1d4c464 #7252 @npmcli/template-oss@4.21.3 (@lukekarrys)6780643 #7010 开发依赖更新 (@wraithgar)ce701e9 #7048 修复不同 Node 版本之间 zlib 的测试差异 (#7048) (@wraithgar)🌐 Bug Fixes
4c9a5e1 #6993 在工作区中查找执行命令 (#6993) (@wraithgar)bb6f496 #6992 在 SBOM 生成中正确处理对象许可证 (#6992) (@bdehamer, @jamietanna)10db3ca #6990 pkg:在工作区模式下正确输出 (#6990) (@wraithgar)🌐 Documentation
🌐 Dependencies
libnpmpublish@7.5.1🌐 Bug Fixes
0dba79a #6942 重新添加 bin/node-gyp-bin/node-gyp 文件 (@lukekarrys)c93edb5 #6932 添加回 bin/node-gyp-bin/node-gyp 文件 (@lukekarrys)🌐 Documentation
🌐 Features
ecda95a #6841 添加 npm sbom 命令 (#6841) (@bdehamer)fdb8a86 #6794 为 npm 查询添加仅 package-lock 模式 (@wraithgar)16c04b1 #6877 为 npm audit 添加无 package-lock 模式 (@wraithgar)66ef765 #6776 添加 --cpu 和 --os 选项以覆盖特定平台的安装 (#6776) (@yukukotani)🌐 Bug Fixes
c9406f7 #6791 弃用:忽略隐式工作区模式 (#6758) (#6791) (@wraithgar)0b1d7c3 #6779 允许搜索没有描述的包 (#6779) (@wraithgar, @lukekarrys)🌐 Documentation
🌐 Dependencies
588a245 #6756 npm-pick-manifest@8.0.2a76b1df #6877 sigstore@1.9.095b5ab0 #6877 npm-install-checks@6.2.0@npmcli/arborist@6.5.0@npmcli/config@6.4.0libnpmdiff@5.0.20libnpmexec@6.0.4libnpmfund@4.2.1libnpmpack@5.0.20🌐 Bug Fixes
38351c9 #6651 在发布时对自动更正的 package.json 条目发出警告 (@wraithgar)02c7ddb #6642 更清晰的 npx 'canceled' 错误 (#6642) (@rahulio96, @AaronHamilton965)🌐 Documentation
🌐 Dependencies
a0763d3 #6651 @npmcli/package-json@4.0.124f5a8b #6653 supports-color@9.4.0f45498b #6653 chalk@5.3.044d60eb #6653 minimatch@9.0.3fc9a843 #6653 bin-links@3.0.2daad9ad #6653 semver@7.5.4c1ffd6a #6653 将 @npmcli/fs、@npmcli/promise-spawn 移入依赖libnpmexec@6.0.3🌐 Features
🌐 Dependencies
b252164 #6626 @npmcli/package-json@4.0.09238682 #6623 sigstore@1.7.0 (#6623)@npmcli/arborist@6.3.0libnpmdiff@5.0.19libnpmexec@6.0.2libnpmfund@4.0.19libnpmpack@5.0.19libnpmpublish@7.5.0🌐 Bug Fixes
939a188 #6574 在 npm 引擎检查中忽略节点预发布版本 (#6574) (@wraithgar)d980405 #6556 更好的颜色支持检测 (#6556) (@lukekarrys)40d7e09 #6555 删除不必要的 package.json 值 (#6555) (@lukekarrys)3a7378d #6554 清理垃圾箱内容 (@lukekarrys)e722439 #6497 将所有定义移到 @npmcli/config 包中 (@lukekarrys)🌐 Documentation
405ffbf #6557 删除关于 files 属性的多余声明 (#6557) (@DaviDevMod)cd1e6aa #6551 为 npm install 添加标志 package-lock-only (#6551) (@m4rch3n1ng)🌐 Dependencies
aebc523 #6585 safe-buffer@5.2.1 string_decoder@1.3.0 (#6585)bb6054b #6573 tuf-js@1.1.7aee4a30 #6573 strip-ansi@7.1.06105dbc #6573 path-scurry@1.9.222d44e8 #6573 read-package-json@6.0.4fdd02fd #6573 jackspeak@2.2.17797075 #6573 is-core-module@2.12.1f9780cc #6573 sigstore@1.6.072d6a79 #6573 semver@7.5.298f1f5f #6573 nopt@7.2.08710ff8 #6573 pacote@15.2.00cb539d #6573 node-gyp@9.4.039ad586 #6573 ini@4.1.15e0070c #6573 glob@10.2.7 minimatch@9.0.126cf235 #6573 cacache@17.1.3@npmcli/arborist@6.2.10@npmcli/config@6.2.1libnpmdiff@5.0.18libnpmexec@6.0.1libnpmfund@4.0.18libnpmpack@5.0.18libnpmpublish@7.4.0🌐 Dependencies
🌐 Features
a63a6d8 #6490 为 libnpmpublish 添加 provenanceFile 选项 (@bdehamer)2a8f4f2 #6490 添加新的独占配置项 publish-file (@wraithgar)361e194 #6483 为 npm install 实现标志 --prefer-dedupe (#6483) (@m4rch3n1ng)🌐 Bug Fixes
38eb39b #6514 从搜索结果中去除 ANSI 字符 (#6514) (@wraithgar)4b5ccfc #6477 将 usage 和 completion 设置为静态函数 (#6477) (@lukekarrys)4f39e8c #6479 重构引擎验证以检查语法 (#6479) (@lukekarrys)f3cfe12 #6482 移除未使用的库/npm 残留物 (#6482) (@lukekarrys)87de0c7 #6472 将 explore 命令移动到 @npmcli/package-json(@wraithgar)636e29e #6472 尽可能迁移到 @npmcli/package-json (@wraithgar)37cc797 #6418 通过 TUF 检索注册表键 (#6418) (@bdehamer)🌐 Documentation
83cd5bd #6480 添加卸载的全局选项 (#6480) (@m4rch3n1ng)0400ce3 #6481 为 npm set、npm get 添加命令行参数 (#6481) (@m4rch3n1ng)c3638ce #6468 移除 npm ci 的 package-lock 选项 (#6468) (@m4rch3n1ng)🌐 Dependencies
060d587 chalk@5.2.0, npm-audit-report@5.0.0fc52ca8 #6472 移除 read-package-json-fast3238aa7 #6472 移除 read-package-json@npmcli/config@6.2.0libnpmexec@6.0.0libnpmpublish@7.3.0🌐 Bug Fixes
9202c7d #6464 npm 缓存完成 (#6464) (@m4rch3n1ng)6ce99a8 #6461 Node v20 的退出代码 (#6461) (@MichaelBitard)23c865f #6434 弃用 ci-name 配置 (#6434) (@wraithgar)🌐 Documentation
🌐 Dependencies
afc38a5 #6458 cacache@17.1.2afb936c #6458 tuf-js@1.1.6f6a0884 #6458 readable-stream@4.4.0858f0ca #6458 postcss-selector-parser@6.0.1353ecb84 #6458 path-scurry@1.9.1d93f70c #6458 signal-exit@4.0.219214b5 #6458 @npmcli/package-json@3.1.0f53e6ff #6458 sigstore@1.5.294d6ee7 #6458 glob@10.2.4902cb80 #6458 semver@7.5.135e2e9a #6458 @npmcli/run-script@6.0.2@npmcli/config@6.1.7libnpmpublish@7.2.0🌐 Dependencies
70e65b1 #6423 tuf-js@1.1.5 (#6423)72291f7 #6416 read-package-json@6.0.3e498f82 #6416 minimatch@9.0.013aa7b7 #6416 minipass@5.0.0f2a5678 #6416 tar@6.1.1469d4dd2 #6416 npm 更新abdca39 #6416 sigstore@1.4.016f68fb #6416 glob@10.2.267fcfb1 #6416 ignore-walk@6.0.3bfa2ff3 #6416 make-fetch-happen@11.1.1877591a #6416 npm-registry-fetch@14.0.57630517 #6416 pacote@15.1.3c2d6e0a #6416 write-file-atomic@5.0.1acdf97e #6416 which@3.0.100c541a #6416 ssri@10.0.41b95e73 #6416 read-package-json@6.0.26927fd3 #6416 fs-minipass@3.0.23eec56e #6416 cacache@17.1.07a2ce3f #6416 @npmcli/run-script@6.0.13881770 #6416 @npmcli/map-workspaces@3.0.4@npmcli/arborist@6.2.9libnpmdiff@5.0.17libnpmexec@5.0.17libnpmfund@4.0.17libnpmorg@5.0.4libnpmpack@5.0.17libnpmpublish@7.1.4🌐 Bug Fixes
33dc428 [#6374] 处理不带规范的 npx package-name (@wraithgar)82879f6 #6225 延迟加载 arborist 和 pacote (#6225) (@wraithgar)f4e73ab #6322 从 CI 中移除不兼容的参数 (#6322) (@wraithgar)c7fe1c7 #6328 将原始数据保存到文件,而不是解析后的数据 (@wraithgar)🌐 Documentation
31214a6 #6381 更新发布时 --provenance 标志的描述 (#6381) (@feelepxyz)997bcdf #6329 修复 Windows 上的 npm 缓存文件夹位置 (#6329) (@charlie-wong)🌐 Dependencies
fae5e00 #6372 sigstore@1.3.0 (#6372)3fa9542 #6363 semver@7.5.0e49844e #6363 minipass-fetch@3.0.2357cc29 #6363 walk-up-path@3.0.12c80b1e #6363 ini@4.1.05933841 #6363 minipass@4.2.8b39d54e #6363 minimatch@7.4.6201aa5a #6363 ssri@10.0.3acb9120 #6363 read@2.1.02472205 #6363 npm-registry-fetch@14.0.42780714 #6363 npm-install-checks@6.1.1b5af015 #6363 make-fetch-happen@11.1.014c498d #6363 @npmcli/metavuln-calculator@5.0.1@npmcli/arborist@6.2.8@npmcli/config@6.1.6libnpmdiff@5.0.16libnpmexec@5.0.16libnpmfund@4.0.16libnpmpack@5.0.16🌐 Documentation
54795a3 #6312 从版本管理器搜索中过滤存档 (#6312) (@ljharb)530c285 #6306 删除对 npm-packlist 的引用 (#6306) (@staff0rd)🌐 Dependencies
85935ac #6325 ssri@10.0.2 (#6325)f1388b4 #6317 npm 更新7dd0129 #6317 glob@9.3.2deca335 #6317 promise-call-limit@1.0.2@npmcli/arborist@6.2.7libnpmdiff@5.0.15libnpmexec@5.0.15libnpmfund@4.0.15libnpmpack@5.0.15🌐 Bug Fixes
829503b #6304 不要将日志消息拆成多行 (@wraithgar)1435fcf #6304 减少加载 ./lib/npm.js 的工作量 (@wraithgar)09b58e4 #6284 让所有颜色输出使用 chalk 的 npm 实例 (#6284) (@lukekarrys)e252532 #6283 减少查找命令的工作 (#6283) (@wraithgar)6a4bcba #6275 清理人员整理 (@wraithgar)8a96b65 #6275 忽略 ts 和 map 文件 (@wraithgar)94d2b39 #6271 当 logs_max=0 时不要记录关于日志清理的警告 (#6271) (@jmealo)2def359 #6277 更新了 ebadplatform 消息,使其基于错误生成 (#6277) (@nlf)🌐 Documentation
1e2eb81 #6311 用 GitHub 搜索替换版本管理器列表 (#6311) (@wraithgar)9d2be4e #6289 移除 npm bin 链接 (#6289) (@KevinRouchut)🌐 Dependencies
e652dbd #6308 minimatch@7.4.3 (#6308)01986d1 #6307 sigstore@1.2.0 (#6307)ea12627 #6275 minimatch@7.4.2ec3e020 #6275 glob@9.3.1952fbed #6275 read-package-json@6.0.1dd43d30 #6275 parse-conflict-json@3.0.1d5ce7ca #6275 npm-install-checks@6.1.0704cd1e #6275 nopt@7.1.0a6da22a #6275 ignore-walk@6.0.255955fd #6275 cacache@17.0.5839b670 #6275 @npmcli/map-workspaces@3.0.39a7b8e8 #6275 @npmcli/git@4.0.457c0a55 #6275 npm 更新74c80f5 #6275 minipass@4.2.5b174c90 #6275 graceful-fs@4.2.11@npmcli/arborist@6.2.6@npmcli/config@6.1.5libnpmdiff@5.0.14libnpmexec@5.0.14libnpmfund@4.0.14libnpmpack@5.0.14libnpmpublish@7.1.3🌐 Bug Fixes
🌐 Dependencies
🌐 Bug Fixes
🌐 Dependencies
cb45b21 #6231 npm 更新1f60a7e #6231 minipass@4.2.4@npmcli/arborist@6.2.5libnpmdiff@5.0.13libnpmexec@5.0.13libnpmfund@4.0.13libnpmpack@5.0.13libnpmpublish@7.1.1🌐 Features
🌐 Bug Fixes
c4c8754 审计:在完成时添加签名 (@wraithgar)fc46489 访问:仅在完成后 (@wraithgar)b43961a 命令列表:仅将别名映射到真实命令 (@wraithgar)🌐 Documentation
🌐 Dependencies
71ae406 #6218 @npmcli/installed-package-contents@2.0.2@npmcli/arborist@6.2.4libnpmdiff@5.0.12libnpmexec@5.0.12libnpmfund@4.0.12libnpmpack@5.0.12🌐 Documentation
🌐 Dependencies
7ba3e17 #6189 npm 更新f7a5200 pacote@15.1.1@npmcli/arborist@6.2.3libnpmdiff@5.0.11libnpmexec@5.0.11libnpmfund@4.0.11libnpmpack@5.0.11🌐 Features
🌐 Bug Fixes
🌐 Dependencies
fad0473 minipass@4.0.3678c6bf minimatch@6.2.09b4b366 ci-info@3.8.0d20ee2a pacote@15.1.0libnpmpublish@7.1.0libnpmteam@5.0.3🌐 Bug Fixes
🌐 Documentation
🌐 Dependencies
cb6713d #6143 重建 package-lock (#6143)8200f4f #6133 ignore-walk@6.0.1d43f881 map-workspaces@3.0.299457f1 minimatch@6.1.6f4c8c62 init-package-json@5.0.03c6615f npm-user-validate@2.0.010445ca 移除 mkdirpab82492 node-gyp@9.3.174c5cbb minipass@4.0.21138038 make-fetch-happen@11.0.3c1ccfa1 glob@8.1.03dc17ce fs-minipass@3.0.15c84a99 ci-info@3.7.1fc5332f read@2.0.0@npmcli/arborist@6.2.2@npmcli/config@6.1.3libnpmdiff@5.0.10libnpmexec@5.0.10libnpmfund@4.0.10libnpmhook@9.0.3libnpmorg@5.0.3libnpmpack@5.0.10libnpmpublish@7.0.8🌐 Bug Fixes
🌐 Dependencies
721fe3f #6118 read-package-json-fast@3.0.26e4a649 pacote@15.0.81820afe cacache@17.0.424b2ec4 @npmcli/promise-spawn@6.0.24b8046e @npmcli/name-from-folder@2.0.01d4be7a @npmcli/map-workspaces@3.0.1a39556f @npmcli/template-oss@4.11.364b06ed #6115 http-cache-semantics@4.1.1@npmcli/arborist@6.2.1@npmcli/config@6.1.2libnpmaccess@7.0.2libnpmdiff@5.0.9libnpmexec@5.0.9libnpmfund@4.0.9libnpmhook@9.0.2libnpmorg@5.0.2libnpmpack@5.0.9libnpmpublish@7.0.7libnpmsearch@6.0.2libnpmteam@5.0.2libnpmversion@4.0.2🌐 Features
🌐 Dependencies
@npmcli/arborist@6.2.0libnpmdiff@5.0.8libnpmexec@5.0.8libnpmfund@4.0.8libnpmpack@5.0.8🌐 Bug Fixes
8be672b #6050 不要尝试弃用不存在的版本 (#6050) (@wraithgar)1c3612c #6054 在 CI 命令中使用递归 rm (#6054) (@jamesshaw1987, @burkel24)🌐 Features
🌐 Bug Fixes
cf175fb #6044 如果配置了 OTP,则将默认认证类型设置为传统 (#6044) (@wraithgar)2383deb #6037 清理来自 arborist、owner 和 ping 命令的 URL (#6037) (@lukekarrys)69f5ff8 查看:将命令转换为使用输出而不是控制台 (@lukekarrys)dc52222 初始化:用 / 分隔符写入 package.json 工作区路径 (@lukekarrys)31af1aa 重构 help 以使用 @npmcli/promise-spawn (@lukekarrys)669ef94 基金:正确解析并使用 which 配置 (@lukekarrys)72e6d6f 为文档页面生成工作区支持 (@lukekarrys)450e50f 在命令类中评估配置 (@lukekarrys)28ec922 #5946 用 fs.rm 替换 rimraf (@lukekarrys)🌐 Documentation
f0038e5 #6048 npm init 的简介中缺少反引号 (#5837) (#6048) (@Peallyz)ca8ff00 #6045 更新过时的文件路径到 definitions.js (@ericmutta)fe9debd #6038 修复 definitions.js 中的拼写错误 (#6038) (@lukekarrys, @ericmutta)fa27aca #6018 修复 removal.md 中的拼写错误 (@ericmutta)82f69d9 #6026 修复 registry.md 中的拼写错误 (@ericmutta)🌐 Dependencies
ec09474 #5945 minipass-fetch@3.0.1@npmcli/arborist@6.1.6@npmcli/config@6.1.1libnpmdiff@5.0.7libnpmexec@5.0.7libnpmfund@4.0.7libnpmpack@5.0.7🌐 Features
🌐 Bug Fixes
🌐 Dependencies
2f2b146 #5936 npm-packlist@7.0.4 (#5936)372d158 #5935 minimatch@5.1.1 (#5935)0e6c28b #5934 ci-info@3.7.0 (#5934)0a3fe00 #5933 minipass@4.0.06b77340 tar@6.1.13cf0a174 ssri@10.0.13da9a1a pacote@15.0.7fee9b66 npm-registry-fetch@14.0.3e940917 cacache@17.0.3875bd56 npm-package-arg@10.1.0280b7a4 #5927 npm-packlist@7.0.3@npmcli/arborist@6.1.5libnpmaccess@7.0.1libnpmdiff@5.0.6libnpmexec@5.0.6libnpmfund@4.0.6libnpmhook@9.0.1libnpmorg@5.0.1libnpmpack@5.0.6libnpmpublish@7.0.6libnpmsearch@6.0.1libnpmteam@5.0.1🌐 Bug Fixes
ffbdea2 #5894 作用域包上的 npm 打包文件名 (#5894) (@HenryNguyen5)c26d708 #5884 在 get-identity 验证用户名 (#5884) (@sosoba, @nlf)🌐 Documentation
ea948dc #5881 更新 npm exec 的描述 (#5881) (@styfle, @wraithgar)40f2c21 #5865 ci-信息网址 (#5865) (@wraithgar)681a45b #5875 为目录工作区运行命令 (#5875) (@1aron)681a45b #5875 添加工作区目录示例 (#5875) (@1aron)🌐 Dependencies
@npmcli/arborist@6.1.4libnpmdiff@5.0.5libnpmexec@5.0.5libnpmfund@4.0.5libnpmpack@5.0.5libnpmpublish@7.0.5🌐 Bug Fixes
🌐 Dependencies
a351685 #5858 从 @npmcli/ci-detect 移动到 ci-info (#5858)@npmcli/arborist@6.1.3libnpmdiff@5.0.4libnpmexec@5.0.4libnpmfund@4.0.4libnpmpack@5.0.4libnpmpublish@7.0.4🌐 Documentation
🌐 Dependencies
335c7e4 #5813 cacache@17.0.2878ddfb @npmcli/fs@3.1.0@npmcli/arborist@6.1.2libnpmdiff@5.0.3libnpmexec@5.0.3libnpmfund@4.0.3libnpmpack@5.0.3libnpmpublish@7.0.3🌐 Features
706b3d3 [#5779] 在项目外安装时(如 --global)设置 --no-audit (@fritzy)🌐 Bug Fixes
1f5382d #5789 不要为任何 spawn/run-script 调用设置 stdioString (@lukekarrys)8fd614a 使用 promiseSpawn.open 替代 opener (@nlf)41843ad 默认使用记事本 (notepad.exe) 的绝对路径,文档正确 (@nlf)0c5834e #5758 使用 hosted-git-info 解析注册表 URL (#5758) (@lukekarrys)🌐 Documentation
🌐 Dependencies
b89c19e #5795 cli-table3@0.6.36b6dfca fastest-levenshtein@1.0.169972ed1 @npmcli/ci-detect@3.0.1024e612 abbrev@2.0.066f9bcd nopt@7.0.05730d17 tar@6.1.122fef570 node-gyp@9.3.0abfb28b @npmcli/run-script@6.0.0205e2fd pacote@15.0.6ac25863 删除开幕,@npmcli/promise-spawn@6.0.1、@npmcli/run-script@5.1.1、@npmcli/git@4.0.3、pacote@15.0.5、which@3.0.0@npmcli/arborist@6.1.1@npmcli/config@6.1.0libnpmdiff@5.0.2libnpmexec@5.0.2libnpmfund@4.0.2libnpmpack@5.0.2libnpmpublish@7.0.2libnpmversion@4.0.1🌐 Documentation
🌐 Dependencies
de6618e #5757 @npmcli/promise-spawn@5.0.0 (#5757)5625274 #5755 hosted-git-info@6.1.0 (#5755)32bdd68 #5754 npm-packlist@7.0.2 (#5754)@npmcli/arborist@6.1.0libnpmdiff@5.0.1libnpmexec@5.0.1libnpmfund@4.0.1libnpmpack@5.0.1libnpmpublish@7.0.1🌐 Features
🌐 Dependencies
@npmcli/arborist@6.0.0libnpmaccess@7.0.0libnpmdiff@5.0.0libnpmexec@5.0.0libnpmfund@4.0.0libnpmhook@9.0.0libnpmorg@5.0.0libnpmpack@5.0.0libnpmpublish@7.0.0libnpmsearch@6.0.0libnpmteam@5.0.0libnpmversion@4.0.0🌐 ⚠️ BREAKING CHANGES
npm 现在会在标准输出上输出一些 JSON 错误。之前 npm 会将所有 JSON 格式的错误输出到标准错误,这使得解析变得困难,因为标准错误流通常已经有日志记录在其中。将来,npm 会区分错误和崩溃。诸如 E404 和 ERESOLVE 的错误将被处理,并会继续在标准输出上输出。在崩溃的情况下,npm 会照常记录错误,但不会尝试以 JSON 显示,即使在 --json 模式下也是如此。将一个用例从错误类别移动到崩溃类别不会被视为破坏性更改。更多信息请参见 npm/rfcs#482。npm config set 将不再接受已弃用或无效的配置选项。timing 和 loglevel 的更改
timing 已被移除为 --loglevel 的值--timing 会显示时间信息,不受 --loglevel 的影响,但在 --silent 的情况下除外--install-strategy 代替
🌐 Features
d3543e9 在标准输出上以 JSON 格式输出错误 (#5716) (@lukekarrys)be642c6 拒绝设置已弃用/无效的配置 (#5719) (@wraithgar)332914b 为 --timing 和 --loglevel 分开配置 (@lukekarrys)f653785 弃用了 key、cert 配置选项,并更新了注册表范围的认证文档 (@fritzy)de2d33f 添加 --install-strategy=hoisted|nested|shallow,弃用 --global-style、--legacy-bundling (#5709) (@fritzy)58065bc #5704 不要更改文件所有权 (@nlf)475e9b6 #5703 不要更改文件所有权 (@nlf)🌐 Bug Fixes
6ffa5b7 npm hook ls 重复钩子名称前缀 (#5295) (@gennadiygashev)1afe5ba 解释新的 npm-package-arg 行为 (@wraithgar)353b5bb #5710 移除 chownr 和 mkdirp-infer-owner (@nlf)🌐 Documentation
9e74d3e 更新了 README 中支持的引擎 (#5725) (@lukekarrys)🌐 Dependencies
88137a3 npmlog@7.0.12008ea6 npm-package-arg@10.0.0, pacote@15.0.2aa01072 #5707 更新以下依赖@npmcli/arborist@6.0.0-pre.5libnpmaccess@7.0.0-pre.2libnpmdiff@5.0.0-pre.3libnpmexec@5.0.0-pre.5libnpmfund@4.0.0-pre.5libnpmhook@9.0.0-pre.1libnpmorg@5.0.0-pre.1libnpmpack@5.0.0-pre.4libnpmpublish@7.0.0-pre.4libnpmsearch@6.0.0-pre.1libnpmteam@5.0.0-pre.1libnpmversion@4.0.0-pre.1🌐 ⚠️ BREAKING CHANGES
node-version 和 npm-version 配置已被移除。HEAD 作为默认引用,而不是 master🌐 Features
a09e19d #5696 引入了 npm config fix 命令 (@nlf)d2963c6 在 CLI 中显式验证配置 (@nlf)a5fec08 重写文档生成 (@lukekarrys)🌐 Bug Fixes
🌐 Documentation
🌐 Dependencies
cee3fd9 @npmcli/config@5.0.02a740b1 #5692 hosted-git-info@6.0.0libnpmpack@5.0.0-pre.3libnpmpublish@7.0.0-pre.3🌐 Features
🌐 Bug Fixes
e4e8ae2 libnpmpack: 遵循前台脚本 (@winterqt)npm link 应该覆盖 --install-links (#5633) (@fritzy)02fcbb6 #5634 确保 Arborist 构造函数在 pacote 中到处传递 (#5634) (@nlf)🌐 Documentation
f37caad #5606 准确描述了安装链接对相对路径的影响 (#5606) (@lukekarrys)97c32ed #5637 移除指向缓存命令的链接 (#5637) (@wraithgar)130bc9f #5626 移除循环引用 (#5626) (@giovanniPepi)🌐 Dependencies
5344d2c #5644 pacote@14.0.06a43b31 @npmcli/metavuln-calculator@4.0.0501f8ca #5640 semver@7.3.8 (#5640)8b072dc #5639 @npmcli/ci-detect@3.0.0 (#5639)1ebbb44 #5638 npm-profile@7.0.0 (#5638)@npmcli/arborist@6.0.0-pre.4libnpmdiff@5.0.0-pre.2libnpmexec@5.0.0-pre.4libnpmfund@4.0.0-pre.4libnpmpack@5.0.0-pre.2libnpmpublish@7.0.0-pre.2🌐 ⚠️ BREAKING CHANGES
npm pack 现在在应用忽略规则时遵循严格的操作顺序。如果 package.json 中存在 files 数组,则将忽略来自根目录的 .gitignore 和 .npmignore 文件中的规则。--timing 文件更改:
--timing 标志运行时,npm 现在会将时间数据写入文件,同时记录调试日志数据,遵循 logs-dir 选项,并在必要时回退到 <CACHE>/_logs/ 目录,而不是直接写入缓存目录。<ID>-timing.json 文件,其中 <ID> 部分与调试日志相同。metadata、timers、和 unfinishedTimers,而不是所有内容都作为顶层键。🌐 Features
3ae796d 实现新的 npm-packlist 行为 (@lukekarrys)e64d69a #5581 将 eresolve 错误文件写入日志目录 (@lukekarrys)[3445da0](https://github.com/npm/cli/commit/3445da0138f9eed9d73d2b3f5f451fcc1fa2e3fe) 时间现在会与调试日志文件一起记录 (@lukekarrys)🌐 Documentation
🌐 Dependencies
bc21552 #5603 npm-package-arg@9.1.2@npmcli/arborist@6.0.0-pre.3libnpmdiff@5.0.0-pre.1libnpmexec@5.0.0-pre.3libnpmfund@4.0.0-pre.3libnpmpack@5.0.0-pre.1libnpmpublish@7.0.0-pre.1🌐 ⚠️ BREAKING CHANGES
auth-type 配置值现在是 weblogin、adduser 和 auth-type 的更改
auth-type 配置,除了 web 和 legacy。login 和 adduser 现在是独立的命令,用于向注册表发送不同的数据。auth-type 配置值 web 和 legacy 仅尝试各自的方法,npm 不再尝试所有方法,而是等待看看哪个不会出错。🌐 Features
66ed584 #5551 默认认证类型为 web (#5551) (@wraithgar)6ee5b32 查询:在结果中显示 queryContext (@nlf)314311c #5550 分开登录/添加用户,移除认证类型 (#5550) (@wraithgar)🌐 Bug Fixes
🌐 Documentation
2d756cb #5527 添加使用 npm view 查询对象的指令 (#5527) (@moonith)8743366 #5519 在“tag”配置链接中添加哈希 (#5519) (@mrienstra, @lukekarrys)5645c51 #5521 链接提到配置参数 (#5521) (@mrienstra)19762b4 #5529 修改有关垃圾桶的误导性文档 (@Hafizur046)19762b4 #5529 修改关于 package.json:bin 的误导性文档 (#5529) (@Hafizur046)8402fd8 #5547 在文档中添加 :outdated 伪选择器 (@nlf)🌐 Dependencies
d030f10 @npmcli/query@2.0.0@npmcli/arborist@6.0.0-pre.2libnpmexec@5.0.0-pre.2libnpmfund@4.0.0-pre.2🌐 ⚠️ BREAKING CHANGES
npm access 子命令🌐 Features
🌐 Bug Fixes
c3d7549 添加标签以发布日志消息 (@wraithgar)🌐 Documentation
fd0eebe 更新注册表文档标题 (@hughlilly)🌐 Dependencies
@npmcli/arborist@6.0.0-pre.1libnpmaccess@7.0.0-pre.1libnpmexec@5.0.0-pre.1libnpmfund@4.0.0-pre.1🌐 ⚠ BREAKING CHANGES
^14.17.0 || ^16.13.0 || >=18.0.0npm birthday 命令npm set-scriptinstall-links 的默认值更改为 truenpm bin 命令npm 现在与以下 Node 版本的 semver 范围兼容:^14.17.0 || ^16.13.0 || >=18.0.0🌐 Features
e95017a #5485 feat(工作区): 更新 package.json 中支持的 Node 引擎 (@lukekarrys)49bbb2f #5455 功能:移除 npm birthday (@wraithgar)926f0ad #5456 功能:移除 npm set-script (@wraithgar)2a8c2fc #5458 功能:默认将 install-links 设置为 true (@wraithgar)2e92800 #5459 功能:移除 npm bin (@wraithgar)457d388 #5475 功能:更新 package.json 中支持的 Node 引擎 (@wraithgar)🌐 Bug Fixes
🌐 Documentation
🌐 Dependencies