Releases: preactjs/preact-render-to-string
Releases · preactjs/preact-render-to-string
5.0.5
- Fix
prettyoption doing nothing (#106, thanks @marvinhagemeister) - Added type definition tests (#83, thanks @9renpoto)
- [TS] Make
optionsoptional (#101, thanks @andrewiggins)
5.0.4
- Fix
options.renderis private in core (#97, thanks @marvinhagemeister) - Wrap arrays in
Fragmentto 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
mjstojs(#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.
4.1.0
4.0.1
3.8.2
4.0.0
Breaking Changes:
The preact-render-to-string module no longer supports the { pretty: true } option. For this functionality, please migrate to preact-render-to-string/jsx:
import renderToString from 'preact-render-to-string/jsx';
renderToString(<foo />, { pretty: true, jsx: false, xml: false });