Support for dot separation inside prerelease versions #2090
Labels
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Is your feature request related to a problem? Please describe.
Thanks for this repo. While trying to bump version with
prerelease
strategy, I have noticed that the current code does not support dot separation. In the spec, dot-separation is optional. However, in practice its a fairly common format used to separateprerelease id
from its version number.For example, code currently supports following prerelease version bumps
With support for
dot separation
, it will also support following formatThis is a completely backward compatible change.
Describe the solution you'd like
I have looked through the code and with simple change in the PRERELEASE_PATTERN regexp and adding separator inside nextPrerelease in case if the separator exists,
dot separation
can be supported.If the core team supports this enhancement then I can create a PR to support this change.
Describe alternatives you've considered
An alternative could be to create a separate semver v2 compliant versioning strategy. However, that will be a much bigger scope.
Additional context
While the spec supports many other formatting options. I am not too sure if any of those are part of the roadmap.
The text was updated successfully, but these errors were encountered: