Works with
•JSR Score76%•It is unknown whether this package works with Browsers, Deno, Node.js, Cloudflare Workers, Bun




Published2 years ago (0.215.0)
- @std/semver
types
Interfaces
I
The shape of a valid semantic version comparator
Type Aliases
T
Operator = OPERATORS[number]
SemVer comparison operators.
T
Range = Comparator[][]
A type representing a semantic version range. The ranges consist of a nested array, which represents a set of OR comparisons while the inner array represents AND comparisons.
T
ReleaseType =
"pre"
| "major"
| "premajor"
| "minor"
| "preminor"
| "patch"
| "prepatch"
| "prerelease"
| "major"
| "premajor"
| "minor"
| "preminor"
| "patch"
| "prepatch"
| "prerelease"
The possible release types are used as an operator for the increment function and as a result of the difference function.