Skip to content

Bump fast-glob from 3.2.11 to 3.2.12

Dependabot requested to merge dependabot-npm_and_yarn-fast-glob-3.2.12 into master

Bumps fast-glob from 3.2.11 to 3.2.12.

Release notes

Sourced from fast-glob's releases.

3.2.12

Full Changelog: https://github.com/mrmlnc/fast-glob/compare/3.2.11...3.2.12

🐛 Bug fixes

Fixed an issue introduced in 3.2.7 related to incorrect application of patterns to entries with a trailing slash when the entry is not a directory.

Before changes:

fg.sync('**/!(*.md)')
// ['file.md', 'a/file.md', 'a/file.txt']

After fix:

fg.sync('**/!(*.md)')
// ['a/file.txt']

Thanks @​AgentEnder for the issue (#357).

🚀 Improvements

This release includes performance improvements for the asynchronous method. For this method we now use an asynchronous directory traversal interface instead of using a streaming interface. This gives up to 15% acceleration for medium and large directories. The result depends a lot on hardware.

You can find the benchmark results for this release in CI here.

Here are a few of measurements on my laptop:

===> Benchmark pattern "*" with 100 launches (regression, async)
===> Max stdev: 7 | Retries: 3 | Options: {}
Name                   Time, ms  Time stdev, %  Memory, MB  Memory stdev, %  Entries  Errors  Retries

fast-glob-current.js   4.390     0.252          6.253       0.015            4        0       1
fast-glob-previous.js  5.653     0.633          6.051       0.056            4        0       1
===> Benchmark pattern "**" with 100 launches (regression, async)
===> Max stdev: 7 | Retries: 3 | Options: {}
Name                   Time, ms  Time stdev, %  Memory, MB  Memory stdev, %  Entries  Errors  Retries

fast-glob-current.js   34.587    1.287          10.654      0.607            11835    0       1
fast-glob-previous.js  41.972    2.086          10.236      1.224            11835    0       1
Commits
  • a028e36 3.2.12
  • 79260ad Merge pull request #366 from AgentEnder/test/broken-segments
  • 72a0ec2 test(regular): add failing test for segment matching
  • 2ff5a2f Merge pull request #361 from mrmlnc/use_async_method_instead_of_stream
  • 7268b50 perf: use fs.walk instead of fs.walkStream for async provider
  • 3c243c2 Merge pull request #360 from mrmlnc/ISSUE-357_fix_group_patterns_ignore
  • a1550b1 fix: do not try to apply patterns to the path with the trailing slash for non...
  • f58b8d5 Merge pull request #358 from AgentEnder/test/negative-groups
  • ee1256b test: add spec for negative groups
  • See full diff in compare view


Dependabot commands
You can trigger Dependabot actions by commenting on this MR
  • $dependabot rebase will rebase this MR
  • $dependabot recreate will recreate this MR rewriting all the manual changes and resolving conflicts

Merge request reports