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

14 Jun 18:28
Compare
Choose a tag to compare

🚨 Reminder: This module is for Preact 8.x and prior - Preact X includes compat by default.
For Preact X, please uninstall preact-compat and replace your aliases with preact/compat.

3.18.5

18 Apr 13:48
Compare
Choose a tag to compare

Reminder: preact-compat should never be used with Preact X.

preact-compat should never be used with Preact X. Doing so will have unintended consequences including the pollution of Object.prototype (example).

This release of preact-compat changes peerDependencies to warn when installing alongside Preact 10+. You can (and should) continue to use preact-compat in conjunction with Preact 8 and prior.

If you're having trouble finding references to preact-compat in your codebase, try using a Webpack alias:

resolve: {
  alias: {
    'preact-compat': 'preact/compat'
  }
}

Other things in this release:

  • Automatic browserify NODE_ENV support (#510, thanks @evandeininger)
  • Export createRef() (added in Preact 8.4)
  • Export hydrate() alias

3.18.4

31 Aug 01:00
Compare
Choose a tag to compare

3.18.3

17 Aug 02:31
Compare
Choose a tag to compare

Quick bugfix: findDOMNode() should return an element if given one (#493, #495 - thanks @billneff79 & @zhaopeifei)

3.18.2

01 Aug 21:00
Compare
Choose a tag to compare

Important security patch

3.18.2 fixes an HTML injection vulnerability (CVE-2018-6341), so we encourage everyone to update.
The fix is contained in preact-render-to-string@3.7.2, used by preact-compat/server.

See React's detailed notes for more information. Thanks for @gaearon and the React team for the coordinated fix!

3.18.0

22 Jan 21:24
Compare
Choose a tag to compare
  • Implement react-dom-factories (#456, thanks @freeman)
  • Call getDefaultProps on the class so static properties are available (#421, @joeyrobert)
  • Fix cloned props.children issue (#415, thanks @kozak)
  • Fix IE11 lacking Symbol.for() (#423, @xxxiin)

3.17.0

06 Aug 05:57
Compare
Choose a tag to compare
  • Add context for callback function in renderSubtreeIntoContainer() to match React (#399, @lsroman)
  • Make Children.toArray() always return a new array (#395, @ustccjw)
  • bugfix: array data children were converted to an object (#384, @luolonghao)
  • Improve render parent check in render (#387, @silverlight513)
  • props.className is now an alias of props.class (#412)
  • Add vectorEffect to the list of camel case properties (#409, @icewind1991)
  • Add React.__spread export since it's already available (#407, @gnarf)
  • PureComponent prototype now includes isPureReactComponent: true

3.15.0

18 Apr 14:02
Compare
Choose a tag to compare

3.14.3

18 Mar 16:50
Compare
Choose a tag to compare
  • Fix ES Modules bundle being missing from 3.14.2 (#332, thanks @0xR!)

3.14.2

16 Mar 19:46
Compare
Choose a tag to compare
  • Fixes an issue where children could be mutated across VNodes (#330, thanks @conorhastings!)