Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade fast-glob from 3.2.7 to 3.3.2 #3

Merged
merged 1 commit into from
Jul 28, 2024

Conversation

abdulrahman305
Copy link
Owner

This PR was automatically created by Snyk using the credentials of a real user.


![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)

Snyk has created this PR to upgrade fast-glob from 3.2.7 to 3.3.2.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 8 versions ahead of your current version.

  • The recommended version was released on 8 months ago.

Issues fixed by the recommended upgrade:

Issue Score Exploit Maturity
high severity Inefficient Regular Expression Complexity
SNYK-JS-MICROMATCH-6838728
375 No Known Exploit
high severity Prototype Pollution
SNYK-JS-ASYNC-2441827
375 Proof of Concept
high severity Uncontrolled resource consumption
SNYK-JS-BRACES-6838727
375 Proof of Concept
high severity Improper Input Validation
SNYK-JS-FOLLOWREDIRECTS-6141137
375 Proof of Concept
high severity Directory Traversal
SNYK-JS-MOMENT-2440688
375 No Known Exploit
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-MOMENT-2944238
375 Proof of Concept
medium severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-MINIMATCH-3050818
375 No Known Exploit
medium severity Information Exposure
SNYK-JS-FOLLOWREDIRECTS-2332181
375 Proof of Concept
medium severity Information Exposure
SNYK-JS-FOLLOWREDIRECTS-6444610
375 Proof of Concept
medium severity Information Exposure
SNYK-JS-NODEFETCH-2342118
375 No Known Exploit
medium severity Prototype Pollution
SNYK-JS-XML2JS-5414874
375 Proof of Concept
low severity Prototype Pollution
SNYK-JS-MINIMIST-2429795
375 Proof of Concept
low severity Information Exposure
SNYK-JS-FOLLOWREDIRECTS-2396346
375 No Known Exploit
Release notes
Package name: fast-glob
  • 3.3.2 - 2023-11-06

    Full Changelog: 3.3.1...3.3.2

    🐛 Bug fixes

    • 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

    Full Changelog: 3.3.0...3.3.1

    This release fixes a regression for cases where the ignore option is used with a string (#403, #404).

    The public interface of this package does not support a string as the value for the ignore option since 2018 year (release).

    So, in the next major release, we will reintroduce method implementations that do not involve strings in the ignore option.

  • 3.3.0 - 2023-06-30

    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 baseNameMatch option was enabled, which went against the documented behavior. (#312)
    • 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 micromatch package does not correctly generate a regular expression (#365).
    • All negative patterns will now have the dot option enabled when matching paths. Previously, the !**/* patterns did not exclude hidden files (start with a dot). (#343)
    • 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 include file.md once in the results. (#190)

    📖 Documentation

    A clarifying note has been added for the concurrency option, which provides more detailed information about the Thread Pool utilization.

    ⚙️ Infrastructure

    • 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.

    🥇 New Contributors

  • 3.2.12 - 2022-09-09

    Full Changelog: 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




  • 3.2.11 - 2022-01-14

    Full Changelog: 3.2.10...3.2.11

    🐛 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).

  • 3.2.10 - 2022-01-09

    Full Changelog: 3.2.9...3.2.10

    🐛 Bug fixes

    • Fixed a regression in 3.2.8 when the {a,b,c} pattern no longer considered a dynamic pattern (thanks @ amitdahan, #347).

    🥇 New Contributors

  • 3.2.9 - 2022-01-07

    Full Changelog: 3.2.8...3.2.9

    🐛 Bug fixes

    • Fixed a regression in 3.2.8 with invalid regular expression on older node.js versions (#345).
  • 3.2.8 - 2022-01-07

    Full Changelog: 3.2.7...3.2.8

    🐛 Bug fixes

    Fix directory matching with trailing slashes (#290)

    Thanks @ Trott for investigating the problem and the detailed description.

    Previously the src/*/ pattern did not work as expected (like src/*).

    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)

    Thanks @ Trott for fixing bugs and @ XhmikosR for adding the CodeQL action to CI pipeline.

    📖 Documentation

    ⚙️ Infrastructure

    🥇 New Contributors

  • 3.2.7 - 2021-07-08

    🐛 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.

from fast-glob GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Snyk has created this PR to upgrade fast-glob from 3.2.7 to 3.3.2.

See this package in npm:
fast-glob

See this project in Snyk:
https://app.snyk.io/org/abdulrahman305/project/0439af42-980d-4b8c-ba52-f729edcae082?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

korbit-ai bot commented Jul 4, 2024

👋 I'm here to help you review your pull request. When you're ready for me to perform a review, you can comment anywhere on this pull request with this command: /korbit-review.

As a reminder, here are some helpful tips on how we can collaborate together:

  • To have me re-scan your pull request, simply re-invoke the /korbit-review command in a new comment.
  • You can interact with me by tagging @korbit-ai in any conversation in your pull requests.
  • On any comment I make on your code, please leave a 👍 if it is helpful and a 👎 if it is unhelpful. This will help me learn and improve as we work together
  • Lastly, to learn more, check out our Docs.

Copy link

codeautopilot bot commented Jul 4, 2024

Your organization has reached the subscribed usage limit. You can upgrade your account by purchasing a subscription at Stripe payment link

Disclaimer: This comment was entirely generated using AI. Be aware that the information provided may be incorrect.

Current plan usage: 103.59%

Have feedback or need help?
Discord
Documentation
support@codeautopilot.com

Copy link

coderabbitai bot commented Jul 4, 2024

Important

Review skipped

Ignore keyword(s) in the title.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@abdulrahman305 abdulrahman305 merged commit 1489cc5 into main Jul 28, 2024
4 checks passed
@abdulrahman305 abdulrahman305 deleted the snyk-upgrade-469d745f942249c02a1aedb68a0b56a4 branch July 28, 2024 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants