Releases: SwiftPackageIndex/SemanticVersion
Releases · SwiftPackageIndex/SemanticVersion
0.5.1
0.5.0
- Foundation is now optional
- requires macOS 13+, iOS 16+, watchOS 9+, tvOS 16+
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