Releases: ZeeCoder/use-resize-observer
Releases · ZeeCoder/use-resize-observer
Release list
v10.0.0
10.0.0 (2026-07-31)
- feat!: v10 — modernised toolchain, React 19 support, long-standing fixes (5647fab)
BREAKING CHANGES
- named export only (no default),
/polyfilledentrypoint
removed, zero runtime dependencies (@juggle/resize-observer dropped), react-dom
no longer a peer, React >=18.2, ES2020 output (no IE11), and only the package
root is importable. Full list with rationale in MIGRATION.md.
Toolchain (rebuilt end to end)
- Build: rollup + babel → tsdown (ESM + CJS + type declarations).
- Tests: jest + karma → Vitest in real browsers (Playwright), plus a
WebdriverIO / BrowserStack suite on real desktop & mobile devices. - Lint / format: eslint + prettier → oxlint + oxfmt.
- Package manager: yarn → pnpm; CI on Node 24 with OIDC trusted publishing.
Library
- React 19 support (18 kept); open-ended peer range so future majors work
without a release here. - onResize payload now carries the raw ResizeObserverEntry (every box size,
entry.target), cross-window / iframe observation, and a measured 0 reports
as 0 rather than undefined.
v10.0.0-alpha.3
v10.0.0-alpha.2
v10.0.0-alpha.1
10.0.0-alpha.1 (2026-07-30)
- feat!: v10 — docs, npm provenance, Dependabot (aced5cc)
Bug Fixes
BREAKING CHANGES
- The default export has been removed. Use the named export instead:
import { useResizeObserver } from "use-resize-observer";
The "use-resize-observer/polyfilled" entrypoint has been removed, along with the
@juggle/resize-observer dependency. The package now has zero runtime dependencies.
React 16.8 - 17 are no longer supported; the peer range is now ^18.2 || ^19.
react-dom is no longer a peer dependency.
Output now targets ES2020; IE 11 is no longer supported.
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
v9.1.0
v9.1.0-alpha.1
v9.0.2
v9.0.0
v8.0.0
8.0.0 (2021-08-28)
Bug Fixes
- The
onResizecallback is no longer incorrectly called with the same values. (bd0f3c8)
Features
- Added the
boxoption (0ca6c23), closes #31 #57 - Added the
roundoption. (aa38199), closes #55 #46 #61
BREAKING CHANGES
- Removed
resize-observer-polyfillin favour of@juggle/resize-observer. (8afc8f6)
v7.1.0 (Accidental Release)
This was an accidental release, and an equivalent of V8.
The breaking change is the replacement of resize-observer-polyfill by @juggle/resize-observer for the polyfillled module.
See the v8 release notes.