11.0.0-pre.1 (2026-06-19)
⚠️ BREAKING CHANGES
- The default license for
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- allow-git and allow-remote now default to "none"; set them to "all" (or "root") to install git or user-supplied tarball-URL dependencies.
- unknown configs in .npmrc, unknown CLI flags, abbreviated flags, and single-hyphen multi-char shorthands now throw instead of warning.
Features
1db885c#9439 native dependency patching (npm patch add/commit/update/ls/rm) (#9439) (@manzoorwanijk)fc80bb3#9234 remove default license for npm init (@owlstronaut)be8053c#9544 warn when min-release-age blocks an audit fix (#9544) (@JamieMagee)18eb967#9559 bump to new node engine range (@owlstronaut)c3e1a71#9532 add min-release-age-exclude config (@JamieMagee, @caseyjhol)f6a9aad#9517 differentiate GitHub Actions environments in user-agent (#9517) (@reggi, @Copilot)5cd5150#9424 default-deny install scripts (allowScripts opt-in) [v12] (@JamieMagee)caa3295#9466 default allow-git and allow-remote to none (@owlstronaut)f2e4a28#9351 add a global npmignore file (#9351) (@ljharb)c9be2d1#9153 publish --access=private alias for restricted (#9153) (@reggi, @Copilot)7068d42#9360 Phase 1 ofallowScriptsopt-in install-script policy (#9360) (@JamieMagee)979518d#9276 error on unknown configs, flags, and abbreviations (#9276) (@owlstronaut)
Bug Fixes
9b5c7b0#9521 config: strict-allow-scripts default blocks with a warning, not silently (@JamieMagee)6efac6e#9453 config: clarify --all help so it's accurate for approve-scripts and deny-scripts (@JamieMagee)c5292fa#9422 use prerelease strategy without a bug (@owlstronaut)
Dependencies
21df0ab#9559proc-log@7.0.0471309f#9559nopt@10.0.1406820a#9559ini@7.0.00be6ae2#9559@npmcli/package-json@8.0.04d234b2#9559@npmcli/map-workspaces@6.0.0
Chores
0323f2d#9559 template-oss-apply (@owlstronaut)ee3d87f#9559@npmcli/template-oss@5.1.1(@owlstronaut)d25a179#9559 template-oss-apply (@owlstronaut)