Semantic versioning library with optional hotfix component (fork of github.com/blang/semver)
- Go 100%
ParseTolerant now keeps two-component versions short instead of padding
them to three components. "v1.2" and "v11.0-alpha.0" round-trip with
OmitPatch=true. Single-component input ("1") is still padded to two
components ("1.0") so Parse can accept it.
|
||
|---|---|---|
| examples | ||
| .travis.yml | ||
| go.mod | ||
| json.go | ||
| json_test.go | ||
| LICENSE | ||
| package.json | ||
| range.go | ||
| range_test.go | ||
| README.md | ||
| semver.go | ||
| semver_test.go | ||
| sort.go | ||
| sort_test.go | ||
| sql.go | ||
| sql_test.go | ||
This is a fork of github.com/blang/semver, extending the semantic versioning library to support an optional Hotfix component in version strings (e.g., 1.2.3.4). The project aims to be a drop-in replacement for the original github.com/blang/semver/v4 library as much as possible, maintaining compatibility with existing code while adding support for four-part version numbers.