https://promptfoo.dev/ logo
usage of deprecated packages - glob, inflight, rim...
# ❓|questions
r
Has there been any effort to move off these deprecated packages? npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it., npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported, npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
b
Hi i just took a look at the package-lock and this is what i found. ## Dependency Chain -
inflight
is a dependency of
glob
-
glob
is a dependency of
rimraf
-
glob
is also a dependency of numerous other packages, making removal difficult ## glob Dependencies Breakdown - **jest**: Current version depends on glob. Possible solution: Try jest 3 alpha version. - **test-exclude**: Latest version still depends on glob. Issue: Pulled in by docusaurus in site repo. - **fork-ts-checker-webpack-plugin**: Using version 6 (latest is 9). Issue: Pulled in by docusaurus in site repo. - **module-lookup-amd**: Latest version (9.0.4) still depends on old version. Requires upstream change. - **shelljs**: Latest version still depends on glob. Requires upstream change. ## Potential Strategies 1. Use npm overrides to modify dependencies (may break functionality):
Copy code
json
   // package.json
  "overrides": {
    "glob": "10.4.2" 
  }
2.Contribute PRs to dependent packages: shelljs+docusaurus seem to be the easiest lift to get most of the dependency removed 3. Explore the effect of upgrading jest to version 3 in this repo to remove some of the dependencies. let me know if you are interested in trying any of these things and if you want some help.
2 Views