Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--pre 0 updates to beta package #1402

Open
AgileInteractive opened this issue Apr 25, 2024 · 2 comments
Open

--pre 0 updates to beta package #1402

AgileInteractive opened this issue Apr 25, 2024 · 2 comments
Labels

Comments

@AgileInteractive
Copy link

ncu --upgrade -t minor --pre 0

Updates the package supabase to version 1.163.6 which is tagged "beta"

Shouldnt it update to 1.163.2 which is tagged "latest"?

@raineorshine
Copy link
Owner

Hi, thanks for reporting. You're right, this is somewhat confusing behavior.

--pre includes/exludes semver versions that end in a prerelease version part, e.g. -alpha.0, -beta.5, -rc.2. 1.163.6 is not a prerelease version, but a patch. I'm not sure why supabase is publishing patches to the beta tag. This seems a bit unconventional to me. To be valid semver, 1.163.6 must be a non-breaking change from 1.163.2.

There is furthermore a functional reason why npm-check-updates cannot exclude normal versions published to the beta tag when using -t minor. If supabase published 2.0.0 to the beta tag, then there would be no way to tell that 1.163.6 was a beta, because the npm registry does not keep a tag history. This would result in ncu -t minor --pre 0 recommending different versions depending on when the command was executed and what was published to beta, even if none of the 1.x versions have changed.

In light of this, I would recommend using -t minor or --pre 0, but not both for supabase.

@AgileInteractive
Copy link
Author

Thank you for the swift and thorough reply, I will follow the advice

@raineorshine raineorshine changed the title --pre 0 upates to beta package --pre 0 updates to beta package Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants