domhandler breaking changes
domhandler 6.0.0 (March 17, 2026) is its newest release with breaking changes, 2 of them. The first: Package is now ESM-only in domhandler 6.0.0. Every breaking API change we have recorded in domhandler on npm: 41 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 6.0.1, released March 17, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
domhandler 6.0.0 breaking changes
- Removed
The package no longer ships CommonJS, so code that uses require() must switch to import. github.com - Configuration changed
Node.js versions below 20.19.0 are no longer supported, so upgrade Node.js before using this version. github.com
domhandler 5.0.0 breaking changes
- Removed
Comment.constructor
new Comment() was removed in domhandler 5.0.0 npmjs.com - Removed
Document.constructor
new Document() was removed in domhandler 5.0.0 npmjs.com - Removed
DomHandlerOptions.normalizeWhitespace
The deprecated normalizeWhitespace option was removed in this release, so code that passes it must stop doing so. npmjs.com - Removed
Node.constructor
new Node() was removed in domhandler 5.0.0 npmjs.com - Removed
Text.constructor
new Text() was removed in domhandler 5.0.0 npmjs.com - Behavior changed
Nodes now use tagged unions for node types, which may break TypeScript code that relies on the previous typings. github.com - Signature changed
Comment.nodeType
Was readonly nodeType: number; now readonly nodeType: 8. npmjs.com - Signature changed
Comment.type
Was type: ElementType; now type: ElementType.Comment. npmjs.com - Signature changed
DataNode
Was class DataNode extends Node; now abstract class DataNode extends Node. npmjs.com - Signature changed
DataNode.constructor
Was constructor(type: ElementType.Comment | ElementType.Text | ElementType.Directive, data: string); now constructor(data: string). npmjs.com
And 29 more in this version. Sign up to see every change
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.