Skip to content
Myr

Update v4 changelog (#1061)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* Update and tidy changelog for v4 * Add missing links Links after 1035 not working in Visual Studio Code, perhaps too many!

authored by John Gee · committed by GitHub · parent 3f7ef66 · Browse files · 1 file+15 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+15 added−8 removed

  • other:+15 added−8 removed

1 file+15 added−8 removed

modified:CHANGELOG.md+15 added-8 removed
9 unmodified lines
10## [Unreleased] (date goes here)1112### Added1314* automatically wrap and indent help descriptions for options and commands ([#1051])15* `.exitOverride()` allows override of calls to `process.exit` for additional error handling and to keep program running ([#1040])1617### Changed1818* switch from Sinon+Should to Jest with major rewrite of tests ([#1035])19* switch tests from Sinon+Should to Jest with major rewrite of tests ([#1035])20* call default subcommand even when there are unknown options ([#1047])2122### Fixed2322* Complain about unknown options when program argument supplied and action handler ([#1049])23 * *Breaking* This changes parameters to `command:*` event to include unknown arguments24* *Breaking* Keep command object out of program.args when action handler called ([#1048])25 * *Breaking* Action handler now passed array of unknown arguments26* *Breaking* Call default subcommand when there are unknown options ([#1047])24* *Breaking* keep command object out of program.args when action handler called ([#1048])25 * also, action handler now passed array of unknown arguments26* complain about unknown options when program argument supplied and action handler ([#1049])27 * this changes parameters to `command:*` event to include unknown arguments28* removed deprecated `customFds` option from call to `child_process.spawn` ([#1052])2930## [2.20.1] (2019-09-29)3132### Fixed
55 unmodified lines
88 * allow boolean default value, such as from environment ([#987])89* Increment inspector port for spawned subcommands ([#991])90 * e.g. `node --inspect myCommand.js clone`9190### Example Breaking Changes92### Migration Tips9394The custom event for a negated option like `--no-foo` is `option:no-foo` (previously `option:foo`).9596```js
381 unmodified lines
478[#1010]: https://github.com/tj/commander.js/pull/1010479[#1018]: https://github.com/tj/commander.js/pull/1018480[#1026]: https://github.com/tj/commander.js/pull/1026481[#1028]: https://github.com/tj/commander.js/pull/1028480[#1035]: https://github.com/tj/commander.js/pull/1035482[#1035]: https://github.com/tj/commander.js/pull/1035483[#1040]: https://github.com/tj/commander.js/pull/1040484[#1047]: https://github.com/tj/commander.js/pull/1047485[#1048]: https://github.com/tj/commander.js/pull/1048486[#1049]: https://github.com/tj/commander.js/pull/1049487[#1051]: https://github.com/tj/commander.js/pull/1051488[#1052]: https://github.com/tj/commander.js/pull/1052489490[Unreleased]: https://github.com/tj/commander.js/compare/master...develop491[2.20.1]: https://github.com/tj/commander.js/compare/v2.20.0...v2.20.1492[3.0.2]: https://github.com/tj/commander.js/compare/v3.0.1...v3.0.2
1 unmodified line