npm / parse5-htmlparser2-tree-adapter
parse5-htmlparser2-tree-adapter
What changed in parse5-htmlparser2-tree-adapter 7 to 8, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-27.
4 breaking1 new APIs and options1 performance
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initparse5-htmlparser2-tree-adapter 82 changes
Breaking changes 1
The package is now ESM-only, so projects using it must use ESM.
Performance 1
The tokenizer uses String.fromCharCode for BMP characters.
parse5-htmlparser2-tree-adapter 74 changes
Breaking changes 3
The adapter now uses domhandler’s node interface, changing the format of tree nodes; some properties are now getters and setters, and vice versa.
The package is now an ECMAScript Module and is provided as a dual package.
Remove external @types/parse5 packages because parse5 now ships its own types.
New APIs and options 1
Hooks for stack events were added to the tree adapter interface.