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

ncu ignores = on versions

Open hawkeye64 opened this issue 5 years ago • 2 comments

  • node version: 8.12
  • npm version: 6.9.0
  • npm-check-updates version: 3.1.0

I have in my package.json this: "strip-ansi": "=3.0.1", but ncu will updated it on ncu -u

While the = is implied, as opposed to not there at all, I don't think ncu should update. If this package updates to 5.0.1 then it breaks webpack.

hawkeye64 avatar Mar 20 '19 23:03 hawkeye64

A leading "=" or "v" character is stripped off and ignored. https://docs.npmjs.com/misc/semver#versions

ncu exactly matches npm's semantics in order to avoid any confusion. The basic purpose of ncu is to break your version ranges. Detecting, managing, and ameliorating breaking changes is your responsibility.

I would recommend running ncu -x strip-ansi to exclude the strip-ansi module until the compatibility with webpack is fixed.

raineorshine avatar Mar 21 '19 15:03 raineorshine

Thanks for the tip!

hawkeye64 avatar Mar 21 '19 22:03 hawkeye64