# What changed in prettier-plugin-packagejson

> 3 changes in prettier-plugin-packagejson 2 to 3 from its official release notes, upgrade guides and advisories: 1 breaking. Each one cited. Sources checked 2026-10-27. HTML: https://unstale.sh/npm/prettier-plugin-packagejson/

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

## prettier-plugin-packagejson 3

### Breaking changes

- Support for Prettier v2 was dropped; the plugin only supports Prettier v3. (3.0.0) — [release notes](https://github.com/matzkoh/prettier-plugin-packagejson/releases/tag/v3.0.0)

### Fixes and other changes

- Restores caret ranges for dependencies when formatting package metadata. (3.0.2) — [release notes](https://github.com/matzkoh/prettier-plugin-packagejson/releases/tag/v3.0.2)

## prettier-plugin-packagejson 2

### Tooling

- A type declaration file was added, providing type information for TypeScript consumers. (2.5.21) — [release notes](https://github.com/matzkoh/prettier-plugin-packagejson/releases/tag/v2.5.21)
