选择命令行版本:

11.7.0(2025-12-09)

功能

¥Features

  • b380d15 #8697 除非处于 verbose+ 模式,否则为通知添加去重功能 (@owlstronaut)

    ¥b380d15 #8697 add deduping to notices unless in verbose+ mode (@owlstronaut)

错误修复

¥Bug Fixes

  • 4ebb831 #8839 更新提示信息,以使用 CLI 模式 (@owlstronaut)

    ¥4ebb831 #8839 updates hints to use cli paradigm (@owlstronaut)

  • 7896e51 #8838 更新 token 列表文本 (@owlstronaut)

    ¥7896e51 #8838 update the token list text (@owlstronaut)

  • 8ab8668 #8836 查询:在工作区中支持 package-lock-only(@watilde)。

    ¥8ab8668 #8836 query: support package-lock-only in workspaces (@watilde)

  • 35e8d38 #8322 在使用 spinner 时正确处理输入中的换行符(#8322)(@mbtools)

    ¥35e8d38 #8322 properly handle newlines with input when using the spinner (#8322) (@mbtools)

  • 0c0faae #8780 添加用户:改进电子邮件提示(#8780)(@mbtools)

    ¥0c0faae #8780 adduser: improve email prompt (#8780) (@mbtools)

文档

¥Documentation

  • 7f2ab9d #8810 脚本:用 prepare 替换已弃用的 prepublish 和 install 示例(Max Black)。

    ¥7f2ab9d #8810 scripts: replace deprecated prepublish and install examples with prepare (Max Black)

  • 91ebab7 #8847 删除关于令牌创建已禁用的说明 (@owlstronaut)

    ¥91ebab7 #8847 remove note about token create being disabled (@owlstronaut)

  • 2030250 #8822 脚本:澄清 prepare 脚本使用 --production 运行 (Max Black)

    ¥2030250 #8822 scripts: clarify prepare script runs with --production (Max Black)

  • 33a50d7 #8821 脚本:更新 npmpackage* 环境变量文档(Max Black)

    ¥33a50d7 #8821 scripts: update npm*package** environment variables documentation (Max Black)

  • 50508f9 #8793 package-json:添加 type 字段的文档 (#8793) (@MaxBlack-dev, Max Black)

    ¥50508f9 #8793 package-json: add documentation for type field (#8793) (@MaxBlack-dev, Max Black)

  • aa1dd7e #8823 脚本:说明准备脚本在工作区中并发运行(Max Black)

    ¥aa1dd7e #8823 scripts: document that prepare scripts run concurrently in workspaces (Max Black)

  • 3f48487 #8820 package-spec:修复示例中的别名语法(Max Black)

    ¥3f48487 #8820 package-spec: fix alias syntax in examples (Max Black)

  • dd104da #8812 版本:添加关于 Git 版本要求的说明 (Max Black)

    ¥dd104da #8812 version: add note about git version requirements (Max Black)

  • 58afdcc #8792 安装:澄清预发布版本范围行为 (Max Black)

    ¥58afdcc #8792 install: clarify prerelease version range behavior (Max Black)

  • 9f818e8 #8795 npm 查看:澄清对象属性访问语法并提供示例 (Max Black)

    ¥9f818e8 #8795 npm-view: clarify object property access syntax and provide examples (Max Black)

  • 39c2f2e #8791 为命令行标志(包括 --prefix)添加示例 (Max) Max Black)

    ¥39c2f2e #8791 add examples for command line flags including --prefix (Max Black)

  • 1298530 #8790 明确 package-lock 中可以省略版本字段 (Max Black)

    ¥1298530 #8790 clarify version field can be omitted in package-lock (Max Black)

  • 090b6ca #8794 npx:澄清参数会传递给执行的命令(Max Black)

    ¥090b6ca #8794 npx: clarify that arguments are passed to executed command (Max Black)

  • a864f80 #8787 在 package.json 中添加 gypfile 字段的文档 (Max Black)

    ¥a864f80 #8787 document gypfile field in package.json (Max Black)

  • 2fc689d #8788 在 npm 视图中添加字段访问模式 (Max Black)

    ¥2fc689d #8788 add field access patterns to npm view (Max Black)

  • 4850639 #8796 package-json:添加在覆盖中用 fork 替换依赖的示例 (Max Black)

    ¥4850639 #8796 package-json: add examples for replacing dependencies with forks in overrides (Max Black)

  • 4864dd4 #8798 npm 安装:说明安装软件包时引擎字段的优先级(Max Black)

    ¥4864dd4 #8798 npm-install: document engines field priority when installing packages (Max Black)

  • 95d25cd #8799 package-json:澄清发布期间的仓库字段规范化 (Max Black)

    ¥95d25cd #8799 package-json: clarify repository field normalization during publish (Max Black)

  • a367f9b #8800 package-lock-json:澄清某些依赖可以省略版本字段(Max Black)

    ¥a367f9b #8800 package-lock-json: clarify that version field may be omitted for certain dependencies (Max Black)

  • ffc9b71 #8801 npm 安装:澄清 --tag 不会覆盖 package.json (#8801) (@MaxBlack-dev, Max Black)

    ¥ffc9b71 #8801 npm-install: clarify --tag does not override package.json (#8801) (@MaxBlack-dev, Max Black)

  • 73688ca #8735 明确 npm 版本在预发布版本中的行为 (#8735) (@yashwantbezawada)

    ¥73688ca #8735 clarify npm version behavior with prerelease versions (#8735) (@yashwantbezawada)

  • 4a32606 #8785 更新 token 创建文档 (#8785) (@owlstronaut, @wraithgar)

    ¥4a32606 #8785 updates the token create documentation (#8785) (@owlstronaut, @wraithgar)

杂务

¥Chores

依赖

¥Dependencies

11.6.4(2025-11-25)

文档

¥Documentation

  • dfb83c7 #8749 为关键字字段添加示例 (#8749) (@MaxBlack-dev, Max Black)

    ¥dfb83c7 #8749 add example for keywords field (#8749) (@MaxBlack-dev, Max Black)

  • 1b1e227 #8750 删除过时的路线图链接 (#8750) (@MaxBlack-dev, Max Black)

    ¥1b1e227 #8750 remove outdated roadmap link (#8750) (@MaxBlack-dev, Max Black)

  • 1333d57 #8752 明确 .npmrc 文件中环境变量覆盖的命名约定 (#8752) (@MaxBlack-dev)

    ¥1333d57 #8752 clarify .npmrc naming convention for environment variable overrides (#8752) (@MaxBlack-dev)

  • 22cddb8 #8755 在 workspaces 中添加工作区依赖示例 (Max Black)

    ¥22cddb8 #8755 add workspace dependencies example to workspaces (Max Black)

  • 17e154c #8756 将环境变量标准化为大写 (Max)黑色)

    ¥17e154c #8756 standardize env vars to uppercase convention (Max Black)

  • 1e51a25 #8754 修复 prepare 脚本的生命周期事件顺序(Max Black)

    ¥1e51a25 #8754 fix lifecycle event order for prepare script (Max Black)

  • 8d72bc9 #8753 在 package-lock.json 中添加 os、cpu 和 funding 字段 (Max Black)

    ¥8d72bc9 #8753 add os, cpu, and funding fields to package-lock.json (Max Black)

依赖

¥Dependencies

11.6.3(2025-11-19)

错误修复

¥Bug Fixes

  • c6242d9 #8706 修改 npm profile 以创建支持 GAT 的令牌 (#8706) (@owlstronaut, @wraithgar)

    ¥c6242d9 #8706 change npm profile to create tokens with GAT support (#8706) (@owlstronaut, @wraithgar)

  • cbc6fa9 #8731 错误信息中版本信息的顺序(#8731)(@piotrd,@pd-be)

    ¥cbc6fa9 #8731 order of version information in error message (#8731) (@piotrd, @pd-be)

  • 11dbd7e #8709 创建身份验证令牌时显示完整令牌 (#8709) (@MaxBlack-dev, Max Black)

    ¥11dbd7e #8709 display full token when creating authentication tokens (#8709) (@MaxBlack-dev, Max Black)

  • 49a4eef #8676 使用正则表达式查找末尾斜杠 (#8676) (@wraithgar)

    ¥49a4eef #8676 use look behind regex for trailing slash stripping (#8676) (@wraithgar)

  • b1aee62 #8645 依赖标志计算 (#8645) (@liamcmitchell)

    ¥b1aee62 #8645 dep flag calculation (#8645) (@liamcmitchell)

文档

