unstale

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

@unstale/cli on npm

@npmcli/config 1114 changes

Breaking changes 10

  • Persistent allow-scripts is no longer exported.

    11.1.0release notes

  • The default changes to none; set it to all or root to install git dependencies.

    11.0.0release notes

  • The default changes to none; set it to all or root to install user-supplied tarball-URL dependencies.

    11.0.0release notes

  • Unknown and abbreviated flags, and single-hyphen multi-character shorthands, now throw instead of warning.

    11.0.0release notes

  • The default license for npm init changes from ISC to an empty string; if unset, the license field is omitted from new packages.

    11.0.0release notes

  • npm now supports Node.js ^22.22.2 || ^24.15.0 || >=26.0.0.

    11.0.0release notes

  • The command is removed.

    11.0.0release notes

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

    11.0.0release notes

  • Unknown configs in .npmrc now throw instead of warning.

    11.0.0release notes

  • The shrinkwrap config alias is removed.

    11.0.0release notes

New APIs and options 1

Behavior and default changes 1

Fixes and other changes 2

@npmcli/config 1028 changes

Security 1

  • Introduces Phase 1 of an opt-in install-script policy.

    10.10.0release notes

New APIs and options 11

  • Adds the min-release-age-exclude configuration option.

    10.11.0release notes

  • private is now an alias for restricted when setting publish access.

    10.10.0release notes

  • Adds the allow-directory configuration option.

    10.9.0release notes

  • Adds the allow-file configuration option.

    10.9.0release notes

  • Adds the allow-remote configuration option.

    10.9.0release notes

  • Adds an audit flag to output sigstore bundles.

    10.8.0release notes

  • Adds the min-release-age configuration option.

    10.7.0release notes

  • Adds npm trust.

    10.7.0release notes

  • Adds per-command config for npm trust.

    10.7.0release notes

  • Adds the --allow-git option to config.

    10.6.0release notes

  • Environment config variable names are now exported for developers to use.

    10.5.0release notes

Behavior and default changes 4

  • The linked install strategy graduates from experimental to stable.

    10.12.0release notes

  • Warns when min-release-age blocks an audit fix.

    10.12.0release notes

  • Supports URL prefix matching when replacing registry hosts.

    10.12.0release notes

  • The user-agent now differentiates GitHub Actions environments.

    10.11.0release notes

Fixes and other changes 12

  • Persistent allow-scripts is no longer exported.

    10.13.0release notes

  • Inert optional dependencies are no longer flagged by strict-allow-scripts.

    10.12.0release notes

  • min-release-age configured in npmrc can coexist with --before.

    10.9.1release notes

  • A value of 0 no longer filters releases, and cross-source precedence is honored.

    10.9.1release notes

  • Preserves min-release-age after flattening.

    10.9.0release notes

  • Reverts exclusivity between prefer-offline and prefer-online, allowing both options to be configured without enforcing mutual exclusion.

    10.8.1release notes

  • Setting an exclusive parameter from the CLI clears its sibling parameters.

    10.8.0release notes

  • Makes prefer-offline and prefer-online exclusive.

    10.8.0release notes

  • Unknown config warnings now include a .npmrc section hint, helping developers locate the relevant configuration section.

    10.7.1release notes

  • Hints are updated to use the CLI paradigm.

    10.4.5release notes

  • Moved config.list to a getter.

    10.4.4release notes

  • npm profile now creates tokens with GAT support.

    10.4.3release notes

@npmcli/config 91 changes

Breaking changes 1

  • The supported Node.js versions are now ^18.17.0 or >=20.5.0.

    9.0.0release notes

@npmcli/config 81 changes

Breaking changes 1

  • @npmcli/config now supports Node.js ^16.14.0 || >=18.0.0.

    8.0.0release notes

@npmcli/config 74 changes

Breaking changes 4

  • The ci-name config has been removed.

    7.0.0release notes

  • The hard-coded hashAlgorithm value is no longer passed through flatOptions.

    7.0.0release notes

  • The hard-coded metrics-registry config has been removed.

    7.0.0release notes

  • The unused tmp config has been removed.

    7.0.0release notes

@npmcli/config 42 changes

Breaking changes 1

  • Support for the log option was removed; developers can no longer configure it.

    4.0.0release notes

Fixes and other changes 1