domutils breaking changes
domutils 4.0.0 (March 17, 2026) is its newest release with breaking changes, 29 of them. The first: Removed deprecated domhandler re-exports in domutils 4.0.0. Every breaking API change we have recorded in domutils on npm: 61 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 4.1.2, released December 4, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
domutils 4.0.0 breaking changes
- Removed
The package no longer re-exports the deprecated domhandler names, so imports of them will fail. github.com - Removed
The package only loads as an ES module now, so code that uses require() must switch to import. github.com - Removed
Functions that were already deprecated have been removed; code that calls them will fail. github.com - Removed
findOneChild
The deprecated findOneChild function has been removed and calls to it will fail. npmjs.com - Removed
hasChildren
hasChildren was removed in domutils 4.0.0 npmjs.com - Removed
isCDATA
isCDATA was removed in domutils 4.0.0 npmjs.com - Removed
isComment
isComment was removed in domutils 4.0.0 npmjs.com - Removed
isDocument
isDocument was removed in domutils 4.0.0 npmjs.com - Removed
isTag
isTag was removed in domutils 4.0.0 npmjs.com - Removed
isText
isText was removed in domutils 4.0.0 npmjs.com - Configuration changed
The package now requires Node.js 20.19.0 or later, so older Node.js versions are no longer supported. github.com - Signature changed
append
Was function append(elem: ChildNode, next: ChildNode): void; now function append(element: ChildNode, next: ChildNode): void. npmjs.com - Signature changed
existsOne
Was function existsOne(test: (elem: Element) => boolean, nodes: AnyNode[] | ParentNode): boolean; now function existsOne(test: (element: Element) => boolean, nodes: AnyNode[] | ParentNode): boolean. npmjs.com - Signature changed
filter
Was function filter(test: (elem: AnyNode) => boolean, node: AnyNode | AnyNode[], recurse?: boolean, limit?: number): AnyNode[]; now function filter(test: (element: AnyNode) => boolean, node: AnyNode | AnyNode[], recurse?: boolean, limit?... npmjs.com - Signature changed
find
Was function find(test: (elem: AnyNode) => boolean, nodes: AnyNode[] | ParentNode, recurse: boolean, limit: number): AnyNode[]; now function find(test: (element: AnyNode) => boolean, nodes: AnyNode[] | ParentNode, recurse: boolean, limit... npmjs.com - Signature changed
findAll
Was function findAll(test: (elem: Element) => boolean, nodes: AnyNode[] | ParentNode): Element[]; now function findAll(test: (element: Element) => boolean, nodes: AnyNode[] | ParentNode): Element[]. npmjs.com - Signature changed
findOne
Was function findOne(test: (elem: Element) => boolean, nodes: AnyNode[] | ParentNode, recurse?: boolean): Element | null; now function findOne(test: (element: Element) => boolean, nodes: AnyNode[] | ParentNode, recurse?: boolean): Element... npmjs.com - Signature changed
getAttributeValue
Was function getAttributeValue(elem: Element, name: string): string | undefined; now function getAttributeValue(element: Element, name: string): string | undefined. npmjs.com - Signature changed
getChildren
Was function getChildren(elem: AnyNode): ChildNode[]; now function getChildren(element: AnyNode): ChildNode[]. npmjs.com - Signature changed
getFeed
Was function getFeed(doc: AnyNode[]): Feed | null; now function getFeed(document: AnyNode[]): Feed | null. npmjs.com - Signature changed
getName
Was function getName(elem: Element): string; now function getName(element: Element): string. npmjs.com - Signature changed
getParent
Was function getParent(elem: AnyNode): ParentNode | null; now function getParent(element: AnyNode): ParentNode | null. npmjs.com - Signature changed
getSiblings
Was function getSiblings(elem: AnyNode): AnyNode[]; now function getSiblings(element: AnyNode): AnyNode[]. npmjs.com - Signature changed
hasAttrib
Was function hasAttrib(elem: Element, name: string): boolean; now function hasAttrib(element: Element, name: string): boolean. npmjs.com - Signature changed
nextElementSibling
Was function nextElementSibling(elem: AnyNode): Element | null; now function nextElementSibling(element: AnyNode): Element | null. npmjs.com - Signature changed
prepend
Was function prepend(elem: ChildNode, prev: ChildNode): void; now function prepend(element: ChildNode, previous: ChildNode): void. npmjs.com - Signature changed
prevElementSibling
Was function prevElementSibling(elem: AnyNode): Element | null; now function prevElementSibling(element: AnyNode): Element | null. npmjs.com - Signature changed
removeElement
Was function removeElement(elem: ChildNode): void; now function removeElement(element: ChildNode): void. npmjs.com - Signature changed
replaceElement
Was function replaceElement(elem: ChildNode, replacement: ChildNode): void; now function replaceElement(element: ChildNode, replacement: ChildNode): void. npmjs.com
domutils 3.0.0 breaking changes
- Behavior changed
The release adds ESM support and tightens the TypeScript types, so typed code that compiled before may now report type errors. github.com - Signature changed
append
Was function append(elem: Node, next: Node): void; now function append(elem: ChildNode, next: ChildNode): void. npmjs.com - Signature changed
appendChild
Was function appendChild(elem: Element, child: Node): void; now function appendChild(elem: Element, child: ChildNode): void. npmjs.com - Signature changed
compareDocumentPosition
Was function compareDocumentPosition(nodeA: Node, nodeB: Node): number; now function compareDocumentPosition(nodeA: AnyNode, nodeB: AnyNode): number. npmjs.com - Signature changed
existsOne
Was function existsOne(test: (elem: Element) => boolean, nodes: Node[]): boolean; now function existsOne(test: (elem: Element) => boolean, nodes: AnyNode[]): boolean. npmjs.com - Signature changed
filter
Was function filter(test: (elem: Node) => boolean, node: Node | Node[], recurse?: boolean, limit?: number): Node[]; now function filter(test: (elem: AnyNode) => boolean, node: AnyNode | AnyNode[], recurse?: boolean, limit?: number)... npmjs.com - Signature changed
find
Was function find(test: (elem: Node) => boolean, nodes: Node[], recurse: boolean, limit: number): Node[]; now function find(test: (elem: AnyNode) => boolean, nodes: AnyNode[], recurse: boolean, limit: number): AnyNode[]. npmjs.com - Signature changed
findAll
Was function findAll(test: (elem: Element) => boolean, nodes: Node[]): Element[]; now function findAll(test: (elem: Element) => boolean, nodes: AnyNode[]): Element[]. npmjs.com - Signature changed
findOne
Was function findOne(test: (elem: Element) => boolean, nodes: Node[], recurse?: boolean): Element | null; now function findOne(test: (elem: Element) => boolean, nodes: AnyNode[], recurse?: boolean): Element | null. npmjs.com - Signature changed
findOneChild
Was function findOneChild(test: (elem: Node) => boolean, nodes: Node[]): Node | undefined; now function findOneChild<T>(test: (elem: T) => boolean, nodes: T[]): T | undefined. npmjs.com
And 22 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.