Skip to content
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

Only upgrade packages withing major version ranges #12

Open
bj00rn opened this issue Oct 5, 2018 · 2 comments
Open

Only upgrade packages withing major version ranges #12

bj00rn opened this issue Oct 5, 2018 · 2 comments

Comments

@bj00rn
Copy link

bj00rn commented Oct 5, 2018

It would be nice to have default behaviour of pip-upgrader to only upgrade within major version ranges to avoid introducing backwards incompatible changes.

I would suggest implementing a --latest flag to overriding this behaviour mimicing yarn

The upgrade --latest command upgrades packages the same as the upgrade command but
ignores the version range specified in package.json. Instead, the version specified by the 
latest tag will be used (potentially upgrading the packages across major versions).

https://yarnpkg.com/lang/en/docs/cli/upgrade/#toc-yarn-upgrade-package-latest-l-caret-tilde-exact-pattern

Thoughts?

@simion
Copy link
Owner

simion commented Apr 18, 2019

Hey, this is actually a quite good idea.

@simion
Copy link
Owner

simion commented Apr 18, 2019

Will implement as soon as i have some spare time (it's very limited these days).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants