semver v2.1.0
·
397 commits
to master
since this release
A minor release to improve parsing, construction, and modification.
- Greatly improved doc comments
- New
Parse()andTryParse()overloads takingSemVersionStyles - New
With(),WithParsedFrom(),WithX(),WithoutX()methods to replaceChange()method (feature #65)- New methods fully validate parameters to prevent invalid versions
- New method names clearly indicate that the method does not mutate the existing
SemVersion - Old
Change()method marked obsolete
- Added
PrereleaseIdentifiersproperty providing access to individual identifiers (feature #37) - Added
MetadataIdentifiersproperty providing access to individual identifiers (feature #37) - New
Metadataproperty for consistent terminology use matching the semver spec- Marked
Buildproperty obsolete
- Marked
- Added
IsPrereleaseandIsReleaseproperties (feature #44) - New constructor overloads and
SemVersion.ParsedFrom()method (bugs #40, #41)- New overloads accept prerelease portion and metadata as individual identifiers
- New overloads validate all parameters to prevent invalid semantic versions
- Marked old constructor overload obsolete
SemVersionnow implementsIEquatable<SemVersion>(feature #34)- New
SemVersion.FromVersion()andToVersion()methods for conversion from and toSystem.Version(bug #32)- Corrects the mapping between version parts
- Marked old constructor obsolete
- Added .NET Standard 2.0 assembly version to avoid warnings about .NET Standard 1.0 (feature #30)
- Assembly version fixed at 2.1.0.0 until v3.0 (bug #61)
- Marked implicit conversion from
stringobsolete (feature #46) - Improved hash code calculation