Releases: preactjs/preact-render-to-string
Releases · preactjs/preact-render-to-string
5.1.1
- Fix effects breaking in SSR due to missing
_renderCallbacks
(#124, thanks @developit, @marvinhagemeister ) - Fix correct type signature for
pretty
option (#123, thanks @dbushong)
5.1.0
5.0.7
- Indent
Fragment
's children when pretty printing. (#117, thanks @utkarshkukreti) - Initialize component
state
as an empty object (#119, thanks @marvinhagemeister) - Streamline non-dimensional params with preact X (#111, thanks @JoviDeCroock)
5.0.6
- Fix each text node printed on a separate line. Adjacent text nodes are now combined together as a single text block. Note that you may need to update your snapshot tests if you're using
preact-render-to-string
with jest.
5.0.5
- Fix
pretty
option doing nothing (#106, thanks @marvinhagemeister) - Added type definition tests (#83, thanks @9renpoto)
- [TS] Make
options
optional (#101, thanks @andrewiggins)
5.0.4
- Fix
options.render
is private in core (#97, thanks @marvinhagemeister) - Wrap arrays in
Fragment
to allow proper rendering (#96, thanks @toraora)
5.0.3
- Fix select value not passed through components (#85, thanks @marvinhagemeister)
- Allow Preact X beta as peer dep (#87, thanks @sventschui)
- Add support for
createContext
-API (#88, thanks @sventschui) - Switch from
mjs
tojs
(#89, thanks @marvinhagemeister)
5.0.2
- Add support for
Fragments
(#79, thanks @marvinhagemeister) - Resolve crash when using
hooks
(#77, thanks @vaneenige) 🎉
5.0.1
5.0.0
Support for Preact 10+.
This release contains only the backwards-incompatible changes necessary to move to Preact's new VNode format.