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

0.2.0: Better State support

Compare
Choose a tag to compare
@rhysforyou rhysforyou released this 30 Aug 01:42
· 94 commits to master since this release

⚠️ All releses up until 1.0 will contain breaking changes. Be sure to read the release notes ⚠️

Breaking Changes

  • The Enzyme.getLength function has been renamed to Enzyme.length for consistency #1
  • The props, propFor, setProps, state, stateFor, setState, context, contextFor, and setContext functions have been renamed to jsProps, jsPropFor, setJsProps, jsState, jsStateFor, setJsState, jsContext, jsContextFor, and setJsContext respectively.

New

  • Enzyme.foldLeft and Enzyme.foldRight have been added as wrappers around shallowWrapper's reduce and reduceRight methods.
  • Enzyme.state now returns a component's reasonState