Packages

parse5

8.1.0 · 1 Nov 2026MIT227.5M / weekRepositoryHomepagenpmAtom feed

Your version

61 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 8.x · latest line
  2. 8.1.0

    1 Nov 2026
    • Expose element creation context to tree adapters

    • Treat numeric character reference CR as whitespace

    • parser: Match only HTML elements in the "any other end tag" step

  3. 8.0.1

    19 Apr 2026
    • tokenizer: Use String.fromCharCode for BMP characters

    • Use Uint8Array bitmaps for faster tag ID lookups

    • Revert "perf: use Uint8Array bitmaps for faster tag ID lookups"

  4. 8.0.0

    9 Jul 2025
    • Switch to ESM-only

  5. 7.x
  6. 7.3.0

    22 Apr 2025
    • Bump dependencies

    • Fix broken links to documentation

    • Account for undefined in element stack

  7. 7.2.1

    28 Oct 2024
    • Bump dependencies

    • Export tree adapter types as namespace to support TS4.x

  8. 7.2.0

    12 Oct 2024
    • Bump dependencies

    • parser: Support search element

    • parse5: Change parser/tokenizer methods to be protected

  9. 7.1.2

    20 Nov 2022
    • Export ERR as ErrorCodes

    • Properly handle CR when peeking

    • Add CJS build of parser-stream

  10. 7.1.1

    2 Sep 2022
  11. 7.1.0

    2 Sep 2022
    • parse5: Use string types for node names

    • parser: Have </button> close <p>

    • Added coverage reporting

  12. 7.0.0

    20 Apr 2022
    • breaking

      parse5 was caught up with the HTML spec, and parsing results might differ in edge-cases (#442, #451)

    • breaking

      The parse5-serializer-stream package was removed #481

    • breaking

      The rewriting stream now splits very long text sections (#434) and doesn’t escape text in special tags anymore (#434). If you worked around these issues before, you might have to update your code.

  13. 6.x
  14. 6.0.1

    24 Jul 2020
    • Fixed: Handling of self-closing <hr> tags

    • Fixed: Broken link in TreeAdapter document (GH #317)

    • Fixed: SAXParser example (GH #316)

  15. 6.0.0

    15 Apr 2020
    • Added (breaking): Tree adapter interface now has updateNodeSourceCodeLocation method which enables usage of custom location info formats (GH #314)

  16. 5.x
  17. 5.1.1

    6 Nov 2019
    • Fixed: Serialization of attributes in non-standard namespaces

    • Fixed: Quirks and limited-quirks mode detection by doctype

  18. 5.1.0

    13 Aug 2018
    • Fixed: Location info for text events in SAXParser and RewritingStream now contains
      correct endCol and endLine covering all concatenated raw tokens (GH #266).

    • Fixed: SAXParser and RewritingStream now flush last buffered chunk when calling .end() with
      no parameters (GH #271).

    • Updated (breaking): ParserStream, SAXParser and RewritingStream no longer assume that
      each binary chunk is a valid finished UTF-8 chunk, and instead accept only decoded strings (GH #269).

  19. 5.0.0

    23 May 2018
    • Updated (breaking): source code location now inserted by tree adapter, so tree adapter developers have control over location info property name. Tree adapters should implement setNodeSourceCodeLocation and getNodeSourceCodeLocation methods. Location info property name added by currently implemented tree adapters has been renamed from __location to sourceCodeLocation (GH #189).

    • Updated (breaking): Location info line and col properties have been renamed to startLine and
      startCol
      respectively.

    • Updated (breaking): SAXParser now passes token objects to event handlers instead of separate arguments. See SAXParser documentation for more info.
      (GH #247).

  20. 4.x
  21. 4.0.0

    13 Jan 2018
    • Updated (breaking): TypeScript were disabled by default. See TypeScript definitions section for the details on how to enable them.

    • Updated: API that depends on Node.js specific (namely ParserStream, PlainTextConversionStream, SerializerStream, SAXParser) is now lazily loaded. That enables bundling of the basic functionality for other platforms (e.g. for browsers via webpack).

  22. 3.x
  23. 3.0.3

    5 Nov 2017
    • Fixed: Loosen the dependency version of @types/node

    • Fixed: Incorrect AST generated if empty string fed to ParserStream (GH #195)

  24. 3.0.2

    25 Feb 2017
    • Fixed: location.startTag is not available if end tag is missing (GH #181).

  25. 3.0.1

    16 Dec 2016
    • Fixed: MarkupData.Location.col description in TypeScript definition file (GH #170).

  26. 3.0.0

    5 Dec 2016
  27. 2.x
  28. 2.2.3

    19 Oct 2016
    • Fixed: Fixed incorrect LocationInfo.endOffset for non-implicitly closed elements (refix for GH #109)

  29. 2.2.2

    29 Sep 2016
    • Fixed: Incorrect location info for text in SAXParser (GH #153).

    • Fixed: Incorrect LocationInfo.endOffset for implicitly closed <p> element (GH #109).

    • Fixed: Infinite input data buffering in streaming parsers. Now parsers try to not buffer more than 64K of input data. However, there are still some edge cases left that will lead to significant memory consumption, but they are quite exotic and extremely rare in the wild (GH #102, GH #130)

  30. 2.2.1

    1 Sep 2016
    • Fixed: SAXParser HTML integration point handling for adjustable SVG tags.

    • Fixed: SAXParser now adjust SVG tag names for end tags.

    • Fixed: Location info line calculation on tokenizer character unconsumption

  31. 2.2.0

    11 Aug 2016
    • SAXParser

    • Latest spec changes

    • Fixed: Element nesting corrections now take namespaces into consideration.

  32. 2.1.5

    27 Jan 2016
    • Fixed: ParserStream accidentally hangs up on scripts (GH #101).

  33. 2.1.4

    26 Jan 2016
    • Fixed: Keep ParserStream sync for the inline scripts (GH #98 follow up).

  34. 2.1.3

    19 Jan 2016
    • Fixed: Synchronously calling resume() leads to crash (GH #98).

  35. 2.1.2

    15 Jan 2016
    • Fixed: SAX parser silently exits on big files (GH #97).

  36. 2.1.1

    14 Jan 2016
    • Fixed: location info not attached for empty attributes (GH #96)

  37. 2.1.0

    5 Jan 2016
    • Added: location info for attributes (GH #43)

    • Fixed: parseFragment with locationInfo regression when parsing <template>(GH #90)

  38. 2.0.2

    12 Dec 2015
    • Fixed: yet another case of incorrect parseFragment arguments fallback (GH #84).

  39. 2.0.1

    11 Dec 2015
    • Fixed: parseFragment arguments processing (GH #82).

  40. 2.0.0

    7 Dec 2015
  41. 1.x
  42. 1.5.1

    28 Nov 2015
    • Fixed: Qualified tag name emission in Serializer (GH #79).

  43. 1.5.0

    24 Jun 2015
    • Added: Location info for the element start and end tags

  44. 1.4.2

    8 Apr 2015
    • Fixed: htmlparser2 tree adapter DocumentType.data property rendering (GH #45).

  45. 1.4.1

    25 Feb 2015
    • Fixed: Location info handling for the implicitly generated <html> and <body> elements (GH #44).

  46. 1.4.0

    24 Feb 2015
  47. 1.3.2

    3 Feb 2015
    • Fixed: <form> processing in <template> (GH #40).

  48. 1.3.1

    21 Jan 2015
    • Fixed: text node in <template> serialization problem with custom tree adapter (GH #38).

  49. 1.3.0

    24 Dec 2014
    • Added: Serializer encodeHtmlEntities option.

    • Added: <template> support

    • parseFragment now uses <template> as default contextElement. This leads to the more "forgiving" parsing manner.

  50. 1.2.0

    6 Nov 2014
  51. 1.1.6

    18 Oct 2014
    • Fixed: apply latest changes to the htmlparser2 tree format (DOM Level1 node emulation).

  52. 1.1.5

    18 Oct 2014
    • Added: jsdom-specific parser with scripting support. Undocumented for jsdom internal use only.

  53. 1.1.4

    18 Sep 2014
    • Added: logo

    • Fixed: use fake document element for fragment parsing (required by jsdom).

  54. 1.1.3

    8 Sep 2014
    • Development files (e.g. .travis.yml, .editorconfig) are removed from NPM package.

  55. 1.1.2

    19 Aug 2014
    • Fixed: crash on Linux due to upper-case leading character in module name used in require().

  56. 1.1.1

    18 Aug 2014
    • Fixed: new line serialization in <pre>.

    • Fixed: SYSTEM-only DOCTYPE serialization.

  57. 1.0.1 – 1.1.02 releases without a noteShow each