phly / keep-a-changelog

Tools for manipulating CHANGELOG.md files in Keep A Changelog format, including tagging and releasing.
https://phly.github.io/keep-a-changelog/
BSD 2-Clause "Simplified" License
182 stars 23 forks source link

Feature: semver 2.0 #72

Closed boesing closed 4 years ago

boesing commented 4 years ago

Hey there,

I wanted to use keep-a-changelog for one of my libraries to create a pre-release. As of https://semver.org/#spec-item-9, tagging a release with 2.0.0-rc.1 is valid but keep-a-changelog did not accept it.

With v1.0, it probably was not allowed to tag a release with a hyphen and thus it was not supported by this library.

I also synced the pre-release regex from the Github provider with the VersionValidationListener.