# DOM Testing Library: what changed from 9 to 10 - Product: DOM Testing Library (https://whatsnew.fyi/product/testing-library-dom) - Vendor: Testing Library - Range: changelog entries numbered after v9.3.4 up to and including v10.4.1, stable releases only - Entries below: 8 releases (newest first) - Resolved: 9 is v9.3.4 and 10 is v10.4.1, the newest stable release of each major we track - Carrying security changes: 0 · CVEs mentioned: 0 · Mentioning breaking changes: 1 · Removing or deprecating something: 1 - Page: https://whatsnew.fyi/product/testing-library-dom/compare/9...10 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. ## What changed (10 changes, grouped by kind) ### Added #### v10.2.0 (2024-06-24) - Support anonymous custom elements when pretty printing DOM #### v10.1.0 (2024-04-29) - Add window events pagehide and pageshow #### v10.0.0 (2024-04-08) - add support for Node.js 20.x ### Changed #### v10.4.1 (2025-07-27) - Replace chalk with picocolors as a dependency #### v10.4.0 (2024-07-22) - Reduce caught exceptions in prettyDom (also in v10.3.0) #### v10.0.0 (2024-04-08) - upgrade aria-query to 5.3.0 ### Fixed #### v10.3.2 (2024-07-15) - Safer read of DEBUG_PRINT_LIMIT #### v10.3.1 (2024-07-05) - Revert the reduction of caught exceptions in prettyDom #### v10.0.0 (2024-04-08) - use defineProperty on the error object instead of setting the message directly ### Removed #### v10.0.0 (2024-04-08) - Drop support for Node.js 14.x and Node.js 16.x ## Release notes ### v10.4.1 - Date: 2025-07-27 - Version: v10.4.1 - Original notes: https://github.com/testing-library/dom-testing-library/releases/tag/v10.4.1 - Permalink: https://whatsnew.fyi/product/testing-library-dom/releases/v10.4.1 - **changed** — Replace chalk with picocolors as a dependency ##### [10.4.1](https://github.com/testing-library/dom-testing-library/compare/v10.4.0...v10.4.1) (2025-07-27) ###### Bug Fixes * **deps:** replace chalk with picocolors ([#1341](https://github.com/testing-library/dom-testing-library/issues/1341)) ([225a3e4](https://github.com/testing-library/dom-testing-library/commit/225a3e4cfaa8f8046989d51b9051df507354b644)) ### v10.4.0 - Date: 2024-07-22 - Version: v10.4.0 - Original notes: https://github.com/testing-library/dom-testing-library/releases/tag/v10.4.0 - Permalink: https://whatsnew.fyi/product/testing-library-dom/releases/v10.4.0 - **changed** — Reduce caught exceptions in prettyDom #### [10.4.0](https://github.com/testing-library/dom-testing-library/compare/v10.3.2...v10.4.0) (2024-07-22) ###### Features * Reduce caught exceptions in prettyDom (reland) ([#1323](https://github.com/testing-library/dom-testing-library/issues/1323)) ([a86c54c](https://github.com/testing-library/dom-testing-library/commit/a86c54ccda5242ad8dfc1c70d31980bdbf96af7f)) ### v10.3.2 - Date: 2024-07-15 - Version: v10.3.2 - Original notes: https://github.com/testing-library/dom-testing-library/releases/tag/v10.3.2 - Permalink: https://whatsnew.fyi/product/testing-library-dom/releases/v10.3.2 - **fixed** — Safer read of DEBUG_PRINT_LIMIT ##### [10.3.2](https://github.com/testing-library/dom-testing-library/compare/v10.3.1...v10.3.2) (2024-07-15) ###### Bug Fixes * safer read of DEBUG_PRINT_LIMIT ([#1329](https://github.com/testing-library/dom-testing-library/issues/1329)) ([306526b](https://github.com/testing-library/dom-testing-library/commit/306526b5519abcaed84ef35f82501a1691edcd0e)) ### v10.3.1 - Date: 2024-07-05 - Version: v10.3.1 - Original notes: https://github.com/testing-library/dom-testing-library/releases/tag/v10.3.1 - Permalink: https://whatsnew.fyi/product/testing-library-dom/releases/v10.3.1 - **fixed** — Revert the reduction of caught exceptions in prettyDom ##### [10.3.1](https://github.com/testing-library/dom-testing-library/compare/v10.3.0...v10.3.1) (2024-07-05) ###### Bug Fixes * Revert "feat: Reduce caught exceptions in `prettyDom` ([#1321](https://github.com/testing-library/dom-testing-library/issues/1321))" ([#1325](https://github.com/testing-library/dom-testing-library/issues/1325)) ([fdc12ec](https://github.com/testing-library/dom-testing-library/commit/fdc12ecf4343ab6b08a898d9b3ff0013981849c8)) ### v10.3.0 - Date: 2024-07-02 - Version: v10.3.0 - Original notes: https://github.com/testing-library/dom-testing-library/releases/tag/v10.3.0 - Permalink: https://whatsnew.fyi/product/testing-library-dom/releases/v10.3.0 - **changed** — Reduce caught exceptions in prettyDom #### [10.3.0](https://github.com/testing-library/dom-testing-library/compare/v10.2.0...v10.3.0) (2024-07-02) ###### Features * Reduce caught exceptions in `prettyDom` ([#1321](https://github.com/testing-library/dom-testing-library/issues/1321)) ([76cb73d](https://github.com/testing-library/dom-testing-library/commit/76cb73dec444fca7ae3d160b4dad3b61f7bc8995)) ### v10.2.0 - Date: 2024-06-24 - Version: v10.2.0 - Original notes: https://github.com/testing-library/dom-testing-library/releases/tag/v10.2.0 - Permalink: https://whatsnew.fyi/product/testing-library-dom/releases/v10.2.0 - **added** — Support anonymous custom elements when pretty printing DOM #### [10.2.0](https://github.com/testing-library/dom-testing-library/compare/v10.1.0...v10.2.0) (2024-06-24) ###### Features * Support anonymous custom elements when pretty printing DOM ([#1319](https://github.com/testing-library/dom-testing-library/issues/1319)) ([0a8ad65](https://github.com/testing-library/dom-testing-library/commit/0a8ad65723efe47493d387c38f31082c7846d824)) ### v10.1.0 - Date: 2024-04-29 - Version: v10.1.0 - Original notes: https://github.com/testing-library/dom-testing-library/releases/tag/v10.1.0 - Permalink: https://whatsnew.fyi/product/testing-library-dom/releases/v10.1.0 - **added** — Add window events pagehide and pageshow #### [10.1.0](https://github.com/testing-library/dom-testing-library/compare/v10.0.0...v10.1.0) (2024-04-29) ###### Features * Add window events "pagehide" / "pageshow" ([#1308](https://github.com/testing-library/dom-testing-library/issues/1308)) ([56543d5](https://github.com/testing-library/dom-testing-library/commit/56543d51a8776d3bc7fa9b947771ce5308bf5df4)) ### v10.0.0 - Date: 2024-04-08 - Version: v10.0.0 - Original notes: https://github.com/testing-library/dom-testing-library/releases/tag/v10.0.0 - Permalink: https://whatsnew.fyi/product/testing-library-dom/releases/v10.0.0 - **fixed** — use defineProperty on the error object instead of setting the message directly - **removed** — Drop support for Node.js 14.x and Node.js 16.x - **added** — add support for Node.js 20.x - **changed** — upgrade aria-query to 5.3.0 #### [10.0.0](https://github.com/testing-library/dom-testing-library/compare/v9.3.4...v10.0.0) (2024-04-08) ###### Bug Fixes * use defineProperty on the error object instead of setting the message directly ([#1268](https://github.com/testing-library/dom-testing-library/issues/1268)) ([3580f25](https://github.com/testing-library/dom-testing-library/commit/3580f25bd765cedb70889b2cf716085023d8c314)), closes [#1259](https://github.com/testing-library/dom-testing-library/issues/1259) ###### Features * Drop support for Node.js 14.x and Node.js 16.x and add support for Node 20.x ([#1255](https://github.com/testing-library/dom-testing-library/issues/1255)) ([452097b](https://github.com/testing-library/dom-testing-library/commit/452097b35a207341f5328b997dfc901461a4e9d9)) * upgrade aria-query to 5.3.0 ([#1241](https://github.com/testing-library/dom-testing-library/issues/1241)) ([2c57055](https://github.com/testing-library/dom-testing-library/commit/2c570553d8f31b008451398152a9bd30bce362b3)), closes [#1240](https://github.com/testing-library/dom-testing-library/issues/1240) ###### BREAKING CHANGES * Minimum supported Node.js version is 18.0 * New version of `aria-query` changes various roles. Check out the changed tests in 2c57055 to get an overview about what changed.