mixin

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 fromVersion

Create exact match for given version

fromStr

Parse string representation

methods contains

Return if the given version satisifies this instance's constraints

wildcard

Constant for "x.x.x"

contains abstract Bool contains(Version version)

Return if the given version satisifies this instance's constraints

fromStr static new fromStr(Str s, Bool checked)

Parse string representation

fromVersion static new fromVersion(Version v)

Create exact match for given version

wildcard static LibDependVersions wildcard()

Constant for "x.x.x"

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST