Skip to content

Commit

Permalink
semver: document partial left/right ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Jan 15, 2018
1 parent 5a4a61d commit 77bf659
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion semver.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,23 @@ Note that suffixed versions (`1.2.3-rc1`) are not matched.
| Range | Description |
| --- | --- |
| `1.2.3 - 2.3.0` | is `>=1.2.3 <=2.3.4` |

#### Partial right

| Range | Description |
| --- | --- |
| `1.2.3 - 2.3` | is `>=1.2.3 <2.4.0` |
| `1.2.3 - 2` | is `>=1.2.3 <3.0.0` |
{: .-shortcuts}

When the right is partial (eg, `2.3`), missing pieces are assumed to be `x` (eg, `2.3.x`).

#### Partial left

| Range | Description |
| --- | --- |
| `1.2 - 2.3.0` | is `1.2.0 - 2.3.0` |

When the left is partial (eg, `1.2`), missing pieces are assumed to be `0` (eg, `1.2.0`).

### Combining ranges

Expand Down

0 comments on commit 77bf659

Please sign in to comment.