---
title: "domutils 4.0.0 Breaking Changes on npm | Since.dev"
description: "What each domutils release removed, renamed or changed: 61 breaking changes in 2 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/domutils
last_updated: 2026-12-04
---

# 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

Latest version `4.1.2`, released December 4, 2026. [Source repository](https://github.com/fb55/domutils)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [3.0.0](#v-3-0-0) to [4.0.0](#v-4-0-0): 29 breaking changes in 1 version.

## domutils 4.0.0 breaking changes

domutils 4.0.0, released March 17, 2026: 29 breaking changes.

- **Removed**  

The package no longer re-exports the deprecated domhandler names, so imports of them will fail. [github.com](https://github.com/fb55/domutils/commit/3591b5427812cfe1476dcd3c3c6bd886fd6b231f)
- **Removed**  

The package only loads as an ES module now, so code that uses require() must switch to import. [github.com](https://github.com/fb55/domutils/releases/tag/v4.0.0)
- **Removed**  

Functions that were already deprecated have been removed; code that calls them will fail. [github.com](https://github.com/fb55/domutils/releases/tag/v4.0.0)
- **Removed** `findOneChild`  

The deprecated findOneChild function has been removed and calls to it will fail. [npmjs.com](https://www.npmjs.com/package/domutils/v/4.0.0)
- **Removed** `hasChildren`  

hasChildren was removed in domutils 4.0.0 [npmjs.com](https://www.npmjs.com/package/domutils/v/4.0.0)
- **Removed** `isCDATA`  

isCDATA was removed in domutils 4.0.0 [npmjs.com](https://www.npmjs.com/package/domutils/v/4.0.0)
- **Removed** `isComment`  

isComment was removed in domutils 4.0.0 [npmjs.com](https://www.npmjs.com/package/domutils/v/4.0.0)
- **Removed** `isDocument`  

isDocument was removed in domutils 4.0.0 [npmjs.com](https://www.npmjs.com/package/domutils/v/4.0.0)
- **Removed** `isTag`  

isTag was removed in domutils 4.0.0 [npmjs.com](https://www.npmjs.com/package/domutils/v/4.0.0)
- **Removed** `isText`  

isText was removed in domutils 4.0.0 [npmjs.com](https://www.npmjs.com/package/domutils/v/4.0.0)
- **Configuration changed**  

The package now requires Node.js 20.19.0 or later, so older Node.js versions are no longer supported. [github.com](https://github.com/fb55/domutils/commit/3591b5427812cfe1476dcd3c3c6bd886fd6b231f)
- **Signature changed** `append`  

Was function append(elem: ChildNode, next: ChildNode): void; now function append(element: ChildNode, next: ChildNode): void. [npmjs.com](https://www.npmjs.com/package/domutils/v/4.0.0)
- **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](https://www.npmjs.com/package/domutils/v/4.0.0)
- **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](https://www.npmjs.com/package/domutils/v/4.0.0)
- **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](https://www.npmjs.com/package/domutils/v/4.0.0)
- **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](https://www.npmjs.com/package/domutils/v/4.0.0)
- **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](https://www.npmjs.com/package/domutils/v/4.0.0)
- **Signature changed** `getAttributeValue`  

Was function getAttributeValue(elem: Element, name: string): string | undefined; now function getAttributeValue(element: Element, name: string): string | undefined. [npmjs.com](https://www.npmjs.com/package/domutils/v/4.0.0)
- **Signature changed** `getChildren`  

Was function getChildren(elem: AnyNode): ChildNode\[\]; now function getChildren(element: AnyNode): ChildNode\[\]. [npmjs.com](https://www.npmjs.com/package/domutils/v/4.0.0)
- **Signature changed** `getFeed`  

Was function getFeed(doc: AnyNode\[\]): Feed | null; now function getFeed(document: AnyNode\[\]): Feed | null. [npmjs.com](https://www.npmjs.com/package/domutils/v/4.0.0)
- **Signature changed** `getName`  

Was function getName(elem: Element): string; now function getName(element: Element): string. [npmjs.com](https://www.npmjs.com/package/domutils/v/4.0.0)
- **Signature changed** `getParent`  

Was function getParent(elem: AnyNode): ParentNode | null; now function getParent(element: AnyNode): ParentNode | null. [npmjs.com](https://www.npmjs.com/package/domutils/v/4.0.0)
- **Signature changed** `getSiblings`  

Was function getSiblings(elem: AnyNode): AnyNode\[\]; now function getSiblings(element: AnyNode): AnyNode\[\]. [npmjs.com](https://www.npmjs.com/package/domutils/v/4.0.0)
- **Signature changed** `hasAttrib`  

Was function hasAttrib(elem: Element, name: string): boolean; now function hasAttrib(element: Element, name: string): boolean. [npmjs.com](https://www.npmjs.com/package/domutils/v/4.0.0)
- **Signature changed** `nextElementSibling`  

Was function nextElementSibling(elem: AnyNode): Element | null; now function nextElementSibling(element: AnyNode): Element | null. [npmjs.com](https://www.npmjs.com/package/domutils/v/4.0.0)
- **Signature changed** `prepend`  

Was function prepend(elem: ChildNode, prev: ChildNode): void; now function prepend(element: ChildNode, previous: ChildNode): void. [npmjs.com](https://www.npmjs.com/package/domutils/v/4.0.0)
- **Signature changed** `prevElementSibling`  

Was function prevElementSibling(elem: AnyNode): Element | null; now function prevElementSibling(element: AnyNode): Element | null. [npmjs.com](https://www.npmjs.com/package/domutils/v/4.0.0)
- **Signature changed** `removeElement`  

Was function removeElement(elem: ChildNode): void; now function removeElement(element: ChildNode): void. [npmjs.com](https://www.npmjs.com/package/domutils/v/4.0.0)
- **Signature changed** `replaceElement`  

Was function replaceElement(elem: ChildNode, replacement: ChildNode): void; now function replaceElement(element: ChildNode, replacement: ChildNode): void. [npmjs.com](https://www.npmjs.com/package/domutils/v/4.0.0)

## domutils 3.0.0 breaking changes

domutils 3.0.0, released April 21, 2022: 32 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](https://github.com/fb55/domutils/releases/tag/v3.0.0)
- **Signature changed** `append`  

Was function append(elem: Node, next: Node): void; now function append(elem: ChildNode, next: ChildNode): void. [npmjs.com](https://www.npmjs.com/package/domutils/v/3.0.0)
- **Signature changed** `appendChild`  

Was function appendChild(elem: Element, child: Node): void; now function appendChild(elem: Element, child: ChildNode): void. [npmjs.com](https://www.npmjs.com/package/domutils/v/3.0.0)
- **Signature changed** `compareDocumentPosition`  

Was function compareDocumentPosition(nodeA: Node, nodeB: Node): number; now function compareDocumentPosition(nodeA: AnyNode, nodeB: AnyNode): number. [npmjs.com](https://www.npmjs.com/package/domutils/v/3.0.0)
- **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](https://www.npmjs.com/package/domutils/v/3.0.0)
- **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](https://www.npmjs.com/package/domutils/v/3.0.0)
- **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](https://www.npmjs.com/package/domutils/v/3.0.0)
- **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](https://www.npmjs.com/package/domutils/v/3.0.0)
- **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](https://www.npmjs.com/package/domutils/v/3.0.0)
- **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](https://www.npmjs.com/package/domutils/v/3.0.0)

And 22 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
