Upgrade transitive dependencies like npm audit fix?
#158284
Unanswered
everett1992
asked this question in
npm
Replies: 1 comment
-
|
I hacked together a script that intercepts the advisory API to return faked vulnerabilities for a list of user provided packages, so |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like a way to upgrade a specific package version while changing the fewest packages in node_modules. I think this is what
npm audit --fixalready does, but it only updates packages with vulnerabilities reported by the registry.Could npm expose the audit fix engine? Something like
npm update --ban [email protected] <1.2.3examplecan be satisfied by a version >=1.2.3, then onlyexamplewould be upgrade.1.0.0 < 1.2.3, but that package can be upgraded while preserving all requirements on it, thenexampleand that package would be upgraded.I agree that it's best to update all dependencies, but I help maintain legacy packages, or contribute fixes to other peoples packages that may not agree. It can be useful to make targeted upgrades that introduce fewer breaking changes.
Beta Was this translation helpful? Give feedback.
All reactions