npm fast-glob 3.1.1

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

🐛 Bug fixes

Stream is not closed when the receiver is closed (#239)

Previously, we read directories in the stream, even after the receiver is closed. Now we stop reading after closing the receiver by .emit('end'), .destroy() or for await...of.

const fg = require('fast-glob');

(async () => {
    const stream = fg.stream('**');

    for await (const entry of stream) {
        console.log(entry);

        return;
    }
})();

Most likely, in future releases, we will improve integration with streams (#243).

Don't miss a new fast-glob release

NewReleases is sending notifications on new releases.