Skip to content

Releases: preactjs/preact

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

5.0.0-beta7

06 Jun 17:02
Compare
Choose a tag to compare
5.0.0-beta7 Pre-release
Pre-release

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

31 May 12:46
Compare
Choose a tag to compare
5.0.0-beta6 Pre-release
Pre-release
5.0.0-beta6

5.0.0-beta2

24 May 03:26
Compare
Choose a tag to compare

Potentially Breaking Changes

  • Switch to exclusively named exports. Fixes compatibility with ES Module bundlers like Rollup (#150).

Bug Fixes

  • Don't invoke shouldComponentUpdate() when updating via forceUpdate() (#158)
  • Fix diff self-correction issue that resulted in an unnecessary element removal and re-append (#159)

5.0.0-beta1

24 May 03:24
Compare
Choose a tag to compare

Potentially Breaking Changes

  • DOM event handlers are no longer invoked with the source element as their context (this) (#153)
  • Adding properties to context within a tree no longer overwrites, instead it extends/appends (#156)

Bug Fixes

  • Fix for high-order component mount lifecycle (#143)
  • Fix incorrect rendering of 0 values (#149)

Features

  • Add key property to VNodes (#155)

Optimization

Preact 4:

Preact 5:

4.8.0

26 Apr 20:30
Compare
Choose a tag to compare
  • 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!']} />