Add Version.to_string/1
Colorize Version.Requirement source in the Inspect protocol
Module
12 changes across 10 versions
Changes by version
Add Version.to_string/1
Colorize Version.Requirement source in the Inspect protocol
Ensure proper precedence of and/or in version requirements
Using ! or != in version requirements is deprecated, use ~> or >= instead
Add defaults and enforce keys in Version struct
Add Version.parse!/1
Allow dots in build info for versions in Version.parse/1
Fix to_string for versions with numeric pre releases
The Version.Schema record has now become the Version struct
The Version module now only works with SemVer. The functions Version.parse/1 and Version.parse_requirement/1 now return {:ok,res} | :error for the cases you want to handle non SemVer cases manually. All other functions will trigger errors on non semantics versions
Add Version.compare/2
Fix Version.match?/2 with ~> and versions with alphanumeric build info (like -dev)