unstale

npm / @testing-library/react

@testing-library/react

What changed in @testing-library/react 12 to 16, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

9 breaking4 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@testing-library/react 164 changes

Breaking changes 2

  • Moved to a peer dependency and must be explicitly installed, reducing the chance of conflicting versions and allowing compatible new versions without a major release of @testing-library/react.

    16.0.0release notes

  • Moved to a peer dependency; install it if you typecheck files using @testing-library/react.

    16.0.0release notes

Fixes and other changes 2

  • Avoids re-entrant act when dispatching events.

    16.3.3release notes

  • Updates onCaughtError type inference in RenderOptions to work with React v19.

    16.3.2release notes

@testing-library/react 152 changes

Breaking changes 2

  • Node.js 18.0 is now the minimum supported version.

    15.0.0release notes

  • A new version of @testing-library/dom changes various roles, which may affect role-based queries.

    15.0.0release notes

@testing-library/react 142 changes

Breaking changes 1

  • The minimum supported Node.js version is now 14.x; Node.js 12.x is no longer supported.

    14.0.0release notes

Fixes and other changes 1

  • Prevents the "missing act" warning for queued microtasks.

    14.0.0release notes

@testing-library/react 134 changes

Breaking changes 3

  • The new createRoot API is used by default, enabling support for concurrent features.

    13.0.0release notes

  • Support for React 17 and earlier is dropped.

    13.0.0release notes

  • Set legacyRoot to true to opt out of the new default root behavior; the legacy root API is deprecated in React 18 and triggers console warnings.

    13.0.0release notes

Fixes and other changes 1

@testing-library/react 121 changes

Breaking changes 1

  • Node 10 is no longer supported because it reached end-of-life.

    12.0.0release notes