# React Testing Library: what changed from 15 to 16 - Product: React Testing Library (https://whatsnew.fyi/product/react-testing-library) - Vendor: Testing Library - Range: changelog entries numbered after v15.0.7 up to and including v16.3.3, stable releases only - Entries below: 8 releases (newest first) - Resolved: 15 is v15.0.7 and 16 is v16.3.3, the newest stable release of each major we track - Carrying security changes: 0 · CVEs mentioned: 0 · Mentioning breaking changes: 1 · Removing or deprecating something: 0 - Page: https://whatsnew.fyi/product/react-testing-library/compare/15...16 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 (8 changes, grouped by kind) ### Added #### v16.2.0 (2025-01-15) - Add support for React error handlers #### v16.1.0 (2024-12-05) - Add support for React 19 ### Changed #### v16.0.0 (2024-06-03) - Move @testing-library/dom to peer dependencies - Move @types/react-dom to peer dependencies ### Fixed #### v16.3.3 (2026-08-27) - Avoid act() re-entrant when dispatching events #### v16.3.2 (2026-01-19) - Update 'onCaughtError' type inference in 'RenderOptions' to work with React v19 #### v16.3.1 (2025-12-15) - Switch to trusted publishing #### v16.0.1 (2024-08-29) - Add support for exactOptionalPropertyTypes in TypeScript _One release carries no categorized changes yet: v16.3.0._ ## Release notes ### v16.3.3 - Date: 2026-08-27 - Version: v16.3.3 - Original notes: https://github.com/testing-library/react-testing-library/releases/tag/v16.3.3 - Permalink: https://whatsnew.fyi/product/react-testing-library/releases/v16.3.3 - **fixed** — Avoid act() re-entrant when dispatching events ##### [16.3.3](https://github.com/testing-library/react-testing-library/compare/v16.3.2...v16.3.3) (2026-08-27) ###### Bug Fixes * Avoid act() re-entrant when dispatching events ([#1468](https://github.com/testing-library/react-testing-library/issues/1468)) ([20ce75f](https://github.com/testing-library/react-testing-library/commit/20ce75f2907ca0e5c5a8ae595c0e9a4e368c7800)) ### v16.3.2 - Date: 2026-01-19 - Version: v16.3.2 - Original notes: https://github.com/testing-library/react-testing-library/releases/tag/v16.3.2 - Permalink: https://whatsnew.fyi/product/react-testing-library/releases/v16.3.2 - **fixed** — Update 'onCaughtError' type inference in 'RenderOptions' to work with React v19 ##### [16.3.2](https://github.com/testing-library/react-testing-library/compare/v16.3.1...v16.3.2) (2026-01-19) ###### Bug Fixes * Update 'onCaughtError' type inference in 'RenderOptions' to work with React v19 ([#1438](https://github.com/testing-library/react-testing-library/issues/1438)) ([f32bd1b](https://github.com/testing-library/react-testing-library/commit/f32bd1b033d5e3989ae1cb490d515ce389c54e53)) ### v16.3.1 - Date: 2025-12-15 - Version: v16.3.1 - Original notes: https://github.com/testing-library/react-testing-library/releases/tag/v16.3.1 - Permalink: https://whatsnew.fyi/product/react-testing-library/releases/v16.3.1 - **fixed** — Switch to trusted publishing ##### [16.3.1](https://github.com/testing-library/react-testing-library/compare/v16.3.0...v16.3.1) (2025-12-15) ###### Bug Fixes * Switch to trusted publishing ([#1437](https://github.com/testing-library/react-testing-library/issues/1437)) ([a2d37ff](https://github.com/testing-library/react-testing-library/commit/a2d37ffa09d85b10485f29b79cf7cb4f8ec943db)) ### v16.3.0 - Date: 2025-04-02 - Version: v16.3.0 - Original notes: https://github.com/testing-library/react-testing-library/releases/tag/v16.3.0 - Permalink: https://whatsnew.fyi/product/react-testing-library/releases/v16.3.0 #### [16.3.0](https://github.com/testing-library/react-testing-library/compare/v16.2.0...v16.3.0) (2025-04-02) ###### Features * add bernardobelchior as a contributor for code, and doc ([#1391](https://github.com/testing-library/react-testing-library/issues/1391)) ([9fc6a75](https://github.com/testing-library/react-testing-library/commit/9fc6a75d74bb8e03a48d3339efde4dd83cd5328b)) ### v16.2.0 - Date: 2025-01-15 - Version: v16.2.0 - Original notes: https://github.com/testing-library/react-testing-library/releases/tag/v16.2.0 - Permalink: https://whatsnew.fyi/product/react-testing-library/releases/v16.2.0 - **added** — Add support for React error handlers #### [16.2.0](https://github.com/testing-library/react-testing-library/compare/v16.1.0...v16.2.0) (2025-01-15) ###### Features * Add support for React error handlers ([#1354](https://github.com/testing-library/react-testing-library/issues/1354)) ([9618c51](https://github.com/testing-library/react-testing-library/commit/9618c5133706ec964f649e60a777cc384db58a3f)) ### v16.1.0 - Date: 2024-12-05 - Version: v16.1.0 - Original notes: https://github.com/testing-library/react-testing-library/releases/tag/v16.1.0 - Permalink: https://whatsnew.fyi/product/react-testing-library/releases/v16.1.0 - **added** — Add support for React 19 #### [16.1.0](https://github.com/testing-library/react-testing-library/compare/v16.0.1...v16.1.0) (2024-12-05) ###### Features * Add support for React 19 ([#1367](https://github.com/testing-library/react-testing-library/issues/1367)) ([85ac253](https://github.com/testing-library/react-testing-library/commit/85ac2534a59abd38880011e77da4bb8c716eba84)) ### v16.0.1 - Date: 2024-08-29 - Version: v16.0.1 - Original notes: https://github.com/testing-library/react-testing-library/releases/tag/v16.0.1 - Permalink: https://whatsnew.fyi/product/react-testing-library/releases/v16.0.1 - **fixed** — Add support for exactOptionalPropertyTypes in TypeScript ##### [16.0.1](https://github.com/testing-library/react-testing-library/compare/v16.0.0...v16.0.1) (2024-08-29) ###### Bug Fixes * Add support for exactOptionalPropertyTypes in TypeScript ([#1351](https://github.com/testing-library/react-testing-library/issues/1351)) ([3dcd8a9](https://github.com/testing-library/react-testing-library/commit/3dcd8a9649e25054c0e650d95fca2317b7008576)) ### v16.0.0 - Date: 2024-06-03 - Version: v16.0.0 - Original notes: https://github.com/testing-library/react-testing-library/releases/tag/v16.0.0 - Permalink: https://whatsnew.fyi/product/react-testing-library/releases/v16.0.0 - **changed** — Move @testing-library/dom to peer dependencies - **changed** — Move @types/react-dom to peer dependencies #### [16.0.0](https://github.com/testing-library/react-testing-library/compare/v15.0.7...v16.0.0) (2024-06-03) ###### Features * Move `@testing-library/dom` and `@types/react-dom` to peer dependencies ([#1305](https://github.com/testing-library/react-testing-library/issues/1305)) ([a4744fa](https://github.com/testing-library/react-testing-library/commit/a4744fa904bf11812c92093226c3805450472636)) ###### BREAKING CHANGES * `@testing-library/dom` was moved to a peer dependency and needs to be explicitly installed. This reduces the chance of having conflicting versions of `@testing-library/dom` installed that frequently caused bugs when used with `@testing-library/user-event`. We will also be able to allow new versions of `@testing-library/dom` being used without a SemVer major release of `@testing-library/react` by just widening the peer dependency. `@types/react-dom` needs to be installed if you're typechecking files using `@testing-library/react`.