Skip to content
New issue

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

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

Already on GitHub? # to your account

Incorrectly updates "> 0.0.0" to "> 0.0.5" when 0.0.5 is latest #957

Closed
3 tasks done
henrik opened this issue Oct 20, 2021 · 2 comments
Closed
3 tasks done

Incorrectly updates "> 0.0.0" to "> 0.0.5" when 0.0.5 is latest #957

henrik opened this issue Oct 20, 2021 · 2 comments
Labels

Comments

@henrik
Copy link

henrik commented Oct 20, 2021

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

Steps to Reproduce

My package.json includes in its devDependencies:

"@barsoom/prettier-config": "> 0.0.0",

Current Behavior

Running npx npm-check-updates --upgrade --peer changes this constraint to > 0.0.5.

But since the latest version of the package is 0.0.5, there is no greater version, so npm install fails.

Same issue if the old version is > 0.0.1.

Expected Behavior

Either leaving the constraint as-is, or changing it to >= 0.0.5, or 0.0.5, or ^0.0.5, or similar.

Workaround

Changing > 0.0.0 to >= 0.0.0 fixes it. It becomes >= 0.0.5.

@raineorshine
Copy link
Owner

Definitely a bug! I'll get a fix into the next major version.

@raineorshine
Copy link
Owner

Fixed and published in v12.0.0.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants