Skip to content

Releases: preactjs/enzyme-adapter-preact-pure

Fix for a small regression in v2.2.1

08 Aug 15:04
Compare
Choose a tag to compare
  • 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

19 Jul 10:54
Compare
Choose a tag to compare
  • Fix an exception with render-prop pattern and shallow rendering f9c5621

v2.2.0...v2.2.1

Improve TypeScript support

10 Nov 09:53
Compare
Choose a tag to compare

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

03 Oct 08:03
Compare
Choose a tag to compare

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

v2.0.2

08 Aug 07:58
Compare
Choose a tag to compare
  • Test with latest Preact 8.x release 0f9bade
  • Test with latest Preact 10.x release and remove workaround for beta releases e71c574
  • Add a runnable example project that runs in Node using jsdom 1037fbc

v2.0.1...v2.0.2

v2.0.1

18 Jul 15:55
Compare
Choose a tag to compare

This release fixes an incompatibility with preact-compat for Preact v8.

v2.0.0...v2.0.1

v2.0.0

17 Jun 15:33
Compare
Choose a tag to compare

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...v2.0.0

v1.13.4

10 Jun 09:11
Compare
Choose a tag to compare

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...v1.13.4

v1.13.3

04 Jun 09:11
Compare
Choose a tag to compare

This patch release fixes compatibility of existing functionality with Enzyme v3.10.

  • Make shallow rendering compatible with Enzyme 3.10 1ad9219

v1.13.2...v1.13.3

v1.13.2

01 Jun 08:06
Compare
Choose a tag to compare

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

v1.13.1...v1.13.2