preact-render-to-string
Advanced tools
Changelog
6.5.3
3044ac2
Thanks @rschristian! - Correct stream exports8c7e08f
Thanks @rschristian! - Add types for /stream
and /stream-node
exportsChangelog
6.5.2
689e88d
Thanks @JoviDeCroock! - Correctly render null
as an __html
value as an empty stringChangelog
6.5.0
a004914
Thanks @JoviDeCroock! - Introduce a streaming renderer which can be imported from preact-render-to-string/stream
and preact-render-to-string/stream-node
a004914
Thanks @JoviDeCroock! - Ensure popoverTarget
and popoverTargetAction
are serialized to lower casea004914
Thanks @JoviDeCroock! - Fix for shallow rendering incorrectly transforming Fragments into other nodesa004914
Thanks @JoviDeCroock! - Ensure cellPadding
, cellSpacing
, and useMap
are serialized to lower casea004914
Thanks @JoviDeCroock! - streaming rendering with Suspense boundaries as flush triggerChangelog
6.4.2
7bc77a3
Thanks @marvinhagemeister! - Fix JSX template being detected as a top level Fragment when Deno's jsx precompile
option is used303b8c0
Thanks @marvinhagemeister! - Perf: Remove unnecessary closure when rendering child nodesChangelog
6.4.1
27a8b0e
Thanks @JoviDeCroock! - Ensure commonjs also has the async exportc46fb59
Thanks @marvinhagemeister! - Fix error thrown after suspending not being rethrown.4462822
Thanks @marvinhagemeister! - Fix invalid parent pointer empty value when rendering a suspended vnodeChangelog
6.4.0
6acc97a
Thanks @JoviDeCroock! - Allow prepass like behavior where a Promise
will be awaited and then continued, this is done with
the new renderToStringAsync
exportChangelog
6.3.1
6bf321d
Thanks @marvinhagemeister! - Fix mapped children not working with Deno's new precompile JSX transform.Changelog
6.3.0
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);