Releases: preactjs/preact-compat
3.19.0
🚨 Reminder: This module is for Preact 8.x and prior - Preact X includes compat by default.
For Preact X, please uninstallpreact-compatand replace your aliases withpreact/compat.
- adds support for
createContext(), courtesy of preact-context (#529, thanks @probablyup!)
3.18.5
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
3.18.3
Quick bugfix: findDOMNode() should return an element if given one (#493, #495 - thanks @billneff79 & @zhaopeifei)
3.18.2
- Support for
createPortal()(#452, #486) - Avoid triggering insertion of a
processshim in bundlers (#403, #472 - thanks @kaisermann)
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
3.17.0
- 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.classNameis now an alias ofprops.class(#412)- Add
vectorEffectto the list of camel case properties (#409, @icewind1991) - Add
React.__spreadexport since it's already available (#407, @gnarf) PureComponentprototype now includesisPureReactComponent: true
3.15.0
- Adds
lib/update(#260, #339 - thanks @slaskis!) - Fix
Children.toArraywhen passed undefined (#341 - thanks @AlexanderOtavka!) - Switch to the official
prop-typespackage (#359, #362 - thanks @conceptualitis, @DonnieWest, @tkh44) - Tests updated to Preact 8 and non-empty children issue fixed.