semver: document hyphenated ranges and combinators
This commit is contained in:
parent
c0a545a817
commit
5a4a61d077
18
semver.md
18
semver.md
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
title: Semver
|
title: Semver
|
||||||
layout: 2017/sheet
|
layout: 2017/sheet
|
||||||
updated: 2017-08-26
|
updated: 2018-01-15
|
||||||
weight: -3
|
weight: -3
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -47,6 +47,22 @@ Note that suffixed versions (`1.2.3-rc1`) are not matched.
|
||||||
| `x` | same | |
|
| `x` | same | |
|
||||||
{: .-shortcuts}
|
{: .-shortcuts}
|
||||||
|
|
||||||
|
### Hyphenated ranges
|
||||||
|
|
||||||
|
| Range | Description |
|
||||||
|
| --- | --- |
|
||||||
|
| `1.2.3 - 2.3.0` | is `>=1.2.3 <=2.3.4` |
|
||||||
|
| `1.2.3 - 2.3` | is `>=1.2.3 <2.4.0` |
|
||||||
|
| `1.2.3 - 2` | is `>=1.2.3 <3.0.0` |
|
||||||
|
{: .-shortcuts}
|
||||||
|
|
||||||
|
### Combining ranges
|
||||||
|
|
||||||
|
| Range | Description |
|
||||||
|
| --- | --- |
|
||||||
|
| `>=0.14 <16` | And (space-separated) |
|
||||||
|
| `0.14.x || 15.x.x` | Or (pipe-separated) |
|
||||||
|
|
||||||
### Pre-releases
|
### Pre-releases
|
||||||
|
|
||||||
1.2.3-prerelease+build
|
1.2.3-prerelease+build
|
||||||
|
|
Loading…
Reference in New Issue