Skip to content

Conversation

@mattfarina
Copy link
Member

NewVersion has long been a function that coerces versions into SemVer. StrictNewSemver handles being strict about versions.

While leading 0's was restored, this adds an option for package users to force NewVersion to be strict and not accept leading 0's. It does less to coerce a version into a valid one.

Note, this was caught by some package users including Helm and Flux.

NewVersion has long been a function that coerces versions into
SemVer. StrictNewSemver handles being strict about versions.

While leading 0's was restored, this adds an option for package
users to force NewVersion to be strict and not accept leading 0's.
It does less to coerce a version into a valid one.

Signed-off-by: Matt Farina <[email protected]>
@mattfarina mattfarina merged commit ebda872 into Masterminds:master Jun 24, 2025
13 checks passed
@mattfarina mattfarina deleted the restore-calver branch June 24, 2025 18:19
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