yarn htmlparser2 11.0.0
v11.0.0

8 hours ago

Breaking Changes

  • The module is now ESM only #2381
    • CommonJS require() is no longer supported. Use import instead.
    • The minimum Node.js version is now 20.19.0.
  • Dependencies have been bumped to their latest major versions: domhandler v6, domutils v4, domelementtype v3, entities v8.

Features

  • Added WebWritableStream for the Web Streams API, enabling direct piping from fetch() response bodies into the parser #2376

Bug Fixes

  • Comments now accept --!> as a closing sequence per the HTML spec, and <!--> is recognized as an empty comment in HTML mode #2382
  • XML processing instructions (<?xml ... ?>) now require the full ?> closing sequence instead of just > #2382
  • Fixed reset() not clearing isSpecial and sequenceIndex state, which could cause incorrect parsing after reuse #2382
  • Fixed XML comment parsing: <!--> is no longer treated as a complete comment in xmlMode #2383

Other Changes

  • Expanded README with full API reference, parser options, events, and practical examples #2384

New Contributors

Full Changelog: v10.1.0...v11.0.0

Don't miss a new htmlparser2 release

NewReleases is sending notifications on new releases.