- Ignore case when parsing PHP versions.
- Fix several bugs in SemVer parsing.
- Add support for parsing PHP versions.
- Fix bug in remove trailing zeros change when the version is all zeros.
- Remove trailing zeros from parsed package versions because version comparison
func
version.Compare
does not need trailing zeros to compare versions correctly.
- Added support for parsing Ruby package versions, based on the rubygems tests.
-
Added
.String()
and.Clone()
methods to theVersion
struct. -
Used enumer to generate a
.String()
method for theParsedAs
type. -
Changed the
version.Compare
func so that versions of different length compare as equal when both end in one or more segments of zeroes. In other words,1.0
and1.0.0
are now treated as equal.
- Add the
pkg/name
package for name normalization.
- Initial release