Packages

parse5

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

Upgrading parse5 From 4.0.0 to 5.0.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 4.0.0Latest8.1.0
The note of 5.0.0 lists no breaking change or deprecation, which is rare for a major.
  1. 4.0.0yours
  2. 5.0.0target
?
changes to make
0
advisories fixed
0
new
0
fixes
7 other lines we could not sort, mostly version bumps
  • 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).

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

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

    5.0.0
  • Added: endLine and endCol location info properties.

    5.0.0
  • Added: scriptingEnabled flag to the ParserOptions which controls how <noscript> tags are handled by the parser. (GH #192).

    5.0.0
  • 5.0.0
  • Removed (breaking): parse5 no longer ship TypeScript definitions. Existing TypeScript definitions have been moved to DefinitelyTyped repo. Please, track the PR in the DefinitelyTyped repo for the updates.

    5.0.0