npm-check-updates icon indicating copy to clipboard operation
npm-check-updates copied to clipboard

upgrade mirror should not upgrade to next version

Open tjx666 opened this issue 2 years ago • 1 comments

  • [x] I have searched for similar issues
  • [x] I am using the latest version of npm-check-updates
  • [x] I am using node >= 14

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.

[email protected] is next version:

image

tjx666 avatar Jul 19 '22 03:07 tjx666

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.

raineorshine avatar Jul 19 '22 15:07 raineorshine