Skip to content

Releases: preactjs/preact-render-to-string

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.

3.1.1

30 Sep 18:13
Compare
Choose a tag to compare
  • Add special treatment for style and class DOM attributes to match DOM renderer

3.1.0

20 Sep 23:45
Compare
Choose a tag to compare
  • Add support for disabling function and/or function name comparison in JSX mode
    • { functionNames:false } just serializes all function props as prop={Function}
    • { functions:false } turns off function serialization entirely
  • Add skipFalseAttributes option - when set to false, turns off DOM attribute skipping (#4)

3.0.7

20 Sep 23:44
Compare
Choose a tag to compare
  • Dont use self-closing tags in JSX mode

3.0.6

20 Sep 23:44
Compare
Choose a tag to compare
  • Fix JSX rendering being non-deterministic about empty VNodes

3.0.5

03 Aug 22:58
Compare
Choose a tag to compare
  • JSX Mode: skip attributes with null and undefined values
  • JSX Mode: don't use self-closing tags as they make string assertions less useful