Releases: preactjs/enzyme-adapter-preact-pure
Fix for a small regression in v2.2.1
- Fix a regression in 2.2.1 when a component that is stubbed out during shallow
rendering is passed multiple children #119
Fix issue with components that use the "render prop" pattern
- Fix an exception with render-prop pattern and shallow rendering f9c5621
Improve TypeScript support
This release improves support for projects written in TypeScript by integrating with the @types/enzyme
package #84.
See the Usage with TypeScript section in the README and example project in examples/typescript.
v2.1.0
This release adds support for the stable Preact 10.0.0 release. Internally Preact v10 has been made the "default" version. Support for Preact v8 will eventually be dropped in a future major release.
v2.0.2
v2.0.1
This release fixes an incompatibility with preact-compat for Preact v8.
v2.0.0
This release changes a behaviour where the adapter would patch rendered components' setState
method to make it synchronous. The adapter no longer does this but instead flushes any pending updates when the Enzyme wrapper is updated. This change makes components' behaviour in tests more consistent with behaviour outside of tests and fixes problems when using a recommended pattern for updating state in response to props changes.
Most tests should be unaffected. However tests which used wrapper.setState
or which queried the DOM tree directly (rather than via Enzyme's APIs) after triggering a state update without first calling wrapper.update
may need to be updated.
See #57 for more details.
v1.13.4
This release contains support for some internal changes to components and fragments coming in the next Preact 10 release. It remains compatible with the current Preact 10 release.
v1.13.3
This patch release fixes compatibility of existing functionality with Enzyme v3.10.
- Make shallow rendering compatible with Enzyme 3.10 1ad9219
v1.13.2
This release updates the adapter for changes in the Preact 10 vnode representation in 10.0.0-beta.2. It is backwards-compatible with earlier betas.
- Update Preact 10 to 10.0.0-beta.2 78352ee