diff --git a/.changeset/beige-hounds-enjoy.md b/.changeset/beige-hounds-enjoy.md deleted file mode 100644 index 15dbc9f6..00000000 --- a/.changeset/beige-hounds-enjoy.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'preact-render-to-string': patch ---- - -Change style calculation to use a Set rather than Regex diff --git a/.changeset/bright-ligers-jam.md b/.changeset/bright-ligers-jam.md deleted file mode 100644 index e27d54ca..00000000 --- a/.changeset/bright-ligers-jam.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"preact-render-to-string": major ---- - -Improve performance by another 5-10% using `switch` and short-circuiting, and move pretty-printing from into `preact-render-to-string/jsx`. diff --git a/.changeset/clever-ghosts-grin.md b/.changeset/clever-ghosts-grin.md deleted file mode 100644 index e4687055..00000000 --- a/.changeset/clever-ghosts-grin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'preact-render-to-string': patch ---- - -Fix CJS export diff --git a/.changeset/fifty-hounds-press.md b/.changeset/fifty-hounds-press.md deleted file mode 100644 index ae5133b9..00000000 --- a/.changeset/fifty-hounds-press.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"preact-render-to-string": patch ---- - -Enumerate draggable attribute, so the output isn't `draggable` but `draggable="true"` diff --git a/.changeset/fluffy-poets-happen.md b/.changeset/fluffy-poets-happen.md deleted file mode 100644 index 591f6ed5..00000000 --- a/.changeset/fluffy-poets-happen.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'preact-render-to-string': patch ---- - -Follow up fixes to #278 diff --git a/.changeset/gentle-trains-attack.md b/.changeset/gentle-trains-attack.md deleted file mode 100644 index af5ded71..00000000 --- a/.changeset/gentle-trains-attack.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'preact-render-to-string': major ---- - -Remove trailing space for void_elements, this could fail some test_assertions as -`` will become ``, the other `VOID_ELEMENTS` this will be applied for -can be found [here](https://github.com/preactjs/preact-render-to-string/blob/remove-trailing-space/src/index.js#L368-L385) diff --git a/.changeset/perfect-ducks-rule.md b/.changeset/perfect-ducks-rule.md deleted file mode 100644 index 2270e364..00000000 --- a/.changeset/perfect-ducks-rule.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'preact-render-to-string': patch ---- - -Support `data` attribute diff --git a/.changeset/quiet-toes-carry.md b/.changeset/quiet-toes-carry.md deleted file mode 100644 index 445e54d6..00000000 --- a/.changeset/quiet-toes-carry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'preact-render-to-string': major ---- - -Remove the castin to VNode for `preact/debug`, this is fixed in Preact >= 10.13.0 diff --git a/.changeset/soft-badgers-clap.md b/.changeset/soft-badgers-clap.md deleted file mode 100644 index e6b13d5e..00000000 --- a/.changeset/soft-badgers-clap.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"preact-render-to-string": patch ---- - -improve unmount option hook call performance diff --git a/.changeset/thick-islands-share.md b/.changeset/thick-islands-share.md deleted file mode 100644 index 22f688f0..00000000 --- a/.changeset/thick-islands-share.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"preact-render-to-string": patch ---- - -Improve performance by - -- storing the void_elements in a Set -- hoisting the `x-link` regex -- remove case-insensitive from regexes and calling `.toLowerCase()` instead -- caching suffixes for css-props diff --git a/CHANGELOG.md b/CHANGELOG.md index ad786141..79f15d79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,38 @@ # preact-render-to-string +## 6.0.0 + +### Major Changes + +- [#241](https://github.com/preactjs/preact-render-to-string/pull/241) [`e8cbf66`](https://github.com/preactjs/preact-render-to-string/commit/e8cbf66b2620842671b5c95817454ff2ddb0e450) Thanks [@developit](https://github.com/developit)! - Improve performance by another 5-10% using `switch` and short-circuiting, and move pretty-printing from into `preact-render-to-string/jsx`. + +* [#282](https://github.com/preactjs/preact-render-to-string/pull/282) [`6376f62`](https://github.com/preactjs/preact-render-to-string/commit/6376f62309ec19482ded68406a03910ad6de57d1) Thanks [@JoviDeCroock](https://github.com/JoviDeCroock)! - Remove trailing space for void_elements, this could fail some test_assertions as + `` will become ``, the other `VOID_ELEMENTS` this will be applied for + can be found [here](https://github.com/preactjs/preact-render-to-string/blob/remove-trailing-space/src/index.js#L368-L385) + +- [#286](https://github.com/preactjs/preact-render-to-string/pull/286) [`7a8b590`](https://github.com/preactjs/preact-render-to-string/commit/7a8b590237a70e8708e46cb1d92ab24327f60160) Thanks [@JoviDeCroock](https://github.com/JoviDeCroock)! - Remove the castin to VNode for `preact/debug`, this is fixed in Preact >= 10.13.0 + +### Patch Changes + +- [#286](https://github.com/preactjs/preact-render-to-string/pull/286) [`7a8b590`](https://github.com/preactjs/preact-render-to-string/commit/7a8b590237a70e8708e46cb1d92ab24327f60160) Thanks [@JoviDeCroock](https://github.com/JoviDeCroock)! - Change style calculation to use a Set rather than Regex + +* [#285](https://github.com/preactjs/preact-render-to-string/pull/285) [`a0546fe`](https://github.com/preactjs/preact-render-to-string/commit/a0546fe6a008eca54edfcd97f775c4b5581d086c) Thanks [@JoviDeCroock](https://github.com/JoviDeCroock)! - Fix CJS export + +- [#288](https://github.com/preactjs/preact-render-to-string/pull/288) [`0b04860`](https://github.com/preactjs/preact-render-to-string/commit/0b0486029ca10a846c368a0ab404e4b2e8eb96d6) Thanks [@glenchao](https://github.com/glenchao)! - Enumerate draggable attribute, so the output isn't `draggable` but `draggable="true"` + +* [#283](https://github.com/preactjs/preact-render-to-string/pull/283) [`3defa9d`](https://github.com/preactjs/preact-render-to-string/commit/3defa9dab48cc7379c9135d92273fbb7f886cab0) Thanks [@JoviDeCroock](https://github.com/JoviDeCroock)! - Follow up fixes to #278 + +- [#289](https://github.com/preactjs/preact-render-to-string/pull/289) [`07ebc66`](https://github.com/preactjs/preact-render-to-string/commit/07ebc66bb76b775cae58b5163acf2943ec72c8bf) Thanks [@JoviDeCroock](https://github.com/JoviDeCroock)! - Support `data` attribute + +* [#270](https://github.com/preactjs/preact-render-to-string/pull/270) [`5c6877d`](https://github.com/preactjs/preact-render-to-string/commit/5c6877d13d60b4cdd87632ac3052b006207568ff) Thanks [@developit](https://github.com/developit)! - improve unmount option hook call performance + +- [#278](https://github.com/preactjs/preact-render-to-string/pull/278) [`8cf7cef`](https://github.com/preactjs/preact-render-to-string/commit/8cf7cef0e96b3e48ffea5fcf4f76db6410de8346) Thanks [@JoviDeCroock](https://github.com/JoviDeCroock)! - Improve performance by + + - storing the void_elements in a Set + - hoisting the `x-link` regex + - remove case-insensitive from regexes and calling `.toLowerCase()` instead + - caching suffixes for css-props + ## 5.2.6 ### Patch Changes diff --git a/package.json b/package.json index a73962e3..f2580ba6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "preact-render-to-string", "amdName": "preactRenderToString", - "version": "5.2.6", + "version": "6.0.0", "description": "Render JSX to an HTML string, with support for Preact components.", "main": "dist/index.js", "umd:main": "dist/index.umd.js",