fast-glob
3.3.3 · 5 Jan 2025MIT203.4M / weekRepositoryHomepagenpmAtom feed
3.3.3 is the newest release of 3.x.
In short
4 fixed2 internal
Release note
Full Changelog: 3.2.12...3.3.0
Improvements
Method aliases
New methods (glob, globSync, globStream) have been added in addition to the current methods (default import, sync, stream), which eliminate the need to rename the method when importing. In addition, an async alias has been added for the default import, which makes it possible to use this packet with ESM.
Method to convert paths to globs
A new method (convertPathToPattern) has been added in this release to convert a path to a pattern. The primary goal is to enable users to avoid processing Windows paths in each location where this package is used by utilities from third-party packages.
See more details in the pull request.
Bug fixes
In the past, we mishandled patterns that contained slashes when the
baseNameMatchoption was enabled, which went against the documented behavior.Several problems with matching patterns that contain brace expansion have been resolved. The primary issue solved is when the pattern has duplicate slashes after it is expanded (#394), or the
micromatchpackage does not correctly generate a regular expression (#365).All negative patterns will now have the
dotoption enabled when matching paths. Previously, the!**/*patterns did not exclude hidden files (start with a dot).The issue that led to duplicates in the results when overlapping or duplicate patterns were present among the patterns has been fixed. At the moment, we are only talking about leading dot. Other cases are not included. For example, running with the patterns
['./file.md', 'file.md', '*']will now only includefile.mdonce in the results.
Documentation
A clarifying note has been added for the concurrency option, which provides more detailed information about the Thread Pool utilization.