- #324
6bf321d
Thanks @marvinhagemeister! - Fix mapped children not working with Deno's new precompile JSX transform.
-
926827c
Thanks @marvinhagemeister! - Add support for precompiled JSX transform, see https://deno.com/blog/v1.38#fastest-jsx-transform. Compared to traditional JSX transforms, the precompiled JSX transform tries to pre-serialize as much of the JSX as possible. That way less objects need to be created and serialized which relieves a lot of GC pressure.// input <div class="foo">hello</div>; // output const tpl = [`<div class="foo">hello</div>`]; jsxTemplate(tpl);
- #315
f1d81be
Thanks @JoviDeCroock! - avoid adding double colon for namespaced attributes
- #308
a331699
Thanks @marvinhagemeister! - Fix incorrect casing of HTML attributes and SVG attributes
- #310
017a8bb
Thanks @marvinhagemeister! - Fix casing of namespaced attribute names
-
#305
568f139
Thanks @marvinhagemeister! - Add support for error boundaries viacomponentDidCatch
andgetDerivedStateFromError
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;
- #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.
- #298
6a4b8ed
Thanks @shinyama-k! - Fix to add type file for jsx.js
- #294
637b302
Thanks @marvinhagemeister! - Bring back exports from 5.x to make migration easier
- #292
8f4692c
Thanks @marvinhagemeister! - Fix error in commonjs entry point
- #241
e8cbf66
Thanks @developit! - Improve performance by another 5-10% usingswitch
and short-circuiting, and move pretty-printing from 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
- #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
- #257
8b944b2
Thanks @marvinhagemeister! - Fixpreact/debug
incorrectly throwing errors on text children
- #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
- #242
bd5e5eb
Thanks @JoviDeCroock! - correctly unmount vnodes
- #237
dec7a7a
Thanks @JoviDeCroock! - add parent and children for useId
- #232
2d5ca74
Thanks @JoviDeCroock! - Performance enhancements
- #238
7cdf4d6
Thanks @developit! - Fix the order of invocation for the "before diff" (__b
) and "diffed" options hooks.
- #235
2f6d6e8
Thanks @marvinhagemeister! - Remove duplicate type path inpackage.json
. Only one oftypes
ortypings
is needed.
- #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
- #224
645f3cb
Thanks @rschristian! - EnsuresdefaultChecked
is serialized aschecked
attribute
- #225
31ac323
Thanks @JoviDeCroock! - Optimize perf by using smarter string builder
- #219
250c15f
Thanks @developit! - Implement hook state settling. Setting hook state during the execution of a function component (eg: inuseMemo
) will now re-render the component and use the final result. Previously, these updates were dropped.
- #215
a8672db
Thanks @AleksandrHovhannisyan! - Don't add selected attribute to elements if they already contain that attribute
- #209
298d05e
Thanks @rschristian! - On empty className w/ compat, class attribute will no longer be duplicated
- #205
6d47c5a
Thanks @JoviDeCroock! - Fix serialize defaultValue as value attribute