Skip to content

Releases: preactjs/preact-render-to-string

5.0.4

22 Jun 05:44
0b239cf

Choose a tag to compare

5.0.3

07 May 17:06
a102ba8

Choose a tag to compare

5.0.2

25 Mar 17:39

Choose a tag to compare

5.0.1

14 Mar 19:33

Choose a tag to compare

5.0.0

07 Mar 15:52

Choose a tag to compare

Support for Preact 10+.

This release contains only the backwards-incompatible changes necessary to move to Preact's new VNode format.

4.1.0

17 Aug 02:37

Choose a tag to compare

  • 🎉 Adds support for getDerivedStateFromProps() (#63, thanks @johnhaitas!)

Update: 4.1.0 is now the official latest release (no longer a prerelease)!

4.0.1

17 Aug 02:33

Choose a tag to compare

4.0.1 Pre-release
Pre-release
  • Fix transpiled code for preact-render-to-string/jsx containing arrow functions in 4.0.0.

3.8.2

17 Aug 02:32

Choose a tag to compare

  • Fix transpiled code for preact-render-to-string/jsx containing arrow functions in 3.8.1.

4.0.0

16 Aug 01:28

Choose a tag to compare

4.0.0 Pre-release
Pre-release

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 });

3.8.1

16 Aug 01:22

Choose a tag to compare

  • Revert an unintentionally breaking change from 3.8.0 where undefined vnodes throw an exception. Expect this behavior in the future, but for now they will once again render as <undefined>. (#59 / #61, thanks @billneff79)
  • Fix defaultProps to work the same way it does in Preact on the client (#60, thanks @ftes)
  • Ensure type definition is included in the npm package (#51, thanks @pspeter3)