yargs 8.0.0 → 9.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +48 -2
- package/README.md +56 -1999
- package/index.js +2 -1
- package/lib/apply-extends.js +11 -10
- package/lib/argsert.js +12 -18
- package/lib/command.js +58 -65
- package/lib/completion.js +25 -25
- package/lib/levenshtein.js +5 -5
- package/lib/obj-filter.js +4 -3
- package/lib/usage.js +105 -125
- package/lib/validation.js +124 -115
- package/lib/yerror.js +1 -0
- package/package.json +9 -16
- package/yargs.js +172 -189
- package/lib/assign.js +0 -15
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,54 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
<a name="9.0.1"></a>
|
|
6
|
+
## [9.0.1](https://github.com/yargs/yargs/compare/v9.0.0...v9.0.1) (2017-09-17)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* implications fails only displayed once ([#954](https://github.com/yargs/yargs/issues/954)) ([ac8088b](https://github.com/yargs/yargs/commit/ac8088b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
<a name="9.0.0"></a>
|
|
16
|
+
# [9.0.0](https://github.com/yargs/yargs/compare/v8.0.2...v9.0.0) (2017-09-03)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* 'undefined' default value for choices resulted in validation failing ([782b896](https://github.com/yargs/yargs/commit/782b896))
|
|
22
|
+
* address bug with handling of arrays of implications ([c240661](https://github.com/yargs/yargs/commit/c240661))
|
|
23
|
+
* defaulting keys to 'undefined' interfered with conflicting key logic ([a8e0cff](https://github.com/yargs/yargs/commit/a8e0cff))
|
|
24
|
+
* don't bother calling JSON.stringify() on string default values ([#891](https://github.com/yargs/yargs/issues/891)) ([628be21](https://github.com/yargs/yargs/commit/628be21))
|
|
25
|
+
* exclude positional arguments from completion output ([#927](https://github.com/yargs/yargs/issues/927)) ([71c7ec7](https://github.com/yargs/yargs/commit/71c7ec7))
|
|
26
|
+
* strict mode should not fail for hidden options ([#949](https://github.com/yargs/yargs/issues/949)) ([0e0c58d](https://github.com/yargs/yargs/commit/0e0c58d))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
### Features
|
|
30
|
+
|
|
31
|
+
* allow implies and conflicts to accept array values ([#922](https://github.com/yargs/yargs/issues/922)) ([abdc7da](https://github.com/yargs/yargs/commit/abdc7da))
|
|
32
|
+
* allow parse with no arguments as alias for yargs.argv ([#944](https://github.com/yargs/yargs/issues/944)) ([a9f03e7](https://github.com/yargs/yargs/commit/a9f03e7))
|
|
33
|
+
* enable .help() and .version() by default ([#912](https://github.com/yargs/yargs/issues/912)) ([1ef44e0](https://github.com/yargs/yargs/commit/1ef44e0))
|
|
34
|
+
* to allow both undefined and nulls, for benefit of TypeScript ([#945](https://github.com/yargs/yargs/issues/945)) ([792564d](https://github.com/yargs/yargs/commit/792564d))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### BREAKING CHANGES
|
|
38
|
+
|
|
39
|
+
* version() and help() are now enabled by default, and show up in help output; the implicit help command can no longer be enabled/disabled independently from the help command itself (which can now be disabled).
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
<a name="8.0.2"></a>
|
|
44
|
+
## [8.0.2](https://github.com/yargs/yargs/compare/v8.0.1...v8.0.2) (2017-06-12)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
<a name="8.0.1"></a>
|
|
49
|
+
## [8.0.1](https://github.com/yargs/yargs/compare/v8.0.0...v8.0.1) (2017-05-02)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
5
53
|
<a name="8.0.0"></a>
|
|
6
54
|
# [8.0.0](https://github.com/yargs/yargs/compare/v7.1.0...v8.0.0) (2017-05-01)
|
|
7
55
|
|
|
@@ -26,8 +74,6 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
26
74
|
|
|
27
75
|
### BREAKING CHANGES
|
|
28
76
|
|
|
29
|
-
* environment variables now override config files in order of precedence.
|
|
30
|
-
* '--' is now populated rather than '_' when parsing is stopped.
|
|
31
77
|
* extends functionality now always loads the JSON provided, rather than reading from a specific key
|
|
32
78
|
* Node 4+ is now required; this will allow us to start updating our dependencies.
|
|
33
79
|
* the first argument to strict() is now used to enable/disable its functionality, rather than controlling whether or not it is global.
|