npm / @npmcli/config
@npmcli/config
What changed in @npmcli/config 4 to 11, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-20.
17 breaking1 security12 new APIs and options5 behavior and defaults15 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@npmcli/config 1114 changes
Breaking changes 10
Persistent allow-scripts is no longer exported.
The default changes to
none; set it toallorrootto install git dependencies.The default changes to
none; set it toallorrootto install user-supplied tarball-URL dependencies.Unknown and abbreviated flags, and single-hyphen multi-character shorthands, now throw instead of warning.
The default license for
npm initchanges fromISCto an empty string; if unset, the license field is omitted from new packages.npmnow supports Node.js^22.22.2 || ^24.15.0 || >=26.0.0.The command is removed.
This file is no longer loaded or honored at the project root or from inside dependency tarballs; rename project-root files to
package-lock.json.Unknown configs in
.npmrcnow throw instead of warning.The
shrinkwrapconfig alias is removed.
New APIs and options 1
Supports read-write-stage-only granular access tokens.
Behavior and default changes 1
The dist-tag command supports OIDC authentication.
Fixes and other changes 2
Disconnected orphans are skipped in install script checks.
A provenance-file takes precedence over OIDC auto-generated provenance.
@npmcli/config 1028 changes
Security 1
Introduces Phase 1 of an opt-in install-script policy.
New APIs and options 11
Adds the min-release-age-exclude configuration option.
private is now an alias for restricted when setting publish access.
Adds the allow-directory configuration option.
Adds the allow-file configuration option.
Adds the allow-remote configuration option.
Adds an audit flag to output sigstore bundles.
Adds the min-release-age configuration option.
Adds npm trust.
Adds per-command config for npm trust.
Adds the --allow-git option to config.
Environment config variable names are now exported for developers to use.
Behavior and default changes 4
The linked install strategy graduates from experimental to stable.
Warns when min-release-age blocks an audit fix.
Supports URL prefix matching when replacing registry hosts.
The user-agent now differentiates GitHub Actions environments.
Fixes and other changes 12
Persistent allow-scripts is no longer exported.
Inert optional dependencies are no longer flagged by strict-allow-scripts.
min-release-age configured in npmrc can coexist with --before.
A value of 0 no longer filters releases, and cross-source precedence is honored.
Preserves min-release-age after flattening.
Reverts exclusivity between prefer-offline and prefer-online, allowing both options to be configured without enforcing mutual exclusion.
Setting an exclusive parameter from the CLI clears its sibling parameters.
Makes prefer-offline and prefer-online exclusive.
Unknown config warnings now include a .npmrc section hint, helping developers locate the relevant configuration section.
Hints are updated to use the CLI paradigm.
Moved config.list to a getter.
npm profile now creates tokens with GAT support.
@npmcli/config 91 changes
Breaking changes 1
The supported Node.js versions are now ^18.17.0 or >=20.5.0.
@npmcli/config 81 changes
Breaking changes 1
@npmcli/config now supports Node.js ^16.14.0 || >=18.0.0.
@npmcli/config 74 changes
Breaking changes 4
The ci-name config has been removed.
The hard-coded hashAlgorithm value is no longer passed through flatOptions.
The hard-coded metrics-registry config has been removed.
The unused tmp config has been removed.
@npmcli/config 42 changes
Breaking changes 1
Support for the log option was removed; developers can no longer configure it.
Fixes and other changes 1
A polynomial regex was corrected.