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

3.18.5

Compare
Choose a tag to compare
@developit developit released this 18 Apr 13:48
· 7 commits to master since this release

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