Releases: preactjs/preact
5.2.0-beta.0
5.1.0-beta.22
5.1.0-beta.21
5.1.0-beta.20
Minor Changes
-
Fix an inconsistency with how
defaultProps
are applied (preactjs/preact-compat#47)A key in
props
with a value ofundefined
should be treated as a missing key, and the value fromdefaultProps
should be used in its place. -
Switch
setImmediate
backend fromMessageChannel
toPromise#then
(change diff)This is much faster!
However: This comes with the caveat of being unusable for animation. While this matches the use-case for
setImmediate()
within Preact (debouncing rendering), it means thatcomponentDidUpdate()
andsetState()
callbacks should not be used as a means of animation. ** This is only true when using the built-in debounce mechanism. Overriding to requestAnimationFrame is still a great way to do animations via these hooks.
5.1.0-beta.19
Bug Fixes
-
Fix an issue where swapping between functional and classful children of a high-order component could trigger an unmount in certain cases
💁 If you're using preact-router, this fixes a redirect breakage
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.