选择命令行版本:

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)

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

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

依赖

¥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.4 中文网 - 粤ICP备13048890号