There is a yarn why command in JS package manager Yarn that shows why project depends on a given package.
This is very helpful for exploring transitive dependencies.
In Dart there is dart pub outdated/flutter pub outdated which shows outdated packages, but there are no details for why any given package cannot be updated to latest.
It would be great to add a command that would explain dependency constraints, similar to how there is an error if you have unfeasible constraints during dart pub get.
Such a command would show all constraints (including transitive) applied to a given dependency.
There is a
yarn whycommand in JS package manager Yarn that shows why project depends on a given package.This is very helpful for exploring transitive dependencies.
In Dart there is
dart pub outdated/flutter pub outdatedwhich shows outdated packages, but there are no details for why any given package cannot be updated to latest.It would be great to add a command that would explain dependency constraints, similar to how there is an error if you have unfeasible constraints during
dart pub get.Such a command would show all constraints (including transitive) applied to a given dependency.