terramate
terramate copied to clipboard
fix!: prereleases should not match constraints for previous versions.
What this PR does / why we need it:
Improve the match of prereleases so ~> 1
does not match 2-alpha
.
Even though the order 1 < 2-alpha < 2
is satisfied, the 2-alpha
could potentially introduce breaking changes and then put projects using pessimistic operator at risk.
Which issue(s) this PR fixes:
none
Special notes for your reviewer:
Does this PR introduce a user-facing change?
yes, it's a breaking change.