Skip to content

Releases: ZeeCoder/use-resize-observer

v10.0.0

Choose a tag to compare

@github-actions github-actions released this 31 Jul 11:12

10.0.0 (2026-07-31)

  • feat!: v10 — modernised toolchain, React 19 support, long-standing fixes (5647fab)

BREAKING CHANGES

  • named export only (no default), /polyfilled entrypoint
    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.3 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 31 Jul 11:07

10.0.0-alpha.3 (2026-07-31)

Bug Fixes

  • don't call onResize after the component unmounts (cffac3a)

v10.0.0-alpha.2

v10.0.0-alpha.2 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 31 Jul 08:11

10.0.0-alpha.2 (2026-07-31)

Features

  • expose the raw ResizeObserverEntry in the onResize callback (148a985), closes #102

v10.0.0-alpha.1

v10.0.0-alpha.1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 30 Jul 15:51

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

Choose a tag to compare

@github-actions github-actions released this 22 Nov 20:29

9.1.0 (2022-11-22)

Bug Fixes

Features

v9.1.0-alpha.1

v9.1.0-alpha.1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 21 Nov 12:25

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

Features

v9.0.2

Choose a tag to compare

@github-actions github-actions released this 13 Jun 21:03

9.0.2 (2022-06-13)

Bug Fixes

  • Made element resolution compatbile with concurrent mode (c9c6689)
  • Small changes and chores (0cb6800)

v9.0.0

Choose a tag to compare

@github-actions github-actions released this 15 May 22:18

9.0.0 (2022-05-15)

Bug Fixes

BREAKING CHANGES

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

v8.0.0

Choose a tag to compare

@github-actions github-actions released this 28 Aug 21:18

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)

v7.1.0 (Accidental Release)

Choose a tag to compare

@ZeeCoder ZeeCoder released this 28 Aug 21:24

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.