chore(deps): update dependency fast-glob to v3 #165
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^2.2.6
->^3.0.0
Release Notes
mrmlnc/fast-glob
v3.2.11
Compare Source
🐛 Bug fixes
Yeap, this is another release aimed at fixing problems with detecting brace expansions in patterns. This time, patterns like
abc/{a.txt,b.js}
was not marked as a dynamic pattern. So, now the regex has been rewritten to a generalized solution as a function to avoid future problems due to the complexity of the regular expression.Thanks @MurzNN for the report of this problem (#351).
v3.2.10
Compare Source
🐛 Bug fixes
3.2.8
when the{a,b,c}
pattern no longer considered a dynamic pattern (thanks @amitdahan, #347).🥇 New Contributors
v3.2.9
Compare Source
🐛 Bug fixes
3.2.8
with invalid regular expression on older node.js versions (#345).v3.2.8
Compare Source
🐛 Bug fixes
Fix directory matching with trailing slashes (#290)
Previously the
src/*/
pattern did not work as expected (likesrc/*
).Double-slash in the middle of the pattern is not collapsed (#330)
Starting from this release, patterns like
src//*
will work like similar patterns without duplicate slashes. This was done for continuity with other solutions (glob
,ls src//*
, python, golang, …).Adjust inefficient regular expressions (#336, #342, #344)
📖 Documentation
⚙️ Infrastructure
🥇 New Contributors
v3.2.7
Compare Source
🐛 Bug fixes
The previous release (
3.2.6
) introduced a regression, which makes negative patterns were not applied to patterns outside the current directory.This release fixes the issue.
v3.2.6
Compare Source
🐛 Bug fixes
📖 Documentation
followSymbolicLinks
option.⚙️ Infrastructure
glob-parent
package has been updated to fix vulnerabilities. (#304)micromatch
package has been updated to eliminate dependency on thepicomatch
package from this package. (#256)tiny-glob
package has been added to the synchronous product benchmarks. (#323)fdir
package has been added to synchronous and asynchronous product benchmarks. The latest launch. (#322).npmignore
file has been replaced by thefiles
field in thepackage.json
file. (#321)v3.2.5
Compare Source
🐛 Bug fixes
/*
,/tmp/*
,//?/C:/*
.📖 Documentation
markDirectories
option (#287, thanks @yarastqt).⚙️ Infrastructure
v3.2.4
Compare Source
🐛 Bug fixes
3.2.3
when thecaseSensitiveMatch
option is disabled (#276)v3.2.3
Compare Source
🐛 Bug fixes
unique
option led to incorrect results when mixing static and dynamic patterns (#268)v3.2.2
Compare Source
🐛 Bug fixes
./…
or.\\…
) (#257)v3.2.1
Compare Source
💬 Common
v3.2.0
Compare Source
💬 Common
🚀 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:
Now we apply positive patterns.
Synthetic benchmark
More benchmarks can be found here.
{fixtures,out}/{first,second}/*
{fixtures,out}/**
Real world benchmark
{blocks-*,construct}/**/*.styl
(a very large project) 13s → 0.16sKnown issues
{a..z}
(or similar) may introduce some slowdown.fast-glob
is 2 times slower thannode-glob
in this scenario.We will work on this in the future.
🎉 Thanks
scan
method inpicomatch
that returns parts of the pattern.v3.1.1
Compare Source
🐛 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()
orfor await...of
.Most likely, in future releases, we will improve integration with streams (#243).
v3.1.0
Compare Source
💬 Common
isDynamicPattern
as an alternative toglob.hasMagic
(#105)escapePath
for escaping parts of the paths of the pattern (#158)📖 Documentation
generateTasks
helper.dot
option.🐛 Bug Fixes
.
in{dot: false}
mode (#226)⚙️ Infrastructure
v3.0.4
Compare Source
💬 Common
onlyFiles
option in the documentation (thanks, @garyking)strictSlashes
option (internal) for the micromatch package. Related to https://github.com/micromatch/picomatch/issues/21.v3.0.3
Compare Source
💬
🐛 Bug fixes
markDirectories
option adds extra slashes for every directory in the path with the asynchronous API (#214)v3.0.2
Compare Source
🐛 Bug fixes
High memory usage for very big directories (#204)
Highlights
4 000 000
4.1GB
of RAM (37s
)0.8GB
of RAM (25s
)Explanation
In short, we called 2x
replace
andstartsWith
on every entry. Together, that's 12 million calls.v3.0.1
Compare Source
💬 Common
import
issue (https://github.com/mrmlnc/fast-glob/pull/206, thanks @zkochan).v3.0.0
Compare Source
🌮 Thanks
withFileTypes
option in thefs.readdir
method.📑 Summary
This release aims to fix architectural issues, increase performance and reduce size of package.
💣 Breaking changes
Since this is a major release, we are introducing a few breaking changes:
fast-glob@2
is ending.README.md
file.nobrace
,noglobstar
,noext
,nocase
,transform
.extension
→extglob
followSymlinkedDirectories
→followSymbolicLinks
case
→caseSensitiveMatch
brace
→braceExpansion
matchBase
→baseNameMatch
deep
option now accepts onlynumber
type and default value now isInfinity
instead oftrue
.async
method was removed. Usefg(/* … */)
instead.stats
option is enabled is completely changed.🐛 Bug fixes
micromatch@3
tomicromatch@4
:baseNameMatch
option never worked (https://github.com/mrmlnc/fast-glob/issues/199).🚀 Improvements
💬 Common
2.47MB
→0.42MB
.require
time decreased:534ms
→78ms
.🌪️ Speed
Wow! The new version is very fast. At least twice as fast as the previous version. Probably this is the fastest solution in the Node.js world. And that's not all! We will work on performance issues in the future 🐢.
Look at the benchmarks section in the
README.md
file.⚙️ Flexibility
Also in this release we have worked on simplifying some scenarios.
concurrency
fs
suppressErrors
throwErrorOnBrokenSymbolicLink
objectMode
🤕 Known issues in this update
v2.2.7
Compare Source
Another release of bug fixes
📖 Documentation
ignore
option takes an array (#184 — thanks @lukeis for contributing)case
option.🐛 Bug Fixes
Paths not resolved in some cases (#157)
If the user has passed a
.
or..
and theabsolute
option is enabled, the paths of the found entries were not absolute (they contained.
or `..).before
after
The
case
option not work with static patterns (#172)For performance reasons with
fast-glob@2.1.0
we introducestatic patterns
(patterns without glob magic).Unfortunately, then we forgot about supporting the
case
(nocase
) option. Now thecase
option works fine with static patterns too. We also improved the documentation for this option.before
after
Question mark is not recognized as dynamic glob and fails to find files (#174)
This is also related to
static patterns
.Previously we mark patterns like
assets/?ss.css
tostatic
and tried to find such file on file system. Now it will works fine.before
after
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.