Skip to content

Releases: inikulin/parse5

v4.0.0

13 Jan 20:40
Compare
Choose a tag to compare

This is a major release that delivers few minor (but breaking) changes to workaround recently appeared issues with TypeScript Node.js typings versioning and usage of parse5 in environments that are distinct from Node.js (see #235 for the details).

  • 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).

v3.0.3

05 Nov 01:01
Compare
Choose a tag to compare
  • Fixed: Loosen the dependency version of @types/node (by @gfx).
  • Fixed: Incorrect AST generated if empty string fed to ParserStream (GH #195) (by @stevenvachon).

v3.0.2

25 Feb 20:07
Compare
Choose a tag to compare
  • Fixed: location.startTag is not available if end tag is missing (GH #181).

v3.0.1

16 Dec 09:48
Compare
Choose a tag to compare
  • Fixed: MarkupData.Location.col description in TypeScript definition file (GH #170).

v3.0.0

05 Dec 14:52
Compare
Choose a tag to compare
  • Added: parse5 now ships with TypeScript definitions from which new documentation website is generated (GH #125).
  • Added: PlainTextConversionStream (GH #135).
  • Updated: Significantly reduced initial memory consumption (GH #52).
  • Updated (breaking): Added support for limited quirks mode. document.quirksMode property was replaced with document.mode property which can have
    'no-quirks', 'quirks' and 'limited-quirks' values. Tree adapter setQuirksMode and isQuirksMode methods were replaced with setDocumentMode and getDocumentMode methods (GH #83).
  • Updated (breaking): AST collections (e.g. attributes dictionary) don't have prototype anymore (GH #119).
  • Updated (breaking): Doctype now always serialized as <!DOCTYPE html> as per spec (GH #137).
  • Fixed: Incorrect line for __location.endTag when the start tag contains newlines (GH #166) (by @webdesus).

v2.2.3

19 Oct 12:16
Compare
Choose a tag to compare
  • Fixed: Fixed incorrect LocationInfo.endOffset for non-implicitly closed elements (refix for GH #109) (by @wooorm).

v2.2.2

29 Sep 13:59
Compare
Choose a tag to compare
  • 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)

v2.2.1

01 Sep 11:16
Compare
Choose a tag to compare
  • 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 (by @ChadKillingsworth).

v2.2.0

11 Aug 11:34
Compare
Choose a tag to compare
  • SAXParser (by @RReverser)

    • Fixed: Handling of \n in <pre>, <textarea> and <listing>.
    • Fixed: Tag names and attribute names adjustment in foreign content (GH [#99] (#99)).
    • Fixed: Handling of <image>.
  • Latest spec changes

    • Updated: <isindex> now don't have special handling (GH #122).
    • Updated: Adoption agency algorithm now preserves lexical order of text nodes (GH #129).
    • Updated: <menuitem> now behaves like <option>.
  • Fixed: Element nesting corrections now take namespaces into consideration.

v2.1.5

27 Jan 13:31
Compare
Choose a tag to compare
  • Fixed: ParserStream accidentally hangs up on scripts (GH #101).