Preparing for Commander v14.0.0 (#2366)
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 dd7edf4 · Browse files · 4 files·+30 added−7 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+30 added−7 removed
- other:+30 added−7 removed
Provenance
- Commit
395cf71- Tree
ec80e43- Author
John Gee <john@ruru.gen.nz>- Committer
GitHub <noreply@github.com>- Parent
dd7edf4
4 files changed+30 added−7 removed
modified:CHANGELOG.md+24 added-1 removed
6 unmodified lines7 8 <!-- markdownlint-disable MD024 -->9 <!-- markdownlint-disable MD004 -->10 11+## [14.0.0] (2025-05-18)12+13+### Added14+15+- support for groups of options and commands in the help using low-level `.helpGroup()` on `Option` and `Command`, and higher-level `.optionsGroup()` and `.commandsGroup()` which can be used in chaining way to specify group title for following options/commands ([#2328])16+- support for unescaped negative numbers as option-arguments and command-arguments ([#2339])17+- TypeScript: add `parseArg` property to `Argument` class ([#2359])18+19+### Fixed20+21+- remove bogus leading space in help when option has default value but not a description ([#2348])22+- `.configureOutput()` now makes copy of settings instead of modifying in-place, fixing side-effects ([#2350])23+24+### Changed25+26+- *Breaking:* Commander 14 requires Node.js v20 or higher27+- internal refactor of `Help` class adding `.formatItemList()` and `.groupItems()` methods ([#2328])28+29 ## [13.1.0] (2025-01-21)30 31 ### Added32 1372 unmodified lines1405 [#2251]: https://github.com/tj/commander.js/pull/22511406 [#2270]: https://github.com/tj/commander.js/pull/22701407 [#2299]: https://github.com/tj/commander.js/pull/22991408 [#2312]: https://github.com/tj/commander.js/pull/23121409+[#2328]: https://github.com/tj/commander.js/pull/23281410+[#2339]: https://github.com/tj/commander.js/pull/23391411+[#2348]: https://github.com/tj/commander.js/pull/23481412+[#2350]: https://github.com/tj/commander.js/pull/23501413+[#2359]: https://github.com/tj/commander.js/pull/23591414 1392-1415 <!-- Referenced in 5.x -->1416 [#1]: https://github.com/tj/commander.js/issues/11417 [#432]: https://github.com/tj/commander.js/issues/4321418 [#508]: https://github.com/tj/commander.js/issues/50870 unmodified lines1489 [#1026]: https://github.com/tj/commander.js/pull/10261490 [#1028]: https://github.com/tj/commander.js/pull/10281491 1492 [Unreleased]: https://github.com/tj/commander.js/compare/master...develop1493+[14.0.0]: https://github.com/tj/commander.js/compare/v13.1.0...v14.0.01494 [13.1.0]: https://github.com/tj/commander.js/compare/v13.0.0...v13.1.01495 [13.0.0]: https://github.com/tj/commander.js/compare/v12.1.0...v13.0.01496 [13.0.0-0]: https://github.com/tj/commander.js/compare/v12.1.0...v13.0.0-01497 [12.1.0]: https://github.com/tj/commander.js/compare/v12.0.0...v12.1.051 unmodified linesmodified:package-lock.json+3 added-3 removed
1 {2 "name": "commander",3- "version": "13.1.0",3+ "version": "14.0.0",4 "lockfileVersion": 3,5 "requires": true,6 "packages": {7 "": {8 "name": "commander",9- "version": "13.1.0",9+ "version": "14.0.0",10 "license": "MIT",11 "devDependencies": {12 "@eslint/js": "^9.4.0",13 "@types/jest": "^29.2.4",9 unmodified lines23 "typescript": "^5.0.4",24 "typescript-eslint": "^8.12.2"25 },26 "engines": {27- "node": ">=18"27+ "node": ">=20"28 }29 },30 "node_modules/@ampproject/remapping": {31 "version": "2.3.0",5809 unmodified linesmodified:package.json+2 added-2 removed
1233456767 unmodified lines757677787979808182{ "name": "commander", "version": "13.1.0", "version": "14.0.0", "description": "the complete solution for node.js command-line programs", "keywords": [ "commander", "command",67 unmodified lines "typescript-eslint": "^8.12.2" }, "types": "typings/index.d.ts", "engines": { "node": ">=18" "node": ">=20" }, "support": true}modified:Readme.md+1 added-1 removed
1145 unmodified lines1146 - [parsing life cycle and hooks](./docs/parsing-and-hooks.md)1147 1148 ## Support1149 1150-The current version of Commander is fully supported on Long Term Support versions of Node.js, and requires at least v18.1150+The current version of Commander is fully supported on Long Term Support versions of Node.js, and requires at least v20.1151 (For older versions of Node.js, use an older version of Commander.)1152 1153 The main forum for free and community support is the project [Issues](https://github.com/tj/commander.js/issues) on GitHub.1154 5 unmodified lines