Skip to content

Releases: preactjs/preact

5.2.0-beta.0

14 Jul 04:35
Compare
Choose a tag to compare
5.2.0-beta.0 Pre-release
Pre-release
  • Fixed lifecycle event DOM timing! #65 and #96
  • Fixed swapping issue #230

5.1.0-beta.22

30 Jun 17:30
Compare
Choose a tag to compare
5.1.0-beta.22 Pre-release
Pre-release

Features

5.1.0-beta.21

30 Jun 13:41
Compare
Choose a tag to compare
5.1.0-beta.21 Pre-release
Pre-release

Bug Fixes

  • #218 - Fix nested JSX text children resulting in multiple TextNodes (thanks @bardt!)

5.1.0-beta.20

30 Jun 13:31
Compare
Choose a tag to compare
5.1.0-beta.20 Pre-release
Pre-release

Minor Changes

  • Fix an inconsistency with how defaultProps are applied (preactjs/preact-compat#47)

    A key in props with a value of undefined should be treated as a missing key, and the value from defaultProps should be used in its place.

  • Switch setImmediate backend from MessageChannel to Promise#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 that componentDidUpdate() and setState() 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

30 Jun 13:30
Compare
Choose a tag to compare
5.1.0-beta.19 Pre-release
Pre-release

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

23 Jun 00:41
Compare
Choose a tag to compare
5.1.0-beta.18 Pre-release
Pre-release

5.1.0-beta.17

21 Jun 23:06
Compare
Choose a tag to compare
5.1.0-beta.17 Pre-release
Pre-release

Bugfixes

  • Ignore props.children if children are manually specified (as jsx children, or the third argument to h())
  • 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

21 Jun 23:05
Compare
Choose a tag to compare
5.1.0-beta.16 Pre-release
Pre-release
  • Fix and (corrected) test for object style attribute serialization (#204) - thanks @katopz
  • 🎨 Add built-in support for inline SVG! (#202)

5.0.1-beta.15

21 Jun 23:04
Compare
Choose a tag to compare
5.0.1-beta.15 Pre-release
Pre-release

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 to undefined if not done within a conditionally executable block.

5.0.1-beta.14

18 Jun 20:20
Compare
Choose a tag to compare
5.0.1-beta.14 Pre-release
Pre-release
  • Fixes 5.0.1-beta.13 having been published without the beta flag.