Skip to content

Releases: klimashkin/react-size-watcher

3.0.0

24 Jan 01:50
Compare
Choose a tag to compare
  • Make the observable update asynchronous by default, to prevent "ResizeObserver loop limit exceeded" error.
  • Add sync option to get to old behavior
  • Add es2020, es2021, and es2022 targets
  • Update dependencies
  • Require React 17 | 18 in peer dependecies
  • Require Node.js 16 for building

2.1.2

19 Mar 23:31
Compare
Choose a tag to compare
  • Include React 17+ in peer dependecies

2.1.1

19 Mar 08:10
Compare
Choose a tag to compare
  • Use createElement to not depend on the React import, fixes #1

2.1.0

30 Oct 22:50
Compare
Choose a tag to compare
  • Take offsetWidth/Height instead of getBoundingClientRect to ignore transform: scale

2.0.2

30 Oct 22:49
Compare
Choose a tag to compare
  • Add es2018/19 exports to the package.json

2.0.1

24 Oct 00:38
Compare
Choose a tag to compare

Republish the right build

2.0.0

24 Oct 00:27
Compare
Choose a tag to compare
  • Refactor with React Hooks
  • Remove showOnInit option, since breakpoin after first render is set synchronously in useEffect before ResizeObserver starts observing
  • Update dependencies

1.0.0

16 Mar 06:49
Compare
Choose a tag to compare

First release