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.1.0

15 Sep 02:39
Compare
Choose a tag to compare
  • Fix case where props.children was not normalize prior to invoking componentWillReceiveProps() (#188, thanks @robbiewxyz!)
  • Add shims for lib/ReactMount and lib/ReactTransitionEvents (#175)

3.0.1

15 Sep 02:37
Compare
Choose a tag to compare
  • fix onchange triggering twice for select box (#165)

3.0.0

24 Aug 14:59
Compare
Choose a tag to compare

Breaking: render()

  • render() will now remove elements not included in the diff (#150, thanks @MobiusHorizons!)
  • Technically a breaking change, now behaves the same as React:
import { render, createElement } from 'preact-compat';

console.log(document.body.outerHTML);
// <body>blah<div>asdfasdf</div><span>hello</span></body>

render(<div id="foo">Foo</div>, document.body);

console.log(document.body.outerHTML);
// <body><div id="foo">Foo</div></body>

(note: <div> from first log is the same as the second)

Better compatibility with ES Bundlers like Rollup!

  • Add "modules" field to package.json (#144, thanks @piuccio!)
  • Remove internal use of JSX
  • Switched from Babel to Bublé for the build, saves 300 bytes.

2.3.1

22 Aug 19:48
Compare
Choose a tag to compare

2.3.0

03 Aug 01:34
Compare
Choose a tag to compare

🌈 Maintenance Release

  • This release brings us up to the latest preact-render-to-string. It warranted a minor version change due to the upstream having underwent a fairly major reorganization.

2.2.1

03 Aug 01:32
Compare
Choose a tag to compare
  • Small bugfix for stateful wrapper components

2.2.0

24 Jul 02:37
Compare
Choose a tag to compare

Hot on the heels of 2.1.0, some fresh updates:

  • Basic onChange event normalization (#20)
  • Add support for unstable_renderSubtreeIntoContainer() 😬
  • Accept VNodes cloned/modified via extend (shallow clone)
  • Fix findDOMNode() bailing out in certain cases

2.1.0

23 Jul 19:05
Compare
Choose a tag to compare

Features

  • Add support for mixins to createClass().
  • Add propType validation for stateless functional components (thanks @ctrlplusb!)

Fixes

  • Softens propType validation to result in console.error rather than throwing exceptions (thanks @ctrlplusb!)
  • Mark property extensions as configurable so hot-reloading preact-compat doesn't break (thanks @ctrlplusb!)

2.0.0

23 Jul 19:01
Compare
Choose a tag to compare
  • This release drops support for Preact 4.x and prior. Please upgrade to Preact 5, which is backwards-compatible and introduces a number of new features.
  • Drop unnecessary preact-svg dependency since this is now supported natively.

1.11.1

23 Jul 18:59
Compare
Choose a tag to compare
  • Bugfix: Allow numeric values for ref ("string refs")