type

LibDependVersions

@Js
const mixin LibDependVersions

Xeto library dependency version constraints. The format is:

<range>    :=  <ver> "-" <ver>
<ver>      :=  <seg> "." <seg> "." <seg>
<seg>      :=  <wildcard> | <number>
<wildcard> :=  "x"
<number>   :=  <digit>+
<digit>    :=  "0" - "9"

Examples:

1.2.3         // version 1.2.3 exact
1.2.x         // any version that starts with "1.2."
3.x.x         // any version that starts with "3."
1.0.0-2.0.0   // range from 1.0.0 to 2.0.0 inclusive
1.2.0-1.3.x   // range from 1.2.0 to 1.3.* inclusive

constructors

fromStr

Parse string representation

fromVersion

Create exact match for given version

methods

contains

Return if the given version satisifies this instance's constraints

wildcard

Constant for "x.x.x"

Slot Details

contains

abstract Bool contains(Version version)

Return if the given version satisifies this instance's constraints

fromStr

static new fromStr(Str s, Bool checked := true)

Parse string representation

fromVersion

static new fromVersion(Version v)

Create exact match for given version

wildcard

static LibDependVersions wildcard()

Constant for "x.x.x"