Skip to content

Releases: preactjs/preact-render-to-string

5.0.0

07 Mar 15:52
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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)

3.8.0

02 Aug 02:13
Compare
Choose a tag to compare
  • Chop the library size in HALF.
  • Drop support for Object class values (class={{ a: 1 }}), since they were removed from Preact in 8.x.

3.7.2

01 Aug 20:57
Compare
Choose a tag to compare

3.7.0

12 Oct 18:33
Compare
Choose a tag to compare

Features / Changes

  • Add TypeScript definitions (#39, thanks @niedzielski)
  • Correct/simplify component name detection (#44, #45)
  • Skip true values like Preact's default renderer does (#48)

Bug Fixes

  • Fix jsx renderer double closing elements (#36, thanks @marvinhagemeister)
  • Fix babel preset issue causing babel-loader errors (#35)
  • Fix dangerouslySetInnerHTML in JSX mode (#42, #46)
  • Fix {nodeName:undefined} rendering [object Object] (#38, #47)

3.6.2

11 May 22:15
Compare
Choose a tag to compare