# What changed in postcss-html

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

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

## postcss-html 2

### Breaking changes

- Deep imports are restricted, limiting which package internals consumers can import. (2.0.0) — [release notes](https://github.com/ota-meshi/postcss-html/releases/tag/v2.0.0)
- postcss moved to peerDependencies, changing how consumers declare and install it. (2.0.0) — [release notes](https://github.com/ota-meshi/postcss-html/releases/tag/v2.0.0)
- The package migrated to ESM, changing its module format for consumers. (2.0.0) — [release notes](https://github.com/ota-meshi/postcss-html/releases/tag/v2.0.0)

## postcss-html 1

### Fixes and other changes

- Fixes a crash in toJSON() caused by the document property. (1.8.1) — [release notes](https://github.com/ota-meshi/postcss-html/releases/tag/v1.8.1)
