Releases: preactjs/preact-render-to-string
Releases · preactjs/preact-render-to-string
3.4.1
- fix performance regression noticed by @lukeed
3.4.0
- Add support for boolean attributes with empty string value (#17, thanks @wyze)
3.3.0
- Don't render empty values as HTML comments (to match preact no longer doing so)
3.2.1
- 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
- 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
- Add special treatment for
style
and class
DOM attributes to match DOM renderer
3.1.0
- 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
- Dont use self-closing tags in JSX mode
3.0.6
- Fix JSX rendering being non-deterministic about empty VNodes
3.0.5
- JSX Mode: skip attributes with
null
and undefined
values
- JSX Mode: don't use self-closing tags as they make string assertions less useful