# What changed in @npmcli/config

> 50 changes in @npmcli/config 4 to 11 from its official release notes, upgrade guides and advisories: 17 breaking, 1 security, 12 new APIs and options. Each one cited. Sources checked 2026-11-20. HTML: https://unstale.sh/npm/@npmcli/config/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @npmcli/config 11

### Breaking changes

- Persistent allow-scripts is no longer exported. (11.1.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v11.1.0)
- The default changes to `none`; set it to `all` or `root` to install git dependencies. (11.0.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v11.0.0)
- The default changes to `none`; set it to `all` or `root` to install user-supplied tarball-URL dependencies. (11.0.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v11.0.0)
- Unknown and abbreviated flags, and single-hyphen multi-character shorthands, now throw instead of warning. (11.0.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v11.0.0)
- 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.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v11.0.0)
- `npm` now supports Node.js `^22.22.2 || ^24.15.0 || >=26.0.0`. (11.0.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v11.0.0)
- The command is removed. (11.0.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v11.0.0)
- 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.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v11.0.0)
- Unknown configs in `.npmrc` now throw instead of warning. (11.0.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v11.0.0)
- The `shrinkwrap` config alias is removed. (11.0.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v11.0.0)

### New APIs and options

- Supports read-write-stage-only granular access tokens. (10.13.0, 11.1.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v11.1.0), [release notes](https://github.com/npm/cli/releases/tag/config-v10.13.0)

### Behavior and default changes

- The dist-tag command supports OIDC authentication. (10.14.0, 11.2.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v11.2.0), [release notes](https://github.com/npm/cli/releases/tag/config-v10.14.0)

### Fixes and other changes

- Disconnected orphans are skipped in install script checks. (11.2.1) — [release notes](https://github.com/npm/cli/releases/tag/config-v11.2.1)
- A provenance-file takes precedence over OIDC auto-generated provenance. (10.13.0, 11.1.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v11.1.0), [release notes](https://github.com/npm/cli/releases/tag/config-v10.13.0)

## @npmcli/config 10

### Security

- Introduces Phase 1 of an opt-in install-script policy. (10.10.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.10.0)

### New APIs and options

- Adds the min-release-age-exclude configuration option. (10.11.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.11.0)
- private is now an alias for restricted when setting publish access. (10.10.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.10.0)
- Adds the allow-directory configuration option. (10.9.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.9.0)
- Adds the allow-file configuration option. (10.9.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.9.0)
- Adds the allow-remote configuration option. (10.9.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.9.0)
- Adds an audit flag to output sigstore bundles. (10.8.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.8.0)
- Adds the min-release-age configuration option. (10.7.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.7.0)
- Adds npm trust. (10.7.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.7.0)
- Adds per-command config for npm trust. (10.7.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.7.0)
- Adds the --allow-git option to config. (10.6.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.6.0)
- Environment config variable names are now exported for developers to use. (10.5.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.5.0)

### Behavior and default changes

- The linked install strategy graduates from experimental to stable. (10.12.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.12.0)
- Warns when min-release-age blocks an audit fix. (10.12.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.12.0)
- Supports URL prefix matching when replacing registry hosts. (10.12.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.12.0)
- The user-agent now differentiates GitHub Actions environments. (10.11.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.11.0)

### Fixes and other changes

- Persistent allow-scripts is no longer exported. (10.13.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.13.0)
- Inert optional dependencies are no longer flagged by strict-allow-scripts. (10.12.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.12.0)
- min-release-age configured in npmrc can coexist with --before. (10.9.1) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.9.1)
- A value of 0 no longer filters releases, and cross-source precedence is honored. (10.9.1) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.9.1)
- Preserves min-release-age after flattening. (10.9.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.9.0)
- Reverts exclusivity between prefer-offline and prefer-online, allowing both options to be configured without enforcing mutual exclusion. (10.8.1) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.8.1)
- Setting an exclusive parameter from the CLI clears its sibling parameters. (10.8.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.8.0)
- Makes prefer-offline and prefer-online exclusive. (10.8.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.8.0)
- Unknown config warnings now include a .npmrc section hint, helping developers locate the relevant configuration section. (10.7.1) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.7.1)
- Hints are updated to use the CLI paradigm. (10.4.5) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.4.5)
- Moved config.list to a getter. (10.4.4) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.4.4)
- npm profile now creates tokens with GAT support. (10.4.3) — [release notes](https://github.com/npm/cli/releases/tag/config-v10.4.3)

## @npmcli/config 9

### Breaking changes

- The supported Node.js versions are now ^18.17.0 or >=20.5.0. (9.0.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v9.0.0)

## @npmcli/config 8

### Breaking changes

- @npmcli/config now supports Node.js ^16.14.0 || >=18.0.0. (8.0.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v8.0.0)

## @npmcli/config 7

### Breaking changes

- The ci-name config has been removed. (7.0.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v7.0.0)
- The hard-coded hashAlgorithm value is no longer passed through flatOptions. (7.0.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v7.0.0)
- The hard-coded metrics-registry config has been removed. (7.0.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v7.0.0)
- The unused tmp config has been removed. (7.0.0) — [release notes](https://github.com/npm/cli/releases/tag/config-v7.0.0)

## @npmcli/config 4

### Breaking changes

- Support for the log option was removed; developers can no longer configure it. (4.0.0) — [release notes](https://github.com/npm/cli/blob/HEAD/workspaces/config/CHANGELOG.md)

### Fixes and other changes

- A polynomial regex was corrected. (4.0.0) — [release notes](https://github.com/npm/cli/blob/HEAD/workspaces/config/CHANGELOG.md)
