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

Downgrade to previous version #1266

Closed
Dennis-Do opened this issue Feb 6, 2023 · 3 comments
Closed

Downgrade to previous version #1266

Dennis-Do opened this issue Feb 6, 2023 · 3 comments
Labels

Comments

@Dennis-Do
Copy link

How to downgrade to a version smaller than X using the filter to select packages start with "any-string" ?

@raineorshine
Copy link
Owner

raineorshine commented Feb 6, 2023

npm-check-updates does not support downgrading unless switching tags. This is by design to provide stronger guarantees around preserving version numbers and more flexibility around using betas and prerelease versions.

The closest thing we have is --target minor and --target patch for limiting upgrades: https://github.com/raineorshine/npm-check-updates#target

e.g. ncu --target minor any-string*

@Dennis-Do
Copy link
Author

Unfortunately nowadays it is sometimes the case that greatest and latest are like beta or pre-release. It would therefore be useful to be able to switch back to the last major release before Greatest.

Alternativly skip major releases that are younger than 2 days for example. Is it possible to filter by release date?

@raineorshine
Copy link
Owner

Alternativly skip major releases that are younger than 2 days for example. Is it possible to filter by release date?

We have an open ticket #833, but nobody is working on it currently. Would be a great feature.

@raineorshine raineorshine closed this as not planned Won't fix, can't repro, duplicate, stale Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants