:page_facing_up: Universal rendering for Preact: render JSX and Preact components to HTML.
#308 a331699
Thanks @marvinhagemeister! - Fix incorrect casing of HTML attributes and SVG attributes
#310 017a8bb
Thanks @marvinhagemeister! - Fix casing of namespaced attribute names
#311 bccd1d6
Thanks @gpoitch! - Apply attribute name handling in pretty mode
#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;
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.637b302
Thanks @marvinhagemeister! - Bring back exports from 5.x to make migration easier#241 e8cbf66
Thanks @developit! - Improve performance by another 5-10% using switch
and short-circuiting, and move pretty-printing + shallow rendering into preact-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 other VOID_ELEMENTS
this will be applied for
can be found here
#286 7a8b590
Thanks @JoviDeCroock! - Remove the castin to VNode for preact/debug
, this is fixed in Preact >= 10.13.0
#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't draggable
but draggable="true"
#283 3defa9d
Thanks @JoviDeCroock! - Follow up fixes to #278
#289 07ebc66
Thanks @JoviDeCroock! - Support data
attribute
#270 5c6877d
Thanks @developit! - improve unmount option hook call performance
#278 8cf7cef
Thanks @JoviDeCroock! - Improve performance by
x-link
regex.toLowerCase()
instead8b944b2
Thanks @marvinhagemeister! - Fix preact/debug
incorrectly throwing errors on text childrenad35c4c
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 Fragments#235 2f6d6e8
Thanks @marvinhagemeister! - Remove duplicate type path in package.json
. Only one of types
or typings
is needed.
98cce12
Thanks @JoviDeCroock! - Add types
entry to package.json
.
e4fe799
Thanks @developit! - Improve string encoding performance by ~50%d83def7
Thanks @JoviDeCroock! - Split up hot paths and make separate path for opts.pretty for performance