Releases: preactjs/preact
Releases · preactjs/preact
5.1.0-beta.18
5.1.0-beta.17
Bugfixes
- Ignore
props.children
ifchildren
are manually specified (as jsx children, or the third argument toh()
) - Fix and test for the
<svg class>
bug @zhenkunou found and reported in #202 - Tiny size optimizations to offset the cost of the above fix :)
5.1.0-beta.16
5.0.1-beta.15
Bugfixes
- Fix issue where
value
and a few other properties could get out of sync with their DOM counterparts. - Fix overly optimistic codemod that was breaking child resolution in
5.0.1-beta.14
. The codemod is now more intelligent and will only remove pointless initialization toundefined
if not done within a conditionally executable block.
5.0.1-beta.14
- Fixes
5.0.1-beta.13
having been published without the beta flag.
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