unstale

npm / @solid-primitives/resize-observer

@solid-primitives/resize-observer

What changed in @solid-primitives/resize-observer 2 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-28.

2 breaking4 new APIs and options3 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@solid-primitives/resize-observer 47 changes

Breaking changes 2

  • solid-js@^2.0.0-beta.14 is now required as a peer dependency.

    4.0.0release notes

  • @solidjs/web@^2.0.0-beta.14 is now required as a peer dependency.

    4.0.0release notes

New APIs and options 2

  • getElementSize and createElementSize now expose clientHeight from the element's clientHeight property; it measures the padding-box, excludes border and scrollbar, and is unaffected by CSS transforms.

    4.0.0release notes

  • getElementSize and createElementSize now expose clientWidth from the element's clientWidth property; it measures the padding-box, excludes border and scrollbar, and is unaffected by CSS transforms.

    4.0.0release notes

Fixes and other changes 3

  • Preserves hydration identifiers when receiving a target accessor during server rendering.

    4.0.0release notes

  • Import isServer from @solidjs/web instead of solid-js/web.

    4.0.0release notes

  • Fixes Solid 2 hydration owner counting with a transparent resize observer effect and matching window size onSettled calls.

    4.0.0release notes

@solid-primitives/resize-observer 22 changes

New APIs and options 2