Releases: SwiftPackageIndex/SemanticVersion
Releases · SwiftPackageIndex/SemanticVersion
0.4.0
- Adds support for a
semverString
codable strategy that allows persisting the version more concisely. The default strategy remainsdefaultCodable
, which encodes the struct with all fields exactly like the defaultCodable
.
let stringEncoder = JSONEncoder()
stringEncoder.semanticVersionEncodingStrategy = .semverString
try stringEncoder.encode(v123) // 7 bytes -> "1.2.3", including quotes
Thank you to @chriseplettsonos for the contribution!
0.3.8
- Fixes precedence for two pre-release versions (Section 11.4 in the SemVer spec)
- Ignore build metadata when determining precedence (Section 10 in the SemVer spec)
Thank you to @chriseplettsonos for the contribution!
0.3.7
- Added
Sendable
annotation - Added CodeQL and dependabot setup
0.3.6
- no functional changes, purely related to SPI compatibility testing
0.3.5
- remove superfluous docc plugin dependency
0.3.4
- add documentation overview page
0.3.3
- update documentation
0.3.2
- Add documentation setup
0.3.1
- show watchOS support in SPI
0.3.0
- Add support for Swift versions 4.2, 5.0, and 5.1