# What changed in react-error-boundary

> 9 changes in react-error-boundary 6 from its official release notes, upgrade guides and advisories: 1 breaking, 1 new APIs and options. Each one cited. Sources checked 2026-10-18. HTML: https://unstale.sh/npm/react-error-boundary/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## react-error-boundary 6

### Breaking changes

- The error type changes from Error to unknown. (6.1.0) — [release notes](https://github.com/bvaughn/react-error-boundary/releases/tag/6.1.0)

### New APIs and options

- Exports the getErrorMessage helper method. (6.1.0) — [release notes](https://github.com/bvaughn/react-error-boundary/releases/tag/6.1.0)

### Performance

- Context values are memoized to avoid unnecessary consumer renders when boundary state is unchanged. (6.1.6) — [release notes](https://github.com/bvaughn/react-error-boundary/releases/tag/6.1.6)

### Tooling

- Added @types/react as an optional peer dependency. (6.1.3) — [release notes](https://github.com/bvaughn/react-error-boundary/releases/tag/6.1.3)

### Fixes and other changes

- An explicitly provided undefined fallback is accepted, but logs an error in development. (6.1.6) — [release notes](https://github.com/bvaughn/react-error-boundary/releases/tag/6.1.6)
- Types preserve optional defaulted props in withErrorBoundary. (6.1.6) — [release notes](https://github.com/bvaughn/react-error-boundary/releases/tag/6.1.6)
- Infers the wrapped component's ref type. (6.1.5) — [release notes](https://github.com/bvaughn/react-error-boundary/releases/tag/6.1.5)
- Handles the edge case where null is used as a thrown value. (6.1.4) — [release notes](https://github.com/bvaughn/react-error-boundary/releases/tag/6.1.4)
- Removed react-dom from the peer dependencies list because it was accidentally added during a previous internal refactor. (6.0.3) — [release notes](https://github.com/bvaughn/react-error-boundary/releases/tag/6.0.3)
