Skip to content

Commit 2c26854

Browse files
Version Packages
1 parent bbbb9ca commit 2c26854

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

.changeset/cold-otters-argue.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# preact-render-to-string
22

3+
## 6.2.0
4+
5+
### Minor Changes
6+
7+
- [#305](https://github.com/preactjs/preact-render-to-string/pull/305) [`568f139`](https://github.com/preactjs/preact-render-to-string/commit/568f139a6c7916e0b6eebb7c51f1abf035850b7c) Thanks [@marvinhagemeister](https://github.com/marvinhagemeister)! - Add support for error boundaries via `componentDidCatch` and `getDerivedStateFromError`
8+
9+
This feature is disabled by default and can be enabled by toggling the `errorBoundaries` option:
10+
11+
```js
12+
import { options } from 'preact';
13+
14+
// Enable error boundaries
15+
options.errorBoundaries = true;
16+
```
17+
318
## 6.1.0
419

520
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "preact-render-to-string",
33
"amdName": "preactRenderToString",
4-
"version": "6.1.0",
4+
"version": "6.2.0",
55
"description": "Render JSX to an HTML string, with support for Preact components.",
66
"main": "dist/index.js",
77
"umd:main": "dist/index.umd.js",

0 commit comments

Comments
 (0)