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 mutate Component.contextTypes (#1099)

    • @ljharb: [Fix] reduce/reduceRight: follow Array#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

    • @ghost: added sinon to mocha guide (#1075)

    • @samit4me: Update to GitBook 3 (#1039)

    • @therewillbecode: Removed extraneous brackets from example in readme (#1117)

    • @silvenon: Add note that mount() requires cleanup (#1043)

    • @lelandrichardson: Add docs reflecting v3 (#1121)