Releases: preactjs/preact
Releases · preactjs/preact
5.0.1-beta.12
- Bugfix: When recycling old trees due to a Component render producing a different root node, avoid accidentally recycling the
base
of a high-order child component.
5.0.0-beta11
Bug Fixes
- Fix issue where switching HOC child components could trigger unmount lifecycle methods on the parent
5.0.0-beta10
5.0.0-beta9
New Features
- Allow functions as VNode children (#154)
This is used in libraries that provide animation functionality by re-rendering function children with changing props:
render() { return ( <SomeAnimator start={0} end={155} loop> { hue => ( <span style={{ color: `hsl(${hue}, 100%, 60%)` }}>Rainbow</span> ) } </SomeAnimator> ); }
5.0.0-beta8
Bug Fixes
- Account for High-Order stateful child components wrapped in one or more functional components (#175)
- Fix disappearing element issue when swapping component root between Element and Text nodes (#176)
- Verify nesting ownership when attempting to unmount High-Order components
Other
- Various performance and memory optimizations
5.0.0-beta7
New Features
- Add support for
cloneElement()
. See React's Docs for more.
Bug Fixes
- Wrap DOM property assignment in a
try{}
block, as it can throw. - Fix element reordering regression (#174)
5.0.0-beta6
5.0.0-beta6
5.0.0-beta2
Potentially Breaking Changes
- Switch to exclusively named exports. Fixes compatibility with ES Module bundlers like Rollup (#150).
Bug Fixes
5.0.0-beta1
4.8.0
-
Fix
children
being ignored when passed explicitly via props in certain cases. Fixes preactjs/preact-compat#44 (thanks @ld0rman!)Fun fact: this means you can now do:
<div children={['hello!']} />