¥Documentation

  • ca53c21 #8745 添加工作区使用示例(#8745) (@MaxBlack-dev, Max Black)

    ¥ca53c21 #8745 add workspace usage examples (#8745) (@MaxBlack-dev, Max Black)

  • e71ca0e #8746 在文档中添加 --save 标志 (#8746) (@MaxBlack-dev, Max Black)

    ¥e71ca0e #8746 add --save flag to documentation (#8746) (@MaxBlack-dev, Max Black)

  • 06510a8 #8683 在 npm 版本帮助和文档中添加 ignore-scripts 选项 (#8683) (@Tejas242)

    ¥06510a8 #8683 add ignore-scripts option to npm version help and docs (#8683) (@Tejas242)

依赖

¥Dependencies

杂务

¥Chores

11.6.2(2025-10-08)

错误修复

¥Bug Fixes

  • c54d1e9 #8633 清理进度条代码(#8633)(@wraithgar)

    ¥c54d1e9 #8633 progress bar code cleanup (#8633) (@wraithgar)

  • d352e27 #8629 不编辑输出到标准输出的通知日志 (#8629) (@wraithgar)

    ¥d352e27 #8629 do not redact notice logs going to stdout (#8629) (@wraithgar)

  • 5ac3678 #8617 ./lib 和 ./test/lib 中的拼写错误 (#8617) (@jsoref)

    ¥5ac3678 #8617 spelling in ./lib and ./test/lib (#8617) (@jsoref)

  • 9197995 #8619 拼写错误 (#8619) (@jsoref)

    ¥9197995 #8619 spelling (#8619) (@jsoref)

  • dd884e3 #8618 拼写错误 (#8618) (@jsoref)

    ¥dd884e3 #8618 spelling (#8618) (@jsoref)

  • f6028e6 #8614 跳过编辑用户打开的 URL (#8614) (@wraithgar, @jolyndenning)

    ¥f6028e6 #8614 skip redacting urls meant for opening by the user (#8614) (@wraithgar, @jolyndenning)

  • 54fd27f #8602 将 node.ideallyInert 重构为 node.inert (#8602) (@liamcmitchell)

    ¥54fd27f #8602 refactor node.ideallyInert to node.inert (#8602) (@liamcmitchell)

  • 79e3c1e #8593 使用 @npmcli/package-json 规范化包数据 (@wraithgar)

    ¥79e3c1e #8593 use @npmcli/package-json to normalize package data (@wraithgar)

文档

¥Documentation

依赖

¥Dependencies

杂务

¥Chores

11.6.1(2025-09-23)

错误修复

¥Bug Fixes

  • d389614 #8579 修复对等依赖标志传播 (@owlstronaut)

    ¥d389614 #8579 corrects peer dependency flag propagation (@owlstronaut)

  • 5db81c3 #8512 允许并发的非本地 npx 调用 (#8512) (@jenseng, @wraithgar)

    ¥5db81c3 #8512 allow concurrent non-local npx calls (#8512) (@jenseng, @wraithgar)

文档

¥Documentation

依赖

¥Dependencies

杂务

¥Chores

11.6.0(2025-09-03)

功能

¥Features

  • bdcc10d #8359 在 .npmrc 中添加对可选环境变量替换的支持 (#8359) (@aczekajski, @owlstronaut)

    ¥bdcc10d #8359 add support for optional env var replacements in .npmrc (#8359) (@aczekajski, @owlstronaut)

错误修复

¥Bug Fixes

  • dd4cee9 #8539 powershell:改进参数解析(#8539)(@alexsch01)

    ¥dd4cee9 #8539 powershell: improve argument parsing (#8539) (@alexsch01)

  • 5f18557 #8532 powershell:修复修改后的 InvocationName 的问题(#8532)(@alexsch01)

    ¥5f18557 #8532 powershell: fix issue with modified InvocationName (#8532) (@alexsch01)

  • 9e5abf1 #8529 在日志格式导出中添加脱敏功能 (#8529) (@wraithgar)

    ¥9e5abf1 #8529 add redaction to log format egress (#8529) (@wraithgar)

  • 75ce64a #8524 恢复优雅地处理信号退出 (#8524) (@owlstronaut)

    ¥75ce64a #8524 revert handle signal exits gracefully (#8524) (@owlstronaut)

  • 5d82d0b PowerShell 5.1 中的 #8469 ps1 脚本 (#8469) (@splatteredbits)

    ¥5d82d0b #8469 ps1 scripts in powershell 5.1 (#8469) (@splatteredbits)

