Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency react-use to v17 #17

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

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Jan 31, 2021

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-use ^11.3.2 -> ^17.0.0 age adoption passing confidence

Release Notes

streamich/react-use (react-use)

v17.5.1

Compare Source

Bug Fixes
  • 🐛 bump nano-css dependency (adfb337)

v17.5.0

Compare Source

Features
  • add isFirst and isLast methods to useStateList hook (ac64414)
  • pencil: add isFirst and isLast return value to 'useStateList' (75218e4)
  • pencil: fix with yarn lint:fix (6a9dde5)

17.4.4 (2024-01-21)

Bug Fixes

17.4.3 (2024-01-13)

Bug Fixes
  • update useMedia hook to use recommended approach of MDN (e7379f0)

17.4.2 (2023-12-01)

Bug Fixes
  • correct peer dependencies (d770587)

17.4.1 (2023-11-28)

Bug Fixes
  • 🐛 bump nano-css version (812952b)

v17.4.4

Compare Source

Bug Fixes

v17.4.3

Compare Source

Bug Fixes
  • update useMedia hook to use recommended approach of MDN (e7379f0)

v17.4.2

Compare Source

Bug Fixes
  • correct peer dependencies (d770587)

v17.4.1

Compare Source

Bug Fixes
  • 🐛 bump nano-css version (812952b)

v17.4.0

Compare Source

Features
  • add usePinchZoom sensor hook (3e042cb)

17.3.3 (2022-05-20)

Bug Fixes

17.3.2 (2021-12-30)

Bug Fixes

17.3.1 (2021-08-31)

Performance Improvements
  • ⚡️ change title only if it changed (51ef8d9)

v17.3.3

Compare Source

Bug Fixes

v17.3.2

Compare Source

Bug Fixes

v17.3.1

Compare Source

Performance Improvements
  • ⚡️ change title only if it changed (51ef8d9)

v17.3.0

Compare Source

Bug Fixes
  • do not re-render unncessarily in useAsyncFn hook (fa3ba25)
Features
  • useAudio add playing state (3203610)

17.2.4 (2021-04-23)

Bug Fixes
  • lint issues. (66b0f23)
  • useLocalStorage: reinitialize on key change (fdd1b23)
  • add generic typing to createHTMLMediaHook. no typecheck problem with ref anymore. (1f547ef)
  • add generic typing to createHTMLMediaHook. no typecheck problem with ref anymore. (ac4dd78)

17.2.3 (2021-04-06)

Bug Fixes

17.2.2 (2021-04-06)

Bug Fixes
  • useStateWithHistory: support callback style setState (fca687d)

17.2.1 (2021-03-11)

Bug Fixes
  • lint issues. (3e8af15)
  • useMeasure type definitions for SVG (e200f7f)
  • useUnmountPromise stops on immediate update (9ff5c09)

v17.2.4

Compare Source

Bug Fixes
  • lint issues. (66b0f23)
  • useLocalStorage: reinitialize on key change (fdd1b23)
  • add generic typing to createHTMLMediaHook. no typecheck problem with ref anymore. (1f547ef)
  • add generic typing to createHTMLMediaHook. no typecheck problem with ref anymore. (ac4dd78)

v17.2.3

Compare Source

Bug Fixes

v17.2.2

Compare Source

Bug Fixes
  • useStateWithHistory: support callback style setState (fca687d)

v17.2.1

Compare Source

Bug Fixes
  • lint issues. (3e8af15)
  • useMeasure type definitions for SVG (e200f7f)
  • useUnmountPromise stops on immediate update (9ff5c09)

v17.2.0

Compare Source

Bug Fixes
  • delete isClient (72f4cb9)
  • lint issues. (dc5bbe0)
  • useOrientation: handle orientation being 0 (793b053)
  • useOrientation: update tests to increase coverage (f9c743f)
  • use window inside useEffect (2f33aa8)
Features
  • useOrientation: add tests (f45cb70)

17.1.1 (2021-02-10)

Bug Fixes
  • useMountedState should not change state on componentDidUpdate lifecycle (701b306)

v17.1.1

Compare Source

Bug Fixes
  • useMountedState should not change state on componentDidUpdate lifecycle (701b306)

v17.1.0

Compare Source

Features
  • prettier: make prettier a part of eslint. (b6993a6)

17.0.2 (2021-02-01)

Bug Fixes
  • proper definition for useMeasure (1461527)

17.0.1 (2021-01-31)

Bug Fixes
  • proper definition for isBrowser and isNavigator states. (a087deb), closes #​1777

v17.0.2

Compare Source

Bug Fixes
  • proper definition for useMeasure (1461527)

