sandiiarov / use-events

🍭 Event hooks
https://sandiiarov.github.io/use-events
492 stars 16 forks source link

chore(deps): update dependency @testing-library/react-hooks to v7 - autoclosed #228

Closed renovate[bot] closed 2 years ago

renovate[bot] commented 3 years ago

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@testing-library/react-hooks 2.0.3 -> 7.0.2 age adoption passing confidence

Release Notes

testing-library/react-hooks-testing-library ### [`v7.0.2`](https://togithub.com/testing-library/react-hooks-testing-library/releases/v7.0.2) [Compare Source](https://togithub.com/testing-library/react-hooks-testing-library/compare/v7.0.1...v7.0.2) ##### Bug Fixes - **async-utils:** prevent timeout and interval checks in wait from leaving open handles ([#​682](https://togithub.com/testing-library/react-hooks-testing-library/issues/682)) ([4a03704](https://togithub.com/testing-library/react-hooks-testing-library/commit/4a037040e5d9d806a9d7a9c8fd3fc3b243e4617f)) ### [`v7.0.1`](https://togithub.com/testing-library/react-hooks-testing-library/releases/v7.0.1) [Compare Source](https://togithub.com/testing-library/react-hooks-testing-library/compare/v7.0.0...v7.0.1) ##### Bug Fixes - **types:** fix `cleanup` return type to match `async` implementation ([c7a2e97](https://togithub.com/testing-library/react-hooks-testing-library/commit/c7a2e979fb8a51271d0d3032c7a03b6fb6ebd3e6)) ### [`v7.0.0`](https://togithub.com/testing-library/react-hooks-testing-library/releases/v7.0.0) [Compare Source](https://togithub.com/testing-library/react-hooks-testing-library/compare/v6.0.0...v7.0.0) ##### Features - Remove node specific dependencies and code to better support testing in browser environments ([e4b0aa3](https://togithub.com/testing-library/react-hooks-testing-library/commit/e4b0aa3f8f6220a0dea01db25fd2d17fa3054a40)), closes [#​624](https://togithub.com/testing-library/react-hooks-testing-library/issues/624) [#​617](https://togithub.com/testing-library/react-hooks-testing-library/issues/617) ##### BREAKING CHANGES - `suppressErrorOutput` will now work when explicitly called, even if the `RHTL_DISABLE_ERROR_FILTERING` env variable has been set ### [`v6.0.0`](https://togithub.com/testing-library/react-hooks-testing-library/releases/v6.0.0) [Compare Source](https://togithub.com/testing-library/react-hooks-testing-library/compare/v5.1.3...v6.0.0) ##### chore - Drop Node 10 support ([#​623](https://togithub.com/testing-library/react-hooks-testing-library/issues/623)) ([39dd228](https://togithub.com/testing-library/react-hooks-testing-library/commit/39dd2280bf79259e1e271c226465e2af20999fa5)), closes [#​621](https://togithub.com/testing-library/react-hooks-testing-library/issues/621) ##### BREAKING CHANGES - Node 10 is no longer supported ### [`v5.1.3`](https://togithub.com/testing-library/react-hooks-testing-library/releases/v5.1.3) [Compare Source](https://togithub.com/testing-library/react-hooks-testing-library/compare/v5.1.2...v5.1.3) ##### Bug Fixes - **types:** Correct overload order for act without strictNullChecks ([#​622](https://togithub.com/testing-library/react-hooks-testing-library/issues/622)) ([882bcfe](https://togithub.com/testing-library/react-hooks-testing-library/commit/882bcfed24269dd174edce154dda42715799e173)) ### [`v5.1.2`](https://togithub.com/testing-library/react-hooks-testing-library/releases/v5.1.2) [Compare Source](https://togithub.com/testing-library/react-hooks-testing-library/compare/v5.1.1...v5.1.2) ##### Bug Fixes - **ssr:** Add ability to run SSR tests in pure-node environment ([#​607](https://togithub.com/testing-library/react-hooks-testing-library/issues/607)) ([7b3867e](https://togithub.com/testing-library/react-hooks-testing-library/commit/7b3867e667e83fb64bf98c8e5ed143eb9159fc0b)), closes [#​605](https://togithub.com/testing-library/react-hooks-testing-library/issues/605) ### [`v5.1.1`](https://togithub.com/testing-library/react-hooks-testing-library/releases/v5.1.1) [Compare Source](https://togithub.com/testing-library/react-hooks-testing-library/compare/v5.1.0...v5.1.1) ##### Bug Fixes - make library compatible with Node 8 ([#​587](https://togithub.com/testing-library/react-hooks-testing-library/issues/587)) ([ef2daaf](https://togithub.com/testing-library/react-hooks-testing-library/commit/ef2daaf79a50572a3106a8612134e4f83714e8c1)) ### [`v5.1.0`](https://togithub.com/testing-library/react-hooks-testing-library/releases/v5.1.0) [Compare Source](https://togithub.com/testing-library/react-hooks-testing-library/compare/v5.0.3...v5.1.0) ##### Features - export helper to manually suppress error output ([#​571](https://togithub.com/testing-library/react-hooks-testing-library/issues/571)) ([d8dac20](https://togithub.com/testing-library/react-hooks-testing-library/commit/d8dac2065976161ced1b0ed3e2b4bd573f836bc8)), closes [#​564](https://togithub.com/testing-library/react-hooks-testing-library/issues/564) ### [`v5.0.3`](https://togithub.com/testing-library/react-hooks-testing-library/releases/v5.0.3) [Compare Source](https://togithub.com/testing-library/react-hooks-testing-library/compare/v5.0.2...v5.0.3) ##### Bug Fixes - fixed potential error when hook suspends and error is accessed ([1a0c4d3](https://togithub.com/testing-library/react-hooks-testing-library/commit/1a0c4d32ae4592b57c194b8e57d6479bb788b101)) ### [`v5.0.2`](https://togithub.com/testing-library/react-hooks-testing-library/releases/v5.0.2) [Compare Source](https://togithub.com/testing-library/react-hooks-testing-library/compare/v5.0.0...v5.0.2) ##### Bug Fixes - only suppress console.error for non-pure imports ([#​549](https://togithub.com/testing-library/react-hooks-testing-library/issues/549)) ([804d9ac](https://togithub.com/testing-library/react-hooks-testing-library/commit/804d9acf873f3225fcb06fb45421924dc97544c5)), closes [#​546](https://togithub.com/testing-library/react-hooks-testing-library/issues/546) ##### Code Refactoring - update default renderer's error message. ([#​547](https://togithub.com/testing-library/react-hooks-testing-library/issues/547)) ([83b85c2](https://togithub.com/testing-library/react-hooks-testing-library/commit/83b85c2a28f92f10bf9c7acd21baf284d41ab394)) ****Note:** due to a technical glitch, there was no `v5.0.1` release.** ### [`v5.0.0`](https://togithub.com/testing-library/react-hooks-testing-library/releases/v5.0.0) [Compare Source](https://togithub.com/testing-library/react-hooks-testing-library/compare/v4.0.1...v5.0.0) ##### Bug Fixes - constrain TOptions to be an object instead of an empty interface ([3813b88](https://togithub.com/testing-library/react-hooks-testing-library/commit/3813b88a8a779a2deb61f2de3abe97e79dada52a)) - display returned function names correctly in stack traces ([#​528](https://togithub.com/testing-library/react-hooks-testing-library/issues/528)) ([a82d5ef](https://togithub.com/testing-library/react-hooks-testing-library/commit/a82d5ef31779bf1112a951909dfb09328e48581b)) - fixed potential error when hook suspends and current result is accessed ([dc21e59](https://togithub.com/testing-library/react-hooks-testing-library/commit/dc21e5947a54adfaf348bfeaeab56d37a4e7e2bb)) - include render utils in RenderHook type ([ca32bce](https://togithub.com/testing-library/react-hooks-testing-library/commit/ca32bce8ef67104a1424093f8d40f539800a1eea)) - ReactHooksRenderer renderHook was not expecting arguments ([bb870e0](https://togithub.com/testing-library/react-hooks-testing-library/commit/bb870e0ee77b775be5debf909c71596e17c0e85d)) - stop appending container elements to document body ([bab38d9](https://togithub.com/testing-library/react-hooks-testing-library/commit/bab38d9c7b7ccd7e9e494ce36f98ed6609278f64)) - Type for options in autodetected renderer was incorrectly inferring any passed type ([#​527](https://togithub.com/testing-library/react-hooks-testing-library/issues/527)) ([4786242](https://togithub.com/testing-library/react-hooks-testing-library/commit/4786242a9a22c6f235f537d26b9990c2bec4b24d)) - use actual line break in error message when auto-detect fails ([a3fd0e2](https://togithub.com/testing-library/react-hooks-testing-library/commit/a3fd0e2d483e05dc55fdf471c87b7b1a520283d4)) ##### Code Refactoring - async utils ([#​537](https://togithub.com/testing-library/react-hooks-testing-library/issues/537)) ([394f65a](https://togithub.com/testing-library/react-hooks-testing-library/commit/394f65a927d71e9ef9f0b75c79936651c669f666)) ##### Features - react-dom and SSR compatible rendering ([a25993f](https://togithub.com/testing-library/react-hooks-testing-library/commit/a25993fe1c08fea92b6d7a90666fc8c1c94b9855)) - use error boundary to capture useEffect errors ([#​539](https://togithub.com/testing-library/react-hooks-testing-library/issues/539)) ([b81fd04](https://togithub.com/testing-library/react-hooks-testing-library/commit/b81fd04b748071c566ca18bfe02475813dbd2877)), closes [#​308](https://togithub.com/testing-library/react-hooks-testing-library/issues/308) ##### BREAKING CHANGES - `interval` will now default to 50ms in async utils - `timeout` will now default to 1000ms in async utils - `suppressErrors` has been removed from async utils - Adjust types so that react renderer exports don't required extra generic parameter - Importing from `renderHook` and `act` from `@testing-library/react-hooks` will now auto-detect which renderer to used based on the project's dependencies - `peerDependencies` are now optional to support different dependencies being required - This means there will be no warning if the dependency is not installed at all, but it will still warn if an incompatible version is installed - Auto-detection won't work with bundlers (e.g. Webpack). Please use as [specific renderer import](https://react-hooks-testing-library.com/installation#being-specific) instead - `result.current` and `result.error` will now return `undefined` instead of `null` when the hook call suspends and they are accessed prior to being set for the first time - *Note: accessing these values in a suspending scenario has been broken since version `3.6.0`* ### [`v4.0.1`](https://togithub.com/testing-library/react-hooks-testing-library/releases/v4.0.1) [Compare Source](https://togithub.com/testing-library/react-hooks-testing-library/compare/v4.0.0...v4.0.1) ##### Bug Fixes - Restore 'RenderHookOptions' type ([#​535](https://togithub.com/testing-library/react-hooks-testing-library/issues/535)) ([a334f80](https://togithub.com/testing-library/react-hooks-testing-library/commit/a334f805eae8e98f72f694453ca8f99045c6d78b)) ### [`v4.0.0`](https://togithub.com/testing-library/react-hooks-testing-library/releases/v4.0.0) [Compare Source](https://togithub.com/testing-library/react-hooks-testing-library/compare/v3.7.0...v4.0.0) ##### Bug Fixes - **types:** changed callback signature on waitFor to match old types ([1ea2afe](https://togithub.com/testing-library/react-hooks-testing-library/commit/1ea2afe5245389edd82421f1ef6b75385cfa4f1c)) ##### Features - Convert to TypeScript ([#​520](https://togithub.com/testing-library/react-hooks-testing-library/issues/520)) ([251ea70](https://togithub.com/testing-library/react-hooks-testing-library/commit/251ea7048ed385fd2b20b4ac2eec28e5dacf1bce)) ##### BREAKING CHANGES - Removed deprecated wait ### [`v3.7.0`](https://togithub.com/testing-library/react-hooks-testing-library/releases/v3.7.0) [Compare Source](https://togithub.com/testing-library/react-hooks-testing-library/compare/v3.6.0...v3.7.0) ##### Features - **cleanup:** remove unnecessary flush microtasks as already handled by act ([#​511](https://togithub.com/testing-library/react-hooks-testing-library/issues/511)) ([c53b56b](https://togithub.com/testing-library/react-hooks-testing-library/commit/c53b56b62302698c5c7b57a402b8b7ef1aa41c41)) ### [`v3.6.0`](https://togithub.com/testing-library/react-hooks-testing-library/releases/v3.6.0) [Compare Source](https://togithub.com/testing-library/react-hooks-testing-library/compare/v3.5.0...v3.6.0) ##### Features - **release:** manually release a minor version ([78d228c](https://togithub.com/testing-library/react-hooks-testing-library/commit/78d228c994bdf2f65551bf5a4043ed5921fa5bec)), closes [#​496](https://togithub.com/testing-library/react-hooks-testing-library/issues/496) - Capture all results a rendered hook produces as `result.all` ([c3e09ed](https://togithub.com/testing-library/react-hooks-testing-library/commit/c3e09ed7456dc2fb15fb1aff31bf352eb3e2a569)) ### [`v3.5.0`](https://togithub.com/testing-library/react-hooks-testing-library/releases/v3.5.0) [Compare Source](https://togithub.com/testing-library/react-hooks-testing-library/compare/v3.4.2...v3.5.0) ##### Features - add addCleanup ([01918d9](https://togithub.com/testing-library/react-hooks-testing-library/commit/01918d923b9e7e40118d8ae300e55dabf9483bee)) ### [`v3.4.2`](https://togithub.com/testing-library/react-hooks-testing-library/releases/v3.4.2) [Compare Source](https://togithub.com/testing-library/react-hooks-testing-library/compare/v3.4.1...v3.4.2) ##### Changes - Update minimum TS definition dependency (`@types/testing-library__react-hooks`) version ([#​453](https://togithub.com/testing-library/react-hooks-testing-library/issues/453)) ### [`v3.4.1`](https://togithub.com/testing-library/react-hooks-testing-library/releases/v3.4.1) [Compare Source](https://togithub.com/testing-library/react-hooks-testing-library/compare/v3.4.0...v3.4.1) ##### Changes - The `wait` async util has been deprecated and replaced with `waitFor` ([#​408](https://togithub.com/testing-library/react-hooks-testing-library/issues/408)) - `waitFor` and `waitForValueToChange` async utils can now test their conditions periodically, even if the hook has not rerendered, using the new `interval` option ([#​408](https://togithub.com/testing-library/react-hooks-testing-library/issues/408)) - Bumped minimum type definition version ([#​414](https://togithub.com/testing-library/react-hooks-testing-library/issues/414)) - Docs have been updated to show how props can be passed to `wrapper` components ([#​414](https://togithub.com/testing-library/react-hooks-testing-library/issues/414)) ### [`v3.4.0`](https://togithub.com/testing-library/react-hooks-testing-library/releases/v3.4.0) [Compare Source](https://togithub.com/testing-library/react-hooks-testing-library/compare/v3.3.0...v3.4.0) ##### ⚠️ DO NOT USE THIS VERSION ⚠️ This version was accidentally published with some experimental code in the in the babel output directory and should not be used. IT has been deprecated in NPM and `3.4.1` has been published with the correct output. ### [`v3.3.0`](https://togithub.com/testing-library/react-hooks-testing-library/releases/v3.3.0) [Compare Source](https://togithub.com/testing-library/react-hooks-testing-library/compare/v3.2.1...v3.3.0) #### Changes - `wrapper` component can now access the `initialProps` and new props from `rerender` calls when creating providers ([#​322](https://togithub.com/testing-library/react-hooks-testing-library/issues/322), [#​381](https://togithub.com/testing-library/react-hooks-testing-library/issues/381)) - cleanup functionality has been updated to support `mocha`/`esm` environments ([#​375](https://togithub.com/testing-library/react-hooks-testing-library/issues/375), [#​377](https://togithub.com/testing-library/react-hooks-testing-library/issues/377)) - dependency updates (thanks [@​renovate-bot](https://togithub.com/renovate-bot)) ### [`v3.2.1`](https://togithub.com/testing-library/react-hooks-testing-library/releases/v3.2.1) [Compare Source](https://togithub.com/testing-library/react-hooks-testing-library/compare/v3.2.0...v3.2.1) #### Changes - Actually included `pure.js` in the `npm` package ### [`v3.2.0`](https://togithub.com/testing-library/react-hooks-testing-library/releases/v3.2.0) [Compare Source](https://togithub.com/testing-library/react-hooks-testing-library/compare/v3.1.1...v3.2.0) #### Changes - Updated type dependency to latest version ([#​210](https://togithub.com/testing-library/react-hooks-testing-library/issues/210)) - Introduced `/pure` inmport as alternative to skip auto cleanup - Cleanup no longer flushes microtasks within `act` call, prevent warnings from being swallowed - Introduced `wait` async utility ([#​200](https://togithub.com/testing-library/react-hooks-testing-library/issues/200)) - Intorduced `waitForValueToChange` async utility ([#​200](https://togithub.com/testing-library/react-hooks-testing-library/issues/200)) ### [`v3.1.1`](https://togithub.com/testing-library/react-hooks-testing-library/releases/v3.1.1) [Compare Source](https://togithub.com/testing-library/react-hooks-testing-library/compare/v3.1.0...v3.1.1) #### Changes - Actually included `dont-cleanup-after-each.js` in the `npm` package ([#​208](https://togithub.com/testing-library/react-hooks-testing-library/issues/208)) ### [`v3.1.0`](https://togithub.com/testing-library/react-hooks-testing-library/releases/v3.1.0) [Compare Source](https://togithub.com/testing-library/react-hooks-testing-library/compare/v3.0.0...v3.1.0) #### Changes - Added `dont-cleanup-after-each` test setup utlitity to disable auto cleanup to match the [RTL version](https://togithub.com/testing-library/react-testing-library/blob/master/dont-cleanup-after-each.js) ### [`v3.0.0`](https://togithub.com/testing-library/react-hooks-testing-library/releases/v3.0.0) [Compare Source](https://togithub.com/testing-library/react-hooks-testing-library/compare/v2.0.3...v3.0.0) #### Changes - Added global cleanup that unmounts test components to clean up residual effects between tests ([#​199](https://togithub.com/testing-library/react-hooks-testing-library/issues/199)) - Auto register `afterEach` in supported test frameworks to auto run cleanup as per [testing-library/react-testing-library#​430](https://togithub.com/testing-library/react-testing-library/pull/430) - Supports opt out via and environment variable opt out (`RHTL_SKIP_AUTO_CLEANUP=true`) ##### ⚠️ Breaking Changes - Most users won't be affected by the autoregistration of the auto-cleanup, but if anyone was relying on their effects persiting between tests then this will be a breaking change for them

Configuration

📅 Schedule: 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 WhiteSource Renovate. View repository job log here.