chore(deps): update dependency enzyme to v3.11.0 - abandoned
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| enzyme (source) | 3.3.0 -> 3.11.0 |
Release Notes
airbnb/enzyme
v3.11.0
New Stuff
render: handle Fiber strings and numbers (#2221)
Fixes
shallow: Share child context logic betweenshallowanddive(#2296)mount:children: include text nodes ($2269)mount:invoke: use adapter’swrapInvokeif present (#2158)
Docs
mount/shallow:closest/parent: Add missing arguments description (#2264)mount/shallow: fix pluralization of “exist” (#2262)shallow/mount:simulate: added functional component example to simulate doc (#2248)mount:debug: add missing verbose option flag (#2184)mount/shallow:update: fix semantics description (#2194)- add missing backticks to linked method names (#2170)
invoke: Add missing backticks to end of codeblock (#2160)invoke: Fix typo (#2167)- Explicit React CSS selector syntax description (#2178)
Meta Stuff
- [meta] add
fundingfield - [meta] Update airbnb.io URLs to use https (#2222)
- [deps] update
is-boolean-object,is-callable,is-number-object,is-string,enzyme-shallow-equal,array.prototype.flat,function.prototype.name,html-element-map,is-regex,object-inspect,object-is,object.entries,object.vales,raf,string.prototype.trim - [dev deps] update
eslint,eslint-plugin-import,eslint-plugin-markdown,eslint-plugin-react,safe-publish-latest,eslint-config-airbnb,rimraf,safe-publish-latest,karma-firefox-launcher,babel-preset-airbnb,glob-gitignore,semver,eslint-plugin-jsx-a11y
v3.10.0
New Stuff
shallowaddsuspenseFallbackoption; supportSuspense/Lazy(#1975)shallow/mount: addinvoke(propName)(...args)(#1856, #945)shallow: Support rendering anddive()ingcreateContext()providers and consumers (#1966)mount/shallow: addgetWrappingComponent(#1960)Utils: addisCustomComponent(#1960)Utils: addstubargument tospyMethodEnzymeAdapter: addmatchesElementType(#2146)RSTTraversal: addgetHTMLFromHostNodes
Fixes
selectors: unwrapmemoelements - in both directions (#2146)shallow: properly determine "should render" forPureComponents (#2096)mount/shallow:renderProp: improve error messages (#2070)mount:setContext: use proper wrapper name in error messageshallow:.contains(): clean up error messageshallow/mount:hasClass: avoid a crash with a non-string argument (#2057)mount: properly handle HTML of multiple nodes (#2052)shallow: ensure that if gDSFP exists, cDU is called. (#2027)shallow: Mock sCU if gDSFP defined in shallow renderer rerender (#1981)mount:.state(): allow getting state from stateful children of a stateless root (#2043)mount:.text(): properly recurse through fragments and arrays (#2028)
Refactors
ReactWrapper/ShallowWrapper: ensure calling an adapter‘s nodeToElement preserves the receivermount: usegetHTMLFromHostNodes
Docs
- explain why need to re-call .find() after update (#2140)
shallow: fix childAt (#2134)- Update v2 -> v3 migration guide re props after a stage change (#1300)
debug: Added documentation forverboseflag (#2104)- Add on the fly JSDOM include example (#2072)
reduce/reduceRight: fix example code (#2066, #2065, #2064)- update
simulateErrorwithgetDerivedStateFromError(#2036) shallow:.hasClass: fix use ofmount- add link to Cheerio API and another example (#756)
jest: Update deprecated jest config key (#2024)
v3.9.0
New Stuff
shallow:isEmptyRender: allow on multiple elements (#1924)mount: support:focusselector (#1965)shallow: SupportgetChildContext()(#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: ensurefindWheredoesn‘t abort early on an empty string (#1995)mount:findWhere: avoid passing empty wrappers to predicatemount:text()viafindWhere: return the string for a wrapper around a stringmount/shallow: Fix .exists not accepting any EnzymeSelector (#1934)mount: RecursiveisEmptyRender(#1924)mount:setState: allow setting state on a class child of an SFC root
Documentation
- [jest] update Jest to setupFilesAfterEnv (#2015)
- [jest] Change deprecated
setupTestFrameworkScriptFiletosetupFilesAfterEnv(#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
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 wrongprops()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: addreset(commit)
Fixes
makeOptions: ensure that config-levelattachTo/hydrateInare inherited into wrapper options (#1836, @ljharb)shallow/Utils: call into adapter’sisCustomComponentElementif present (#1832, @SinHouse)shallow/mount: throw an explicit error when state is null/undefined (commit)- freeze
ROOT_NODESfor child wrappers (#1811, @jgzuke) shallow:.parents: ensure that one.findcall does not affect another (#1781, @ljharb)mount: update aftersimulateError(#1812, @jgzuke)
Refactors
mount/shallow:getElement: usethis.single(commit)
v3.6.0
New Stuff
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
adaptertruthiness 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 isnullorundefined(#1785, @koba04)shallow:setStateaftersetPropscallscomponentWillReceiveProps(#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
v3.4.3
Fixes
- @ljharb/@koba04:
shallow:.setState(): stub outsetStateon 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:stateandsetStateshould 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
Documentation
v3.4.0
New Stuff
- @madicap:
shallow/mount: account for React.Fragment nodes (#1733) - @jquense: Debug:
debugNodenow returns[function]for function children (commit) - @ljharb:
mount: addhydrateInoption (#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:typeNamenow calls the adapter’sdisplayNameOfNodeif 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
getAdapterfromUtilsinto its own file (#1732)
Fixes
- @ljharb:
shallow/mount:matchesElement/containsMatchingElement: get adapter with options (commit) - @ljharb:
RSTTraversal: removenodeHasPropertyexport; 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
setStatecallback 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: UsespyMethodto 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/149292))
Meta Stuff
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
Deploy preview for react-progressive-bg-image ready!
Built with commit 00ff0be1714477737418f584a1b46381d9a747d5
https://deploy-preview-114--react-progressive-bg-image.netlify.com
Codecov Report
Merging #114 into master will not change coverage. The diff coverage is
n/a.
@@ Coverage Diff @@
## master #114 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 3 3
Lines 34 34
Branches 7 7
=====================================
Hits 34 34
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update aa84006...00ff0be. Read the comment docs.