Skip to content

2.2.5

Compare
Choose a tag to compare
@mrmlnc mrmlnc released this 07 Jan 18:42
· 478 commits to master since this release

🐛 Bug Fixes

Broken Stream API when errors occur

Thanks @felixbecker for issue reporting 🎉

#140

This package is able to build tasks on the basis of passed patterns for their parallel execution. In some cases there may be multiple. In the Stream API, each task produces its own Node.js Stream. Once the streams are created, we combine them into a single stream using the merge2 package.

Before this fix, if an error occurs anywhere inside one of streams, it did not propagate to the combined stream, causing an unhandled exception.

For example, when a directory is deleted while it is being globbed with the stream API…

After this fix, all errors will be propagated to the combined stream. One exception is ENOENT errors – they will be ignored in all streams.