Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Minor documentation changes to sync up with 7c1299d.
  • Loading branch information
othiym23 committed Dec 19, 2014
1 parent 7c1299d commit 7dfdcc6
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 38 deletions.
30 changes: 27 additions & 3 deletions doc/misc/semver.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ As a command-line utility:

$ semver -h

Usage: semver <version> [<version> [...]] [-r <range> | -i <inc> | -d <dec>]
Usage: semver <version> [<version> [...]] [-r <range> | -i <inc> | --preid <identifier> | -l | -rv]
Test if version(s) satisfy the supplied range(s), and sort them.

Multiple versions or ranges may be supplied, unless increment
or decrement options are specified. In that case, only a single
version may be used, and it is incremented by the specified level
option is specified. In that case, only a single version may
be used, and it is incremented by the specified level

Program exits successfully if any valid version satisfies
all supplied ranges, and prints all satisfying versions.
Expand Down Expand Up @@ -101,6 +101,30 @@ the user is indicating that they are aware of the risk. However, it
is still not appropriate to assume that they have opted into taking a
similar risk on the *next* set of prerelease versions.

#### Prerelease Identifiers

The method `.inc` takes an additional `identifier` string argument that
will append the value of the string as a prerelease identifier:

````javascript
> semver.inc('1.2.3', 'pre', 'beta')
'1.2.4-beta.0'
```

command-line example:

```shell
$ semver 1.2.3 -i prerelease --preid beta
1.2.4-beta.0
```

Which then can be used to increment further:

```shell
$ semver 1.2.4-beta.0 -i prerelease
1.2.4-beta.1
```

### Advanced Range Syntax

Advanced range syntax desugars to primitive comparators in
Expand Down
32 changes: 27 additions & 5 deletions node_modules/semver/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 7 additions & 28 deletions node_modules/semver/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified node_modules/semver/semver.browser.js.gz
Binary file not shown.
Loading

0 comments on commit 7dfdcc6

Please sign in to comment.