依赖

¥Dependencies

11.5.2(2025-07-30)

错误修复

¥Bug Fixes

  • 7d900c4 #8467 provenance oidc 可见性检查 (#8467) (@reggi, @wraithgar)

    ¥7d900c4 #8467 oidc visibility check for provenance (#8467) (@reggi, @wraithgar)

文档

¥Documentation

  • d4e56b2 #8459 更新快照生成命令 (#8459) (@MikeMcC399)

    ¥d4e56b2 #8459 update snapshot generation command (#8459) (@MikeMcC399)

11.5.1(2025-07-24)

错误修复

¥Bug Fixes

11.5.0(2025-07-24)

功能

¥Features

  • 1cce318 #8336 增加了对 oidc 发布的支持 (#8336) (@reggi)

    ¥1cce318 #8336 adds support for oidc publish (#8336) (@reggi)

错误修复

¥Bug Fixes

  • 7f66f0a #8447before 添加更好的提示并清理描述 (@wraithgar)

    ¥7f66f0a #8447 add better hint for before and clean up description (@wraithgar)

  • 280817a #8447 在命令帮助输出中添加 --before 参数 (@wraithgar)

    ¥280817a #8447 add --before param to command help output (@wraithgar)

  • 6e47325 #8441 使 404 错误不那么可怕,而不会暴露存在 (#8441) (@owlstronaut)

    ¥6e47325 #8441 Makes 404 errors less scary without revealing existence (#8441) (@owlstronaut)

  • 0a97ffd #8429 优雅地处理信号退出 (@owlstronaut)

    ¥0a97ffd #8429 handle signal exits gracefully (@owlstronaut)

  • 5b858c6 #8411 确保进度条在所有环境中一致显示 (#8411) (@owlstronaut)

    ¥5b858c6 #8411 ensure progress bars display consistently across all environments (#8411) (@owlstronaut)

文档

¥Documentation

  • ef3529e #8435 添加测试快照 (#8435) (@reggi, @wraithgar)

    ¥ef3529e #8435 add test snapshot (#8435) (@reggi, @wraithgar)

  • b7758d7 #8418 删除对 Node.js 下载不常见操作系统的引用 (#8418) (@MikeMcC399)

    ¥b7758d7 #8418 remove reference to Node.js download less common os (#8418) (@MikeMcC399)

  • 746ac5d #8380 删除重复信息 (#8380) (@alexsch01)

    ¥746ac5d #8380 remove duplicate info (#8380) (@alexsch01)

  • 4673e9c #8371 将 OS X 引用重命名为 macOS (@MikeMcC399)

    ¥4673e9c #8371 rebrand OS X references to macOS (@MikeMcC399)

依赖

¥Dependencies

杂务

¥Chores

11.4.2(2025-06-11)

错误修复

¥Bug Fixes

  • f2d6947 #8345 取消 npm init 时将警告移至新行 (@mbtools)

    ¥f2d6947 #8345 move warning to new line when npm init is canceled (@mbtools)

  • e758dd7 #8318 powershell:多个 Invoke-Expression 修复 (#8318) (@alexsch01)

    ¥e758dd7 #8318 powershell: multiple Invoke-Expression fixes (#8318) (@alexsch01)

文档

¥Documentation

  • 7233cb3 #8355 删除与已弃用部分相关的临时文件 (#8355) (@milaninfy)

    ¥7233cb3 #8355 remove deprecated section related temp files (#8355) (@milaninfy)

  • fb7a498 #8351 澄清脚本使用的 shell (#8351) (@milaninfy)

    ¥fb7a498 #8351 clarify shell used for script (#8351) (@milaninfy)

  • 8b55d38 #8329 将 "command" 重命名为 "script" (#8329) (@DanKaplanSES)

    ¥8b55d38 #8329 Rename "command" to "script" (#8329) (@DanKaplanSES)

依赖

¥Dependencies

杂务

¥Chores

11.4.1(2025-05-21)

文档

¥Documentation

  • 3ed764a #8308 澄清脚本工作目录行为(修复 #8305)(#8308)(@tarekwfa0110,@owlstronaut)

    ¥3ed764a #8308 Clarify script working directory behavior (fixes #8305) (#8308) (@tarekwfa0110, @owlstronaut)

杂务

¥Chores

  • 2f30251 #8314 删除对 skimdb.npmjs.com 的引用 (#8314) (@shmam)

    ¥2f30251 #8314 remove references to skimdb.npmjs.com (#8314) (@shmam)

  • 9cb9d50 #8298 将贡献者添加到变更日志条目 (#8298) (@wraithgar)

    ¥9cb9d50 #8298 add contributor to changelog entry (#8298) (@wraithgar)

依赖

¥Dependencies

11.4.0(2025-05-15)

功能

¥Features

  • a0e60fb #8246 添加 init-private 选项 (@owlstronaut)

    ¥a0e60fb #8246 added init-private option (@owlstronaut)

  • 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、@mbtools)

    ¥2210d7a #8278 powershell: use Invoke-Expression to pass args (#8278) (@alexsch01, @mbtools)

  • 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 missing time in packument to prevent crash on npm view (@owlstronaut)

  • db8f5da #8110 已过时:在长输出中添加依赖位置 (#8110) (@milaninfy, @wraithgar)

    ¥db8f5da #8110 outdated: add dependent location in long output (#8110) (@milaninfy, @wraithgar)

文档

¥Documentation

  • d2498df #8295CHANGELOG 从永不忽略列表中移除 (#8295) (@mrazauskas)

    ¥d2498df #8295 Remove CHANGELOG from never-ignored list (#8295) (@mrazauskas)

  • 4d5c3c1 #8283 修复 package-json.md 中的 overrides 示例 (#8283) (@glasser)

    ¥4d5c3c1 #8283 fix overrides 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

11.3.0(2025-04-08)

功能

¥Features

  • b306d25 #8129 添加 node-gyp 作为实际配置 (@wraithgar)

    ¥b306d25 #8129 add node-gyp as actual config (@wraithgar)

错误修复

¥Bug Fixes

  • 2f5392a #8135 使 npm run 自动补齐功能与工作区兼容 (#8135) (@terrainvidia)

    ¥2f5392a #8135 make npm run autocomplete work with workspaces (#8135) (@terrainvidia)

文档

¥Documentation

  • 26b6454 修复本地路径注释中的语法错误 (@cgay)

    ¥26b6454 fix grammar 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 in overrides explainer (#8178) (@G-Rath)

  • 4183cba #8162 日志记录:在日志级别详细信息中将 proceeding 替换为 prior (#8162) (@tyleralbee)

    ¥4183cba #8162 logging: replace proceeding with preceding in loglevels details (#8162) (@tyleralbee)

依赖

¥Dependencies

杂务

¥Chores

11.2.0(2025-03-05)

功能

¥Features

错误修复

¥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 in npm-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

11.1.0(2025-01-29)

功能

¥Features

  • 7f6c997 #8009 添加 dry-run 功能以弃用/取消弃用命令 (@wraithgar)

    ¥7f6c997 #8009 add dry-run to deprecate/undeprecate commands (@wraithgar)

  • 1764a37 #8009 添加 npm undeprecate 命令 (@wraithgar)

    ¥1764a37 #8009 add npm undeprecate command (@wraithgar)

错误修复

¥Bug Fixes

  • 31455b2 #8054 发布:尊重无 dist 标签和注册表版本检查 (#8054) (@reggi)

    ¥31455b2 #8054 publish: honor force for no dist tag and registry version check (#8054) (@reggi)

  • dc31c1b #8038 删除 max-len linting 绕过 (@wraithgar)

    ¥dc31c1b #8038 remove max-len linting bypasses (@wraithgar)

  • 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 highest 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)

  • aa202e9 #8056 使用 preid 进行冒烟测试 (#8056) (@reggi)

    ¥aa202e9 #8056 smoke tests using a preid (#8056) (@reggi)

  • 18e0449 #8053 开发依赖更新 (@wraithgar)

    ¥18e0449 #8053 dev dependency updates (@wraithgar)

  • 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

杂务

¥Chores

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 a type prompt, and sorts the entries in 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

依赖

¥Dependencies

杂务

¥Chores

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, include prepare

  • 如果批量咨询请求失败,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

  • 6995303 #7850--ignore-scripts 标志添加到 pack (@reggi)

    ¥6995303 #7850 adds --ignore-scripts flag to pack (@reggi)

错误修复

¥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)

  • 62c71e5 #7835 删除 npm hook 命令 (@reggi)

    ¥62c71e5 #7835 removes npm hook command (@reggi)

  • 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

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