commander 2.20.3 → 3.0.2

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 CHANGED
@@ -1,14 +1,89 @@
1
- 2.20.3 / 2019-10-11
2
- ==================
1
+ # Changelog
3
2
 
4
- * Support Node.js 0.10 (Revert #1059)
5
- * Ran "npm unpublish commander@2.20.2". There is no 2.20.2.
3
+ All notable changes to this project will be documented in this file.
6
4
 
7
- 2.20.1 / 2019-09-29
8
- ==================
5
+ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
+ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). (Format adopted after v3.0.0.)
7
+
8
+ ## [3.0.2] (2019-09-27)
9
+
10
+ ### Fixed
11
+
12
+ * Improve tracking of executable subcommands.
13
+
14
+ ### Changed
15
+
16
+ * update development dependencies
17
+
18
+ ## [3.0.1] (2019-08-30)
19
+
20
+ ### Added
21
+
22
+ * .name and .usage to README ([#1010])
23
+ * Table of Contents to README ([#1010])
24
+ * TypeScript definition for `executableFile` in CommandOptions ([#1028])
25
+
26
+ ### Changed
27
+
28
+ * consistently use `const` rather than `var` in README ([#1026])
9
29
 
10
- * Improve executable subcommand tracking
11
- * Update dev dependencies
30
+ ### Fixed
31
+
32
+ * help for sub commands with custom executableFile ([#1018])
33
+
34
+ 3.0.0 / 2019-08-08
35
+ =================
36
+
37
+ * Add option to specify executable file name ([#999])
38
+ * e.g. `.command('clone', 'clone description', { executableFile: 'myClone' })`
39
+ * Change docs for `.command` to contrast action handler vs git-style executable. ([#938] [#990])
40
+ * **Breaking** Change TypeScript to use overloaded function for `.command`. ([#938] [#990])
41
+ * Change to use straight quotes around strings in error messages (like 'this' instead of `this') ([#915])
42
+ * Add TypeScript "reference types" for node ([#974])
43
+ * Add support for hyphen as an option argument in subcommands ([#697])
44
+ * Add support for a short option flag and its value to be concatenated for action handler subcommands ([#599])
45
+ * e.g. `-p 80` can also be supplied as `-p80`
46
+ * Add executable arguments to spawn in win32, for git-style executables ([#611])
47
+ * e.g. `node --harmony myCommand.js clone`
48
+ * Add parent command as prefix of subcommand in help ([#980])
49
+ * Add optional custom description to `.version` ([#963])
50
+ * e.g. `program.version('0.0.1', '-v, --vers', 'output the current version')`
51
+ * Add `.helpOption(flags, description)` routine to customise help flags and description ([#963])
52
+ * e.g. `.helpOption('-e, --HELP', 'read more information')`
53
+ * Fix behavior of --no-* options ([#795])
54
+ * can now define both `--foo` and `--no-foo`
55
+ * **Breaking** custom event listeners: `--no-foo` on cli now emits `option:no-foo` (previously `option:foo`)
56
+ * **Breaking** default value: defining `--no-foo` after defining `--foo` leaves the default value unchanged (previously set it to false)
57
+ * allow boolean default value, such as from environment ([#987])
58
+ * Increment inspector port for spawned subcommands ([#991])
59
+ * e.g. `node --inspect myCommand.js clone`
60
+
61
+ Example Breaking Changes
62
+ ------------------------
63
+
64
+ The custom event for a negated option like `--no-foo` is `option:no-foo` (previously `option:foo`).
65
+
66
+ ```js
67
+ program
68
+ .option('--no-foo')
69
+ .on('option:no-foo', () => {
70
+ console.log('removing foo');
71
+ });
72
+ ```
73
+
74
+ When using TypeScript, adding a command does not allow an explicit `undefined` for an unwanted executable description (e.g
75
+ for a command with an action handler).
76
+
77
+ ```js
78
+ program
79
+ .command('action1', undefined, { noHelp: true }) // No longer valid
80
+ .command('action2', { noHelp: true }) // Correct
81
+ ```
82
+
83
+ 3.0.0-0 Prerelease / 2019-07-28
84
+ ==============================
85
+
86
+ (Released as 3.0.0)
12
87
 
13
88
  2.20.0 / 2019-04-02
14
89
  ==================
@@ -417,3 +492,24 @@
417
492
  ==================
418
493
 
419
494
  * Initial release
495
+
496
+ [#599]: https://github.com/tj/commander.js/issues/599
497
+ [#611]: https://github.com/tj/commander.js/issues/611
498
+ [#697]: https://github.com/tj/commander.js/issues/697
499
+ [#795]: https://github.com/tj/commander.js/issues/795
500
+ [#915]: https://github.com/tj/commander.js/issues/915
501
+ [#938]: https://github.com/tj/commander.js/issues/938
502
+ [#963]: https://github.com/tj/commander.js/issues/963
503
+ [#974]: https://github.com/tj/commander.js/issues/974
504
+ [#980]: https://github.com/tj/commander.js/issues/980
505
+ [#987]: https://github.com/tj/commander.js/issues/987
506
+ [#990]: https://github.com/tj/commander.js/issues/990
507
+ [#991]: https://github.com/tj/commander.js/issues/991
508
+ [#999]: https://github.com/tj/commander.js/issues/999
509
+ [#1010]: https://github.com/tj/commander.js/pull/1010
510
+ [#1018]: https://github.com/tj/commander.js/pull/1018
511
+ [#1026]: https://github.com/tj/commander.js/pull/1026
512
+ [#1028]: https://github.com/tj/commander.js/pull/1028
513
+
514
+ [Unreleased]: https://github.com/tj/commander.js/compare/master...develop
515
+ [3.0.1]: https://github.com/tj/commander.js/compare/v3.0.0...v3.0.1