选择命令行版本:

See Details目录

9.9.4(2024-11-21)

依赖

¥Dependencies

9.9.3(2024-02-26)

错误修复

¥Bug Fixes

  • 88ea8c7 #7010 设置搜索过滤流的 objectMode (@lukekarrys)

    ¥88ea8c7 #7010 set objectMode for search filter stream (@lukekarrys)

  • 8d9d735 #7010 取消发布:将所有解析本地 package.json 的错误冒泡 (#7049) (@wraithgar)

    ¥8d9d735 #7010 unpublish: bubble up all errors parsing local package.json (#7049) (@wraithgar)

  • e0e75e5 #7010 取消发布 bug 修复 (#7039) (@wraithgar)

    ¥e0e75e5 #7010 unpublish bugfixes (#7039) (@wraithgar)

  • 4d59ce1 #7047 SPDX SBOM 依赖的反向 (#7047) (@bdehamer, @antonbauhofer)

    ¥4d59ce1 #7047 reverse direction of SPDX SBOM dep rels (#7047) (@bdehamer, @antonbauhofer)

  • 878f22b #7008 正确捕获缺失的 url 打开器错误 (@wraithgar)

    ¥878f22b #7008 properly catch missing url opener error (@wraithgar)

  • 91a8eca #7008 正确在交互式提示中捕获缺少 URL 打开器的错误 (@wraithgar)

    ¥91a8eca #7008 properly catch missing url opener error on interactive prompt (@wraithgar)

依赖

¥Dependencies

杂务

¥Chores

  • 77fa150 #7252 发布:不要从 CLI 发布提交中排除 docs 目录 (#7162) (@lukekarrys)

    ¥77fa150 #7252 release: do not exclude docs directory from CLI release commits (#7162) (@lukekarrys)

  • 1d4c464 #7252 @npmcli/template-oss@4.21.3 (@lukekarrys)

  • 6780643 #7010 开发依赖更新 (@wraithgar)

    ¥6780643 #7010 dev dependency updates (@wraithgar)

  • ce701e9 #7048 修复 Node 版本间 zlib 差异测试 (#7048) (@wraithgar)

    ¥ce701e9 #7048 fix tests for zlib differences between node versions (#7048) (@wraithgar)

9.9.2(2023-11-14)

错误修复

¥Bug Fixes

  • 4c9a5e1 #6993 在工作区中查找 exec 命令 (#6993) (@wraithgar)

    ¥4c9a5e1 #6993 look in workspace for exec commands (#6993) (@wraithgar)

  • bb6f496 #6992 在 SBOM 生成中正确处理对象许可证 (#6992) (@bdehamer, @jamietanna)

    ¥bb6f496 #6992 correctly handle object licenses in SBOM generation (#6992) (@bdehamer, @jamietanna)

  • 10db3ca #6990 pkg:在工作区模式下正确输出 (#6990) (@wraithgar)

    ¥10db3ca #6990 pkg: properly output in workspace mode (#6990) (@wraithgar)

文档

¥Documentation

依赖

¥Dependencies

9.9.1(2023-10-30)

错误修复

¥Bug Fixes

  • 0dba79a #6942 添加回 bin/node-gyp-bin/node-gyp 文件 (@lukekarrys)

    ¥0dba79a #6942 add back bin/node-gyp-bin/node-gyp files (@lukekarrys)

  • c93edb5 #6932 重新添加 bin/node-gyp-bin/node-gyp 文件 (@lukekarrys)

    ¥c93edb5 #6932 add back bin/node-gyp-bin/node-gyp files (@lukekarrys)

文档

¥Documentation

  • e6cce28 #6925 使用 markdown 链接而不是 html (@lukekarrys)

    ¥e6cce28 #6925 use markdown links instead of html (@lukekarrys)

9.9.0(2023-10-06)

功能

¥Features

  • ecda95a #6841 添加 npm sbom 命令 (#6841) (@bdehamer)

    ¥ecda95a #6841 add npm sbom command (#6841) (@bdehamer)

  • fdb8a86 #6794 为 npm query 添加 package-lock-only 模式(@wraithgar)

    ¥fdb8a86 #6794 add package-lock-only mode to npm query (@wraithgar)

  • 16c04b1 #6877 为 npm audit 添加 no-package-lock 模式 (@wraithgar)

    ¥16c04b1 #6877 add no-package-lock mode to npm audit (@wraithgar)

  • 66ef765 #6776 添加 --cpu--os 选项以覆盖特定于平台的安装 (#6776) (@yukukotani)

    ¥66ef765 #6776 Add --cpu and --os option to override platform specific install (#6776) (@yukukotani)

错误修复

¥Bug Fixes

  • c9406f7 #6791 弃用:忽略隐式工作区模式 (#6758) (#6791) (@wraithgar)

    ¥c9406f7 #6791 deprecate: ignore implicit workspace mode (#6758) (#6791) (@wraithgar)

  • 0b1d7c3 #6779 允许搜索没有描述的包 (#6779) (@wraithgar, @lukekarrys)

    ¥0b1d7c3 #6779 allow searching packages with no description (#6779) (@wraithgar, @lukekarrys)

文档

¥Documentation

依赖

¥Dependencies

9.8.1(2023-07-18)

错误修复

¥Bug Fixes

  • 38351c9 #6651 在发布过程中对自动更正的 package.json 条目发出警告 (@wraithgar)

    ¥38351c9 #6651 warn on autocorrected package.json entries during publish (@wraithgar)

  • 02c7ddb #6642 更清晰 npx 'canceled' 错误 (#6642) (@rahulio96, @AaronHamilton965)

    ¥02c7ddb #6642 much clearer npx 'canceled' error (#6642) (@rahulio96, @AaronHamilton965)

