Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-use

Package Overview
Dependencies
Maintainers
0
Versions
272
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-use - npm Package Versions

1
28

15.0.3

Diff

Changelog

Source

15.0.3 (2020-05-18)

Bug Fixes

  • 🐛 correct useMeasure typings (bedbad7)
streamich
published 15.0.2 •

Changelog

Source

15.0.2 (2020-05-17)

Bug Fixes

  • 🐛 dont memoize useScratch event handlers (ffc7579)
streamich
published 15.0.1 •

Changelog

Source

15.0.1 (2020-05-16)

Bug Fixes

  • deps: update dependency tslib to v2 (6aebf3c)
streamich
published 15.0.0 •

Changelog

Source

15.0.0 (2020-05-16)

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.
streamich
published 15.0.0-alpha.1 •

streamich
published 14.3.0 •

Changelog

Source

14.3.0 (2020-05-16)

Features

streamich
published 14.2.0 •

Changelog

Source

14.2.0 (2020-04-24)

Features

  • 🎸 onScrubStop provide value where scrub stopped (138b43c)
streamich
published 14.1.1 •

Changelog

Source

14.1.1 (2020-04-11)

Bug Fixes

  • deps: update dependency @types/js-cookie to v2.2.6 (f9f4fae)
streamich
published 14.1.0 •

Changelog

Source

14.1.0 (2020-04-08)

Features

streamich
published 14.0.0 •

Changelog

Source

14.0.0 (2020-04-04)

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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc