Enzyme v3.5.0 Release Notes
-
🆕 New Stuff
- ➕ Add forwardRef support (#1592, @jquense)
- ➕ Add Portal support (#1760, #1761, #1772, #1774, @jgzuke)
- ➕ Add pointer events support (#1753, @ljharb)
🛠 Fixes
- preemptively fix compat with React v16.4.3 (#1790, #1778, @gaearon, @aweary)
shallow
: prevent rerenders with PureComponents (#1786, @koba04)- ⚡️
shallow
: skip updates when nextState isnull
orundefined
(#1785, @koba04) shallow
:setState
aftersetProps
callscomponentWillReceiveProps
(#1779, @peanutenthusiast)mount
/shallow
: be stricter on the wrapper’s setState/setProps callback (commit)shallow
/mount
: improve error message when wrapping invalid elements (#1759, @jgzuke)
🔨 Refactors
- ✂ remove most uses of lodash (commit)
Meta Stuff
- 📦 ensure a license and readme is present in all packages when published