Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning. (Format adopted after v3.0.0.)

4.1.1 (2020-02-02)

Fixed

4.1.0 (2020-01-06)

Added

Fixed

Changed

4.0.1 (2019-11-12)

Fixed

4.0.0 (2019-11-02)

Added

Changed

Fixed

Migration Tips

Testing for no arguments

If you were previously using code like:

js if (!program.args.length) ...

a partial replacement is:

js if (program.rawArgs.length < 3) ...

4.0.0-1 Prerelease (2019-10-08)

(Released in 4.0.0)

4.0.0-0 Prerelease (2019-10-01)

(Released in 4.0.0)

2.20.1 (2019-09-29)

Fixed

Changed

3.0.2 (2019-09-27)

Fixed

Changed

3.0.1 (2019-08-30)

Added

Changed

Fixed

3.0.0 / 2019-08-08

Migration Tips

The custom event for a negated option like --no-foo is option:no-foo (previously option:foo).

js program .option('--no-foo') .on('option:no-foo', () => { console.log('removing foo'); });

When using TypeScript, adding a command does not allow an explicit undefined for an unwanted executable description (e.g for a command with an action handler).

js program .command('action1', undefined, { noHelp: true }) // No longer valid .command('action2', { noHelp: true }) // Correct

3.0.0-0 Prerelease / 2019-07-28

(Released as 3.0.0)

2.20.0 / 2019-04-02

2.19.0 / 2018-10-02

2.18.0 / 2018-09-07

2.17.1 / 2018-08-07

2.17.0 / 2018-08-03

2.16.0 / 2018-06-29

2.15.0 / 2018-03-07

2.14.1 / 2018-02-07

2.14.0 / 2018-02-05

2.13.0 / 2018-01-09

2.12.2 / 2017-11-28

2.12.1 / 2017-11-23

2.12.0 / 2017-11-22

2.11.0 / 2017-07-03

2.10.0 / 2017-06-19

2.9.0 / 2015-10-13

2.8.1 / 2015-04-22

2.8.0 / 2015-04-07

2.7.1 / 2015-03-11

2.7.0 / 2015-03-09

2.6.0 / 2014-12-30

2.5.1 / 2014-12-15

2.5.0 / 2014-10-24

2.4.0 / 2014-10-17

2.3.0 / 2014-07-16

2.2.0 / 2014-03-29

2.1.0 / 2013-11-21

2.0.0 / 2013-07-18

Older versions

[#1040]: https://github.com/tj/commander.js/pull/1040 [#1047]: https://github.com/tj/commander.js/pull/1047 [#1048]: https://github.com/tj/commander.js/pull/1048 [#1049]: https://github.com/tj/commander.js/pull/1049 [#1051]: https://github.com/tj/commander.js/pull/1051 [#1052]: https://github.com/tj/commander.js/pull/1052 [#1053]: https://github.com/tj/commander.js/pull/1053 [#1071]: https://github.com/tj/commander.js/pull/1071 [#1081]: https://github.com/tj/commander.js/pull/1081 [#1091]: https://github.com/tj/commander.js/pull/1091 [#1096]: https://github.com/tj/commander.js/pull/1096 [#1102]: https://github.com/tj/commander.js/pull/1102 [#1118]: https://github.com/tj/commander.js/pull/1118 [#1157]: https://github.com/tj/commander.js/pull/1157