Open renovate[bot] opened 5 years ago
Deploy preview for react-grecaptcha ready!
Built with commit fad61559019045ce414f61444222832480a7c844
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠️ Warning: custom changes will be lost.
This PR contains the following updates:
3.3.0
->3.11.0
Release Notes
airbnb/enzyme
### [`v3.11.0`](https://togithub.com/airbnb/enzyme/blob/HEAD/CHANGELOG.md#3110) [Compare Source](https://togithub.com/airbnb/enzyme/compare/enzyme@3.10.0...enzyme@3.11.0) ##### New Stuff - `render`: handle Fiber strings and numbers ([#2221](https://togithub.com/airbnb/enzyme/issues/2221)) ##### Fixes - `shallow`: Share child context logic between `shallow` and `dive` ([#2296](https://togithub.com/airbnb/enzyme/issues/2296)) - `mount`: `children`: include text nodes ($2269) - `mount`: `invoke`: use adapter’s `wrapInvoke` if present ([#2158](https://togithub.com/airbnb/enzyme/issues/2158)) ##### Docs - `mount`/`shallow`: `closest`/`parent`: Add missing arguments description ([#2264](https://togithub.com/airbnb/enzyme/issues/2264)) - `mount`/`shallow`: fix pluralization of “exist” ([#2262](https://togithub.com/airbnb/enzyme/issues/2262)) - `shallow`/`mount`: `simulate`: added functional component example to simulate doc ([#2248](https://togithub.com/airbnb/enzyme/issues/2248)) - `mount`: `debug`: add missing verbose option flag ([#2184](https://togithub.com/airbnb/enzyme/issues/2184)) - `mount`/`shallow`: `update`: fix semantics description ([#2194](https://togithub.com/airbnb/enzyme/issues/2194)) - add missing backticks to linked method names ([#2170](https://togithub.com/airbnb/enzyme/issues/2170)) - `invoke`: Add missing backticks to end of codeblock ([#2160](https://togithub.com/airbnb/enzyme/issues/2160)) - `invoke`: Fix typo ([#2167](https://togithub.com/airbnb/enzyme/issues/2167)) - Explicit React CSS selector syntax description ([#2178](https://togithub.com/airbnb/enzyme/issues/2178)) ##### Meta Stuff - \[meta] add `funding` field - \[meta] Update airbnb.io URLs to use https ([#2222](https://togithub.com/airbnb/enzyme/issues/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`](https://togithub.com/airbnb/enzyme/blob/HEAD/CHANGELOG.md#3100) [Compare Source](https://togithub.com/airbnb/enzyme/compare/enzyme@3.9.0...enzyme@3.10.0) ##### New Stuff - `shallow` add `suspenseFallback` option; support `Suspense`/`Lazy` ([#1975](https://togithub.com/airbnb/enzyme/issues/1975)) - `shallow`/`mount`: add `invoke(propName)(...args)` ([#1856](https://togithub.com/airbnb/enzyme/issues/1856), [#945](https://togithub.com/airbnb/enzyme/issues/945)) - `shallow`: Support rendering and `dive()`ing `createContext()` providers and consumers ([#1966](https://togithub.com/airbnb/enzyme/issues/1966)) - `mount`/`shallow`: add `getWrappingComponent` ([#1960](https://togithub.com/airbnb/enzyme/issues/1960)) - `Utils`: add `isCustomComponent` ([#1960](https://togithub.com/airbnb/enzyme/issues/1960)) - `Utils`: add `stub` argument to `spyMethod` - `EnzymeAdapter`: add `matchesElementType` ([#2146](https://togithub.com/airbnb/enzyme/issues/2146)) - `RSTTraversal`: add `getHTMLFromHostNodes` ##### Fixes - `selectors`: unwrap `memo` elements - in both directions ([#2146](https://togithub.com/airbnb/enzyme/issues/2146)) - `shallow`: properly determine "should render" for `PureComponent`s ([#2096](https://togithub.com/airbnb/enzyme/issues/2096)) - `mount`/`shallow`: `renderProp`: improve error messages ([#2070](https://togithub.com/airbnb/enzyme/issues/2070)) - `mount`: `setContext`: use proper wrapper name in error message - `shallow`: `.contains()`: clean up error message - `shallow`/`mount`: `hasClass`: avoid a crash with a non-string argument ([#2057](https://togithub.com/airbnb/enzyme/issues/2057)) - `mount`: properly handle HTML of multiple nodes ([#2052](https://togithub.com/airbnb/enzyme/issues/2052)) - `shallow`: ensure that if gDSFP exists, cDU is called. ([#2027](https://togithub.com/airbnb/enzyme/issues/2027)) - `shallow`: Mock sCU if gDSFP defined in shallow renderer rerender ([#1981](https://togithub.com/airbnb/enzyme/issues/1981)) - `mount`: `.state()`: allow getting state from stateful children of a stateless root ([#2043](https://togithub.com/airbnb/enzyme/issues/2043)) - `mount`: `.text()`: properly recurse through fragments and arrays ([#2028](https://togithub.com/airbnb/enzyme/issues/2028)) ##### Refactors - `ReactWrapper`/`ShallowWrapper`: ensure calling an adapter‘s nodeToElement preserves the receiver - `mount`: use `getHTMLFromHostNodes` ##### Docs - explain why need to re-call .find() after update ([#2140](https://togithub.com/airbnb/enzyme/issues/2140)) - `shallow`: fix childAt ([#2134](https://togithub.com/airbnb/enzyme/issues/2134)) - Update v2 -> v3 migration guide re props after a stage change ([#1300](https://togithub.com/airbnb/enzyme/issues/1300)) - `debug`: Added documentation for `verbose` flag ([#2104](https://togithub.com/airbnb/enzyme/issues/2104)) - Add on the fly JSDOM include example ([#2072](https://togithub.com/airbnb/enzyme/issues/2072)) - `reduce`/`reduceRight`: fix example code ([#2066](https://togithub.com/airbnb/enzyme/issues/2066), [#2065](https://togithub.com/airbnb/enzyme/issues/2065), [#2064](https://togithub.com/airbnb/enzyme/issues/2064)) - update `simulateError` with `getDerivedStateFromError` ([#2036](https://togithub.com/airbnb/enzyme/issues/2036)) - `shallow`: `.hasClass`: fix use of `mount` - add link to Cheerio API and another example ([#756](https://togithub.com/airbnb/enzyme/issues/756)) - `jest`: Update deprecated jest config key ([#2024](https://togithub.com/airbnb/enzyme/issues/2024)) ### [`v3.9.0`](https://togithub.com/airbnb/enzyme/blob/HEAD/CHANGELOG.md#390) [Compare Source](https://togithub.com/airbnb/enzyme/compare/enzyme@3.8.0...enzyme@3.9.0) ##### New Stuff - `shallow`: `isEmptyRender`: allow on multiple elements ([#1924](https://togithub.com/airbnb/enzyme/issues/1924)) - `mount`: support `:focus` selector ([#1965](https://togithub.com/airbnb/enzyme/issues/1965)) - `shallow`: Support `getChildContext()` ([#1971](https://togithub.com/airbnb/enzyme/issues/1971)) - `shallow`/`mount`: `.find`: find HTML elements by their constructor ([#1933](https://togithub.com/airbnb/enzyme/issues/1933)) - `shallow`/`mount`: `selectors`: support universal selector ([#1945](https://togithub.com/airbnb/enzyme/issues/1945)) - `mount`/`shallow`: add regex support to `.hasClass` ([#1987](https://togithub.com/airbnb/enzyme/issues/1987)) ##### Fixes - `mount`/`shallow`: `.text`/`.html`: handle an array of nodes properly ([#2001](https://togithub.com/airbnb/enzyme/issues/2001)) - `shallow`: `.setProps()`: only call cDU once ([#2007](https://togithub.com/airbnb/enzyme/issues/2007)) - `mount`: ensure `findWhere` doesn‘t abort early on an empty string ([#1995](https://togithub.com/airbnb/enzyme/issues/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](https://togithub.com/airbnb/enzyme/issues/1934)) - `mount`: Recursive `isEmptyRender` ([#1924](https://togithub.com/airbnb/enzyme/issues/1924)) - `mount`: `setState`: allow setting state on a class child of an SFC root ##### Documentation - \[jest] update Jest to setupFilesAfterEnv ([#2015](https://togithub.com/airbnb/enzyme/issues/2015)) - \[jest] Change deprecated `setupTestFrameworkScriptFile` to `setupFilesAfterEnv` ([#2013](https://togithub.com/airbnb/enzyme/issues/2013)) - `mount`: `setState`: note that you can now call it on "not the root" ([#2010](https://togithub.com/airbnb/enzyme/issues/2010)) - general improvements ([#1947](https://togithub.com/airbnb/enzyme/issues/1947)) - Fix typos ([#1992](https://togithub.com/airbnb/enzyme/issues/1992)) - Added missing pages: `isEmptyRender`, `renderProp`, `equals`, SystemJS guide ([#1984](https://togithub.com/airbnb/enzyme/issues/1984), [#1985](https://togithub.com/airbnb/enzyme/issues/1985)) - Fix link to .shallow() ([#1951](https://togithub.com/airbnb/enzyme/issues/1951)) - update jsdoc to use "EnzymeSelector" where applicable ##### Meta Stuff - add "directory" field to package.json ### [`v3.8.0`](https://togithub.com/airbnb/enzyme/blob/HEAD/CHANGELOG.md#380) [Compare Source](https://togithub.com/airbnb/enzyme/compare/enzyme@3.7.0...enzyme@3.8.0) ##### New Stuff - `shallow`/`mount`: add `renderProp` ([#1863](https://togithub.com/airbnb/enzyme/issues/1863), [#1891](https://togithub.com/airbnb/enzyme/issues/1891)) ##### Fixes - `shallow`/`mount`: improve error message for "single node" assertion ([#1904](https://togithub.com/airbnb/enzyme/issues/1904)) - `shallow`: shallow compare, not deep compare, state and props to determine rerendering ([#1915](https://togithub.com/airbnb/enzyme/issues/1915)) ##### Documentation - `shallow`: `dive`: add a note about throwing an error ([#1905](https://togithub.com/airbnb/enzyme/issues/1905)) - ` selectors: update re `displayName\` ([#1932](https://togithub.com/airbnb/enzyme/issues/1932)) - `shallow`: `get`: fixed wrong `props()` usage ([#1921](https://togithub.com/airbnb/enzyme/issues/1921)) - `shallow`: `html`: shallow renders full tree ([#1912](https://togithub.com/airbnb/enzyme/issues/1912)) - Updated broken link for “.hostNodes()” in migration guide from enzyme 2 to 3 ([#1909](https://togithub.com/airbnb/enzyme/issues/1909)) - Add tape example project link ([#1898](https://togithub.com/airbnb/enzyme/issues/1898)) - `prop`: fix typo ([#1883](https://togithub.com/airbnb/enzyme/issues/1883)) - Document full support for attribute selectors ([#1881](https://togithub.com/airbnb/enzyme/issues/1881)) - Documentation update for testing React Native with jsdom ([#1873](https://togithub.com/airbnb/enzyme/issues/1873)) - Update JSDOM docs to include {request|cancel}AnimationFrame polyfills ([#1867](https://togithub.com/airbnb/enzyme/issues/1867)) - `mount`: `ref`: use correct type ([#1865](https://togithub.com/airbnb/enzyme/issues/1865)) ### [`v3.7.0`](https://togithub.com/airbnb/enzyme/blob/HEAD/CHANGELOG.md#370) [Compare Source](https://togithub.com/airbnb/enzyme/compare/enzyme@3.6.0...enzyme@3.7.0) ##### New Stuff - `mount`: `.state()`/`.setState()`: allow calling on children ([#1802](https://togithub.com/enzymejs/enzyme/pull/1802), [@ljharb](https://togithub.com/ljharb)) - `configuration`: add `reset` ([commit](https://togithub.com/enzymejs/enzyme/commit/d91d95b8da8900c8f4b7090d2256422a82398ca9)) ##### Fixes - `makeOptions`: ensure that config-level `attachTo`/`hydrateIn` are inherited into wrapper options ([#1836](https://togithub.com/enzymejs/enzyme/issues/1836), [@ljharb](https://togithub.com/ljharb)) - `shallow`/`Utils`: call into adapter’s `isCustomComponentElement` if present ([#1832](https://togithub.com/enzymejs/enzyme/pull/1832), [@SinHouse](https://togithub.com/SinHouse)) - `shallow`/`mount`: throw an explicit error when state is null/undefined ([commit](https://togithub.com/enzymejs/enzyme/commit/9ea33d7667a93885d6f1d6e12b0c2661d6d47cd1)) - freeze `ROOT_NODES` for child wrappers ([#1811](https://togithub.com/enzymejs/enzyme/pull/1811), [@jgzuke](https://togithub.com/jgzuke)) - `shallow`: `.parents`: ensure that one `.find` call does not affect another ([#1781](https://togithub.com/enzymejs/enzyme/pull/1781), [@ljharb](https://togithub.com/ljharb)) - `mount`: update after `simulateError` ([#1812](https://togithub.com/enzymejs/enzyme/pull/1812), [@jgzuke](https://togithub.com/jgzuke)) ##### Refactors - `mount`/`shallow`: `getElement`: use `this.single` ([commit](https://togithub.com/enzymejs/enzyme/commit/6b63db3b002a419076c82d34554916400ef392fa)) ### [`v3.6.0`](https://togithub.com/airbnb/enzyme/blob/HEAD/CHANGELOG.md#360) [Compare Source](https://togithub.com/airbnb/enzyme/compare/enzyme@3.5.1...enzyme@3.6.0) ##### New Stuff - `shallow`/`mount`: add `simulateError` ([#1797](https://togithub.com/enzymejs/enzyme/pull/1797), [@ljharb](https://togithub.com/ljharb)) ### [`v3.5.1`](https://togithub.com/airbnb/enzyme/blob/HEAD/CHANGELOG.md#351) [Compare Source](https://togithub.com/airbnb/enzyme/compare/enzyme@3.5.0...enzyme@3.5.1) ##### Fixes - `shallow`/`mount`: `containsMatchingElement`: trim whitespace ([commit](https://togithub.com/enzymejs/enzyme/commit/171e952), [#636](https://togithub.com/enzymejs/enzyme/issues/636)) - `debug`: inspect objects instead of showing them as `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.
This PR has been generated by Mend Renovate. View repository job log here.