semver: document hyphenated ranges and combinators

This commit is contained in:
Rico Sta. Cruz 2018-01-15 18:17:37 +08:00
parent c0a545a817
commit 5a4a61d077
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 17 additions and 1 deletions

View File

@ -1,7 +1,7 @@
---
title: Semver
layout: 2017/sheet
updated: 2017-08-26
updated: 2018-01-15
weight: -3
---
@ -47,6 +47,22 @@ Note that suffixed versions (`1.2.3-rc1`) are not matched.
| `x` | same | |
{: .-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
1.2.3-prerelease+build