unstale

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

@unstale/cli on npm

@npmcli/package-json 83 changes

Breaking changes 2

  • The supported Node.js range is now ^22.22.2 || ^24.15.0 || >=26.0.0.

    8.0.0release notes

  • Automatic server.js handling was removed, so scripts.start is no longer set to node server.js when a server.js file exists.

    8.0.0release notes

Behavior and default changes 1

  • The top-level overrides field is now normalized.

    8.0.0release notes

@npmcli/package-json 76 changes

Breaking changes 3

  • fromContent() now requires an object.

    7.0.0release notes

  • The supported Node.js range is now ^20.17.0 || >=22.9.0.

    7.0.0release notes

  • The normalize function now includes a binDir step.

    7.0.0release notes

Security 1

  • Paths discovered through directories.bin are now secured and unixified.

    7.0.0release notes

New APIs and options 1

  • A synchronous normalize function is now available.

    7.0.0release notes

Fixes and other changes 1

  • Expanding directories.bin without a filesystem path no longer causes a crash.

    7.0.3release notes

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

    6.0.0release notes

@npmcli/package-json 51 changes

Breaking changes 1

@npmcli/package-json 44 changes

Breaking changes 1

  • The path parameter is now tied to load rather than the class constructor.

    4.0.0release notes

New APIs and options 3

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

    3.0.0release notes

@npmcli/package-json 21 changes

Breaking changes 1

  • Support for Node 10 and non-LTS versions of Node 12 and Node 14 was dropped.

    2.0.0release notes