All Versions
62
Latest Version
Avg Release Cycle
100 days
Latest Release
326 days ago

Changelog History
Page 2

  • v3.5.1

    ๐Ÿ›  Fixes

    • shallow/mount: containsMatchingElement: trim whitespace (commit, #636)
    • debug: inspect objects instead of showing them as <Component /> (commit)

    ๐Ÿ“š Documentation

    • โšก๏ธ mount: ref: Update docs to be consistent with v3 (#1242, @adam-golab)

    โ™ป๏ธ Refactors

    • โœ… shallow/mount: make tests and method ordering more consistent (commit)
    • ๐Ÿšš RSTTraversal: remove unnecessary adapter truthiness check (commit)
  • v3.5.0

    ๐Ÿ†• 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 is null or undefined (#1785, @koba04)
    • shallow: setState after setProps calls componentWillReceiveProps (#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

    ๐Ÿ›  Fixes

    • @koba04: shallow: fix unexpected call to componentDidMount (#1768)
  • v3.4.3

    ๐Ÿ›  Fixes

    • @ljharb/@koba04: shallow: .setState(): stub out setState on non-root code paths as well (#1763)
    • โช @ljharb: shallow/mount: restore fallback when adapter lacks invokeSetStateCallback (commit)
    • @ljharb: mount: setState: invoke callback with the proper receiver (commit)
    • @ljharb: mount: state and setState should throw an explicit error message when called on an SFC (commit)
  • v3.4.2

    ๐Ÿ›  Fixes

    • @koba04: shallow: call cDU when an instance calls setState (#1742)
    • @ReactiveRaven: selectors: fix descendant selector (#1680)
  • v3.4.1

    ๐Ÿ›  Fixes

    • ๐Ÿ”€ @ljharb: shallow: setProps: merge instead of replace props (commit)

    ๐Ÿ“š Documentation

    • ๐Ÿ’… @koba04: Fix an adapter table style in README.md and a migration guide (#1734)
  • v3.4.0

    ๐Ÿ†• New Stuff

    • @madicap: shallow/mount: account for React.Fragment nodes (#1733)
    • @jquense: Debug: debugNode now returns [function] for function children (commit)
    • @ljharb: mount: add hydrateIn 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โ€™s displayNameOfNode if available (#1701)
    • @jquense/@ljharb: mount/shallow: .name(): call into adapterโ€™s displayNameOfNode, if present (#1701)
    • @jquense/@ljharb: Utils: nodeHasType: call into adapterโ€™s displayNameOfNode, if present (#1701)
    • ๐Ÿ— @jquense/@ljharb: selectors: buildPredicate: call into adapterโ€™s isValidElementType, if present (#1701)
    • @emuraton/@ljharb: shallow: setProps(): Add callback argument (#1721)
    • @ljharb: mount: add .equals() (commit)
    • @madicap: Extract getAdapter from Utils into its own file (#1732)

    ๐Ÿ›  Fixes

    • @ljharb: shallow/mount: matchesElement/containsMatchingElement: get adapter with options (commit)
    • ๐Ÿšš @ljharb: RSTTraversal: remove nodeHasProperty 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: Use spyMethod to inspect the result of shouldComponentUpdate/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's getNode()/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
  • v3.3.0

    ๐Ÿ†• New Stuff

    • @ljharb/@joeldenning: debug: handle boxed primitives (#1450)

    โ™ป๏ธ Refactors

    • @eddyerburgh: Use RSTTraversal childrenOfNode in Utils (#1381)

    ๐Ÿ›  Fixes

    • @nicoder: Fix typo in error message (#1379)
  • v3.2.0

    ๐Ÿ†• New Stuff

    • ๐Ÿ‘ @aweary: Support all attribute selector operators (#1157)

    ๐Ÿ›  Fixes

    • @idanilt: Change ShallowWrapper.text() trim spaces with same behavior as ReactWrapper.text() (#1350)
  • v3.1.1

    ๐Ÿ›  Fixes

    • โšก๏ธ @koba04: Fix to call componentDidUpdate on setState of React v16 (#1261)