文档

¥Documentation

  • 36bf5fe #6643 在 CONTRIBUTING.md 中添加了本地使用 npm/npx 的步骤 (#6643) (@AaronHamilton965, @rahulio96)

    ¥36bf5fe #6643 Added steps for using npm/npx locally to CONTRIBUTING.md (#6643) (@AaronHamilton965, @rahulio96)

依赖

¥Dependencies

9.8.0(2023-07-05)

功能

¥Features

依赖

¥Dependencies

9.7.2(2023-06-21)

错误修复

¥Bug Fixes

  • 939a188 #6574 忽略 npm 引擎检查中的 Node 预发布版本 (#6574) (@wraithgar)

    ¥939a188 #6574 ignore node prereleases in npm engines check (#6574) (@wraithgar)

  • d980405 #6556 更好的颜色支持检测 (#6556) (@lukekarrys)

    ¥d980405 #6556 better color support detection (#6556) (@lukekarrys)

  • 40d7e09 #6555 删除不必要的 package.json 值 (#6555) (@lukekarrys)

    ¥40d7e09 #6555 remove unnecessary package.json values (#6555) (@lukekarrys)

  • 3a7378d #6554 清理 bin 内容 (@lukekarrys)

    ¥3a7378d #6554 cleanup bin contents (@lukekarrys)

  • e722439 #6497 将所有定义移至 @npmcli/config 包 (@lukekarrys)

    ¥e722439 #6497 move all definitions to @npmcli/config package (@lukekarrys)

文档

¥Documentation

  • 405ffbf #6557 删除关于 files 属性的多余语句 (#6557) (@DaviDevMod)

    ¥405ffbf #6557 remove redundant statement about files attribute (#6557) (@DaviDevMod)

  • cd1e6aa #6551npm install 添加 package-lock-only 标志 (#6551) (@m4rch3n1ng)

    ¥cd1e6aa #6551 add flag package-lock-only for npm install (#6551) (@m4rch3n1ng)

依赖

¥Dependencies

9.7.1(2023-06-06)

依赖

¥Dependencies

  • 7467ff6 #6518 @npmcli/package-json@3.1.1, @npmcli/git@4.1.0

9.7.0(2023-05-31)

功能

¥Features

  • a63a6d8 #6490 为 libnpmpublish 添加 provenanceFile 选项 (@bdehamer)

    ¥a63a6d8 #6490 add provenanceFile option for libnpmpublish (@bdehamer)

  • 2a8f4f2 #6490 添加新的专属配置项 publish-file (@wraithgar)

    ¥2a8f4f2 #6490 add new exclusive config item publish-file (@wraithgar)

  • 361e194 #6483npm install 实现 --prefer-dedupe 选项 (#6483) (@m4rch3n1ng)

    ¥361e194 #6483 implement flag --prefer-dedupe for npm install (#6483) (@m4rch3n1ng)

错误修复

¥Bug Fixes

  • 38eb39b #6514 从搜索结果中去除 ANSI 字符 (#6514) (@wraithgar)

    ¥38eb39b #6514 strip ansi characters from search results (#6514) (@wraithgar)

  • 4b5ccfc #6477 make usage 和 complete 静态函数 (#6477) (@lukekarrys)

    ¥4b5ccfc #6477 make usage and completion static functions (#6477) (@lukekarrys)

  • 4f39e8c #6479 重构引擎验证以使用 lint 语法 (#6479) (@lukekarrys)

    ¥4f39e8c #6479 refactor engines validation to lint syntax (#6479) (@lukekarrys)

  • f3cfe12 #6482 删除未使用的 lib/npm 依赖 (#6482) (@lukekarrys)

    ¥f3cfe12 #6482 remove unused lib/npm relics (#6482) (@lukekarrys)

  • 87de0c7 #6472 将 explore 命令移至 @npmcli/package-json (@wraithgar)

    ¥87de0c7 #6472 move explore command to @npmcli/package-json (@wraithgar)

  • 636e29e #6472 尽可能移至 @npmcli/package-json (@wraithgar)

    ¥636e29e #6472 move to @npmcli/package-json where possible (@wraithgar)

  • 37cc797 #6418 通过 TUF 检索注册表项 (#6418) (@bdehamer)

    ¥37cc797 #6418 retrieve registry keys via TUF (#6418) (@bdehamer)

文档

¥Documentation

  • 83cd5bd #6480 添加全局卸载选项 (#6480) (@m4rch3n1ng)

    ¥83cd5bd #6480 add global option for uninstall (#6480) (@m4rch3n1ng)

  • 0400ce3 #6481npm setnpm get 添加命令行参数 (#6481) (@m4rch3n1ng)

    ¥0400ce3 #6481 add cli params to npm set, npm get (#6481) (@m4rch3n1ng)

  • c3638ce #6468 删除 npm cipackage-lock 选项 (#6468) (@m4rch3n1ng)

    ¥c3638ce #6468 remove package-lock option for npm ci (#6468) (@m4rch3n1ng)

依赖

¥Dependencies

9.6.7(2023-05-17)

错误修复

¥Bug Fixes

  • 9202c7d #6464 npm 缓存补全 (#6464) (@m4rch3n1ng)

    ¥9202c7d #6464 npm cache completion (#6464) (@m4rch3n1ng)

  • 6ce99a8 #6461 Node v20 中的退出代码 (#6461) (@MichaelBitard)

    ¥6ce99a8 #6461 exit codes in node v20 (#6461) (@MichaelBitard)

  • 23c865f #6434 弃用 ci-name 配置 (#6434) (@wraithgar)

    ¥23c865f #6434 deprecate ci-name config (#6434) (@wraithgar)