v17.0.1

Compare Source

Bug Fixes
  • proper definition for isBrowser and isNavigator states. (a087deb), closes #​1777

v17.0.0

Compare Source

Features
  • refactor the useNetwork hook. (23037f2)
BREAKING CHANGES
  • useNetwork hook renamed to useNetworkState.

v16.1.0

Compare Source

Features
  • improve on and off util functions typing. (723c588)

v16.0.0

Compare Source

chore
  • refactoring and rearrangement. (a27f09f)
BREAKING CHANGES
  • all create* factories been moved to factory subdirectory and in case direct import should be imported like react-use/esm/factory/createBreakpoint
  • comps directory renamed to component

15.3.8 (2021-01-08)

Bug Fixes
  • improve useStateValidator and useMultiStateValidator typings. (acff81d)

15.3.7 (2021-01-08)

Bug Fixes

15.3.6 (2021-01-07)

Bug Fixes

15.3.4 (2020-09-04)

Bug Fixes
  • useLongPress hook linting fixes. (479dd99)

15.3.3 (2020-07-24)

Bug Fixes
  • replace createFactory usages with createElement (ad29bea)

15.3.2 (2020-06-29)

Bug Fixes

15.3.1 (2020-06-29)

Bug Fixes

v15.3.8

Compare Source

Bug Fixes
  • improve useStateValidator and useMultiStateValidator typings. (acff81d)

v15.3.7

Compare Source

Bug Fixes

v15.3.6

Compare Source

Bug Fixes

v15.3.4

Compare Source

Bug Fixes
  • useLongPress hook linting fixes. (479dd99)

v15.3.3

Compare Source

Bug Fixes
  • replace createFactory usages with createElement (ad29bea)

v15.3.2

Compare Source

Bug Fixes

v15.3.1

Compare Source

Bug Fixes

v15.3.0

Compare Source

Features
  • usePrevious: reworked the hook, now it is more memory-efficient. (8c6f467)

15.2.5 (2020-06-15)

Bug Fixes
  • bump react-universal-interface (1540c1a)

15.2.4 (2020-06-13)

Bug Fixes
  • doesn't unlock the body on unmount (1ead4ef)

15.2.3 (2020-06-13)

Bug Fixes
  • 🐛 improve how text is dropped in useDrop hook (b2f46d1)

15.2.2 (2020-06-08)

Bug Fixes
  • repair useKeyboardJs hook (8410bb0)

15.2.1 (2020-06-08)

Bug Fixes
  • 🐛 bump fast-deep-equal, and consume it through ES import (f3c715c)

v15.2.5

Compare Source

Bug Fixes
  • bump react-universal-interface (1540c1a)

v15.2.4

Compare Source

Bug Fixes
  • doesn't unlock the body on unmount (1ead4ef)

v15.2.3

Compare Source

Bug Fixes
  • 🐛 improve how text is dropped in useDrop hook (b2f46d1)

v15.2.2

Compare Source

Bug Fixes
  • repair useKeyboardJs hook (8410bb0)

v15.2.1

Compare Source

Bug Fixes
  • 🐛 bump fast-deep-equal, and consume it through ES import (f3c715c)

v15.2.0

Compare Source

Features

15.1.1 (2020-05-30)

Bug Fixes
  • 🐛 use useIsomorphicLayoutEffect everywhere (dad26e5)

v15.1.1

Compare Source

Bug Fixes
  • 🐛 use useIsomorphicLayoutEffect everywhere (dad26e5)

v15.1.0

Compare Source

Bug Fixes
  • display alert timeout in story (2bb65ef)
  • mutate ref in render directly (5488f5e)
Features

15.0.3 (2020-05-18)

Bug Fixes
  • 🐛 correct useMeasure typings (bedbad7)

15.0.2 (2020-05-17)

Bug Fixes
  • 🐛 dont memoize useScratch event handlers (ffc7579)

15.0.1 (2020-05-16)

Bug Fixes
  • deps: update dependency tslib to v2 (6aebf3c)

v15.0.3

Compare Source

Bug Fixes
  • 🐛 correct useMeasure typings (bedbad7)

v15.0.2

Compare Source

Bug Fixes
  • 🐛 dont memoize useScratch event handlers (ffc7579)

v15.0.1

Compare Source

Bug Fixes
  • deps: update dependency tslib to v2 (6aebf3c)

v15.0.0

Compare Source

