commander 4.1.0 → 4.1.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 +19 -10
- package/package.json +1 -1
- package/typings/index.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,26 +7,32 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
7
7
|
|
|
8
8
|
<!-- markdownlint-disable MD024 -->
|
|
9
9
|
|
|
10
|
+
## [4.1.1] (2020-02-02)
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
* TypeScript definition for `.action()` should include Promise for async ([#1157])
|
|
15
|
+
|
|
10
16
|
## [4.1.0] (2020-01-06)
|
|
11
17
|
|
|
12
18
|
### Added
|
|
13
19
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
20
|
+
* two routines to change how option values are handled, and eliminate name clashes with command properties ([#933] [#1102])
|
|
21
|
+
* see storeOptionsAsProperties and passCommandToAction in README
|
|
22
|
+
* `.parseAsync` to use instead of `.parse` if supply async action handlers ([#806] [#1118])
|
|
17
23
|
|
|
18
24
|
### Fixed
|
|
19
25
|
|
|
20
|
-
|
|
26
|
+
* Remove trailing blanks from wrapped help text ([#1096])
|
|
21
27
|
|
|
22
28
|
### Changed
|
|
23
29
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
* update dependencies
|
|
31
|
+
* extend security coverage for Commander 2.x to 2020-02-03
|
|
32
|
+
* improvements to README
|
|
33
|
+
* improvements to TypeScript definition documentation
|
|
34
|
+
* move old versions out of main CHANGELOG
|
|
35
|
+
* removed explicit use of `ts-node` in tests
|
|
30
36
|
|
|
31
37
|
## [4.0.1] (2019-11-12)
|
|
32
38
|
|
|
@@ -415,8 +421,11 @@ program
|
|
|
415
421
|
[#1096]: https://github.com/tj/commander.js/pull/1096
|
|
416
422
|
[#1102]: https://github.com/tj/commander.js/pull/1102
|
|
417
423
|
[#1118]: https://github.com/tj/commander.js/pull/1118
|
|
424
|
+
[#1157]: https://github.com/tj/commander.js/pull/1157
|
|
418
425
|
|
|
419
426
|
[Unreleased]: https://github.com/tj/commander.js/compare/master...develop
|
|
427
|
+
[4.1.1]: https://github.com/tj/commander.js/compare/v4.0.0..v4.1.1
|
|
428
|
+
[4.1.0]: https://github.com/tj/commander.js/compare/v4.0.1..v4.1.0
|
|
420
429
|
[4.0.1]: https://github.com/tj/commander.js/compare/v4.0.0..v4.0.1
|
|
421
430
|
[4.0.0]: https://github.com/tj/commander.js/compare/v3.0.2..v4.0.0
|
|
422
431
|
[4.0.0-1]: https://github.com/tj/commander.js/compare/v4.0.0-0..v4.0.0-1
|
package/package.json
CHANGED
package/typings/index.d.ts
CHANGED
|
@@ -115,7 +115,7 @@ declare namespace commander {
|
|
|
115
115
|
*
|
|
116
116
|
* @returns Command for chaining
|
|
117
117
|
*/
|
|
118
|
-
action(fn: (...args: any[]) => void): Command;
|
|
118
|
+
action(fn: (...args: any[]) => void | Promise<void>): Command;
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
121
|
* Define option with `flags`, `description` and optional
|