fast-glob
3.3.3 · 5 Jan 2025MIT203.4M / weekRepositoryHomepagenpmAtom feed
3.3.3 is the newest release of 3.x.
In short
6 new3 changed
Release note
:speech_balloon: Common
An empty pattern now causes an error
:rocket: Improvements
In the #156 issue we've redesigned the deep filter, which controls the reading of directories in depth.
Previously, this filter did not use positive patterns directly (only their maximum depth). The example below shows how many extra directories we read:
{src,fixtures}/**
src → read
fixtures → read
out → read
node_modules → readNow we apply positive patterns.
{src,fixtures}/**
src → read
fixtures → read
out → skip
node_modules → skipSynthetic benchmark
More benchmarks can be found here.
{fixtures,out}/{first,second}/*
| | sync, ms | async, ms | stream, ms |
|------- |---------- |----------- |------------ |
| 3.x.x | 13 | 22 | 20 |
| 3.2.0 | 5 | 9 | 8 |
{fixtures,out}/**
| | sync, ms | async, ms | stream, ms |
|------- |---------- |----------- |------------ |
| 3.x.x | 37 | 49 | 52 |
| 3.2.0 | 6 | 10 | 12 |
Real world benchmark
Known issues
For some cases, there is a noticeable slowdown of 3-6%.
Patterns containing
{a..z}(or similar) may introduce some slowdown.Actually,
fast-globis 2 times slower thannode-globin this scenario.
We will work on this in the future.
:tada: Thanks
@jonschlinkert for the
scanmethod inpicomatchthat returns parts of the pattern.@fisker for early beta feedback.