CUE based implementation of SemVer, version ranges and comparison.
Implementation based upon semantic versioner for npm.
Use #SemVer
to evaluate a version string into semantic version components. Unify it with #SemVerSatisfies
and provide a range string. The unification will error if the version does not fall within the range.
foo: {
version: "1.0.0"
}
foo: this={
semVer: #SemVer&{#version: this.version} & #SemVerSatisfies&{#range: ">=1.0.0"}
}
node-semver
loose
option not supported.
- Use CUE modules once complete see Proposal: package management #851.