# react-error-boundary: what changed from 5 to 6 - Product: react-error-boundary (https://whatsnew.fyi/product/react-error-boundary) - Vendor: Brian Vaughn - Range: changelog entries numbered after 5.0.0 up to and including 6.1.4, stable releases only - Entries below: 9 releases (newest first) - Resolved: 5 is 5.0.0 and 6 is 6.1.4, the newest stable release of each major we track - Carrying security changes: 0 · CVEs mentioned: 0 · Mentioning breaking changes: 0 · Removing or deprecating something: 1 - Page: https://whatsnew.fyi/product/react-error-boundary/compare/5...6 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 (6 changes, grouped by kind) ### Added #### 6.1.3 (2026-08-15) - Add @types/react as an optional peer dependency #### 6.1.0 (2026-01-17) - Export getErrorMessage helper method ### Fixed #### 6.1.4 (2026-08-30) - Handle null as thrown value in edge case #### 6.1.1 (2026-02-13) - Project logo now displays correctly in the README for the Firefox browser #### 6.1.0 (2026-01-17) - Fix error type from Error to unknown ### Removed #### 6.0.3 (2026-01-08) - Removed react-dom from peer dependencies list _4 releases carry no categorized changes yet: 6.1.2, 6.0.2, 6.0.1, 6.0.0._ ## Release notes ### 6.1.4 - Date: 2026-08-30 - Version: 6.1.4 - Original notes: https://github.com/bvaughn/react-error-boundary/releases/tag/6.1.4 - Permalink: https://whatsnew.fyi/product/react-error-boundary/releases/6.1.4 - **fixed** — Handle null as thrown value in edge case - [247](https://github.com/bvaughn/react-error-boundary/pull/247): Edge case: Handle `null` as thrown value ### 6.1.3 - Date: 2026-08-15 - Version: 6.1.3 - Original notes: https://github.com/bvaughn/react-error-boundary/releases/tag/6.1.3 - Permalink: https://whatsnew.fyi/product/react-error-boundary/releases/6.1.3 - **added** — Add @types/react as an optional peer dependency [245](https://github.com/bvaughn/react-error-boundary/pull/245)- Add `@types/react` as an _optional_ peer dependency ### 6.1.2 - Date: 2026-05-25 - Version: 6.1.2 - Original notes: https://github.com/bvaughn/react-error-boundary/releases/tag/6.1.2 - Permalink: https://whatsnew.fyi/product/react-error-boundary/releases/6.1.2 README and doc comment updates ### 6.1.1 - Date: 2026-02-13 - Version: 6.1.1 - Original notes: https://github.com/bvaughn/react-error-boundary/releases/tag/6.1.1 - Permalink: https://whatsnew.fyi/product/react-error-boundary/releases/6.1.1 - **fixed** — Project logo now displays correctly in the README for the Firefox browser - Fixed a problem with project logo not displaying correctly in the README for the Firefox browser. ### 6.1.0 - Date: 2026-01-17 - Version: 6.1.0 - Original notes: https://github.com/bvaughn/react-error-boundary/releases/tag/6.1.0 - Permalink: https://whatsnew.fyi/product/react-error-boundary/releases/6.1.0 - **fixed** — Fix error type from Error to unknown - **added** — Export getErrorMessage helper method - #235: Fix error type (`Error` -> `unknown`) - Export `getErrorMessage` helper method ### 6.0.3 - Date: 2026-01-08 - Version: 6.0.3 - Original notes: https://github.com/bvaughn/react-error-boundary/releases/tag/6.0.3 - Permalink: https://whatsnew.fyi/product/react-error-boundary/releases/6.0.3 - **removed** — Removed react-dom from peer dependencies list - Removed `react-dom` from peer dependencies list; it was accidentally added during a previous internal refactor ### 6.0.2 - Date: 2026-01-05 - Version: 6.0.2 - Original notes: https://github.com/bvaughn/react-error-boundary/releases/tag/6.0.2 - Permalink: https://whatsnew.fyi/product/react-error-boundary/releases/6.0.2 Updated README and generated TS docs ### 6.0.1 - Date: 2026-01-05 - Version: 6.0.1 - Original notes: https://github.com/bvaughn/react-error-boundary/releases/tag/6.0.1 - Permalink: https://whatsnew.fyi/product/react-error-boundary/releases/6.0.1 Updated README and generated docs ### 6.0.0 - Date: 2025-05-03 - Version: 6.0.0 - Original notes: https://github.com/bvaughn/react-error-boundary/releases/tag/6.0.0 - Permalink: https://whatsnew.fyi/product/react-error-boundary/releases/6.0.0 Module is ESM-only in order to better work with modern tooling.