parse5 breaking changes
Updated December 4, 2026
On this page
Latest version 8.1.1, released November 7, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 7.0.0 to 8.0.0: 1 breaking change in 1 version.
- From 2.0.0 to 8.0.0: 251 breaking changes in 5 versions.
parse5 8.0.0 breaking changes
- Configuration changed
parse5 8.0.0 is published as ESM only, so code that loads it with require() must switch to import. github.com
parse5 7.0.0 breaking changes
- Removed
Deep imports into parse5 internals will break; import what you need from the main package instead. github.com - Removed
AttributesLocation
AttributesLocation was removed in parse5 7.0.0 npmjs.com - Removed
ChildNode
ChildNode was removed in parse5 7.0.0 npmjs.com - Removed
CommentNode
CommentNode was removed in parse5 7.0.0 npmjs.com - Removed
Document
Document was removed in parse5 7.0.0 npmjs.com - Removed
DocumentFragment
DocumentFragment was removed in parse5 7.0.0 npmjs.com - Removed
DocumentMode
DocumentMode was removed in parse5 7.0.0 npmjs.com - Removed
DocumentType
DocumentType was removed in parse5 7.0.0 npmjs.com - Removed
Element
Element was removed in parse5 7.0.0 npmjs.com - Removed
ElementLocation
ElementLocation was removed in parse5 7.0.0 npmjs.com
And 69 more in this version. Sign up to see every change
parse5 6.0.0 breaking changes
- Removed
DefaultTreeChildNode
DefaultTreeChildNode was removed in parse5 6.0.0 npmjs.com - Removed
DefaultTreeCommentNode
DefaultTreeCommentNode was removed in parse5 6.0.0 npmjs.com - Removed
DefaultTreeDocument
DefaultTreeDocument was removed in parse5 6.0.0 npmjs.com - Removed
DefaultTreeDocumentFragment
DefaultTreeDocumentFragment was removed in parse5 6.0.0 npmjs.com - Removed
DefaultTreeDocumentType
DefaultTreeDocumentType was removed in parse5 6.0.0 npmjs.com - Removed
DefaultTreeElement
DefaultTreeElement was removed in parse5 6.0.0 npmjs.com - Removed
DefaultTreeNode
DefaultTreeNode was removed in parse5 6.0.0 npmjs.com - Removed
DefaultTreeParentNode
DefaultTreeParentNode was removed in parse5 6.0.0 npmjs.com - Removed
DefaultTreeTextNode
DefaultTreeTextNode was removed in parse5 6.0.0 npmjs.com - Signature changed
Attribute.namespace
Was namespace?: string; now namespace?: string | undefined. npmjs.com
And 54 more in this version. Sign up to see every change
parse5 5.0.0 breaking changes
- Removed
Functionality beyond basic parsing now ships in separate packages, so the parse5 package contains only basic functionality. Install the separate packages for the features you use. github.com - Removed
parse5 no longer ships TypeScript definitions; they moved to the DefinitelyTyped repo. Install the separate type definitions to keep typings. github.com - Removed
AST
AST was removed in parse5 5.0.0 npmjs.com - Removed
MarkupData
MarkupData was removed in parse5 5.0.0 npmjs.com - Removed
Options
Options was removed in parse5 5.0.0 npmjs.com - Removed
ParserStream
ParserStream was removed in parse5 5.0.0 npmjs.com - Removed
PlainTextConversionStream
PlainTextConversionStream was removed in parse5 5.0.0 npmjs.com - Removed
SAXParser
SAXParser now passes a token object to event handlers instead of separate arguments. Update handler signatures. npmjs.com - Removed
SerializerStream
SerializerStream was removed in parse5 5.0.0 npmjs.com - Removed
treeAdapters
treeAdapters was removed in parse5 5.0.0 npmjs.com
And 41 more in this version. Sign up to see every change
parse5 3.0.0 breaking changes
- Removed
ASTAttribute
ASTAttribute was removed in parse5 3.0.0 npmjs.com - Removed
ASTNode
ASTNode was removed in parse5 3.0.0 npmjs.com - Removed
Attribute
Attribute was removed in parse5 3.0.0 npmjs.com - Removed
AttributesLocationInfo
AttributesLocationInfo was removed in parse5 3.0.0 npmjs.com - Removed
ElementLocationInfo
ElementLocationInfo was removed in parse5 3.0.0 npmjs.com - Removed
LocationInfo
LocationInfo was removed in parse5 3.0.0 npmjs.com - Removed
StartTagLocationInfo
StartTagLocationInfo was removed in parse5 3.0.0 npmjs.com - Removed
TreeAdapter.isQuirksMode
The tree adapter method isQuirksMode was replaced with getDocumentMode. Update custom tree adapters and calls to use the new name. npmjs.com - Removed
TreeAdapter.setQuirksMode
The tree adapter method setQuirksMode was replaced with setDocumentMode. Update custom tree adapters and calls to use the new name. npmjs.com - Renamed
document.quirksMode
The document.quirksMode property was replaced with document.mode, which can be 'no-quirks', 'quirks' or 'limited-quirks'. Read document.mode instead. github.com
And 46 more in this version. Sign up to see every change
parse5 2.0.0 breaking changes
- Removed
decodeHtmlEntities
The decodeHtmlEntities option was removed. github.com - Removed
encodeHtmlEntities
The encodeHtmlEntities option was removed. github.com - Removed
Parser
The Parser class is replaced by parse5.parse() and parse5.parseFragment(). Use those functions instead. github.com - Removed
Serializer
The Serializer class is replaced by parse5.serialize(). Use that function instead. github.com - Renamed
SimpleApiParser
SimpleApiParser was renamed to SAXParser. Use SAXParser instead. github.com - Behavior changed
SAXParser
SAXParser is now a transform stream. Code relying on its previous interface must be updated. github.com - Behavior changed
TreeAdapter.setTemplateContent
TreeAdapter.setTemplateContent() and TreeAdapter.getTemplateContent() were added as part of the tree adapter change for template content. github.com - Signature changed
parse5.parse
The Parser class is replaced by parse5.parse() and parse5.parseFragment(). Code using the Parser class must switch to these functions. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.