Skip to content

Releases: preactjs/preact-render-to-string

3.8.0

02 Aug 02:13

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

Choose a tag to compare

3.7.0

12 Oct 18:33

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

Choose a tag to compare

3.6.1

26 Apr 01:05

Choose a tag to compare

  • Prevent stateful re-rendering from being triggered during String rendering (preactjs/preact#524).

3.6.0

14 Feb 18:50

Choose a tag to compare

  • Add slashes to self-closing tags to support both XHTML and HTML (#25, thanks @elliotdavies!)

3.5.0

20 Jan 19:30

Choose a tag to compare

  • Add SVG xlink prop support with respect for foreignObject (thanks @wildlyinaccurate!)

3.4.1

20 Jan 19:28

Choose a tag to compare

  • fix performance regression noticed by @lukeed

3.4.0

17 Jan 14:57

Choose a tag to compare

  • Add support for boolean attributes with empty string value (#17, thanks @wyze)

3.3.0

29 Nov 19:52

Choose a tag to compare

  • Don't render empty values as HTML comments (to match preact no longer doing so)