Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Releases: preactjs/preact-compat

3.9.1

01 Dec 02:52
Compare
Choose a tag to compare
  • Remove let from lib/ since it doesn't get transpiled
  • Avoid checking for previous render when no DOM is provided to render

3.9.0

24 Oct 15:02
Compare
Choose a tag to compare
  • Add support for Component#replaceState() (#227)

3.8.2

13 Oct 02:46
Compare
Choose a tag to compare

🎉 This release brings full compatibility with React Storybook!

Changes Since 3.7.1:

  • Ensure .attributes / .props is always populated, since React does so
  • Remove props.children if it's an empty Array, since that is now much more often the case as of Preact 6.3.0.

3.7.0

06 Oct 01:08
Compare
Choose a tag to compare
  • Add support for (deprecated) camelCase'd SVG props. Fixes #222.
  • Transform pure functions to components in order to make keyed behavior match React's
    • This may be moved into preact's core soon!
  • Optimize performance of JSX (VNode creation/normalization) and hooks

Note: It's recommended that you also update to Preact 6.3.0.

3.6.0

04 Oct 12:43
Compare
Choose a tag to compare
  • Adds support for PureComponent! Fixes #139.

3.5.0

03 Oct 04:03
Compare
Choose a tag to compare

Important:

  • We've migrated Component.getInitialState() here from preact core (as of preact 6.2.0)

3.4.2

23 Sep 02:29
Compare
Choose a tag to compare
  • Fix possible case where props.children could still be an Array when passed to a component's render() method (#174)

3.4.0

23 Sep 02:28
Compare
Choose a tag to compare

3.3.0

23 Sep 02:27
Compare
Choose a tag to compare
  • Add /legacy entry (require('preact-compat/legacy')), which emulates React 0.12.x (merged client and server rendering APIs)

If you're porting a React 0.12.x app, just change your preact-compat aliases to preact-compat/legacy!

3.2.0

22 Sep 12:29
Compare
Choose a tag to compare