New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: @floating-ui/utils
package
#2449
Conversation
@floating-ui/core (1.3.1 → 1.4.0)Refactors
@floating-ui/dom (1.4.5 → 1.5.0)Refactors
@floating-ui/react (0.24.8 → 0.25.0)Refactors
@floating-ui/utils (unreleased → 0.1.0)New Features
Packages With No ChangesThe following packages have no user facing changes, so won't be released:
|
✅ Deploy Preview for vibrant-gates-22c214 canceled.
|
My main idea with this was to make debugging and testing changes in some of the middleware/hooks easier by allowing to essentially copy-paste the source (= 1 file) from this repo to my own codebase and not have to do too many additional changes manually. Looking at this, it makes it somewhat simpler if at least some of the hooks are from a separate package, but there are still plenty of such utilities used in some of the hooks, which would require additional manual copy-pasting and changing. |
It would probably make sense to have a |
I don't know the best way to package that type of import with wide bundler support, namely ones that don't support Another issue is the |
I guess the exported modules should be what's most frequently used to build the middleware or hooks in the package internally then. That would make custom hooks and middleware easier to write. Won't be a perfect 1:1 match though |
I would also suggest to keep this package under 0.x.x so that you can introduce breaking changes as needed. Otherwise you'll be forced to release majors every time some internals change |
Made these changes:
They'll be versioned at |
dom
-based utils and pure/core-based utils live in the same package? Wonder if there a problem with types or if you can import them from any environment without issue...