npm / @npmcli/package-json
@npmcli/package-json
What changed in @npmcli/package-json 2 to 8, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
10 breaking1 security4 new APIs and options1 behavior and defaults1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@npmcli/package-json 83 changes
Breaking changes 2
The supported Node.js range is now ^22.22.2 || ^24.15.0 || >=26.0.0.
Automatic server.js handling was removed, so scripts.start is no longer set to node server.js when a server.js file exists.
Behavior and default changes 1
The top-level overrides field is now normalized.
@npmcli/package-json 76 changes
Breaking changes 3
fromContent() now requires an object.
The supported Node.js range is now ^20.17.0 || >=22.9.0.
The normalize function now includes a binDir step.
Security 1
Paths discovered through directories.bin are now secured and unixified.
New APIs and options 1
A synchronous normalize function is now available.
Fixes and other changes 1
Expanding directories.bin without a filesystem path no longer causes a crash.
@npmcli/package-json 61 changes
Breaking changes 1
The supported Node.js range is now ^18.17.0 || >=20.5.0, which may require developers to upgrade Node.js.
@npmcli/package-json 51 changes
Breaking changes 1
Support for Node.js 14 has been removed.
@npmcli/package-json 44 changes
Breaking changes 1
The path parameter is now tied to load rather than the class constructor.
New APIs and options 3
Adds a changes array to normalize functions.
Adds create functionality.
Adds a fix method.
@npmcli/package-json 31 changes
Breaking changes 1
The package now supports Node.js versions matching ^14.17.0 || ^16.13.0 || >=18.0.0.
@npmcli/package-json 21 changes
Breaking changes 1
Support for Node 10 and non-LTS versions of Node 12 and Node 14 was dropped.