Releases: preactjs/preact-render-to-string
Releases · preactjs/preact-render-to-string
5.1.5
- Add
setState()/forceUpdate()
no-op methods to prevent errors (#139, thanks @developit) - Update Travis CI org name to
preactjs
[skip ci] (#138, thanks @mbrukman)
5.1.4
- Add
package-lock
for pika (#132, thanks @JoviDeCroock) - Add TypeScript definitions for JSX renderer (#131, thanks @squidfunk)
5.1.3
Bug Fixes
- Fix support for default
context
value (#130, thanks @loklaan) - Always throw errors, not
strings
(#129, thanks @sventschui)
Maintenance
- Update Travis config (#128, thanks @marvinhagemeister)
5.1.2
- Fix exception when invoking
setState
incomponentWillMount
(#127, thanks @marvinhagemeister )
5.1.1
- Fix effects breaking in SSR due to missing
_renderCallbacks
(#124, thanks @developit, @marvinhagemeister ) - Fix correct type signature for
pretty
option (#123, thanks @dbushong)
5.1.0
5.0.7
- Indent
Fragment
's children when pretty printing. (#117, thanks @utkarshkukreti) - Initialize component
state
as an empty object (#119, thanks @marvinhagemeister) - Streamline non-dimensional params with preact X (#111, thanks @JoviDeCroock)
5.0.6
- Fix each text node printed on a separate line. Adjacent text nodes are now combined together as a single text block. Note that you may need to update your snapshot tests if you're using
preact-render-to-string
with jest.
5.0.5
- Fix
pretty
option doing nothing (#106, thanks @marvinhagemeister) - Added type definition tests (#83, thanks @9renpoto)
- [TS] Make
options
optional (#101, thanks @andrewiggins)
5.0.4
- Fix
options.render
is private in core (#97, thanks @marvinhagemeister) - Wrap arrays in
Fragment
to allow proper rendering (#96, thanks @toraora)