preact-render-to-string
Advanced tools
Changelog
6.2.1
a331699
Thanks @marvinhagemeister! - Fix incorrect casing of HTML attributes and SVG attributes017a8bb
Thanks @marvinhagemeister! - Fix casing of namespaced attribute namesChangelog
6.2.0
#305 568f139
Thanks @marvinhagemeister! - Add support for error boundaries via componentDidCatch
and getDerivedStateFromError
This feature is disabled by default and can be enabled by toggling the errorBoundaries
option:
import { options } from 'preact';
// Enable error boundaries
options.errorBoundaries = true;
Changelog
6.1.0
659b456
Thanks @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.Changelog
6.0.2
637b302
Thanks @marvinhagemeister! - Bring back exports from 5.x to make migration easierChangelog
6.0.0
e8cbf66
Thanks @developit! - Improve performance by another 5-10% using switch
and short-circuiting, and move pretty-printing from into preact-render-to-string/jsx
.6376f62
Thanks @JoviDeCroock! - Remove trailing space for void_elements, this could fail some test_assertions as
<img />
will become <img/>
, the other VOID_ELEMENTS
this will be applied for
can be found here7a8b590
Thanks @JoviDeCroock! - Remove the castin to VNode for preact/debug
, this is fixed in Preact >= 10.13.07a8b590
Thanks @JoviDeCroock! - Change style calculation to use a Set rather than Regexa0546fe
Thanks @JoviDeCroock! - Fix CJS export0b04860
Thanks @glenchao! - Enumerate draggable attribute, so the output isn't draggable
but draggable="true"
3defa9d
Thanks @JoviDeCroock! - Follow up fixes to #27807ebc66
Thanks @JoviDeCroock! - Support data
attribute5c6877d
Thanks @developit! - improve unmount option hook call performance#278 8cf7cef
Thanks @JoviDeCroock! - Improve performance by
x-link
regex.toLowerCase()
insteadChangelog
5.2.6
8b944b2
Thanks @marvinhagemeister! - Fix preact/debug
incorrectly throwing errors on text childrenChangelog
5.2.5
ad35c4c
Thanks @developit and @marvinhagemeister! - Fix object and function children being rendered as undefined
aa12b3c
Thanks @marvinhagemeister! - Fix vnode masks not matching with core due to top level component FragmentsChangelog
5.2.4
bd5e5eb
Thanks @JoviDeCroock! - correctly unmount vnodesdec7a7a
Thanks @JoviDeCroock! - add parent and children for useId