react-test-renderer breaking changes
react-test-renderer 19.0.0 (December 5, 2024) is its newest release with breaking changes, 3 of them. The first: Removed react-test-renderer.shallow. Every breaking API change we have recorded in react-test-renderer on npm: 37 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
On this page
Latest version 19.3.1, released October 14, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 18.0.0 to 19.0.0: 3 breaking changes in 1 version.
- From 15.0.0 to 19.0.0: 33 breaking changes in 4 versions.
react-test-renderer 19.0.0 breaking changes
- Removed
react-test-renderer.shallow
The react-test-renderer/shallow export is removed. Use the third-party react-shallow-renderer package directly or migrate to React Testing Library. github.com - Behavior changed
react-test-renderer has switched to concurrent rendering in React 19, so existing tests may see different rendering timing. 19.react.dev - Behavior changed
react-test-renderer
On web, react-test-renderer now renders with ConcurrentRoot instead of the legacy root, so existing tests may see different rendering timing. github.com
react-test-renderer 18.0.0 breaking changes
- Removed
The object-assign polyfill is no longer included; apps needing it on old browsers must supply their own polyfills. github.com - Removed
React 18 no longer supports Internet Explorer. Stay on React 17 if IE support is required. reactjs.org - Removed
React now relies on Promise, Symbol and Object.assign natively; older browsers such as Internet Explorer need a global polyfill. github.com - Removed
unstable_changedBits
The unsupported unstable_changedBits API has been removed. github.com - Behavior changed
A component that suspends before being fully added is discarded and retried from scratch rather than committed in an incomplete state. github.com - Behavior changed
Layout effects are cleaned up when content re-suspends and re-created when shown again. github.com - Behavior changed
React now depends on Promise, Symbol and Object.assign. Include a global polyfill if older browsers are supported. reactjs.org - Behavior changed
Effects triggered by discrete user input such as clicks now flush synchronously. reactjs.org - Behavior changed
Text content hydration mismatches now error and fall back to client rendering up to the nearest Suspense boundary instead of patching. github.com - Behavior changed
useEffect functions triggered by discrete events like clicks are now flushed synchronously, changing timing. github.com
And 8 more in this version. Sign up to see every change
react-test-renderer 17.0.0 breaking changes
- Behavior changed
act
Calling act with the test renderer no longer flushes Suspense fallbacks, so tests that relied on fallbacks rendering under act may need to change. github.com - Behavior changed
forwardRef
A forwardRef or memo component that returns undefined now throws an error instead of rendering nothing, so such components must return null. github.com
react-test-renderer 16.0.0 breaking changes
- Removed
The shallow renderer does not implement unstable_batchedUpdates() anymore. Code that calls it on the shallow renderer must be removed or changed. github.com - Removed
ReactTestInstance.getInstance
ReactTestInstance.getInstance was removed in react-test-renderer 16.0.0 npmjs.com - Removed
ReactTestInstance.toJSON
ReactTestInstance.toJSON was removed in react-test-renderer 16.0.0 npmjs.com - Removed
ReactTestInstance.unmount
ReactTestInstance.unmount was removed in react-test-renderer 16.0.0 npmjs.com - Removed
ReactTestInstance.update
ReactTestInstance.update was removed in react-test-renderer 16.0.0 npmjs.com - Removed
ReactTestRendererJSON.$$typeof
ReactTestRendererJSON.$$typeof was removed in react-test-renderer 16.0.0 npmjs.com - Behavior changed
The shallow renderer no longer calls componentDidUpdate() because DOM refs are not available. Tests that depend on that call must change. github.com - Signature changed
create
Was function create(nextElement: ReactElement, options?: TestRendererOptions): ReactTestInstance; now function create(nextElement: ReactElement<any>, options?: TestRendererOptions): ReactTestRenderer. npmjs.com - Signature changed
ReactTestRendererJSON.children
Was children: null | Array<string | ReactTestRendererJSON>; now children: null | ReactTestRendererJSON[]. npmjs.com - Signature changed
TestRendererOptions.createNodeMock
Was createNodeMock(element: ReactElement): any; now createNodeMock(element: ReactElement<any>): any. npmjs.com
react-test-renderer 15.0.0 breaking changes
- Behavior changed
Nodes no longer carry data-reactid; only root nodes get data-reactroot and server markup keeps data-reactid. github.com - Behavior changed
Plain text is rendered without extra span elements, so CSS targeting those spans must be adjusted. github.com - Behavior changed
Null values such as href={null} now remove the attribute instead of setting a browser default value. github.com - Behavior changed
Components that render null now produce comment nodes, which can affect :nth-child CSS selectors. github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.