- 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
- Include React 17+ in peer dependecies
- Use createElement to not depend on the React import
- Take offsetWidth/Height instead of getBoundingClientRect to ignore
transform: scale
- Add es2018/19 exports to the package.json
- Republish the right build
- Refactor with React Hooks (@klimashkin)
- Remove showOnInit option, since breakpoin after first render is set synchronously in useEffect before ResizeObserver starts observing (@klimashkin)
- Update dependencies (@klimashkin)
- Initial release (@klimashkin)