文档

¥Documentation

依赖

¥Dependencies

9.6.6(2023-05-03)

依赖

¥Dependencies

9.6.5(2023-04-19)

错误修复

¥Bug Fixes

  • 33dc428 #6374 说明 npx 包名没有规范 (@wraithgar)

    ¥33dc428 #6374 account for npx package-name with no spec (@wraithgar)

  • 82879f6 #6225 arborist 和 pacote 的延迟加载 (#6225) (@wraithgar)

    ¥82879f6 #6225 lazy loading of arborist and pacote (#6225) (@wraithgar)

  • f4e73ab #6322 从 ci 中删除不兼容的参数 (#6322) (@wraithgar)

    ¥f4e73ab #6322 remove incompatible params from ci (#6322) (@wraithgar)

  • c7fe1c7 #6328 将原始数据保存到文件,而不是解析后的数据 (@wraithgar)

    ¥c7fe1c7 #6328 save raw data to file, not parsed data (@wraithgar)

文档

¥Documentation

  • 31214a6 #6381 更新 publish --provenance 标志的描述 (#6381) (@feelepxyz)

    ¥31214a6 #6381 Update description for publish --provenance flag (#6381) (@feelepxyz)

  • 997bcdf #6329 修复 Windows 版 npm 缓存文件夹位置 (#6329) (@charlie-wong)

    ¥997bcdf #6329 fix npm cache folder location for windows (#6329) (@charlie-wong)

依赖

¥Dependencies

9.6.4(2023-04-05)

文档

¥Documentation

  • 54795a3 #6312 过滤存档,使其不被版本管理器搜索到 (#6312) (@ljharb)

    ¥54795a3 #6312 filter archives out of version manager search (#6312) (@ljharb)

  • 530c285 #6306 删除对 npm-packlist 的引用 (#6306) (@staff0rd)

    ¥530c285 #6306 remove reference to npm-packlist (#6306) (@staff0rd)

依赖

¥Dependencies

9.6.3(2023-03-30)

错误修复

¥Bug Fixes

  • 829503b #6304 不拆分日志消息行 (@wraithgar)

    ¥829503b #6304 don't break up log message across lines (@wraithgar)

  • 1435fcf #6304 减少加载 ./lib/npm.js 的工作量 (@wraithgar)

    ¥1435fcf #6304 do less work loading ./lib/npm.js (@wraithgar)

  • 09b58e4 #6284 使所有颜色输出都使用 npm 的 chalk 实例 (#6284) (@lukekarrys)

    ¥09b58e4 #6284 make all color output use an npm instance of chalk (#6284) (@lukekarrys)

  • e252532 #6283 减少查找命令的工作量 (#6283) (@wraithgar)

    ¥e252532 #6283 do less work looking up commands (#6283) (@wraithgar)

  • 6a4bcba #6275 清理 man 排序 (@wraithgar)

    ¥6a4bcba #6275 clean up man sorting (@wraithgar)

  • 8a96b65 #6275 忽略 ts 和 map 文件 (@wraithgar)

    ¥8a96b65 #6275 ignore ts and map files (@wraithgar)

  • 94d2b39 #6271 不记录有关日志的警告当 logs_max=0 时清理 (#6271) (@jmealo)

    ¥94d2b39 #6271 Do not log warnings about log cleanup when logs_max=0 (#6271) (@jmealo)

  • 2def359 #6277 更新了 ebadplatform 消息,使其根据错误生成 (#6277) (@nlf)

    ¥2def359 #6277 updated ebadplatform messaging to be generated based on the error (#6277) (@nlf)

文档

¥Documentation

  • 1e2eb81 #6311 将版本管理器列表替换为 GitHub 搜索 (#6311) (@wraithgar)

    ¥1e2eb81 #6311 replace version manager list with a github search (#6311) (@wraithgar)

  • 9d2be4e #6289 删除 npm bin 链接 (#6289) (@KevinRouchut)

    ¥9d2be4e #6289 remove npm bin link (#6289) (@KevinRouchut)

依赖

¥Dependencies

9.6.2(2023-03-14)

错误修复

¥Bug Fixes

  • 4622b42 #6247 添加 provenance 发布通知 (#6247) (@bdehamer)

    ¥4622b42 #6247 add provenance publish notice (#6247) (@bdehamer)

依赖

¥Dependencies

9.6.1(2023-03-08)

错误修复

¥Bug Fixes

  • e455e3f #6211 发送授权/撤销请求的选项 (#6211) (@DavidTanner)

    ¥e455e3f #6211 send options with grant/revoke requests (#6211) (@DavidTanner)

  • e4de224 #6220 清理审核错误中的 uri (#6220) (@wraithgar)

    ¥e4de224 #6220 clean uri from audit error (#6220) (@wraithgar)

依赖

¥Dependencies

9.6.0(2023-03-02)

功能

¥Features

  • 84fbaf2 #6216 添加初步 fish shell 补全 (@wraithgar)

    ¥84fbaf2 #6216 add preliminary fish shell completion (@wraithgar)

错误修复

¥Bug Fixes

  • c4c8754 审计:为完成添加签名 (@wraithgar)

    ¥c4c8754 audit: add signatures to completion (@wraithgar)

  • fc46489 访问:仅完成一次 (@wraithgar)

    ¥fc46489 access: only complete once (@wraithgar)

  • b43961a 命令列表:仅为实际命令添加别名 (@wraithgar)

    ¥b43961a cmd-list: alias only to real commands (@wraithgar)

文档

¥Documentation

  • 2695e1f #6187 npm v9 创建 package-lock.json v3 (#6187) (@tuukka)

    ¥2695e1f #6187 npm v9 creates package-lock.json v3 (#6187) (@tuukka)

依赖

¥Dependencies

9.5.1(2023-02-22)

文档

¥Documentation

依赖

¥Dependencies

9.5.0(2023-02-14)

功能

¥Features

  • 79bfd03 #6153 审计签名验证证明 (@feelepxyz)

    ¥79bfd03 #6153 audit signatures verifies attestations (@feelepxyz)

  • 5fc6473 添加来源证明 (@bdehamer)

    ¥5fc6473 add provenance attestation (@bdehamer)

错误修复

¥Bug Fixes

  • 53f75a4 #6158 优雅地从 auth-type=web 回退 (#6158) (@MylesBorins)

    ¥53f75a4 #6158 gracefully fallback from auth-type=web (#6158) (@MylesBorins)

  • ed59aae #6162 重构审计命令中的错误报告 (@bdehamer)

    ¥ed59aae #6162 refactor error reporting in audit command (@bdehamer)

依赖

¥Dependencies

9.4.2(2023-02-07)

错误修复

¥Bug Fixes

  • d02da52 #6142install-links 的默认值恢复为 false (#6142) (@nlf)

    ¥d02da52 #6142 revert install-links default back to false (#6142) (@nlf)

文档

¥Documentation

  • 6ea2cd7 #6134 更新 OTP 引用以确保其准确性 (#6134) (@MylesBorins)

    ¥6ea2cd7 #6134 update references to OTP to be accurate (#6134) (@MylesBorins)

依赖

¥Dependencies

9.4.1(2023-02-01)

错误修复

¥Bug Fixes

  • 1525a5e #6082 使用范围注册表取消发布 (@wraithgar)

    ¥1525a5e #6082 unpublish with scoped registry (@wraithgar)

依赖

¥Dependencies

9.4.0(2023-01-25)

功能

¥Features

  • 8d6d851 #6078 添加 --install-strategy=linked (#6078) (@fritzy)

    ¥8d6d851 #6078 added --install-strategy=linked (#6078) (@fritzy)

依赖

¥Dependencies

9.3.1(2023-01-13)

错误修复

¥Bug Fixes

  • 8be672b #6050 不会尝试弃用不存在的版本 (#6050) (@wraithgar)

    ¥8be672b #6050 don't try to deprecate nonexistant versions (#6050) (@wraithgar)

  • 1c3612c #6054 在 ci 命令中使用递归 rm (#6054) (@jamesshaw1987, @burkel24)

    ¥1c3612c #6054 use recursive rm in ci command (#6054) (@jamesshaw1987, @burkel24)

9.3.0(2023-01-12)

功能

¥Features

  • 753b98e #5261 无根工作区初始化提供建议 (@fritzy)

    ¥753b98e #5261 rootless workspace init provides suggestion (@fritzy)

错误修复

¥Bug Fixes

  • cf175fb 如果配置了 OTP,#6044 默认身份验证类型将改为旧版 (#6044) (@wraithgar)

    ¥cf175fb #6044 default auth-type to legacy if otp is configured (#6044) (@wraithgar)

  • 2383deb #6037 清理 arborist、owner 和 ping 命令中的 url (#6037) (@lukekarrys)

    ¥2383deb #6037 clean urls from arborist, owner, and ping commands (#6037) (@lukekarrys)

  • 69f5ff8 视图:将命令转换为使用输出而不是控制台 (@lukekarrys)

    ¥69f5ff8 view: convert command to use output instead of console (@lukekarrys)

  • dc52222 初始化:使用 / 分隔符编写 package.json 工作区路径 (@lukekarrys)

    ¥dc52222 init: write package.json workspaces paths with / separators (@lukekarrys)

  • 31af1aa 重构 help 以使用 @npmcli/promise-spawn (@lukekarrys)

    ¥31af1aa refactor help to use @npmcli/promise-spawn (@lukekarrys)

  • 669ef94 资金:正确解析和使用 which 配置 (@lukekarrys)

    ¥669ef94 fund: correctly parse and use which config (@lukekarrys)

  • 72e6d6f 为文档页面生成工作区支持 (@lukekarrys)

    ¥72e6d6f generate workspace support for docs pages (@lukekarrys)

  • 450e50f 在命令类中评估配置 (@lukekarrys)

    ¥450e50f evaluate configs in command class (@lukekarrys)

  • 28ec922 #5946 将 rimraf 替换为 fs.rm (@lukekarrys)

    ¥28ec922 #5946 replace rimraf with fs.rm (@lukekarrys)

文档

¥Documentation

  • f0038e5 #6048 npm init 概要中缺少反引号 (#5837) (#6048) (@Peallyz)

    ¥f0038e5 #6048 missing backtick in synopsis of npm init (#5837) (#6048) (@Peallyz)

  • ca8ff00 #6045 更新 Definitions.js 中的过时文件路径 (@ericmutta)

    ¥ca8ff00 #6045 update outdated file path to definitions.js (@ericmutta)

  • fe9debd #6038 修复 definition.js 中的拼写错误 (#6038) (@lukekarrys, @ericmutta)

    ¥fe9debd #6038 fix typos in definitions.js (#6038) (@lukekarrys, @ericmutta)

  • fa27aca #6018 修复 removed.md 中的拼写错误 (@ericmutta)

    ¥fa27aca #6018 fix typo in removal.md (@ericmutta)

  • 82f69d9 #6026 修复 registry.md 中的拼写错误 (@ericmutta)

    ¥82f69d9 #6026 fix typo in registry.md (@ericmutta)

依赖

¥Dependencies

9.2.0(2022-12-07)

