parse5
8.1.0 · 1 Nov 2026MIT227.5M / weekRepositoryHomepagenpmAtom feed
Upgrading parse5 From 1.5.1 to 2.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 1
- change to make
- 0
- advisories fixed
- 3
- new
- 0
- fixes
Before you upgrade
Tick each one off as you go- breaking2.0.0
Release by release
- breaking
Removed (breaking):
decodeHtmlEntitiesandencodeHtmlEntitiesoptions. (GH #75). - new
Add (breaking): parse5.parse() and parse5.parseFragment() methods as replacement for the
Parserclass. - new
Add (breaking): parse5.serialize() method as replacement for the
Serializerclass. - new
Add (breaking): TreeAdapter.setTemplateContent() and TreeAdapter.getTemplateContent() methods. (GH #78).
- breaking
8 other lines we could not sort, mostly version bumps
- 2.0.0
Added: ParserStream with the scripting support. (GH #26).
- 2.0.0
Added: Line/column location info. (GH #67).
- 2.0.0
Update (breaking): Location info properties
startandendwere renamed tostartOffsetandendOffsetrespectively. - 2.0.0
Update (breaking):
SimpleApiParserwas renamed to SAXParser. - 2.0.0
Update (breaking): SAXParser handler subscription is done via events now.
- 2.0.0
Added: SAXParser.stop(). (GH #47).
- 2.0.0
Updated: Parsing algorithm was updated with the latest HTML spec changes.
- 2.0.0
Update (breaking):
defaulttree adapter now stores<template>content intemplate.contentproperty instead oftemplate.childNodes[0].