Breaking
Prerelease versions are now "upgraded" to versions with a different preid.
For example, if you have a dependency at 1.3.3-next.1
and the version fetched by ncu is 1.2.3-dev.2
, ncu will suggest an "upgrade" to 1.2.3-dev.2
. This is because prerelease versions with different preids are incomparable. Since they are incomparable, ncu now assumes the fetched version is desired.
Since this change affects only prereleases, there is no impact on default ncu
usage that fetches the latest
version. With --pre
or --target newest
or --target greatest
, this change could affect which version is suggested if versions with different preids are published. The change was made to support the new --target @[tag]
feature.
If you have a use case where this change is not what is desired, please report an issue. The intention is for zero disruption to current usage.
Features
- You can now upgrade to a specific tag, e.g.
--target @next
. Thanks to IMalyugin.
Deprecated
- Default stdin handling is deprecated. Please explicitly add the
--stdin
option when reading package data from stdin.