-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
refactor!: split file handles into seperate function #126
Conversation
Signed-off-by: Jon Koops <[email protected]> BREAKING CHANGE: Arrays of `FileSystemFileHandle` are now handled in a dedicated `fromFileHandles()` function.
Pull Request Test Coverage Report for Build 12412031215Details
💛 - Coveralls |
@rolandjitsu could I get your input on this PR? If you are enjoying the holidays don't worry, this can all certainly wait until next year. |
Sorry for the late reply. Gonna have a look at this now. |
@rolandjitsu can we merge this one as-is, or would you like me to make further changes? I have some other work lined up that I'd like to get in as well. |
🎉 This PR is included in version 3.0.0-beta.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Nice, thanks for the merge, I will see if I can dig up some more of the work I had in the pipeline for the next major and get it into shape. |
What kind of change does this PR introduce?
Did you add tests for your changes?
If relevant, did you update the documentation?
Summary
Removes the handling of
FileSystemFileHandle
arrays from thefromEvent()
function, and moves it to a dedicatedfromFileHandles()
function purposefully made for handling this data type. This reduces the need to handle polymorphic input and narrow down what the exact type should be infromEvent()
. Additionally, this allows bundlers to more effectively tree-shake the module in case the other code is never used. The JSDoc on the function itself has also been improved with additional details for the consumer.Does this PR introduce a breaking change?
Yes, arrays of
FileSystemFileHandle
are now handled in a dedicatedfromFileHandles()
function. Users that were previously usingfromEvent()
will now have to use this dedicated function instead.Other information
This also removes the notice that this feature is experimental, promoting
fromFileHandles()
to a stable API in the next major.