Types
Semver
A semantic version, as specified in v2.0.0 of the spec: https://semver.org
VersionReq
A version requirement constraining semvers.
Comparator
A predicate to match versions against.
WildcardComparator
A comparator with wildcard segments.
RelationComparator
A comparator that compares a partial version using some operator.
RelationComparatorVersion
The version that a relation comparator compares semvers against.
ComparatorOperator : [ Exact, GreaterThan, GreaterThanOrEqualTo, LessThan, LessThanOrEqualTo, PatchUpdates, Compatible ]
The operator to determine how to compare a version to a comparator.
Exact
: must match all segments exactlyGreaterThan
: must be greater than the constraint versionGreaterThanOrEqualTo
: must be greater than or equal to the constraint versionLessThan
: must be less than the constraint versionLessThanOrEqualTo
: must be less than or equal to the constraint versionPatchUpdates
: must be the same major and minor version, but allows patch updatesCompatible
: must be API compatible with the constraint version
Ordering : [ LT, GT, EQ ]
How two items are ordered.