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@solid-primitives/resize-observer 47 changes
Breaking changes 2
solid-js@^2.0.0-beta.14 is now required as a peer dependency.
@solidjs/web@^2.0.0-beta.14 is now required as a peer dependency.
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.
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.
Fixes and other changes 3
Preserves hydration identifiers when receiving a target accessor during server rendering.
Import isServer from @solidjs/web instead of solid-js/web.
Fixes Solid 2 hydration owner counting with a transparent resize observer effect and matching window size onSettled calls.
@solid-primitives/resize-observer 22 changes
New APIs and options 2
Adds clientHeight for element size.
Adds clientWidth for element size.