r/Devvit • u/rabidwombat • 5d ago
Help Devvit deprecated modules
Hi. I've just set up a devvit npm environment for the first time, and got a bunch of security/deprecation warnings. Is this normal? Is there path to update or remove these without breaking dependencies?
These were the warnings:
npm warn deprecated inflight@1.0.6: 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 glob@7.2.3: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me
npm warn deprecated whatwg-encoding@3.1.1: Use @exodus/bytes instead for a more spec-conformant and faster implementation
npm warn deprecated http-call@5.3.0: Renamed to @heroku/http-call — please install @heroku/http-call instead.
1
Upvotes
2
u/Beach-Brews Duck Helper 5d ago
Annoyingly, yes this is normal...
1
u/Apihpih96 1d ago
Adding to the "this is normal" answer with where they come from. I did a clean npm i devvit@0.15.4 and got the same four warnings. All of them come from packages the Devvit CLI itself pins:
• glob@7 + inflight: twirp-ts → dot-object • http-call: @oclif/plugin-warn-if-update-available • whatwg-encoding: jsdom
You can trace any of them with npm explain glob (or whichever package).
"Deprecated" isn't the same as a vulnerability. The CLI only runs on your machine when you build or upload, so none of this ends up in your app's client or server bundle. Those only contain what your own code imports.
I'd leave them alone. Don't run npm audit fix --force or add overrides, since that can break the CLI. They'll go away when the Devvit team bumps those deps, and npx devvit update app keeps you on the latest version.