npm fast-glob 2.2.5

latest releases: 3.3.2, 3.3.1, 3.3.0...
5 years ago

🐛 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.

Don't miss a new fast-glob release

NewReleases is sending notifications on new releases.