[Snyk] Security upgrade fast-glob from 2.2.1 to 3.3.3 #217
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.
Snyk has created this PR to fix 2 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):
large-file/package.jsonlarge-file/package-lock.jsonVulnerabilities that will be fixed with an upgrade:
SNYK-JS-BRACES-6838727
SNYK-JS-MICROMATCH-6838728
Release notes
Package name: fast-glob
-
3.3.3 - 2025-01-05
- Refer to [email protected] to avoid annoying npm audit spam (#443, #444, #454, #456, #457, #461)
- Apply absolute negative patterns to full path instead of file path (#441, thanks @ webpro)
-
3.3.2 - 2023-11-06
- Handle square brackets as a special character on Windows in escape functions (#425)
- Keep escaping after brace expansion (#422)
-
3.3.1 - 2023-07-22
-
3.3.0 - 2023-06-30
- In the past, we mishandled patterns that contained slashes when the
- 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
- All negative patterns will now have the
- 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
- The benchmark in CI is now running on Node.js 20.
- The benchmark now uses the public package bencho instead of an in-house implementation. You may want to try this solution for your packages and provide feedback.
- @ josh-hemphill made their first contribution in #383
- @ mairaw made their first contribution in #401
-
3.2.12 - 2022-09-09
===> Benchmark pattern "*" with 100 launches (regression, async)
-
3.2.10 - 2022-01-09
- Fixed a regression in
- @ amitdahan made their first contribution in #348
-
3.2.9 - 2022-01-07
- Fixed a regression in
-
3.2.8 - 2022-01-07
- Some documentation improvements (#327, thanks @ MarcelloTheArcane).
- The CodeQL action has been added to CI pipeline (#338, thanks @ XhmikosR).
- @ MarcelloTheArcane made their first contribution in #327
- @ Trott made their first contribution in #336
- @ XhmikosR made their first contribution in #338
-
3.2.7 - 2021-07-08
-
3.2.6 - 2021-06-27
-
3.2.5 - 2021-01-17
-
3.2.4 - 2020-06-16
-
3.2.3 - 2020-06-15
-
3.2.2 - 2020-02-21
-
3.2.1 - 2020-02-20
-
3.2.1-beta.1 - 2020-02-20
-
3.2.1-beta.0 - 2020-02-20
-
3.2.0 - 2020-02-15
-
3.2.0-beta.2 - 2020-02-09
-
3.2.0-beta - 2020-02-04
-
3.1.1 - 2019-12-01
-
3.1.0 - 2019-10-06
-
3.0.4 - 2019-07-05
-
3.0.3 - 2019-06-27
-
3.0.2 - 2019-06-23
-
3.0.1 - 2019-06-17
-
3.0.0 - 2019-06-16
-
2.2.7 - 2019-05-18
-
2.2.6 - 2019-01-07
-
2.2.5 - 2019-01-07
-
2.2.4 - 2018-11-11
-
2.2.3 - 2018-10-02
-
2.2.2 - 2018-05-15
-
2.2.1 - 2018-04-22
from fast-glob GitHub release notes💬 Common
🐛 Bug fixes
🐛 Bug fixes
This release fixes a regression for cases where the
ignoreoption is used with a string (#403, #404).The public interface of this package does not support a string as the value for the
ignoreoption since 2018 year (release).So, in the next major release, we will reintroduce method implementations that do not involve strings in the
ignoreoption.🚀 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, anasyncalias 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
baseNameMatchoption was enabled, which went against the documented behavior. (#312)micromatchpackage does not correctly generate a regular expression (#365).dotoption enabled when matching paths. Previously, the!**/*patterns did not exclude hidden files (start with a dot). (#343)['./file.md', 'file.md', '*']will now only includefile.mdonce in the results. (#190)📖 Documentation
A clarifying note has been added for the
concurrencyoption, which provides more detailed information about the Thread Pool utilization.⚙️ Infrastructure
🥇 New Contributors
🐛 Bug fixes
Fixed an issue introduced in
3.2.7related to incorrect application of patterns to entries with a trailing slash when the entry is not a directory.Before changes:
After fix:
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:
===> 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
3.2.11 - 2022-01-14
🐛 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).
🐛 Bug fixes
3.2.8when the{a,b,c}pattern no longer considered a dynamic pattern (thanks @ amitdahan, #347).🥇 New Contributors
🐛 Bug fixes
3.2.8with invalid regular expression on older node.js versions (#345).🐛 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
🐛 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.
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic
Learn how to fix vulnerabilities with free interactive lessons:
🦉 Uncontrolled resource consumption