# What changed in @npmcli/package-json

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

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

## @npmcli/package-json 8

### Breaking changes

- The supported Node.js range is now ^22.22.2 || ^24.15.0 || >=26.0.0. (8.0.0) — [release notes](https://github.com/npm/package-json/releases/tag/v8.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. (8.0.0) — [release notes](https://github.com/npm/package-json/releases/tag/v8.0.0)

### Behavior and default changes

- The top-level overrides field is now normalized. (8.0.0) — [release notes](https://github.com/npm/package-json/releases/tag/v8.0.0)

## @npmcli/package-json 7

### Breaking changes

- fromContent() now requires an object. (7.0.0) — [release notes](https://github.com/npm/package-json/releases/tag/v7.0.0)
- The supported Node.js range is now ^20.17.0 || >=22.9.0. (7.0.0) — [release notes](https://github.com/npm/package-json/releases/tag/v7.0.0)
- The normalize function now includes a binDir step. (7.0.0) — [release notes](https://github.com/npm/package-json/releases/tag/v7.0.0)

### Security

- Paths discovered through directories.bin are now secured and unixified. (7.0.0) — [release notes](https://github.com/npm/package-json/releases/tag/v7.0.0)

### New APIs and options

- A synchronous normalize function is now available. (7.0.0) — [release notes](https://github.com/npm/package-json/releases/tag/v7.0.0)

### Fixes and other changes

- Expanding directories.bin without a filesystem path no longer causes a crash. (7.0.3) — [release notes](https://github.com/npm/package-json/releases/tag/v7.0.3)

## @npmcli/package-json 6

### Breaking changes

- The supported Node.js range is now ^18.17.0 || >=20.5.0, which may require developers to upgrade Node.js. (6.0.0) — [release notes](https://github.com/npm/package-json/releases/tag/v6.0.0)

## @npmcli/package-json 5

### Breaking changes

- Support for Node.js 14 has been removed. (5.0.0) — [release notes](https://github.com/npm/package-json/releases/tag/v5.0.0)

## @npmcli/package-json 4

### Breaking changes

- The path parameter is now tied to load rather than the class constructor. (4.0.0) — [release notes](https://github.com/npm/package-json/releases/tag/v4.0.0)

### New APIs and options

- Adds a changes array to normalize functions. (4.0.0) — [release notes](https://github.com/npm/package-json/releases/tag/v4.0.0)
- Adds create functionality. (4.0.0) — [release notes](https://github.com/npm/package-json/releases/tag/v4.0.0)
- Adds a fix method. (4.0.0) — [release notes](https://github.com/npm/package-json/releases/tag/v4.0.0)

## @npmcli/package-json 3

### Breaking changes

- The package now supports Node.js versions matching ^14.17.0 || ^16.13.0 || >=18.0.0. (3.0.0) — [release notes](https://github.com/npm/package-json/releases/tag/v3.0.0)

## @npmcli/package-json 2

### Breaking changes

- Support for Node 10 and non-LTS versions of Node 12 and Node 14 was dropped. (2.0.0) — [release notes](https://github.com/npm/package-json/releases/tag/v2.0.0)
