New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

use-resize-observer

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-resize-observer - npm Package Versions

23

9.1.0

Diff

Changelog

Source

9.1.0-alpha.1 (2022-11-21)

Features

  • Exported some TS types (e056e19), closes #98
zeecoder
published 9.1.0-alpha.1 •

Changelog

Source

9.1.0-alpha.1 (2022-11-21)

Features

zeecoder
published 9.0.2 •

Changelog

Source

9.0.2 (2022-06-13)

Bug Fixes

zeecoder
published 9.0.0 •

Changelog

Source

9.0.0 (2022-05-15)

Bug Fixes

BREAKING CHANGES

  • The lib now takes "Element", not only "HTMLElement", to be consistent with ResizeObserver.
zeecoder
published 8.0.0 •

Changelog

Source

8.0.0 (2021-08-28)

Bug Fixes

  • The onResize callback is no longer incorrectly called with the same values. (bd0f3c8)

Features

BREAKING CHANGES

  • Removed resize-observer-polyfill in favour of @juggle/resize-observer. (8afc8f6)
zeecoder
published 7.1.0 •

Changelog

Source

7.1.0 (2021-08-28)

This was an accidental release, and an equivalent of V8.

zeecoder
published 7.0.1 •

Changelog

Source

7.0.1 (2021-07-27)

Bug Fixes

  • Removed unnecessary entries.length check (3211d33)
  • Undefined HTMLElement is no longer an issue in certain SSR edge cases. (599cace), closes #74 #62
zeecoder
published 7.0.0 •

Changelog

Source

7.0.0 (2020-11-11)

Bug Fixes

  • Only instantiating a ResizeObserver instance if there's actually something to observe. This for example means that if you pass in null or undefined as the ref, or if neither the default ref or RefCallback returned from the hook are in use, then no ResizeObserver instance will get created until there's an actual element to observe. Resolves: #42
  • Fixed an error where in certain edge cases the hook tried to set state when its host component already unmounted.

Features

  • The ref option now accepts raw elements as well.

BREAKING CHANGES

  • The returned ref is now a RefCallback, not a ref object. Resolves: #43, #45
  • The returned ref will always be the same RefCallback. Previously when a custom ref object was passed, it was returned as well from the hook as "ref".
  • Compared to 6.2.0-alpha.1 There's no callbackRef return value anymore.

Misc

  • Using package.json file attr instead of gitignore (c58f34e)
  • Added Semantic Release (55f6368)
  • Handling custom refs (through options), the default ref and the RefCallback has been greatly refactored internally (into the useResolvedElement hook), to handle more edge cases with the way refs are handled.
  • Tests based on react testing library were refactored to make them much simpler and more approachable.
  • Added contributing guidelines
  • Added tests in real browsers with BrowserStack, so that we ensure the lib works all the way back to IE11.
  • Switched to GitHub Actions from Travis, as builds started to freeze. (They've also announced a limit on OS projects.)
zeecoder
published 7.0.0-alpha.4 •

Changelog

Source

7.0.0-alpha.4 (2020-11-11)

Bug Fixes

  • Using package.json file attr instead of gitignore (74ea0a9)
zeecoder
published 7.0.0-alpha.3 •

Changelog

Source

7.0.0-alpha.3 (2020-11-11)

Bug Fixes

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