type:version-range
type:version-range@0.0.0
partialVersion
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
major | integer | Yes | The major segment, the first number of the version as written and the one segment a version always has | |
minor | integer | No | The minor segment, or absent where the version was written without one and any minor is meant | |
patch | integer | No | The patch segment, or absent where the version was written without one and any patch is meant |
Written as, for example:
"3.13""3"
versionBound
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
operator | enum one of >=, >, <=, < | Yes | The comparison a version must satisfy against the bound's version, read over the segments that version wrote: >=3.13 holds from the first 3.13.x up, <=3.13 up to the last, >3.13 after the last and <3.13 before the first | |
version | partialVersion | Yes | The version the comparison is made against, as far as it was written: a segment left out stands for every value of it |
versionBounds
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
first | versionBound | Yes | The bound written first, or the only one: >=3.11 in >=3.11,<3.14 | |
second | versionBound | No | The bound written after the comma, which must hold as well as the first: <3.14 in >=3.11,<3.14. Absent where the range states one bound. |
versionSequence
One of the types list[partialVersion].
versionRange
One of the types partialVersion, versionSequence, versionBounds.
Written as, for example:
"3.13"["3.11", "3.13"]">=3.11,<3.14"