Enzyme v3.0.0 Release Notes
-
๐ฅ Breaking Changes
๐ Enzyme has several breaking changes from v2 to v3. Please check out our migration guide for more info. Since there was a rewrite of the core library from v2 to v3, it is hard to categorize changes in terms of sem
@lelandrichardson: Refactor enzyme to use Adapters, initial React 16 support (#1007)
@lelandrichardson: Make private properties more private and harder to use (#1083)
@ljharb: [breaking] update
cheerio
to v1 (#1093)@aweary: Integrate with a CSS parser for selector parsing (#1086)
@vadimdemedes: Skip undefined props when comparing nodes (#662)
@koba04: Breaking: lifecycleExperimental by default (#1140)
๐ New Stuff
@lelandrichardson: Move to lerna repo structure, multiple modules (#1074)
@lelandrichardson: Remove all React dependencies from enzyme (#1084)
@lelandrichardson: Add public root method (#1127)
### Fixes
@aweary: Remove isFunctionalComponent, use nodeType instead (#1076)
@LarsHassler: props not merged when shallow rendering in lifecycleExperimental (#1088)
@ljharb: [Fix]
mount
: do not mutateComponent.contextTypes
(#1099)@ljharb: [Fix]
reduce
/reduceRight
: followArray#reduce
when omitting initialValue (#673)@koba04: Fix componentDidUpdate when updating by setState on v16 (#1133)
@koba04: Fix componentDidUpdate no longer receives prevContext on React v16 (#1139)
### Documentation