Skip to content

fix(version): exclude the next series pre-release from range operators - #29

Merged
HaoZeke merged 1 commit into
mainfrom
fix/requirement-series-ceiling
Nov 16, 2026
Merged

HaoZeke merged 1 commit into
mainfrom
fix/requirement-series-ceiling

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

Compatible-release, caret, and tilde requirements now exclude a pre-release of the next series.

  • cmp_version orders 1.3.0rc1 before the series ceiling 1.3, so 1.3.0rc1 matched ~=1.2.0 and ~1.2.3, and 2.0.0rc1 matched ^1.2.0. The ceiling check now treats a pre-release of the next series as outside the bound. 1.2.9rc1 still matches those operators, and 1.3.0rc1 still matches ^1.2.0.

a_prerelease_of_the_next_series_is_outside_the_bound covers those cases. The commit has a towncrier fragment.

@HaoZeke
HaoZeke merged commit 70aa538 into main Nov 16, 2026
21 checks passed
@HaoZeke
HaoZeke deleted the fix/requirement-series-ceiling branch November 16, 2026 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant