Releases: preactjs/preact-render-to-string
Releases · preactjs/preact-render-to-string
5.0.0
Support for Preact 10+.
This release contains only the backwards-incompatible changes necessary to move to Preact's new VNode format.
4.1.0
4.0.1
3.8.2
4.0.0
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
- 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
3.7.2
- Important update: Fixes an HTML injection vulnerability (CVE-2018-6341). See React's detailed notes.
- Invalid element names now throw an exception.
3.7.0
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)