Swiftpack.co - elegantchaos/SemanticVersion as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by elegantchaos.
elegantchaos/SemanticVersion v1.1.1
Swift abstraction for a semantic version (of the form major.minor.patch)
⭐️ 1
🕓 4 days ago
.package(url: "https://github.com/elegantchaos/SemanticVersion.git", from: "v1.1.1")

Test results Latest release swift 5.0 shield swift 5.1 shield swift 5.2 shield swift 5.3 shield swift 5.4 shield swift 5.5 shield swift 5.6 shield Platforms: macOS, iOS, tvOS, Linux

Semantic Version

Swift abstraction of semantic versions, in the form: major.minor or major.minor.patch.

Provides conversion between string and struct forms, and comparison operators.

GitHub

link
Stars: 1
Last commit: 4 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

1.1
2 years ago

Changed API so that initialisers never fail. Added concept of an invalid version (signalled by any of the components being negative). Added initialisers from string and array literals.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics