unstale

npm / html5parser

html5parser

What changed in html5parser 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-24.

5 breaking1 new APIs and options1 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.8 on npm

html5parser 37 changes

Breaking changes 5

  • Generated distribution files are now named index.* instead of html5parser.*.

    3.0.0release notes

  • The package is now ESM-first and uses type: "module"; CommonJS consumers may need to update their imports.

    3.0.0release notes

  • Adds explicit package exports, so deep-import consumers may need to update their imports.

    3.0.0release notes

  • Removes the unsafe safeHtml API from core; HTML/CSS sanitization should be handled by a dedicated sanitizer.

    3.0.0release notes

  • Removes unsafe style handling together with the old safeHtml API.

    3.0.0release notes

New APIs and options 1

  • Implements RCDATA, RAWTEXT, script data, noscript with scriptingEnabled, and plaintext-until-EOF parsing modes.

    3.0.0release notes

Fixes and other changes 1

  • Completes void element handling, including legacy void-like tags and parser-specific doctype and comment node names.

    3.0.0release notes