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

[Bug]: inflight deprecated, glob deprecated #15173

Open
ChronoBoot opened this issue Jul 9, 2024 · 14 comments
Open

[Bug]: inflight deprecated, glob deprecated #15173

ChronoBoot opened this issue Jul 9, 2024 · 14 comments

Comments

@ChronoBoot
Copy link

Version

29.7.0

Steps to reproduce

npm i jest --save

Expected behavior

No warning

Actual behavior

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.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported

Additional context

The inflight archive has not been updated since 8 years and has an alternative which is up to date https://www.npmjs.com/package/lru-cache
The used glob version is deprecated and 2 years old

Is there specific reasons why these have not been replaced/updated ?

Environment

System:
    OS: macOS 14.5
    CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
  Binaries:
    Node: 22.3.0 - ~/.nvm/versions/node/v22.3.0/bin/node
    Yarn: 1.22.22 - ~/.yarn/bin/yarn
    npm: 10.8.1 - ~/.nvm/versions/node/v22.3.0/bin/npm
    pnpm: 6.11.0 - ~/.nvm/versions/node/v14.19.0/bin/pnpm
  npmPackages:
    jest: ^29.7.0 => 29.7.0
@qbantek
Copy link

qbantek commented Jul 19, 2024

#14509 should remove this warning.

@Jme797
Copy link

Jme797 commented Aug 16, 2024

There is also a memory leak issue in inflight that is not patched
image

@belinde
Copy link

belinde commented Sep 4, 2024

Seeing the distributed package jest-config 29.7.0, it seems that jest-config is still dependent on glob ^7.1.3

This is the package.json taken from an installation in a project of mine:
package.json

@wingedthing
Copy link

jest/reporters v29.7.0 is still depending on glob ^7.1.3 and is causing the dependency along with inflight to be pulled into projects requiring jest v29.7.0:

"glob": "^7.1.3",

@ankitbavne
Copy link

I am getting the following warning in my NestJS backend project. Even after updating all the packages, I am still encountering this warning. Is there anyone who can help me get rid of it?

PS F:\Test_project\rescueworld-microservice-retteracademy> npm i
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.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported

Screenshot 2024-09-03 162641

@wingedthing
Copy link

I am getting the following warning in my NestJS backend project. Even after updating all the packages, I am still encountering this warning. Is there anyone who can help me get rid of it?

@ankitbavne If you're on npm version 8 or higher, you can use overrides in your package.json:

  "overrides": {
    "glob": "10.4.2" 
  }

This will force jest to use that version in your build.

@ankitbavne
Copy link

@wingedthing
Is it safe to use overrides ?

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Oct 11, 2024
@msaeedsaeedi
Copy link

Waiting for the fix

@LvckyAPI
Copy link

waiting for the fix

@maka-io
Copy link

maka-io commented Oct 31, 2024

Waiting for fix

@crisu
Copy link

crisu commented Nov 1, 2024

Waiting for fix. thank you

1 similar comment
@danilobraga-loft
Copy link

Waiting for fix. thank you

@ahakkar
Copy link

ahakkar commented Dec 9, 2024

Bumping to keep this unfixed issue alive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests