npm sbom --sbom-format=cyclonedx now reports the name field from each package's package.json instead of the on-disk directory name. The name, bom-ref, and purl of the root component and of aliased dependencies may change.
npm no longer registers man pages with the system when installed globally. man npm-install will no longer work, but npm help install is unaffected.
The npm pkg output is no longer forced to json. This means you can get single values without having to worry about wrapping of the values. It also outputs non-json content more similarly to npm view.
npm shrinkwrap is removed, the shrinkwrap config alias is removed, and npm-shrinkwrap.json is no longer loaded or honored at the project root or from inside dependency tarballs. Rename project-root npm-shrinkwrap.json to package-lock.json; use bundleDependencies if you need to ship a locked dependency tree.
The Twitter and Freenode profile fields have been removed from the npm registry. This means that users will no longer be able to set or view these fields in their npm profiles.
npm will no longer attempt to resolve the path to node via whichnode. process.execPath is already set by Node to the resolved real path of the node binary, so the lookup was redundant. Scripts that expected npm to override process.execPath with a PATH-resolved (potentially symlinked) node path may be affected.
the --json output of npm pack and npm publish have changed. They are now always consistent, and in the same format.
the star, stars and unstar commands have been removed
The npm adduser command has been removed. Create and manage user accounts on the npm website, and use npm login to authenticate on the command line.
Preserve https protocol when working with git (#8703)
The default license for npm init has been changed from "ISC" to an empty string. If not set, the license field will be omitted from new packages.
npm now supports node ^22.22.2 || ^24.15.0 || >=26.0.0
allow-git and allow-remote now default to "none"; set them to "all" (or "root") to install git or user-supplied tarball-URL dependencies.
root `preinstall` now runs before dependencies are installed.
unknown CLI flags, abbreviated flags, and single-hyphen multi-char shorthands now throw instead of warning. (Unknown .npmrc configs still warn by default; opt into erroring with the new strict-npmrc config.)
Dependency lifecycle scripts are now blocked by default unless allowed by the root package's allowScripts policy. After installing, run npm install-scripts approve to record approvals and npm rebuild to execute newly approved scripts.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR contains the following updates:
11.21.3→12.2.3Release Notes
npm/cli (npm)
v12.2.3Compare Source
Bug Fixes
8f92e74#10117 unpublish: refuse to unpublish a version when registry has no versions (#10117) (@meganemura)a41b85a#10068 skip disconnected orphans in install script checks (#10068) (@JamieMagee)09a15bb#10135 libnpmexec: install npx cache despite dryRun or packageLockOnly (#10135) (@ljharb)be2acee#10191 treat UCRT64 Git Bash as a unix shell on Windows (#10191) (@ump45nose)Dependencies
d538936#10254read-cmd-shim@7.0.1(#10254) (@martinrrm)Chores
bd8b339#10234 restore release integration (@reggi, @Copilot)e04a5f8#10241 migrate Cygwin installer (@reggi, @Copilot)@npmcli/arborist@10.0.5@npmcli/config@11.2.1libnpmdiff@9.0.5libnpmexec@11.0.6libnpmfund@8.0.5libnpmpack@10.0.5v12.2.2Compare Source
Bug Fixes
347dbb2#10175 accept supported Node.js prereleases at startup (#10175) (@reggi, @Copilot)085f9f6#9798 patch: stop a workdir cleanup race from masking update errors (#9798) (@manzoorwanijk)Documentation
52f3093#10108 propose Markdown conventions in CONTRIBUTING (#10108) (@ump45nose)Dependencies
89e9555#10204semver@7.8.6(@reggi, @Copilot)158315c#10152pacote@22.0.1(@martinrrm, @Copilot)820b297#10152promise-spawn@10.0.1(@martinrrm, @Copilot)9196a4c#10152bin-links@7.0.1(@martinrrm, @Copilot)b34bba5#10170ip-address@10.7.59a7e3b6#10170undici@6.29.1Chores
6642613#10181 drop clinic and weak from node-integration knownFailures (@ump45nose)fc517df#10033 prefix Node staging PR titles (#10033) (@reggi)7c78fe0#10021 handle unavailable node nightly source (#10021) (@reggi)311ff5e#10151 align release integration with supported Node versions (#10151) (@reggi, @Copilot)libnpmexec@11.0.5v12.2.1Compare Source
Bug Fixes
b317f16#9941 write registry allowScripts keys under install-strategy=linked (#9941) (@manzoorwanijk)Dependencies
7b0c2e8#10088http-cache-semantics@4.3.0(@reggi)e9e99b4#10088undici@6.29.0(@reggi)857d7df#10088postcss-selector-parser@7.1.6(@reggi)bc7bb3a#10088ip-address@10.7.2(@reggi)7614360#10088brace-expansion@5.0.12(@reggi)@npmcli/arborist@10.0.4libnpmdiff@9.0.4libnpmexec@11.0.4libnpmfund@8.0.4libnpmpack@10.0.4v12.2.0Compare Source
Features
9741b64#10038 dist-tag: support OIDC authentication (#10038) (@reggi, @Copilot)Documentation
0c3b82a#10017 update npm stage docs to reflect that it can create new packages (#10017) (@shmam, @Copilot)Dependencies
@npmcli/config@11.2.0v12.1.0Compare Source
Features
6400533#9948 token: support read-write-stage-only granular access tokens (#9948) (@Tayvon, @Copilot)8723f53#9898 stage: display staged package status (#9898) (@joelverhagen)Bug Fixes
c9876d7#9882 provenance-file takes precedence over OIDC auto-generated provenance (#9882) (@yunseo-kim)b016aa2#9913 config: avoid exporting persistent allow-scripts (#9913) (@Fnine59)d6c6122#9914 arborist: match allowScripts keys for local paths (#9914) (@martinrrm, @Copilot)a8c9b2f#9823 keep dry-run output valid json (#9823) (@martinrrm)da50c34#9881 arborist: reject uninstall args that carry a version (#9881) (@lazerg)71915e8#9756 exempt explicit pack targets from allow-directory (#9756) (@ychampion, @ychampion)51c2bf8#9864 don't print the funding message for global installs (#9864) (@lazerg)Documentation
bea9066#9838 document npm 12 install script blocking (#9838) (@reggi)Dependencies
6e40f73#9871undici@6.28.0(@martinrrm, @Copilot)05bd2a4#9871ip-address@10.5.0(@martinrrm, @Copilot)b7c490d#9871brace-expansion@5.0.9(@martinrrm, @Copilot)75a943d#9843tar@7.5.22(#9843) (@martinrrm, @Copilot)Chores
7b50811#9961 pack: select workspace through config (#9961) (@reggi)81a901c#9915 recognize prefixed Node.js PR titles (#9915) (@reggi)4cdccea#9836 updatenode-integrationworkflow template to latest actions (#9836) (@MikeMcC399)278df04#9822 pass nodedir to node-gyp via npm_package_config env in node integration (#9822) (@reggi, @Copilot)@npmcli/arborist@10.0.3@npmcli/config@11.1.0libnpmdiff@9.0.3libnpmexec@11.0.3libnpmfund@8.0.3libnpmpack@10.0.3libnpmpublish@12.0.1v12.0.2Compare Source
Bug Fixes
834408e#9760 pack: honor min-release-age-exclude (#9760) (@martinrrm, @Copilot)ef6cfea#9786 owner: use scoped registry for user lookup (#9786) (@martinrrm, @Copilot)Documentation
9e17dc0#9805 clarify npm 12 unknown-config breaking change in changelogs (#9805) (@Hashim1999164)Chores
7b1f6c1#9747 parse pack --json object output in node integration (#9747) (@reggi, @Copilot)Dependencies
@npmcli/arborist@10.0.2@npmcli/config@11.0.1libnpmdiff@9.0.2libnpmexec@11.0.2libnpmfund@8.0.2libnpmpack@10.0.2v12.0.1Compare Source
Features
6400533#9948 token: support read-write-stage-only granular access tokens (#9948) (@Tayvon, @Copilot)8723f53#9898 stage: display staged package status (#9898) (@joelverhagen)Bug Fixes
c9876d7#9882 provenance-file takes precedence over OIDC auto-generated provenance (#9882) (@yunseo-kim)b016aa2#9913 config: avoid exporting persistent allow-scripts (#9913) (@Fnine59)d6c6122#9914 arborist: match allowScripts keys for local paths (#9914) (@martinrrm, @Copilot)a8c9b2f#9823 keep dry-run output valid json (#9823) (@martinrrm)da50c34#9881 arborist: reject uninstall args that carry a version (#9881) (@lazerg)71915e8#9756 exempt explicit pack targets from allow-directory (#9756) (@ychampion, @ychampion)51c2bf8#9864 don't print the funding message for global installs (#9864) (@lazerg)Documentation
bea9066#9838 document npm 12 install script blocking (#9838) (@reggi)Dependencies
6e40f73#9871undici@6.28.0(@martinrrm, @Copilot)05bd2a4#9871ip-address@10.5.0(@martinrrm, @Copilot)b7c490d#9871brace-expansion@5.0.9(@martinrrm, @Copilot)75a943d#9843tar@7.5.22(#9843) (@martinrrm, @Copilot)Chores
7b50811#9961 pack: select workspace through config (#9961) (@reggi)81a901c#9915 recognize prefixed Node.js PR titles (#9915) (@reggi)4cdccea#9836 updatenode-integrationworkflow template to latest actions (#9836) (@MikeMcC399)278df04#9822 pass nodedir to node-gyp via npm_package_config env in node integration (#9822) (@reggi, @Copilot)@npmcli/arborist@10.0.3@npmcli/config@11.1.0libnpmdiff@9.0.3libnpmexec@11.0.3libnpmfund@8.0.3libnpmpack@10.0.3libnpmpublish@12.0.1v12.0.0Compare Source
⚠️ BREAKING CHANGES
npm sbom --sbom-format=cyclonedxnow reports thenamefield from each package'spackage.jsoninstead of the on-disk directory name. Thename,bom-ref, andpurlof the root component and of aliased dependencies may change.man npm-installwill no longer work, butnpm help installis unaffected.npm pkgoutput is no longer forced to json. This means you can get single values without having to worry about wrapping of the values. It also outputs non-json content more similarly tonpm view.npm shrinkwrapis removed, theshrinkwrapconfig alias is removed, andnpm-shrinkwrap.jsonis no longer loaded or honored at the project root or from inside dependency tarballs. Rename project-rootnpm-shrinkwrap.jsontopackage-lock.json; usebundleDependenciesif you need to ship a locked dependency tree.npm packandnpm publishhave changed. They are now always consistent, and in the same format.star,starsandunstarcommands have been removednpm addusercommand has been removed. Create and manage user accounts on the npm website, and usenpm loginto authenticate on the command line.npm inithas been changed from "ISC" to an empty string. If not set, the license field will be omitted from new packages.npmnow supports node^22.22.2 || ^24.15.0 || >=26.0.0.npmrcconfigs still warn by default; opt into erroring with the newstrict-npmrcconfig.)allowScriptspolicy. After installing, runnpm install-scripts approveto record approvals andnpm rebuildto execute newly approved scripts.Chores
b77b532#9735 remove pre-release mode from npm 12 and workspaces (#9735) (@reggi, @Copilot)Dependencies
@npmcli/arborist@10.0.0@npmcli/config@11.0.0libnpmaccess@11.0.0libnpmdiff@9.0.0libnpmexec@11.0.0libnpmfund@8.0.0libnpmorg@9.0.0libnpmpack@10.0.0libnpmpublish@12.0.0libnpmsearch@10.0.0libnpmteam@9.0.0libnpmversion@9.0.0Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.