All Versions
58
Latest Version
Avg Release Cycle
43 days
Latest Release
193 days ago

Changelog History
Page 1

  • v16.3

    May 08, 2019
  • v16.2

    October 10, 2019
  • v16.1

    October 10, 2019
  • v15.4

    October 10, 2019
  • v3.10.0

    June 03, 2019
  • v3.9.0

    πŸ†• New Stuff

    • shallow: isEmptyRender: allow on multiple elements (#1924)
    • mount: support :focus selector (#1965)
    • shallow: Support getChildContext() (#1971)
    • shallow/mount: .find: find HTML elements by their constructor (#1933)
    • shallow/mount: selectors: support universal selector (#1945)
    • mount/shallow: add regex support to .hasClass (#1987)

    πŸ›  Fixes

    • mount/shallow: .text/.html: handle an array of nodes properly (#2001)
    • shallow: .setProps(): only call cDU once (#2007)
    • mount: ensure findWhere doesnβ€˜t abort early on an empty string (#1995)
    • mount: findWhere: avoid passing empty wrappers to predicate
    • mount: text() via findWhere: return the string for a wrapper around a string
    • mount/shallow: Fix .exists not accepting any EnzymeSelector (#1934)
    • mount: Recursive isEmptyRender (#1924)
    • mount: setState: allow setting state on a class child of an SFC root

    πŸ“š Documentation

    • [jest] update Jest to setupFilesAfterEnv (#2015)
    • [jest] Change deprecated setupTestFrameworkScriptFile to setupFilesAfterEnv (#2013)
    • mount: setState: note that you can now call it on "not the root" (#2010)
    • general improvements (#1947)
    • Fix typos (#1992)
    • Added missing pages: isEmptyRender, renderProp, equals, SystemJS guide (#1984, #1985)
    • Fix link to .shallow() (#1951)
    • update jsdoc to use "EnzymeSelector" where applicable

    Meta Stuff

    • add "directory" field to package.json
  • v3.8.0

    πŸ†• New Stuff

    • shallow/mount: add renderProp (#1863, #1891)

    πŸ›  Fixes

    • shallow/mount: improve error message for "single node" assertion (#1904)
    • shallow: shallow compare, not deep compare, state and props to determine rerendering (#1915)

    πŸ“š Documentation

    • shallow: dive: add a note about throwing an error (#1905)
    • selectors: update redisplayName` (#1932)
    • shallow: get: fixed wrong props() usage (#1921)
    • shallow: html: shallow renders full tree (#1912)
    • Updated broken link for β€œ.hostNodes()” in migration guide from enzyme 2 to 3 (#1909)
    • Add tape example project link (#1898)
    • prop: fix typo (#1883)
    • Document full support for attribute selectors (#1881)
    • Documentation update for testing React Native with jsdom (#1873)
    • Update JSDOM docs to include {request|cancel}AnimationFrame polyfills (#1867)
    • mount: ref: use correct type (#1865)
  • v3.7.0

    πŸ†• New Stuff

    • mount: .state()/.setState(): allow calling on children (#1802, @ljharb)
    • configuration: add reset (commit)

    πŸ›  Fixes

    • makeOptions: ensure that config-level attachTo/hydrateIn are inherited into wrapper options (#1836, @ljharb)
    • shallow/Utils: call into adapter’s isCustomComponentElement if present (#1832, @SinHouse)
    • shallow/mount: throw an explicit error when state is null/undefined (commit)
    • freeze ROOT_NODES for child wrappers (#1811, @jgzuke)
    • shallow: .parents: ensure that one .find call does not affect another (#1781, @ljharb)
    • mount: update after simulateError (#1812, @jgzuke)

    ♻️ Refactors

    • mount/shallow: getElement: use this.single (commit)
  • v3.6.0

    πŸ†• New Stuff

    • shallow/mount: add simulateError (#1797, @ljharb)
  • 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)