Packages

fast-glob

3.3.3 · 5 Jan 2025MIT203.4M / weekRepositoryHomepagenpmAtom feed

Your version

3.1.1

1 Dec 2019Where it was published

3.3.3 is the newest release of 3.x.

Release note

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