Repository navigation
fix: allow @floating-ui/dom 1.7.6 and above - #1291
Conversation
An exact 1.7.6 cannot be deduped with @floating-ui/react-dom, which requires ^1.8.0. A caret range lets an app keep one copy. Fixes #1290
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Beta version released with the last commit 🚀 or |
Summary
Fixes #1290.
@floating-ui/domwas pinned to1.7.6.@floating-ui/react-domrequires^1.8.0, so an app that uses both installed two copies. The dependency is now^1.7.6(>=1.7.6 <2.0.0), which overlaps^1.8.0, so npm can hoist one 1.8.x.This repo still resolves 1.7.6. v6 only calls
computePosition,offset,shift,flip,arrow, andautoUpdate. Those calls passed the positioning tests against 1.8.0, and 1.8.0 does not change them.Test plan
@floating-ui/dom@1.8.0installedreact-tooltipand@floating-ui/reacthas a single@floating-ui/domafter installSummary by CodeRabbit