# What changed in npm-package-json-lint

> 11 changes in npm-package-json-lint 9 to 11 from its official release notes, upgrade guides and advisories: 3 breaking, 5 new APIs and options. Each one cited. Sources checked 2026-10-19. HTML: https://unstale.sh/npm/npm-package-json-lint/

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

## npm-package-json-lint 11

### Breaking changes

- The CLI option was removed. (11.0.0) — [release notes](https://github.com/tclindner/npm-package-json-lint/releases/tag/v11.0.0)
- Behavior changes when no targets are provided. (11.0.0) — [release notes](https://github.com/tclindner/npm-package-json-lint/releases/tag/v11.0.0)

## npm-package-json-lint 10

### Breaking changes

- Node 20 support is dropped. (10.0.0) — [release notes](https://github.com/tclindner/npm-package-json-lint/releases/tag/v10.0.0)

### New APIs and options

- Adds the prefer-provenance rule for linting package.json files. (10.4.0) — [release notes](https://github.com/tclindner/npm-package-json-lint/releases/tag/v10.4.0)
- Adds the prefer-no-bin rule. (10.2.0) — [release notes](https://github.com/tclindner/npm-package-json-lint/releases/tag/v10.2.0)
- Rules for peerDependencies were added, allowing developers to lint peerDependencies in package.json. (10.1.0) — [release notes](https://github.com/tclindner/npm-package-json-lint/releases/tag/v10.1.0)
- A prefer-no-main rule was added for linting package.json. (10.1.0) — [release notes](https://github.com/tclindner/npm-package-json-lint/releases/tag/v10.1.0)

### Performance

- Replaced globby with minimatch in applyOverrides to fix a severe slowdown when using overrides. (10.2.2) — [release notes](https://github.com/tclindner/npm-package-json-lint/releases/tag/v10.2.2)

### Fixes and other changes

- Bundles ajv and ajv-errors to avoid cross-version codegen mismatch. (10.5.1) — [release notes](https://github.com/tclindner/npm-package-json-lint/releases/tag/v10.5.1)
- Fixed the path to the package types. (10.4.1) — [release notes](https://github.com/tclindner/npm-package-json-lint/releases/tag/v10.4.1)

## npm-package-json-lint 9

### New APIs and options

- Dependency auditing now supports configurable replacements, letting developers customize how dependencies are handled during auditing. (9.1.0) — [release notes](https://github.com/tclindner/npm-package-json-lint/releases/tag/v9.1.0)
