Releases: inikulin/parse5
Releases · inikulin/parse5
v4.0.0
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
v3.0.2
v3.0.1
v3.0.0
- 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 withdocument.mode
property which can have
'no-quirks'
,'quirks'
and'limited-quirks'
values. Tree adaptersetQuirksMode
andisQuirksMode
methods were replaced withsetDocumentMode
andgetDocumentMode
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
v2.2.2
- 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
- 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
-
SAXParser (by @RReverser)
-
Latest spec changes
-
Fixed: Element nesting corrections now take namespaces into consideration.