功能

¥Features

  • cf57ffa #5888 离散 npm doctor 命令 (#5888) (@wraithgar)

    ¥cf57ffa #5888 discrete npm doctor commands (#5888) (@wraithgar)

错误修复

¥Bug Fixes

  • dfd5d46 #5932 忽略隐式工作区以进行补全 (#5932) (@wraithgar)

    ¥dfd5d46 #5932 ignore implicit workspaces for completion (#5932) (@wraithgar)

依赖

¥Dependencies

9.1.3(2022-11-30)

错误修复

¥Bug Fixes

  • ffbdea2 #5894 范围包上的 npm pack 文件名 (#5894) (@HenryNguyen5)

    ¥ffbdea2 #5894 npm pack filename on scoped packages (#5894) (@HenryNguyen5)

  • c26d708 #5884 在 get-identity 时验证用户名 (#5884) (@sosoba, @nlf)

    ¥c26d708 #5884 validate username at get-identity (#5884) (@sosoba, @nlf)

文档

¥Documentation

  • ea948dc #5881 更新 npm exec 描述 (#5881) (@styfle, @wraithgar)

    ¥ea948dc #5881 update description of npm exec (#5881) (@styfle, @wraithgar)

  • 40f2c21 #5865 ci-info url (#5865) (@wraithgar)

  • 681a45b #5875 为目录工作区运行命令(#5875) (@1aron)

    ¥681a45b #5875 run the comand for directory workspaces (#5875) (@1aron)

  • 681a45b #5875 添加工作区目录示例 (#5875) (@1aron)

    ¥681a45b #5875 add workspace directory example (#5875) (@1aron)

依赖

¥Dependencies

9.1.2(2022-11-16)

错误修复

¥Bug Fixes

  • d9654cf #5861 删除不需要的 package.json 条目 (#5861) (@wraithgar)

    ¥d9654cf #5861 remove unwanted package.json entries (#5861) (@wraithgar)

依赖

¥Dependencies

9.1.1(2022-11-09)

文档

¥Documentation

  • 1bff064 #5819 配置:文档 npm config fix (#5819) (@wraithgar)

    ¥1bff064 #5819 config: document npm config fix (#5819) (@wraithgar)

依赖

¥Dependencies

9.1.0(2022-11-02)

功能

¥Features

  • 706b3d3 #5779 在项目外部安装时设置 --no-audit(类似 --global) (@fritzy)

    ¥706b3d3 #5779 set --no-audit when installing outside of a project (like --global) (@fritzy)

错误修复

¥Bug Fixes

  • 1f5382d #5789 不会为任何 spawn/run-script 调用设置 stdioString (@lukekarrys)

    ¥1f5382d #5789 don't set stdioString for any spawn/run-script calls (@lukekarrys)

  • 8fd614a 使用 promiseSpawn.open 而不是 opener (@nlf)

    ¥8fd614a use promiseSpawn.open instead of opener (@nlf)

  • 41843ad 默认使用 notepad.exe 的绝对路径,更正文档 (@nlf)

    ¥41843ad use an absolute path to notepad.exe by default, correct docs (@nlf)

  • 0c5834e #5758 使用 hosting-git-info 解析注册表 URL (#5758) (@lukekarrys)

    ¥0c5834e #5758 use hosted-git-info to parse registry urls (#5758) (@lukekarrys)

文档

¥Documentation

依赖

¥Dependencies

9.0.1(2022-10-26)

文档

¥Documentation

依赖

¥Dependencies

9.0.0(2022-10-19)

功能

¥Features

  • e3b004c #5727 将 cli 和所有工作区移出预发布模式(@lukekarrys)

    ¥e3b004c #5727 move cli and all workspaces out of prerelease mode (@lukekarrys)

依赖

¥Dependencies

9.0.0-pre.6(2022-10-19)

⚠️ BREAKING CHANGES

  • npm 现在会在标准输出上输出一些 json 错误。之前,npm 会将所有 JSON 格式的错误输出到 stderr,由于 stderr 流通常已写入日志,因此解析起来很困难。未来,npm 将区分错误和崩溃。诸如 E404ERESOLVE 之类的错误将被处理并继续输出到标准输出 (stdout)。如果发生崩溃,npm 将照常记录错误,但不会尝试将其显示为 JSON,即使在 --json 模式下也是如此。将问题从错误类别移至崩溃类别不会被视为重大变更。更多信息请参阅 npm/rfcs#482。

    ¥npm now outputs some json errors on stdout. Previously npm would output all json formatted errors on stderr, making it difficult to parse as the stderr stream usually has logs already written to it. In the future, npm will differentiate between errors and crashes. Errors, such as E404 and ERESOLVE, will be handled and will continue to be output on stdout. In the case of a crash, npm will log the error as usual but will not attempt to display it as json, even in --json mode. Moving a case from the category of an error to a crash will not be considered a breaking change. For more information see npm/rfcs#482.

  • npm config set 将不再接受已弃用或无效的配置选项。

    ¥npm config set will no longer accept deprecated or invalid config options.

  • timingloglevel 变更

    ¥timing and loglevel changes

    • timing 已从 --loglevel 的值中移除

      ¥timing has been removed as a value for --loglevel

    • --timing 将显示时间信息,无论 --loglevel 如何,除非 --silent

      ¥--timing will show timing information regardless of --loglevel, except when --silent

  • 弃用布尔安装标志,改为使用 --install-strategy

    ¥deprecate boolean install flags in favor of --install-strategy

    • 弃用 --global-style,--global 现在设置为 --install-strategy=shallow

      ¥deprecate --global-style, --global now sets --install-strategy=shallow

    • 弃用 --legacy-bundling,现在设置为 --install-strategy=nested

      ¥deprecate --legacy-bundling, now sets --install-strategy=nested

  • npm 将不再尝试修改其创建的文件的所有权。

    ¥npm will no longer attempt to modify ownership of files it creates

  • 此软件包不再尝试自动更改文件所有权

    ¥this package no longer attempts to change file ownership automatically

  • 此软件包不再尝试自动更改文件所有权

    ¥this package no longer attempts to change file ownership automatically

