-
Notifications
You must be signed in to change notification settings - Fork 43
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
node_io: Implement FileSystem
from package:file
#86
Comments
First thought that comes to my mind is that we can create Would this be a plausible solution to address the issue with |
Yep, that would work as well |
One thing I realized with this is that it looks like That might not always continue to be allowed by the compilers, not sure. |
Hopefully such a major breaking change would come with plenty of warning and migration assistance. Incidentally, the |
@pulyaevskiy I'm diving into this to unblock
I'm happy to implement either, but I'd like to know which direction you think is preferable. My personal preference would be for option 2, due to its simplicity. |
Option 2 ended up being simple enough that I just put up a draft PR for it: #88 |
Agree, it's adding a lot of code with little value. With option 2 I was worried that the two APIs may introduce incompatible changes at some point in the future which would break this package. But it looks like the So 👍 for option 2. Thanks for taking time to work on this @nex3 ! I glanced briefly at dart-lang/glob#88 and it looks good overall, let me know when you're done and it's ready for review. |
dart-lang/glob#88 is ready for review (although it's intended to land after dart-lang/glob#87). |
Thanks, I merged dart-lang/glob#87, will look at dart-lang/glob#88 tomorrow. |
* Add helpers for invoking asynchronous Node.js functions * Implement file's FileSystem API in node_io Closes #86 * Remove dependency override
Thanks @nex3 , I published node_io 1.2.0 and node_interop 1.2.1. (Also fixed the build while at it). |
Related to dart-lang/tools#1991.
Today the
glob
package usesnode_io
with a conditional export but we want to get away from that. We are switching to use thefile
package for all file system interactions.If this package had an implementation of
FileSystem
, then it could easily plug in toglob
in a clean way. This might also help some of the other issues listed for this package, if we can push more of the ecosystem towards using these general file interfaces instead of those fromdart:io
, then everything can be more flexible :).The text was updated successfully, but these errors were encountered: