Npm-check-updates: ncu cannot detect update for a package with uncommon versioning

Created on 26 Nov 2019  路  5Comments  路  Source: raineorshine/npm-check-updates

Currently ncu cannot detect update for the package:
https://www.npmjs.com/package/reanimated-bottom-sheet

Version string for this package looks like 1.0.0-alpha.X where X is bumped every release.

  • node version: 13.1.0
  • npm version: 6.12.1
  • npm-check-updates version: 3.2.2

Most helpful comment

Thanks for reporting. This will be fixed with a breaking change in v4.

ncu v3 excludes prerelease versions from the remote by default, as publishing prerelease versions to latest is unconventional and in my opinion not recommended. Prereleases versions can be included by specifying --pre (and is implied in options --greatest and --newest).

However, when you are already specifying a prerelease version in your package.json dependencies, then clearly you want ncu to find newer prerelease versions. This will become default in v4, albeit with the conservative approach of sticking to the latest tag.

All 5 comments

Thanks for reporting. This will be fixed with a breaking change in v4.

ncu v3 excludes prerelease versions from the remote by default, as publishing prerelease versions to latest is unconventional and in my opinion not recommended. Prereleases versions can be included by specifying --pre (and is implied in options --greatest and --newest).

However, when you are already specifying a prerelease version in your package.json dependencies, then clearly you want ncu to find newer prerelease versions. This will become default in v4, albeit with the conservative approach of sticking to the latest tag.

Published in v4.0.0

@raineorshine Unfortunately 4.0.0 don't fixed reported issue for me.

Currently if reanimated-bottom-sheet is sole outdated dependency ncu works as intended. But when there are more outdated dependencies (which are not in pre scope) reanimated-bottom-sheet is not being displayed on the list.

Screenshot 2019-12-10 at 18 51 17

Using ncu --greatest or ncu --pre 1 yields correct results (both outdated dependencies are listed).

Good catch. That one made it past the unit test.

Try v4.0.1.

I can confirm that 4.0.1 fixed this issue, thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mriehema picture mriehema  路  7Comments

benface picture benface  路  7Comments

nwoltman picture nwoltman  路  4Comments

fatso83 picture fatso83  路  3Comments

vayurobins picture vayurobins  路  5Comments