raineorshine / npm-check-updates

Find newer versions of package dependencies than what your package.json allows
Other
9.4k stars 327 forks source link

upgrade mirror should not upgrade to next version #1166

Open tjx666 opened 2 years ago

tjx666 commented 2 years ago

Steps to Reproduce

❯ ncu -u -t minor
Upgrading /Users/yutengjing/code/hammer/package.json
[====================] 46/46 100%

 electron-builder     23.1.0  →  23.3.2
 jest                 28.1.2  →  28.1.3
 ts-jest              28.0.5  →  28.0.7
 ts-node              10.8.2  →  10.9.1
 vite-plugin-checker   0.4.8  →   0.4.9
 vue-tsc              0.38.5  →  0.38.8

Run pnpm install to install new versions.

electron-builder@23.3.2 is next version:

image
raineorshine commented 2 years ago

Hi, thanks for reporting.

--target minor upgrades to the highest minor version without bumping the major version regardless of tags. i.e. it will not be limited to latest. (However it will not upgrade to versions specifically marked as prereleases, such as 24.0.0-alpha.1)

Unfortunately, there currently is no option to constrain --target minor to the latest tag. I would be open to a PR to add latest-minor and latest-patch options.