Releases: preactjs/preact-render-to-string
6.1.0
Minor Changes
- #301
659b456
Thanks @marvinhagemeister! - Add experimental ability to render HTML comments via<Fragment UNSTABLE_comment="my-comment" />
. When theUNSTABLE_comment
prop is present all children of thatFragment
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.
6.0.3
Patch Changes
- #298
6a4b8ed
Thanks @shinyama-k! - Fix to add type file for jsx.js
6.0.2
Patch Changes
- #294
637b302
Thanks @marvinhagemeister! - Bring back exports from 5.x to make migration easier
6.0.1
Patch Changes
- #292
8f4692c
Thanks @marvinhagemeister! - Fix error in commonjs entry point
6.0.0
Major Changes
-
#241
e8cbf66
Thanks @developit! - Improve performance by another 5-10% usingswitch
and short-circuiting, and move pretty-printing + shallow rendering intopreact-render-to-string/jsx
. -
#282
6376f62
Thanks @JoviDeCroock! - Remove trailing space for void_elements, this could fail some test_assertions as
<img />
will become<img/>
, the otherVOID_ELEMENTS
this will be applied for
can be found here -
#286
7a8b590
Thanks @JoviDeCroock! - Remove the castin to VNode forpreact/debug
, this is fixed in Preact >= 10.13.0
Patch Changes
-
#286
7a8b590
Thanks @JoviDeCroock! - Change style calculation to use a Set rather than Regex -
#285
a0546fe
Thanks @JoviDeCroock! - Fix CJS export -
#288
0b04860
Thanks @glenchao! - Enumerate draggable attribute, so the output isn'tdraggable
butdraggable="true"
-
#283
3defa9d
Thanks @JoviDeCroock! - Follow up fixes to #278 -
#289
07ebc66
Thanks @JoviDeCroock! - Supportdata
attribute -
#270
5c6877d
Thanks @developit! - improve unmount option hook call performance -
#278
8cf7cef
Thanks @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
- #257
8b944b2
Thanks @marvinhagemeister! - Fixpreact/debug
incorrectly throwing errors on text children
5.2.5
Patch Changes
- #246
ad35c4c
Thanks @developit and @marvinhagemeister! - Fix object and function children being rendered asundefined
- #248
aa12b3c
Thanks @marvinhagemeister! - Fix vnode masks not matching with core due to top level component Fragments
5.2.2
Patch Changes
-
#235
2f6d6e8
Thanks @marvinhagemeister! - Remove duplicate type path inpackage.json
. Only one oftypes
ortypings
is needed. -
98cce12
Thanks @JoviDeCroock! - Addtypes
entry topackage.json
.
- #228
e4fe799
Thanks @developit! - Improve string encoding performance by ~50%
- #229
d83def7
Thanks @JoviDeCroock! - Split up hot paths and make separate path for opts.pretty for performance
5.2.1
Patch Changes
- #224
645f3cb
Thanks @rschristian! - EnsuresdefaultChecked
is serialized aschecked
attribute
- #225
31ac323
Thanks @JoviDeCroock! - Optimize perf by using smarter string builder
5.1.21
5.1.21
Patch Changes
- #215
a8672db
Thanks @AleksandrHovhannisyan! - Don't add selected attribute to elements if they already contain that attribute