dylang / npm-check

Check for outdated, incorrect, and unused dependencies.
https://www.npmjs.com/package/npm-check
MIT License
6.58k stars 239 forks source link

Check for updates within current major #284

Open jsumners opened 6 years ago

jsumners commented 6 years ago

Let's assume a codebase is using Hapi v16. When running npm-check on this codebase it will suggest Hapi v17 as an update and correctly warn that it is a major update. However, there are still LTS releases in the v16 release that can be applied. Currently, npm-check does not provide those as an option. It would be fantastic if it did.

patrickdaze commented 4 years ago

Related #330

patrickdaze commented 4 years ago

This is possible with npm-check-updates:

ncu -i -u --target=minor
npm install
jsumners commented 4 years ago

@patrickdaze npm-check-updates works fundamentally different from npm-check. I gave it a go a while back. I prefer the way npm-check works, I just would like it to fully consider semver qualifiers.

patrickdaze commented 4 years ago

I also prefer npm-check and I'd be great if it would use qualifiers defined in package.json. In the meantime I was able to use ncu as a workaround to target the current major version.

ivanduka commented 2 years ago

Excellent idea. I would also suggest that in the interactive mode it should allow two options: update to the latest major (if any) and to the latest minor version (if any).