Skip to content

Releases: preactjs/preact

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.

5.0.1-beta.12

18 Jun 17:27
Compare
Choose a tag to compare
5.0.1-beta.12 Pre-release
Pre-release
  • 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

09 Jun 03:53
Compare
Choose a tag to compare
5.0.0-beta11 Pre-release
Pre-release

Bug Fixes

  • Fix issue where switching HOC child components could trigger unmount lifecycle methods on the parent

5.0.0-beta10

09 Jun 03:52
Compare
Choose a tag to compare
5.0.0-beta10 Pre-release
Pre-release

Bug Fixes

  • Fix issue where Components rendering null would break functional root check introduced in 5.0.0-beta9 (#182)
  • Fix clearing a previously null/undefined value when using className compat alias (#181)

5.0.0-beta9

06 Jun 17:09
Compare
Choose a tag to compare
5.0.0-beta9 Pre-release
Pre-release

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

06 Jun 17:05
Compare
Choose a tag to compare
5.0.0-beta8 Pre-release
Pre-release

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