Skip to content

4.0.0

Choose a tag to compare

@adrai adrai released this 22 Jul 21:11
· 1 commit to master since this release

First release from the package's new maintenance home. Functionally builds on 3.1.0; see CHANGELOG.md for the full picture including breaking changes and migration notes.

Breaking: exports map (no deep dist/ imports), boolean attributes are null in the AST and stringify bare, doctype parses as a void node, <script>/<style> content is raw text.

Added: allowedTags parse option, named exports, rewritten TypeScript types (discriminated union incl. CommentNode), zero runtime dependencies, CI with a react-i18next integration gate.

Fixed: comments containing >, unquoted attribute values containing =, double-quote escaping in stringify, and parse no longer mutates the caller's options object.