All Versions
63
Latest Version
Avg Release Cycle
100 days
Latest Release
1607 days ago
Changelog History
Page 2
Changelog History
Page 2
-
v3.5.1 Changes
-
v3.5.0 Changes
๐ 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
-
v3.4.4 Changes
๐ Fixes
- @koba04:
shallow
: fix unexpected call to componentDidMount (#1768)
- @koba04:
-
v3.4.3 Changes
๐ Fixes
- @ljharb/@koba04:
shallow
:.setState()
: stub outsetState
on non-root code paths as well (#1763) - โช @ljharb:
shallow
/mount
: restore fallback when adapter lacksinvokeSetStateCallback
(commit) - @ljharb:
mount
:setState
: invoke callback with the proper receiver (commit) - @ljharb:
mount
:state
andsetState
should throw an explicit error message when called on an SFC (commit)
- @ljharb/@koba04:
-
v3.4.0 Changes
๐ New Stuff
- @madicap:
shallow
/mount
: account for React.Fragment nodes (#1733) - @jquense: Debug:
debugNode
now returns[function]
for function children (commit) - @ljharb:
mount
: addhydrateIn
option (#1707) - @ljharb:
shallow
: add โlifecyclesโ adapter option (#1696) - @krawaller:
shallow
/mount
: allow.exists()
to take an optional selector (#1695) - โก๏ธ @koba04:
shallow
: Add getSnapshotBeforeUpdate support (#1657) - ๐ @jquense:
shallow
/mount
: Add support for some pseudo selectors (#1537) - @blainekasten:
debug
: Implement verbose debug output (#1547) - @jquense/@ljharb:
Debug
:typeName
now calls the adapterโsdisplayNameOfNode
if available (#1701) - @jquense/@ljharb:
mount
/shallow
:.name()
: call into adapterโsdisplayNameOfNode
, if present (#1701) - @jquense/@ljharb:
Utils
:nodeHasType
: call into adapterโsdisplayNameOfNode
, if present (#1701) - ๐ @jquense/@ljharb:
selectors
:buildPredicate
: call into adapterโsisValidElementType
, if present (#1701) - @emuraton/@ljharb:
shallow
:setProps()
: Add callback argument (#1721) - @ljharb:
mount
: add.equals()
(commit) - @madicap: Extract
getAdapter
fromUtils
into its own file (#1732)
๐ Fixes
- @ljharb:
shallow
/mount
:matchesElement
/containsMatchingElement
: get adapter with options (commit) - ๐ @ljharb:
RSTTraversal
: removenodeHasProperty
export; broken since #1157 (commit) - @ljharb/@KordonDev:
shallow
:.at()
: return an empty wrapper when an index does not exist (#1478) - @ljharb:
shallow
:.equals()
: flatten children when comparing (commit) - @ljharb:
mount
/shallow
: do not dedupe in flatMap (commit) - @ljharb:
shallow
:.closest()
: ensure an empty wrapper is returned for no match (commit) - @krawaller:
selectors
: make general sibling not throw on root (#1698) - @ljharb/@angelikatyborska :
mount
:text()
: null nodes return null (#1582) - @ljharb:
shallow
:simulate
: ensure it returns itself (commit) - โก๏ธ @koba04:
shallow
: ShallowWrapper calls update() automatically (#1499) - @bdwain:
mount
/shallow
: return null for missing keys (#1536) - @vsiao: Fix ShallowWrapper for array-rendering components (#1498)
- @koba04: Call
setState
callback after finishing the render (#1453) - @eddyerburgh: Convert nodes to RST nodes before comparing (#1423)
- @ljharb: improve "bad adapter" error message (#1477)
- 0๏ธโฃ @ljharb:
shallow
/mount
: default iterator should be iterable (commit)
๐จ Refactors
- โ๏ธ @ReactiveRaven:
selectors
: fix typos; avoid reusing variable unnecessarily (#1681) - โก๏ธ @koba04/@ljharb:
shallow
: UsespyMethod
to inspect the result ofshouldComponentUpdate
/getSnapshotBeforeUpdate
(#1192) - ๐ง @ljharb:
Utils
:configuration
: change to named exports. (commit) - @ljharb: use
array.prototype.flat
(commit)
๐ Documentation
- @jack-lewin: Clarify dev workflow in CONTRIBUTING.md (#1207)
- @robrichard: Provide migration instructions for
ref(refName)
(#1470) - @DannyDelott:
shallow
/mount
: Add callback arg to setProps header (#1361) - โก๏ธ @conor-cafferkey-sociomantic:
mount
: Updated docs for ReactWrapper.instance(); remove docs for v2'sgetNode()
/getNodes()
(#1714) - ๐ @koba04: Make clearer the docs for .mount() (#1540)
- โก๏ธ @ialexryan: Update signature of .type() in shallow.md (#1492]([https://github.com/enzymejs/enzyme/pull/1492))
Meta Stuff
- ๐ฆ @ljharb: ensure a license and readme is present in all packages when published
- ๐ฆ @ljharb: [meta] fix package.json scripts
- @madicap:
-
v3.1.1 Changes
๐ Fixes
- โก๏ธ @koba04: Fix to call componentDidUpdate on setState of React v16 (#1261)