Packages

@floating-ui/dom

1.8.0 · 11 Jul 2026MIT149M / weekRepositoryHomepagenpmAtom feed

Your version

1.8.0

Latest11 Jul 2026Where it was published

In short

1 new1 faster8 fixed1 internal

Release note

Minor Changes

  • Add 'layoutViewport' string option to rootBoundary. Unlike the visual 'viewport' boundary, it remains stable while pinch-zooming or when a mobile software keyboard is open, and unlike a manually passed Rect of the documentElement's client size, it accounts for space reserved by scrollbar-gutter: stable.

Patch Changes

  • Remove redundant passive options from scroll listeners

  • Support explicit undefined for optional properties with exactOptionalPropertyTypes

  • autoUpdate: Update immediately instead of waiting for the 1s layoutShift refresh throttle when the reference moved during an observer refresh

  • getClippingRect: Correct clipping-ancestor filtering for fixed-position elements

  • dom: Reduce bundle size and skip redundant per-call work in positioning utilities

  • getViewportRect: Account for scrollbar-gutter: stable both-edges reserved space

  • getViewportRect: Don't overflow past a left-side document scrollbar

  • platform: Don't throw in getClientRects when a virtual element without a getClientRects method is used with the inline() middleware

  • autoUpdate: Refresh layout shift observer on root resize

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.