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

Replace glob-all with fast-glob #7348

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

pjonsson
Copy link
Contributor

@pjonsson pjonsson commented Dec 1, 2024

What this PR does

I got this warning when running
some command:

npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.

and inflight is a dependency of glob,
which glob-all depends on. So replace
glob-all with fast-glob that both seems
fast and is already used by some other
dependencies.

Test me

The webpack config should be tested by CI, not sure about the other file.

Checklist

  • There are unit tests to verify my changes are correct or unit tests aren't applicable (if so, write quick reason why unit tests don't exist)
  • I've updated relevant documentation in doc/.
  • I've updated CHANGES.md with what I changed.
  • I've provided instructions in the PR description on how to test this PR.

Traverse the file system once,
and keep that result in a variable.
Replace the in-file var declarations with
let/const. Leave the imports as-is to avoid
conflicts with the CJS to ESM upgrade.
I got this warning when running
some command:

npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.

and inflight is a dependency of glob,
which glob-all depends on. So replace
glob-all with fast-glob that both seems
fast and is already used by some other
dependencies.
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.

1 participant