npm / npm-package-json-lint
npm-package-json-lint
What changed in npm-package-json-lint 9 to 11, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.
3 breaking5 new APIs and options1 performance2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initnpm-package-json-lint 112 changes
Breaking changes 2
The CLI option was removed.
Behavior changes when no targets are provided.
npm-package-json-lint 108 changes
Breaking changes 1
Node 20 support is dropped.
New APIs and options 4
Adds the prefer-provenance rule for linting package.json files.
Adds the prefer-no-bin rule.
Rules for peerDependencies were added, allowing developers to lint peerDependencies in package.json.
A prefer-no-main rule was added for linting package.json.
Performance 1
Replaced globby with minimatch in applyOverrides to fix a severe slowdown when using overrides.
Fixes and other changes 2
Bundles ajv and ajv-errors to avoid cross-version codegen mismatch.
Fixed the path to the package types.
npm-package-json-lint 91 changes
New APIs and options 1
Dependency auditing now supports configurable replacements, letting developers customize how dependencies are handled during auditing.