Bug Fixes
  • 🐛 better serialization handling in useLocalStorage hook (68fb835)
  • 🐛 correctly test if env is browser in useMeasure (9ae494f)
  • 🐛 make useMeasure work on server (2daf769)
  • 🐛 remove set dependencies in useSet hook (90ba9d0)
  • 🐛 revert useMeasure defaults to zeros (dc92b64)
  • remove console log 🤓 (f17c8a0)
  • useLocalStorage: using undefined for empty value instead of null (1620e01)
  • use latest set object in useSet "has" method (41f9452)
Features
  • 🎸 add useScratch() sensor hook (58db2f9)
  • 🎸 catch up with v14 (be69035)
  • 🎸 improve implementation of useMeasure() hook (a164843)
  • 🎸 improve implementation of useMeasure() hook (4d88240)
  • 🎸 mock useMeasure() hook on server and w/o ResizeObserver (866f3d7)
  • 🎸 mock useMeasure() hook on server and w/o ResizeObserver (2bbc73a)
  • 🎸 remove resize-observer-polyfill from useMeasure (2a13fba)
  • 🎸 remove resize-observer-polyfill from useMeasure (bf11131)
  • Dependencies inference for useCustomCompareEffect (477c164)
  • improve useAsyncFn and useAsync typings (85967e2)
  • keep previous state in useAsyncFn (54ac91b)
  • use useReducer in useUpdate hook, instead of useState + useCallback (6575b14)
  • useLocalStorage: add remove feature. (#​229) (587de16)
BREAKING CHANGES
  • implementation of useMeasure and useLocalStorage changed
  • resize-observer-polyfill package is not used with useMeasure() hook
    anymore.
  • useMeasure() now defaults all values to -1, if they were not set and
    internal implementation heavily refactored.
  • useAsyncFn now keeps hold of old result/error when called multiple times
  • resize-observer-polyfill package is not used with useMeasure() hook
    anymore.
  • useMeasure() now defaults all values to -1, if they were not set and
    internal implementation heavily refactored.

v14.3.0

Compare Source

Features
  • 🎸 add useScratch hook (2a2a298)

v14.2.0

Compare Source

Features
  • 🎸 onScrubStop provide value where scrub stopped (138b43c)

14.1.1 (2020-04-11)

Bug Fixes

v14.1.1

Compare Source

Bug Fixes

v14.1.0

Compare Source

Features

v14.0.0

Compare Source

Features
  • useRafLoop: implement #​1090 (1ef1272)
  • useRafLoop: reworked the hook, now it do not re-render parent component. (baa2f75)
BREAKING CHANGES
  • useRafLoop: changed return array, now it returns only functions in next order: [stop, start, isActive].

Parent component is not re-rendered on loop start/stop.

13.27.1 (2020-03-25)

Bug Fixes

v13.27.1

Compare Source

Bug Fixes

v13.27.0

Compare Source

Features

13.26.5 (2020-03-02)

Bug Fixes

13.26.4 (2020-02-29)

Bug Fixes
  • useHoverDirty eslint fix (0ed6521)

13.26.3 (2020-02-26)

Bug Fixes

13.26.2 (2020-02-24)

Bug Fixes

13.26.1 (2020-02-16)

Bug Fixes

v13.26.5

Compare Source

Bug Fixes

v13.26.4

Compare Source

Bug Fixes
  • useHoverDirty eslint fix (0ed6521)

v13.26.3

Compare Source

Bug Fixes

v13.26.2

Compare Source

Bug Fixes

v13.26.1

Compare Source

Bug Fixes

v13.26.0

Compare Source

Bug Fixes
  • add initialState to deps (b394f3d)
Features
  • add useMethods state hook (7554b9a)

13.25.1 (2020-02-15)

Bug Fixes
  • 🐛 support default event in useClickAway() (24281cd)
  • generic type on event arg in onClickAway callback on useClickAway (4ffe454)

v13.25.1

Compare Source

Bug Fixes
  • 🐛 support default event in useClickAway() (24281cd)
  • generic type on event arg in onClickAway callback on useClickAway (4ffe454)

v13.25.0

Compare Source

Features

13.24.1 (2020-02-15)

Performance Improvements
  • use fast-deep-equal for deep comparisons (b9a8aad)

v13.24.1

Compare Source

Performance Improvements
  • use fast-deep-equal for deep comparisons (b9a8aad)

v13.24.0

Compare Source

Features
  • add createReducerContext and createStateContext factories (84b8310)

v13.23.0

Compare Source

Features
  • add createGlobalState hook generator (fda7199)

13.22.5 (2020-02-04)

Bug Fixes
  • 🐛 don't throw in useMediaDevices on missing browser API (0f119fe)
  • handle undefined mediaDevices (6f68437)

13.22.4 (2020-01-30)

Bug Fixes

13.22.3 (2020-01-28)

Bug Fixes
  • useIntersection: disconnect an old IntersectionObserver instance when the ref changes (ac2f54a)
  • useIntersection: reset an intersectionObserverEntry when the ref changes (3f8687e)
  • useIntersection: return null if IntersectionObserver is not supported (4f6d388)

13.22.2 (2020-01-27)

Bug Fixes

13.22.1 (2020-01-27)

Bug Fixes

v13.22.5

Compare Source

Bug Fixes
  • 🐛 don't throw in useMediaDevices on missing browser API (0f119fe)
  • handle undefined mediaDevices (6f68437)

v13.22.4

Compare Source

Bug Fixes

v13.22.3

Compare Source

Bug Fixes
  • useIntersection: disconnect an old IntersectionObserver instance when the ref changes (ac2f54a)
  • useIntersection: reset an intersectionObserverEntry when the ref changes (3f8687e)
  • useIntersection: return null if IntersectionObserver is not supported (4f6d388)

v13.22.2

Compare Source

Bug Fixes

v13.22.1

Compare Source

Bug Fixes

v13.22.0

Compare Source

Bug Fixes
  • Fail testing and update doc (57b9041)
Features

v13.21.0

Compare Source

Features

v13.20.0

Compare Source

Features
  • useMap: allow resetting with provided value other then initial (7645f72)

v13.19.0

Compare Source

Features

v13.18.0

Compare Source

Bug Fixes
Features
  • add serializer/deserializer option to useLocalStorage (5316510)

v13.17.0

Compare Source

Features
  • add support for body lock on iOS (d778408)

13.16.1 (2020-01-14)

Bug Fixes
  • update the types dep for js-cookie (5c55d59)

v13.16.1

Compare Source

Bug Fixes
  • update the types dep for js-cookie (5c55d59)

v13.16.0

Compare Source

Features
  • add option to useTitle to restore title on un-mount (b8b3e47)

v13.15.0

Compare Source

Features

13.14.3 (2020-01-08)

Bug Fixes
  • useUpdateEffect cleanup test returns false positive (9b31c42)
  • useUpdateEffect test returning false positive (#​865) (1946006)

13.14.2 (2020-01-08)

Bug Fixes
  • bump fast-shallow-equal (19b2b39)

13.14.1 (2020-01-07)

Bug Fixes
  • useUpdateEffect returns optional cleanup function (0ce421c)
  • useUpdateEffect returns optional cleanup function (#​864) (7960127)

v13.14.3

Compare Source

Bug Fixes
  • useUpdateEffect cleanup test returns false positive (9b31c42)
  • useUpdateEffect test returning false positive (#​865) (1946006)

v13.14.2

Compare Source

Bug Fixes
  • bump fast-shallow-equal (19b2b39)

v13.14.1

Compare Source

Bug Fixes
  • useUpdateEffect returns optional cleanup function (0ce421c)
  • useUpdateEffect returns optional cleanup function (#​864) (7960127)

v13.14.0

Compare Source

Features
  • 🎸 add [vertical] flag to useSlider() hook (777865c)

v13.13.0

Compare Source

Features
  • add useShallowCompareEffect and useCustomCompareEffect hooks (ba8803e)

13.12.2 (2019-12-10)

Bug Fixes
  • useSet: "has" method in useSet updated to reference latest set object (4f1d8c2)

13.12.1 (2019-12-09)

Bug Fixes
  • useMap: methods with side effects should be stable across renders. (020b4db)

v13.12.2

Compare Source

Bug Fixes
  • useSet: "has" method in useSet updated to reference latest set object (4f1d8c2)

v13.12.1

Compare Source

Bug Fixes
  • useMap: methods with side effects should be stable across renders. (020b4db)

v13.12.0

Compare Source

Features

v13.11.0

Compare Source

Features
  • 🎸 add useUnmountPromise hook (01421bc)

13.10.2 (2019-12-05)

Bug Fixes
  • useUpdate hitting maxInt, failing to trigger rerender (93e7291)

13.10.1 (2019-12-03)

Bug Fixes
  • "get" method in useMap updated to reference latest map object (044d267)

v13.10.2

Compare Source

Bug Fixes
  • useUpdate hitting maxInt, failing to trigger rerender (93e7291)

v13.10.1

Compare Source

Bug Fixes
  • "get" method in useMap updated to reference latest map object (044d267)

v13.10.0

Compare Source

Features

v13.9.0

Compare Source

Features

13.8.2 (2019-11-22)

Bug Fixes
  • **[

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 was generated by Mend Renovate. View the repository job log.

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

Successfully merging this pull request may close these issues.

0 participants