---
title: "react-error-boundary 6.0.0 Breaking Changes on npm"
description: "What each react-error-boundary release removed, renamed or changed: 29 breaking changes in 3 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/react-error-boundary
last_updated: 2026-12-04
---

# react-error-boundary breaking changes

react-error-boundary 6.0.0 (May 3, 2025) is its newest release with breaking changes. The first: Package is now ESM-only in react-error-boundary 6.0.0. Every breaking API change we have recorded in react-error-boundary on npm: 29 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `6.1.6`, released September 20, 2026. [Source repository](https://github.com/bvaughn/react-error-boundary)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [5.0.0](#v-5-0-0) to [6.0.0](#v-6-0-0): 1 breaking change in 1 version.
- From [4.0.0](#v-4-0-0) to [6.0.0](#v-6-0-0): 3 breaking changes in 2 versions.

## react-error-boundary 6.0.0 breaking changes

react-error-boundary 6.0.0, released May 3, 2025: 1 breaking change.

- **Removed**  

The package no longer ships a CommonJS build, so code that loads it with require must switch to import. [github.com](https://github.com/bvaughn/react-error-boundary/releases/tag/6.0.0)

## react-error-boundary 5.0.0 breaking changes

react-error-boundary 5.0.0, released December 21, 2024: 2 breaking changes.

- **Signature changed** `ErrorBoundaryPropsWithRender`  

Was type ErrorBoundaryPropsWithRender = ErrorBoundarySharedProps & {fallback?: never; FallbackComponent?: never; fallbackRender: typeof FallbackRender;}; now type ErrorBoundaryPropsWithRender = ErrorBoundarySharedProps & {fallback?: never... [npmjs.com](https://www.npmjs.com/package/react-error-boundary/v/5.0.0)
- **Signature changed** `withErrorBoundary`  

The TypeScript types for withErrorBoundary were changed to match the latest forwardRef types, so code that relied on the old typings may now need type fixes. [npmjs.com](https://www.npmjs.com/package/react-error-boundary/v/5.0.0)

## react-error-boundary 4.0.0 breaking changes

react-error-boundary 4.0.0, released March 21, 2023: 26 breaking changes.

- **Removed** `ErrorBoundaryPropsWithComponent.onResetKeysChange`  

ErrorBoundaryPropsWithComponent.onResetKeysChange was removed in react-error-boundary 4.0.0 [npmjs.com](https://www.npmjs.com/package/react-error-boundary/v/4.0.0)
- **Removed** `ErrorBoundaryPropsWithFallback.onResetKeysChange`  

ErrorBoundaryPropsWithFallback.onResetKeysChange was removed in react-error-boundary 4.0.0 [npmjs.com](https://www.npmjs.com/package/react-error-boundary/v/4.0.0)
- **Removed** `ErrorBoundaryPropsWithRender.onResetKeysChange`  

ErrorBoundaryPropsWithRender.onResetKeysChange was removed in react-error-boundary 4.0.0 [npmjs.com](https://www.npmjs.com/package/react-error-boundary/v/4.0.0)
- **Removed** `onResetKeys`  

The onResetKeys prop is merged into onReset, so code using onResetKeys must switch to onReset. [github.com](https://github.com/bvaughn/react-error-boundary/releases/tag/4.0.0)
- **Removed** `useErrorHandler`  

useErrorHandler is replaced by useErrorBoundary, which can trigger an error boundary or dismiss one. Code that throws a given error should throw the value directly instead of passing it to the hook. [npmjs.com](https://www.npmjs.com/package/react-error-boundary/v/4.0.0)
- **Signature changed** `ErrorBoundary`  

Was class ErrorBoundary extends React.Component\<React.PropsWithRef\<React.PropsWithChildren\<ErrorBoundaryProps>>, ErrorBoundaryState>; now class ErrorBoundary extends Component\<PropsWithRef\<PropsWithChildren\<ErrorBoundaryProps>>... [npmjs.com](https://www.npmjs.com/package/react-error-boundary/v/4.0.0)
- **Signature changed** `ErrorBoundary.componentDidCatch`  

Was componentDidCatch(error: Error, info: React.ErrorInfo): void; now componentDidCatch(error: Error, info: ErrorInfo): void. [npmjs.com](https://www.npmjs.com/package/react-error-boundary/v/4.0.0)
- **Signature changed** `ErrorBoundary.getDerivedStateFromError`  

Was static getDerivedStateFromError(error: Error): {error: Error;}; now static getDerivedStateFromError(error: Error): {didCatch: boolean; error: Error;}. [npmjs.com](https://www.npmjs.com/package/react-error-boundary/v/4.0.0)
- **Signature changed** `ErrorBoundary.render`  

Was render(): React.ReactNode; now render(): string | number | boolean | import("react").ReactElement\<any, string | import("react").JSXElementConstructor\<any>> | import("react").ReactFragment |... [npmjs.com](https://www.npmjs.com/package/react-error-boundary/v/4.0.0)
- **Signature changed** `ErrorBoundary.resetErrorBoundary`  

Was resetErrorBoundary: (...args: Array\<unknown>) => void; now resetErrorBoundary: (...args: any\[\]) => void. [npmjs.com](https://www.npmjs.com/package/react-error-boundary/v/4.0.0)

And 16 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Related packages

- [react-highlight-words](https://since.dev/packages/npm/react-highlight-words.md)
- [react-resizable-panels](https://since.dev/packages/npm/react-resizable-panels.md)
- [react-virtualized-auto-sizer](https://since.dev/packages/npm/react-virtualized-auto-sizer.md)
- [react-window](https://since.dev/packages/npm/react-window.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.
