@@ -29,8 +29,6 @@ As a command-line utility:
29
29
```
30
30
$ semver -h
31
31
32
- SemVer 5.3.0
33
-
34
32
A JavaScript implementation of the http://semver.org/ specification
35
33
Copyright Isaac Z. Schlueter
36
34
@@ -54,6 +52,9 @@ Options:
54
52
-l --loose
55
53
Interpret versions and ranges loosely
56
54
55
+ -p --include-prerelease
56
+ Always include prerelease versions in range matching
57
+
57
58
-c --coerce
58
59
Coerce a string into SemVer if possible
59
60
(does not imply --loose)
@@ -289,9 +290,19 @@ part ::= nr | [-0-9A-Za-z]+
289
290
290
291
## Functions
291
292
292
- All methods and classes take a final ` loose ` boolean argument that, if
293
- true, will be more forgiving about not-quite-valid semver strings.
294
- The resulting output will always be 100% strict, of course.
293
+ All methods and classes take a final ` options ` object argument. All
294
+ options in this object are ` false ` by default. The options supported
295
+ are:
296
+
297
+ - ` loose ` Be more forgiving about not-quite-valid semver strings.
298
+ (Any resulting output will always be 100% strict compliant, of
299
+ course.) For backwards compatibility reasons, if the ` options `
300
+ argument is a boolean value instead of an object, it is interpreted
301
+ to be the ` loose ` param.
302
+ - ` includePrerelease ` Set to suppress the [ default
303
+ behavior] ( https://github.com/npm/node-semver#prerelease-tags ) of
304
+ excluding prerelease tagged versions from ranges unless they are
305
+ explicitly opted into.
295
306
296
307
Strict-mode Comparators and Ranges will be strict about the SemVer
297
308
strings that they parse.
0 commit comments