Add a flag to include patch/minor dependency versions
ozsay opened this issue · comments
Sometimes it is not possible to upgrade to latest (semver
major may contain breaking changes).
So it is useful to see if any new patch/minor versions exist.
Thanks!
The plugin already has a --severity
option which you can use to filter by severity. So,
yarn outdated --severity minor
would only show minor updates. Though the plugin only supports specifying a single severity right now (e.g. --severity=minor,patch
doesn't work) would this fulfill your use case?
Interesting, that's not a use case I've thought of before. What would you propose for CLI options to get this type of output?
maybe "--full" ? "display full information about versions including minor/patch"?
Hmm, my concern with that is:
- To display patch, minor, and latest would triple the number of network requests when checking for outdated dependencies.
- Adding the extra logic to fetch minor and patch versions which may further complicate the plugin for a more unusual use case.
hey, I created a PR with some changes to the fetcher. it is now gets the versions directly from npm.
it fixes the multiple requests issue, but may not cover all cases?
everything else in the PR is a draft