You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When writing a stream (file.isStream() return true) using vfs.dest() the resulting stream will never end. I did some digging and it seems the code inside file-operations.js is out of date with when compared to Node 9.
It calls destroy instead of close (which btw is not even part of the public API). When i change it to this.once('finish', this.destroy); (like Node does) everything seems to works fine.
The text was updated successfully, but these errors were encountered:
unfortunately, we don't support node 9 because the node team doesn't seem to care that they keep breaking userland.
The logic you are referencing was pulled out of an LTS version of node and has worked across all versions until 9. We can't keep bending to node-core's whim when we also have to think about backwards compat.
When writing a stream (
file.isStream()
returntrue
) usingvfs.dest()
the resulting stream will never end. I did some digging and it seems the code insidefile-operations.js
is out of date with when compared to Node 9.The issue is on the folowing line:
vinyl-fs/lib/file-operations.js
Lines 376 to 377 in e739f6c
When i compare this to Node 9:
https://github.com/nodejs/node/blob/8c00a809bc08d87776f74c84751607155f3df61f/lib/fs.js#L2462-L2467
It calls destroy instead of close (which btw is not even part of the public API). When i change it to
this.once('finish', this.destroy);
(like Node does) everything seems to works fine.The text was updated successfully, but these errors were encountered: