-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Make package deprecation warnings more useful #6707
Comments
We used to show only the deprecation messages of direct dependencies but then one time a user has spent days investigating an issue because pnpm wasn't printing the message (related change #4231). Both npm and Yarn print all the deprecation messages.
Something like this could work. All the deprecation messages are also written to the lockfile. So, it would be possible to just search for Also, pnpm is able to mute some deprecation messages using the setting: https://pnpm.io/package_json#pnpmalloweddeprecatedversions |
Yeah, I can recommend muting the indirect dependency warnings with I have opened a similar issue to this in #5951 which would make |
@zkochan what about this part of the issue? I'm fighting with deprecated subdeps and this kind of message would be super helpful :) |
You can run
I don't think this is necessary. The real fix is to update the dependencies in most cases. |
Describe the user story
When running
pnpm install
it's common to get deprecation warnings that aren't very useful or actionable because they come from unknown depepdencies of dependencies that the user has little/no control over. For example:None of those are direct dependencies of my library. I don't know which package is including them or why and there's not much action I can take with the information.
Describe the solution you'd like
Two possible solutions:
Describe the drawbacks of your solution
Describe alternatives you've considered
Perhaps a single warning could be shown such as
warn: 17 indirect dependencies are deprecated. run with --show-all-deprecated to list them
?The text was updated successfully, but these errors were encountered: