Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Update enzyme in /modules/frontend from 3.3.0 to 3.6.0 #265

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependencies[bot]
Copy link

@dependencies dependencies bot commented Oct 1, 2018

Dependencies.io has updated enzyme (a npm dependency in /modules/frontend) from "3.3.0" to "3.6.0".

3.6.0

New Stuff

  • shallow/mount: add simulateError (#1797)
3.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)

Refactors

  • shallow/mount: make tests and method ordering more consistent (commit)
  • RSTTraversal: remove unnecessary adapter truthiness check (commit)
3.5.0

New Stuff

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
3.4.4

Fixes

  • koba04: shallow: fix unexpected call to componentDidMount (#1768)
3.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)
3.4.2

Fixes

  • koba04: shallow: call cDU when an instance calls setState (#1742)
  • ReactiveRaven: selectors: fix descendant selector (#1680)
3.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)
3.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)
  • 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/Add null option to shallow type() comment & docs enzymejs/enzyme#1492))

Meta Stuff

  • ljharb: ensure a license and readme is present in all packages when published
  • ljharb: [meta] fix package.json scripts

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant