You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the Version type being able to access the Major, Minor, and Patch parts by name.
Constraints support the || operator. For example, >= 1.2.3, < 2 || >= 4.0.0. The or operator separates groups of and operators.
Support ~ for patch level equals in addition to ~> on constraints.
Support ^ for major version equality on constraints.
Support a range syntax like 1.2.3 - 1.3.4 on constraints.
A validator that provides reasons why a constraint failed (note, this is a PR for semver that should land soon).
I think this is a good start. These features, except the last, are all in use today. The last line was a feature request for a project outside of mine.
Please let me know what you think about these.
The text was updated successfully, but these errors were encountered:
@mitchellh sorry it took so long to respond. I'm a little behind on my GitHub issues.
Segments() returns a slice of int. To get the major, minor, or patch values is/was a 2 step process. Get the segments and then get the value from the slice. The method names were about developer experience to easily get the value.
@mitchellh Here is the comparison to github.com/Masterminds/semver we spoke about.
Version
type being able to access the Major, Minor, and Patch parts by name.||
operator. For example,>= 1.2.3, < 2 || >= 4.0.0
. The or operator separates groups of and operators.~
for patch level equals in addition to~>
on constraints.^
for major version equality on constraints.1.2.3 - 1.3.4
on constraints.semver
that should land soon).I think this is a good start. These features, except the last, are all in use today. The last line was a feature request for a project outside of mine.
Please let me know what you think about these.
The text was updated successfully, but these errors were encountered: