You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+39Lines changed: 39 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,44 @@
1
1
# preact-render-to-string
2
2
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
+
18
+
## 6.1.0
19
+
20
+
### Minor Changes
21
+
22
+
-[#301](https://github.com/preactjs/preact-render-to-string/pull/301)[`659b456`](https://github.com/preactjs/preact-render-to-string/commit/659b45623093ae0a93cb29354b069a25cf6351b5) Thanks [@marvinhagemeister](https://github.com/marvinhagemeister)! - Add experimental ability to render HTML comments via `<Fragment UNSTABLE_comment="my-comment" />`. When the `UNSTABLE_comment` prop is present all children of that `Fragment` will be ignored and a HTML comment will be rendered instead. This feature is added to allow framework authors to experiment with marking DOM for hydration in the client. Note that it's marked as unstable and might change in the future.
23
+
24
+
## 6.0.3
25
+
26
+
### Patch Changes
27
+
28
+
-[#298](https://github.com/preactjs/preact-render-to-string/pull/298)[`6a4b8ed`](https://github.com/preactjs/preact-render-to-string/commit/6a4b8edc3b60038d2dc539a9652db806c5c24616) Thanks [@shinyama-k](https://github.com/shinyama-k)! - Fix to add type file for jsx.js
29
+
30
+
## 6.0.2
31
+
32
+
### Patch Changes
33
+
34
+
-[#294](https://github.com/preactjs/preact-render-to-string/pull/294)[`637b302`](https://github.com/preactjs/preact-render-to-string/commit/637b3021ff05a0729a1a7c0eb965ce3fc3556af6) Thanks [@marvinhagemeister](https://github.com/marvinhagemeister)! - Bring back exports from 5.x to make migration easier
35
+
36
+
## 6.0.1
37
+
38
+
### Patch Changes
39
+
40
+
-[#292](https://github.com/preactjs/preact-render-to-string/pull/292)[`8f4692c`](https://github.com/preactjs/preact-render-to-string/commit/8f4692c49277591819acb74808a0e28f7cb30c2f) Thanks [@marvinhagemeister](https://github.com/marvinhagemeister)! - Fix error in commonjs entry point
Rendering errors can be caught by Preact via `getDerivedStateFromErrors` or `componentDidCatch`. To enable that feature in `preact-render-to-string` set `errorBoundaries = true`
90
+
91
+
```js
92
+
import { options } from'preact';
93
+
94
+
// Enable error boundaries in `preact-render-to-string`
95
+
options.errorBoundaries=true;
96
+
```
97
+
87
98
---
88
99
89
100
### `Suspense` & `lazy` components with [`preact/compat`](https://www.npmjs.com/package/preact) & [`preact-ssr-prepass`](https://www.npmjs.com/package/preact-ssr-prepass)
0 commit comments