---
title: "@testing-library/dom 10.0.0 Breaking Changes on npm"
description: "What each @testing-library/dom release removed, renamed or changed: 21 breaking changes in 5 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@testing-library/dom
last_updated: 2026-12-04
---

# @testing-library/dom breaking changes

@testing-library/dom 10.0.0 (April 8, 2024) is its newest release with breaking changes, 2 of them. The first: @testing-library/dom 10.0.0 requires Node.js 18.0 or later. Every breaking API change we have recorded in @testing-library/dom on npm: 21 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `10.4.2`, released September 13, 2026. [Source repository](https://github.com/testing-library/dom-testing-library)

Its 10.0.0 release requires Node.js 18.0 or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [9.0.0](#v-9-0-0) to [10.0.0](#v-10-0-0): 2 breaking changes in 1 version.
- From [8.0.0](#v-8-0-0) to [10.0.0](#v-10-0-0): 12 breaking changes in 4 versions.

## @testing-library/dom 10.0.0 breaking changes

@testing-library/dom 10.0.0, released April 8, 2024: 2 breaking changes.

- **Removed**  

Node.js 14.x and 16.x are no longer supported, so use Node.js 18.0 or later. [github.com](https://github.com/testing-library/dom-testing-library/releases/tag/v10.0.0)
- **Behavior changed**  

The aria-query 5.3.0 upgrade changes various roles, so queries that depend on roles may match differently and tests should be checked. [github.com](https://github.com/testing-library/dom-testing-library/releases/tag/v10.0.0)

## @testing-library/dom 9.0.0 breaking changes

@testing-library/dom 9.0.0, released February 16, 2023: 8 breaking changes.

- **Removed**  

Node.js 12.x is no longer supported. Users on Node.js 12 must upgrade to Node.js 14 or later. [github.com](https://github.com/testing-library/dom-testing-library/releases/tag/v9.0.0)
- **Removed** `ByRoleOptions.collapseWhitespace`  

The collapseWhitespace option is no longer supported by ByRole queries. Remove it from calls. [npmjs.com](https://www.npmjs.com/package/@testing-library/dom/v/9.0.0)
- **Removed** `ByRoleOptions.exact`  

The exact option is no longer supported by ByRole queries. Remove it from calls. [npmjs.com](https://www.npmjs.com/package/@testing-library/dom/v/9.0.0)
- **Removed** `ByRoleOptions.normalizer`  

The normalizer option is no longer supported by ByRole queries. Remove it from calls. [npmjs.com](https://www.npmjs.com/package/@testing-library/dom/v/9.0.0)
- **Removed** `ByRoleOptions.trim`  

The trim option is no longer supported by ByRole queries. Remove it from calls. [npmjs.com](https://www.npmjs.com/package/@testing-library/dom/v/9.0.0)
- **Signature changed** `ByRole`  

The role argument of ByRole must now be a string. Other values no longer work. [github.com](https://github.com/testing-library/dom-testing-library/releases/tag/v9.0.0)
- **Signature changed** `ByRoleMatcher`  

Was type ByRoleMatcher = ARIARole | MatcherFunction | {}; now type ByRoleMatcher = ARIARole | (string & {}). [npmjs.com](https://www.npmjs.com/package/@testing-library/dom/v/9.0.0)
- **Signature changed** `ByRoleOptions`  

Was interface ByRoleOptions extends MatcherOptions; now interface ByRoleOptions. [npmjs.com](https://www.npmjs.com/package/@testing-library/dom/v/9.0.0)

## @testing-library/dom 9.0.0-alpha.2 breaking changes

@testing-library/dom 9.0.0-alpha.2, released February 16, 2023: 1 breaking change.

- **Signature changed** `ByRole`  

The role argument of ByRole must now be a string. Other values no longer work. [github.com](https://github.com/testing-library/dom-testing-library/releases/tag/v9.0.0-alpha.2)

## @testing-library/dom 9.0.0-alpha.1 breaking changes

@testing-library/dom 9.0.0-alpha.1, released February 16, 2023: 1 breaking change.

- **Removed**  

Node.js 12.x is no longer supported. Users on Node.js 12 must upgrade to Node.js 14 or later. [github.com](https://github.com/testing-library/dom-testing-library/releases/tag/v9.0.0-alpha.1)

## @testing-library/dom 8.0.0 breaking changes

@testing-library/dom 8.0.0, released June 23, 2021: 9 breaking changes.

- **Removed**  

Node 10 is no longer supported. Upgrade to a newer Node.js version before using this release. [github.com](https://github.com/testing-library/dom-testing-library/releases/tag/v8.0.0)
- **Removed** `wait`  

Use waitFor instead. [npmjs.com](https://www.npmjs.com/package/@testing-library/dom/v/8.0.0)
- **Removed** `waitForDomChange`  

Use waitFor instead. [npmjs.com](https://www.npmjs.com/package/@testing-library/dom/v/8.0.0)
- **Removed** `waitForElement`  

The deprecated waitForElement was removed in v8. Code that calls it must be updated before upgrading. [npmjs.com](https://www.npmjs.com/package/@testing-library/dom/v/8.0.0)
- **Removed** `waitFormDOMChange`  

The deprecated waitFormDOMChange was removed in v8. Code that calls it must be updated before upgrading. [github.com](https://github.com/testing-library/dom-testing-library/releases/tag/v8.0.0)
- **Behavior changed** `waitFor`  

The timeout option of waitFor now uses the same clock as interval, so mocked timers can affect it. To keep the old behavior, pass timeout: Number.POSITIVE_INFINITY and rely on the test runner timeout. [github.com](https://github.com/testing-library/dom-testing-library/releases/tag/v8.0.0)
- **Default changed** `prettyDOM`  

By default prettyDOM skips script, style and comment nodes. To get the old output, pass a custom filterNode function that returns true. [github.com](https://github.com/testing-library/dom-testing-library/releases/tag/v8.0.0)
- **Signature changed** `logDOM`  

Was function logDOM(dom?: Element | HTMLDocument, maxLength?: number, options?: prettyFormat.OptionsReceived): void; now function logDOM(dom?: Element | HTMLDocument, maxLength?: number, options?: PrettyDOMOptions): void. [npmjs.com](https://www.npmjs.com/package/@testing-library/dom/v/8.0.0)
- **Signature changed** `prettyDOM`  

Was function prettyDOM(dom?: Element | HTMLDocument, maxLength?: number, options?: prettyFormat.OptionsReceived): string | false; now function prettyDOM(dom?: Element | HTMLDocument, maxLength?: number, options?: PrettyDOMOptions): string... [npmjs.com](https://www.npmjs.com/package/@testing-library/dom/v/8.0.0)

## Related packages

- [@testing-library/jest-dom](https://since.dev/packages/npm/@testing-library/jest-dom.md)
- [@testing-library/preact](https://since.dev/packages/npm/@testing-library/preact.md)
- [@testing-library/react](https://since.dev/packages/npm/@testing-library/react.md)
- [@testing-library/react-native](https://since.dev/packages/npm/@testing-library/react-native.md)
- [@testing-library/user-event](https://since.dev/packages/npm/@testing-library/user-event.md)

## 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.
