# What changed in parse5-htmlparser2-tree-adapter

> 6 changes in parse5-htmlparser2-tree-adapter 7 to 8 from its official release notes, upgrade guides and advisories: 4 breaking, 1 new APIs and options. Each one cited. Sources checked 2026-10-27. HTML: https://unstale.sh/npm/parse5-htmlparser2-tree-adapter/

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

## parse5-htmlparser2-tree-adapter 8

### Breaking changes

- The package is now ESM-only, so projects using it must use ESM. (8.0.0) — [release notes](https://github.com/inikulin/parse5/releases/tag/v8.0.0)

### Performance

- The tokenizer uses String.fromCharCode for BMP characters. (8.0.1) — [release notes](https://github.com/inikulin/parse5/releases/tag/v8.0.1)

## parse5-htmlparser2-tree-adapter 7

### Breaking changes

- The adapter now uses domhandler’s node interface, changing the format of tree nodes; some properties are now getters and setters, and vice versa. (7.0.0) — [release notes](https://github.com/inikulin/parse5/releases/tag/v7.0.0)
- The package is now an ECMAScript Module and is provided as a dual package. (7.0.0) — [release notes](https://github.com/inikulin/parse5/releases/tag/v7.0.0)
- Remove external @types/parse5 packages because parse5 now ships its own types. (7.0.0) — [release notes](https://github.com/inikulin/parse5/releases/tag/v7.0.0)

### New APIs and options

- Hooks for stack events were added to the tree adapter interface. (7.0.0) — [release notes](https://github.com/inikulin/parse5/releases/tag/v7.0.0)
