Skip to content

Releases: preactjs/preact-render-to-string

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

3.6.1

26 Apr 01:05
Compare
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
Compare
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
Compare
Choose a tag to compare
  • Add SVG xlink prop support with respect for foreignObject (thanks @wildlyinaccurate!)

3.4.1

20 Jan 19:28
Compare
Choose a tag to compare
  • fix performance regression noticed by @lukeed

3.4.0

17 Jan 14:57
Compare
Choose a tag to compare
  • Add support for boolean attributes with empty string value (#17, thanks @wyze)

3.3.0

29 Nov 19:52
Compare
Choose a tag to compare
  • Don't render empty values as HTML comments (to match preact no longer doing so)

3.2.1

30 Sep 18:14
Compare
Choose a tag to compare
  • Fix issue with Preact 6.1+ and the JSX mode where object values for the class prop were serialized as objects instead of their normalized string form

3.2.0

30 Sep 18:14
Compare
Choose a tag to compare
  • Update to preact 6.1 and fix class/className massaging, fix class being left as an Object due to changes in Preact 6.1.