Skip to content
Myr

Update testing node versions, supported node versions, and archive 4.x CHANGELOG entries (#1385)

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

authored by John Gee · committed by GitHub · parent 0703a4d · Browse files · 5 files+114 added−109 removed
This commit

State

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

Diff stats

5 files+114 added−109 removed

  • other:+114 added−109 removed

5 files+114 added−109 removed

modified:.github/workflows/tests.yml+1 added-1 removed
added:changelogs/CHANGELOG-4.md+108 added
1# Changelog for 4.x23## [4.1.1] (2020-02-02)45### Fixed67* TypeScript definition for `.action()` should include Promise for async ([#1157])89## [4.1.0] (2020-01-06)1011### Added1213* two routines to change how option values are handled, and eliminate name clashes with command properties ([#933] [#1102])14 * see storeOptionsAsProperties and passCommandToAction in README15* `.parseAsync` to use instead of `.parse` if supply async action handlers ([#806] [#1118])1617### Fixed1819* Remove trailing blanks from wrapped help text ([#1096])2021### Changed2223* update dependencies24* extend security coverage for Commander 2.x to 2020-02-0325* improvements to README26* improvements to TypeScript definition documentation27* move old versions out of main CHANGELOG28* removed explicit use of `ts-node` in tests2930## [4.0.1] (2019-11-12)3132### Fixed3334* display help when requested, even if there are missing required options ([#1091])3536## [4.0.0] (2019-11-02)3738### Added3940* automatically wrap and indent help descriptions for options and commands ([#1051])41* `.exitOverride()` allows override of calls to `process.exit` for additional error handling and to keep program running ([#1040])42* support for declaring required options with `.requiredOptions()` ([#1071])43* GitHub Actions support ([#1027])44* translation links in README4546### Changed4748* dev: switch tests from Sinon+Should to Jest with major rewrite of tests ([#1035])49* call default subcommand even when there are unknown options ([#1047])50* *Breaking* Commander is only officially supported on Node 8 and above, and requires Node 6 ([#1053])5152### Fixed5354* *Breaking* keep command object out of program.args when action handler called ([#1048])55 * also, action handler now passed array of unknown arguments56* complain about unknown options when program argument supplied and action handler ([#1049])57 * this changes parameters to `command:*` event to include unknown arguments58* removed deprecated `customFds` option from call to `child_process.spawn` ([#1052])59* rework TypeScript declarations to bring all types into imported namespace ([#1081])6061### Migration Tips6263#### Testing for no arguments6465If you were previously using code like:6667```js68if (!program.args.length) ...69```7071a partial replacement is:7273```js74if (program.rawArgs.length < 3) ...75```7677## [4.0.0-1] Prerelease (2019-10-08)7879(Released in 4.0.0)8081## [4.0.0-0] Prerelease (2019-10-01)8283(Released in 4.0.0)8485[#1027]: https://github.com/tj/commander.js/pull/102786[#1035]: https://github.com/tj/commander.js/pull/103587[#1040]: https://github.com/tj/commander.js/pull/104088[#1047]: https://github.com/tj/commander.js/pull/104789[#1048]: https://github.com/tj/commander.js/pull/104890[#1049]: https://github.com/tj/commander.js/pull/104991[#1051]: https://github.com/tj/commander.js/pull/105192[#1052]: https://github.com/tj/commander.js/pull/105293[#1053]: https://github.com/tj/commander.js/pull/105394[#1071]: https://github.com/tj/commander.js/pull/107195[#1081]: https://github.com/tj/commander.js/pull/108196[#1091]: https://github.com/tj/commander.js/pull/109197[#1096]: https://github.com/tj/commander.js/pull/109698[#1102]: https://github.com/tj/commander.js/pull/110299[#1118]: https://github.com/tj/commander.js/pull/1118100[#1157]: https://github.com/tj/commander.js/pull/1157101[#806]: https://github.com/tj/commander.js/issues/806102103[4.1.1]: https://github.com/tj/commander.js/compare/v4.1.0..v4.1.1104[4.1.0]: https://github.com/tj/commander.js/compare/v4.0.1..v4.1.0105[4.0.1]: https://github.com/tj/commander.js/compare/v4.0.0..v4.0.1106[4.0.0]: https://github.com/tj/commander.js/compare/v3.0.2..v4.0.0107[4.0.0-1]: https://github.com/tj/commander.js/compare/v4.0.0-0..v4.0.0-1108[4.0.0-0]: https://github.com/tj/commander.js/compare/v3.0.2...v4.0.0-0
modified:.travis.yml+1 added
modified:CHANGELOG.md+1 added-105 removed
199 unmodified lines
200## [5.0.0-0] (2020-02-02)201202(Released in 5.0.0)203204## [4.1.1] (2020-02-02)205206### Fixed207208* TypeScript definition for `.action()` should include Promise for async ([#1157])209210## [4.1.0] (2020-01-06)211212### Added213214* two routines to change how option values are handled, and eliminate name clashes with command properties ([#933] [#1102])215 * see storeOptionsAsProperties and passCommandToAction in README216* `.parseAsync` to use instead of `.parse` if supply async action handlers ([#806] [#1118])217218### Fixed219220* Remove trailing blanks from wrapped help text ([#1096])221222### Changed223224* update dependencies225* extend security coverage for Commander 2.x to 2020-02-03226* improvements to README227* improvements to TypeScript definition documentation228* move old versions out of main CHANGELOG229* removed explicit use of `ts-node` in tests230231## [4.0.1] (2019-11-12)232233### Fixed234235* display help when requested, even if there are missing required options ([#1091])236237## [4.0.0] (2019-11-02)238239### Added240241* automatically wrap and indent help descriptions for options and commands ([#1051])242* `.exitOverride()` allows override of calls to `process.exit` for additional error handling and to keep program running ([#1040])243* support for declaring required options with `.requiredOptions()` ([#1071])244* GitHub Actions support ([#1027])245* translation links in README246247### Changed248249* dev: switch tests from Sinon+Should to Jest with major rewrite of tests ([#1035])250* call default subcommand even when there are unknown options ([#1047])251* *Breaking* Commander is only officially supported on Node 8 and above, and requires Node 6 ([#1053])252253### Fixed254255* *Breaking* keep command object out of program.args when action handler called ([#1048])256 * also, action handler now passed array of unknown arguments257* complain about unknown options when program argument supplied and action handler ([#1049])258 * this changes parameters to `command:*` event to include unknown arguments259* removed deprecated `customFds` option from call to `child_process.spawn` ([#1052])260* rework TypeScript declarations to bring all types into imported namespace ([#1081])261262### Migration Tips263264#### Testing for no arguments265266If you were previously using code like:267268```js269if (!program.args.length) ...270```271272a partial replacement is:273274```js275if (program.rawArgs.length < 3) ...276```277278## [4.0.0-1] Prerelease (2019-10-08)279280(Released in 4.0.0)281282## [4.0.0-0] Prerelease (2019-10-01)283284(Released in 4.0.0)285204## Older versions205206* [4.x](./changelogs/CHANGELOG-4.md)207* [3.x](./changelogs/CHANGELOG-3.md)208* [2.x](./changelogs/CHANGELOG-2.md)209* [1.x](./changelogs/CHANGELOG-1.md)210* [0.x](./changelogs/CHANGELOG-0.md)
6 unmodified lines
217[#645]: https://github.com/tj/commander.js/issues/645218[#742]: https://github.com/tj/commander.js/issues/742219[#764]: https://github.com/tj/commander.js/issues/764220[#802]: https://github.com/tj/commander.js/issues/802302[#806]: https://github.com/tj/commander.js/issues/806221[#809]: https://github.com/tj/commander.js/issues/809222[#948]: https://github.com/tj/commander.js/issues/948223[#962]: https://github.com/tj/commander.js/issues/962224[#995]: https://github.com/tj/commander.js/issues/995307[#1027]: https://github.com/tj/commander.js/pull/1027225[#1032]: https://github.com/tj/commander.js/issues/1032309[#1035]: https://github.com/tj/commander.js/pull/1035310[#1040]: https://github.com/tj/commander.js/pull/1040311[#1047]: https://github.com/tj/commander.js/pull/1047312[#1048]: https://github.com/tj/commander.js/pull/1048313[#1049]: https://github.com/tj/commander.js/pull/1049314[#1051]: https://github.com/tj/commander.js/pull/1051315[#1052]: https://github.com/tj/commander.js/pull/1052316[#1053]: https://github.com/tj/commander.js/pull/1053226[#1062]: https://github.com/tj/commander.js/pull/1062318[#1071]: https://github.com/tj/commander.js/pull/1071319[#1081]: https://github.com/tj/commander.js/pull/1081227[#1088]: https://github.com/tj/commander.js/issues/1088321[#1091]: https://github.com/tj/commander.js/pull/1091322[#1096]: https://github.com/tj/commander.js/pull/1096323[#1102]: https://github.com/tj/commander.js/pull/1102324[#1118]: https://github.com/tj/commander.js/pull/1118228[#1119]: https://github.com/tj/commander.js/pull/1119229[#1133]: https://github.com/tj/commander.js/pull/1133230[#1138]: https://github.com/tj/commander.js/pull/1138231[#1145]: https://github.com/tj/commander.js/pull/1145232[#1146]: https://github.com/tj/commander.js/pull/1146233[#1149]: https://github.com/tj/commander.js/pull/1149234[#1153]: https://github.com/tj/commander.js/issues/1153332[#1157]: https://github.com/tj/commander.js/pull/1157235[#1159]: https://github.com/tj/commander.js/pull/1159236[#1165]: https://github.com/tj/commander.js/pull/1165237[#1169]: https://github.com/tj/commander.js/pull/1169238[#1172]: https://github.com/tj/commander.js/pull/1172
41 unmodified lines
280[5.0.0-3]: https://github.com/tj/commander.js/compare/v5.0.0-2..v5.0.0-3281[5.0.0-2]: https://github.com/tj/commander.js/compare/v5.0.0-1..v5.0.0-2282[5.0.0-1]: https://github.com/tj/commander.js/compare/v5.0.0-0..v5.0.0-1283[5.0.0-0]: https://github.com/tj/commander.js/compare/v4.1.1..v5.0.0-0382[4.1.1]: https://github.com/tj/commander.js/compare/v4.1.0..v4.1.1383[4.1.0]: https://github.com/tj/commander.js/compare/v4.0.1..v4.1.0384[4.0.1]: https://github.com/tj/commander.js/compare/v4.0.0..v4.0.1385[4.0.0]: https://github.com/tj/commander.js/compare/v3.0.2..v4.0.0386[4.0.0-1]: https://github.com/tj/commander.js/compare/v4.0.0-0..v4.0.0-1387[4.0.0-0]: https://github.com/tj/commander.js/compare/v3.0.2...v4.0.0-0
modified:SECURITY.md+3 added-3 removed