功能

¥Features

  • d3543e9 在 stdout 上输出 json 格式的错误 (#5716) (@lukekarrys)

    ¥d3543e9 output json formatted errors on stdout (#5716) (@lukekarrys)

  • be642c6 拒绝设置已弃用/无效的配置 (#5719) (@wraithgar)

    ¥be642c6 refuse to set deprecated/invalid config (#5719) (@wraithgar)

  • 332914b--timing--loglevel 设置单独的配置 (@lukekarrys)

    ¥332914b separate configs for --timing and --loglevel (@lukekarrys)

  • f653785 弃用了 keycert 的配置选项,并更新了注册表范围的身份验证文档 (@fritzy)

    ¥f653785 deprecated key, cert config options and updated registry scoped auth docs (@fritzy)

  • de2d33f 添加 --install-strategy=hoisted|nested|shallow,弃用 --global-style,--legacy-bundling (#5709) (@fritzy)

    ¥de2d33f add --install-strategy=hoisted|nested|shallow, deprecate --global-style, --legacy-bundling (#5709) (@fritzy)

  • 58065bc #5704 不改变文件所有权 (@nlf)

    ¥58065bc #5704 do not alter file ownership (@nlf)

  • 475e9b6 #5703 不改变文件所有权 (@nlf)

    ¥475e9b6 #5703 do not alter file ownership (@nlf)

错误修复

¥Bug Fixes

  • 6ffa5b7 npm hook ls 重复钩子名称前缀 (#5295) (@gennadiygashev)

    ¥6ffa5b7 npm hook ls duplicates hook name prefixes (#5295) (@gennadiygashev)

  • 1afe5ba 账户用于新的 npm-package-arg 行为 (@wraithgar)

    ¥1afe5ba account for new npm-package-arg behavior (@wraithgar)

  • 353b5bb #5710 删除 chownr 和 mkdirp-infer-owner (@nlf)

    ¥353b5bb #5710 remove chownr and mkdirp-infer-owner (@nlf)

文档

¥Documentation

  • 9e74d3e 更新自述文件中支持的引擎 (#5725) (@lukekarrys)

    ¥9e74d3e update supported engines in readme (#5725) (@lukekarrys)

依赖

¥Dependencies

9.0.0-pre.5(2022-10-13)

⚠️ BREAKING CHANGES

  • 配置文件中存在未限定于特定仓库的身份验证相关设置将不再受支持,并且会引发错误

    ¥the presence of auth related settings that are not scoped to a specific registry found in a config file is no longer supported and will throw errors

  • node-versionnpm-version 配置已被移除。

    ¥the node-version and npm-version configs have been removed.

  • 从 git url 生成的链接现在将使用 HEAD 而不是 master 作为默认引用

    ¥links generated from git urls will now use HEAD instead of master as the default ref

功能

¥Features

  • a09e19d #5696 引入 npm config fix 命令(@nlf)

    ¥a09e19d #5696 introduce the npm config fix command (@nlf)

  • d2963c6 在命令行中明确验证配置 (@nlf)

    ¥d2963c6 explicitly validate config within the cli (@nlf)

  • a5fec08 重写文档生成 (@lukekarrys)

    ¥a5fec08 rewrite docs generation (@lukekarrys)

错误修复

¥Bug Fixes

  • a35c784 #5691 配置:删除 node-versionnpm-version (@wraithgar)

    ¥a35c784 #5691 config: remove node-version and npm-version (@wraithgar)

文档

¥Documentation

  • a8532eb #5661 拼写错误,缺少括号 (@hbrls)

    ¥a8532eb #5661 typo missing parentheses (@hbrls)

  • 542efdb 更新现代 npm 的 folders 页面 (@shalvah)

    ¥542efdb update folders page for modern npm (@shalvah)

依赖

¥Dependencies

9.0.0-pre.4(2022-10-05)

功能

¥Features

  • 9609e9e #5605 默认使用 v3 锁文件 (#5605) (@fritzy)

    ¥9609e9e #5605 use v3 lockfiles by default (#5605) (@fritzy)

错误修复

¥Bug Fixes

  • e4e8ae2 libnpmpack:遵守 foregroundScripts (@winterqt)

    ¥e4e8ae2 libnpmpack: obey foregroundScripts (@winterqt)

  • 07fabc9 #5633 npm link 应该覆盖 --install-links (#5633) (@fritzy)

    ¥07fabc9 #5633 npm link should override --install-links (#5633) (@fritzy)

  • 02fcbb6 #5634 确保 Arborist 构造函数在包的各个地方传递 (#5634) (@nlf)

    ¥02fcbb6 #5634 ensure Arborist constructor gets passed around everywhere for pacote (#5634) (@nlf)

文档

¥Documentation

  • f37caad #5606 准确描述 install-links 对相对路径的影响 (#5606) (@lukekarrys)

    ¥f37caad #5606 accurately describe install-links effect on relative paths (#5606) (@lukekarrys)

  • 97c32ed #5637 删除指向缓存命令的链接 (#5637) (@wraithgar)

    ¥97c32ed #5637 remove link to cache command (#5637) (@wraithgar)

  • 130bc9f #5626 删除循环引用 (#5626) (@giovanniPepi)

    ¥130bc9f #5626 Remove circular reference (#5626) (@giovanniPepi)

依赖

¥Dependencies

9.0.0-pre.3(2022-09-30)

⚠️ BREAKING CHANGES

  • npm pack 现在在应用忽略规则时遵循严格的操作顺序。如果 package.json 中存在 files 数组,则根目录下的 .gitignore 和 .npmignore 文件中的规则将被忽略。

    ¥npm pack now follows a strict order of operations when applying ignore rules. If a files array is present in the package.json, then rules in .gitignore and .npmignore files from the root will be ignored.

  • --timing 文件变更:

    ¥--timing file changes:

    • 当使用 --timing 标志运行时,npm 现在会将时间数据与调试日志数据一起写入文件,同时遵循 logs-dir 选项并回退到 <CACHE>/_logs/ 目录,而不是直接写入缓存目录。

      ¥When run with the --timing flag, npm now writes timing data to a file alongside the debug log data, respecting the logs-dir option and falling back to <CACHE>/_logs/ dir, instead of directly inside the cache directory.

    • 计时文件数据不再是以换行符分隔的 JSON,而是每次运行都会创建一个唯一命名的 <ID>-timing.json 文件,其中 <ID> 部分与调试日志相同。

      ¥The timing file data is no longer newline delimited JSON, and instead each run will create a uniquely named <ID>-timing.json file, with the <ID> portion being the same as the debug log.

    • 最后,文件中的数据现在有三个顶层键:metadatatimers, andunfinishedTimers,而不是所有内容都作为顶层键。

      ¥Finally, the data inside the file now has three top level keys, metadata, timers, andunfinishedTimers` instead of everything being a top level key.

功能

¥Features

  • 3ae796d 实现新的 npm-packlist 行为 (@lukekarrys)

    ¥3ae796d implement new npm-packlist behavior (@lukekarrys)

  • e64d69a #5581 将 eresolve 错误文件写入日志目录(@lukekarrys)

    ¥e64d69a #5581 write eresolve error files to the logs directory (@lukekarrys)

  • 3445da0 计时现在与调试日志文件一起写入 (@lukekarrys)

    ¥3445da0 timings are now written alongside debug log files (@lukekarrys)

文档

¥Documentation

  • f0e7584 #5601 更新新的 --access default 选项的文档/日志记录 (@wraithgar)

    ¥f0e7584 #5601 update docs/logging for new --access default (@wraithgar)

依赖

¥Dependencies

9.0.0-pre.2(2022-09-23)

⚠️ BREAKING CHANGES

  • 默认的 auth-type 配置值现在是 web

    ¥the default auth-type config value is now web

  • loginadduserauth-type 变更

    ¥login, adduser, and auth-type changes

    • 这将删除除 weblegacy 之外的所有 auth-type 配置。

      ¥This removes all auth-type configs except web and legacy.

    • loginadduser 现在是单独的命令,用于向注册表发送不同的数据。

      ¥login and adduser are now separate commands that send different data to the registry.

    • auth-type 配置值 weblegacy 仅尝试各自的方法,npm 不再尝试所有方法,而是等待查看哪个方法不会失败。

      ¥auth-type config values web and legacy only try their respective methods, npm no longer tries them all and waits to see which one doesn't fail.

功能

¥Features

  • 66ed584 #5551 默认身份验证类型改为 Web (#5551) (@wraithgar)

    ¥66ed584 #5551 default auth-type to web (#5551) (@wraithgar)

  • 6ee5b32 查询:在结果中显示 queryContext (@nlf)

    ¥6ee5b32 query: display queryContext in results (@nlf)

  • 314311c #5550 单独登录/添加用户,删除身份验证类型 (#5550) (@wraithgar)

    ¥314311c #5550 separate login/adduser, remove auth types (#5550) (@wraithgar)

错误修复

¥Bug Fixes

  • 0d90a01 #5480 审计:添加条件以允许第三方注册中心返回 E400 (#5480) (@juanheyns, Juan Heyns)

    ¥0d90a01 #5480 audit: add a condition to allow third-party registries returning E400 (#5480) (@juanheyns, Juan Heyns)

文档

¥Documentation

  • 2d756cb #5527 添加使用 npm view 查询对象的说明 (#5527) (@moonith)

    ¥2d756cb #5527 add instruction to query objects with npm view (#5527) (@moonith)

  • 8743366 #5519 为 "tag" 配置链接添加哈希值 (#5519) (@mrienstra, @lukekarrys)

    ¥8743366 #5519 add hash to "tag" config link (#5519) (@mrienstra, @lukekarrys)

  • 5645c51 #5521 链接中提到了配置参数 (#5521) (@mrienstra)

    ¥5645c51 #5521 link mentions of config parameters (#5521) (@mrienstra)

  • 19762b4 #5529 修改关于 bin 的误导性文档 (@Hafizur046)

    ¥19762b4 #5529 modify Misleading doc about bins (@Hafizur046)

  • 19762b4 #5529 修改关于 package.json:bin 的误导性文档 (#5529) (@Hafizur046)

    ¥19762b4 #5529 modify misleading doc about package.json:bin (#5529) (@Hafizur046)

  • 8402fd8 #5547:outdated 伪选择器添加到文档 (@nlf)

    ¥8402fd8 #5547 add :outdated pseudo selector to docs (@nlf)

依赖

¥Dependencies

9.0.0-pre.1(2022-09-14)

⚠️ BREAKING CHANGES

  • 重命名大多数 npm access 子命令

    ¥renames most of the npm access subcommands

  • libnpmaccess 的 API 现在有所不同

    ¥the api for libnpmaccess is different now

功能

¥Features

  • 9c32c6c 重写:重写 npm access (@wraithgar)

    ¥9c32c6c rewrite: rewrite npm access (@wraithgar)

  • 854521b 重写:重写 libnpmaccess (@wraithgar)

    ¥854521b rewrite: Rewrite libnpmaccess (@wraithgar)

错误修复

¥Bug Fixes

  • c3d7549 添加发布日志消息标签 (@wraithgar)

    ¥c3d7549 add tag to publish log message (@wraithgar)

文档

¥Documentation

  • fd0eebe 更新注册表文档标头 (@hughlilly)

    ¥fd0eebe update registry docs header (@hughlilly)

依赖

¥Dependencies

9.0.0-pre.0(2022-09-08)

⚠ BREAKING CHANGES

  • 工作区:所有工作区包现在都与以下节点的语义版本范围兼容:^14.17.0 || ^16.13.0 || >=18.0.0

    ¥workspaces: all workspace packages are now compatible with the following semver range for node: ^14.17.0 || ^16.13.0 || >=18.0.0

  • 这将删除 npm birthday 命令

    ¥this removes the npm birthday command

  • 这将删除 npm set-script

    ¥this removes npm set-script

  • 这会将 install-links 的默认值更改为 true

    ¥this changes the default value of install-links to true

  • 这将删除 npm bin 命令

    ¥this removes the npm bin command

  • npm 现与以下节点的语义版本范围兼容:^14.17.0 || ^16.13.0 || >=18.0.0

    ¥npm is now compatible with the following semver range for node: ^14.17.0 || ^16.13.0 || >=18.0.0

功能

¥Features

  • e95017a #5485 特性(工作区):在 package.json 中更新支持的 Node 引擎 (@lukekarrys)

    ¥e95017a #5485 feat(workspaces): update supported node engines in package.json (@lukekarrys)

  • 49bbb2f #5455 特性:删除 npm birthday (@wraithgar)

    ¥49bbb2f #5455 feat: remove npm birthday (@wraithgar)

  • 926f0ad #5456 特性:删除 npm set-script (@wraithgar)

    ¥926f0ad #5456 feat: remove npm set-script (@wraithgar)

  • 2a8c2fc #5458 特性:默认 install-links 设为 true (@wraithgar)

    ¥2a8c2fc #5458 feat: default install-links to true (@wraithgar)

  • 2e92800 #5459 特性:删除 npm bin (@wraithgar)

    ¥2e92800 #5459 feat: remove npm bin (@wraithgar)

  • 457d388 #5475 特性:在 package.json 中更新支持的 Node 引擎 (@wraithgar)

    ¥457d388 #5475 feat: update supported node engines in package.json (@wraithgar)

错误修复

¥Bug Fixes

  • 41481f8 #5475 修复:在旧版 Node.js 中尝试更优雅地处理失败 (@wraithgar)

    ¥41481f8 #5475 fix: attempt more graceful failure in older node versions (@wraithgar)

文档

¥Documentation

  • 7fc2b6f #5468 文档:删除 prepare 脚本的重复描述 (@kidonng)

    ¥7fc2b6f #5468 docs: remove duplicate description for prepare script (@kidonng)

  • 285b39f #5324 文档:添加扩展 :semver 选择器的文档 (@nlf)

    ¥285b39f #5324 docs: add documentation for expanded :semver selector (@nlf)

依赖

¥Dependencies

  • 以下工作区依赖已更新

    ¥The following workspace dependencies were updated

    • dependencies

      • @npmcli/arborist bumped from ^5.6.1 to ^6.0.0-pre.0

      • libnpmaccess 从 ^6.0.4 升级到 ^7.0.0-pre.0

        ¥libnpmaccess bumped from ^6.0.4 to ^7.0.0-pre.0

      • libnpmdiff 从 ^4.0.5 升级到 ^5.0.0-pre.0

        ¥libnpmdiff bumped from ^4.0.5 to ^5.0.0-pre.0

      • libnpmexec 从 ^4.0.12 升级到 ^5.0.0-pre.0

        ¥libnpmexec bumped from ^4.0.12 to ^5.0.0-pre.0

      • libnpmfund 从 ^3.0.3 升级到 ^4.0.0-pre.0

        ¥libnpmfund bumped from ^3.0.3 to ^4.0.0-pre.0

      • libnpmhook 从 ^8.0.4 升级到 ^9.0.0-pre.0

        ¥libnpmhook bumped from ^8.0.4 to ^9.0.0-pre.0

      • libnpmorg 从 ^4.0.4 升级到 ^5.0.0-pre.0

        ¥libnpmorg bumped from ^4.0.4 to ^5.0.0-pre.0

      • libnpmpack 从 ^4.1.3 升级到 ^5.0.0-pre.0

        ¥libnpmpack bumped from ^4.1.3 to ^5.0.0-pre.0

      • libnpmpublish 从 ^6.0.5 升级到 ^7.0.0-pre.0

        ¥libnpmpublish bumped from ^6.0.5 to ^7.0.0-pre.0

      • libnpmsearch 从 ^5.0.4 升级到 ^6.0.0-pre.0

        ¥libnpmsearch bumped from ^5.0.4 to ^6.0.0-pre.0

      • libnpmteam 从 ^4.0.4 升级到 ^5.0.0-pre.0

        ¥libnpmteam bumped from ^4.0.4 to ^5.0.0-pre.0

      • libnpmversion 从 ^3.0.7 升级到^4.0.0-pre.0

        ¥libnpmversion bumped from ^3.0.7 to ^4.0.0-pre.0

npm v11.4 中文网 - 粤ICP备13048890号

目录