Summary
When running cider bump patch --pre=beta from a project currently at version 0.0.16-beta, the command fails with the error The next version must be higher than the current one.. I expected the version to be bumped to 0.0.17-beta.
Reproduction steps
- In a project using cider with current version set to
0.0.16-beta (e.g., package.json or cider config).
- Run:
cider bump patch --pre=beta
- Observe the error:
The next version must be higher than the current one.
What happened
cider bump patch --pre=beta returns an error and does not update the version.
cider bump minor --pre=beta works as expected and updates 0.0.16-beta → 0.1.0-beta.
Expected behavior
cider bump patch --pre=beta should update 0.0.16-beta → 0.0.17-beta.
Notes / Additional context
- Current version used for reproduction:
0.0.16-beta.
- Command that succeeds:
cider bump minor --pre=beta → 0.1.0-beta.
- This looks like a problem with handling prerelease versions when calculating the next patch version — the next prepatch version should be greater than the current prerelease.
Suggested info for maintainers
- Possible places to check: logic that compares SemVer versions and handles prerelease identifiers when computing the next version for patch bumps.
- If you need more information I can provide the exact project config or run additional debug output.
Summary
When running
cider bump patch --pre=betafrom a project currently at version0.0.16-beta, the command fails with the errorThe next version must be higher than the current one.. I expected the version to be bumped to0.0.17-beta.Reproduction steps
0.0.16-beta(e.g., package.json or cider config).cider bump patch --pre=betaThe next version must be higher than the current one.What happened
cider bump patch --pre=betareturns an error and does not update the version.cider bump minor --pre=betaworks as expected and updates0.0.16-beta→0.1.0-beta.Expected behavior
cider bump patch --pre=betashould update0.0.16-beta→0.0.17-beta.Notes / Additional context
0.0.16-beta.cider bump minor --pre=beta→0.1.0-beta.Suggested info for maintainers