Skip to content

Commit 395cf71

Browse files
authored
Preparing for Commander v14.0.0 (#2366)
1 parent dd7edf4 commit 395cf71

File tree

4 files changed

+30
-7
lines changed

4 files changed

+30
-7
lines changed

CHANGELOG.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,24 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
88
<!-- markdownlint-disable MD024 -->
99
<!-- markdownlint-disable MD004 -->
1010

11+
## [14.0.0] (2025-05-18)
12+
13+
### Added
14+
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+
### Fixed
20+
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+
### Changed
25+
26+
- *Breaking:* Commander 14 requires Node.js v20 or higher
27+
- internal refactor of `Help` class adding `.formatItemList()` and `.groupItems()` methods ([#2328])
28+
1129
## [13.1.0] (2025-01-21)
1230

1331
### Added
@@ -1388,7 +1406,11 @@ program
13881406
[#2270]: https://github.com/tj/commander.js/pull/2270
13891407
[#2299]: https://github.com/tj/commander.js/pull/2299
13901408
[#2312]: https://github.com/tj/commander.js/pull/2312
1391-
1409+
[#2328]: https://github.com/tj/commander.js/pull/2328
1410+
[#2339]: https://github.com/tj/commander.js/pull/2339
1411+
[#2348]: https://github.com/tj/commander.js/pull/2348
1412+
[#2350]: https://github.com/tj/commander.js/pull/2350
1413+
[#2359]: https://github.com/tj/commander.js/pull/2359
13921414

13931415
<!-- Referenced in 5.x -->
13941416
[#1]: https://github.com/tj/commander.js/issues/1
@@ -1468,6 +1490,7 @@ program
14681490
[#1028]: https://github.com/tj/commander.js/pull/1028
14691491

14701492
[Unreleased]: https://github.com/tj/commander.js/compare/master...develop
1493+
[14.0.0]: https://github.com/tj/commander.js/compare/v13.1.0...v14.0.0
14711494
[13.1.0]: https://github.com/tj/commander.js/compare/v13.0.0...v13.1.0
14721495
[13.0.0]: https://github.com/tj/commander.js/compare/v12.1.0...v13.0.0
14731496
[13.0.0-0]: https://github.com/tj/commander.js/compare/v12.1.0...v13.0.0-0

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ There is more information available about:
11471147

11481148
## Support
11491149

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.
11511151
(For older versions of Node.js, use an older version of Commander.)
11521152

11531153
The main forum for free and community support is the project [Issues](https://github.com/tj/commander.js/issues) on GitHub.

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "commander",
3-
"version": "13.1.0",
3+
"version": "14.0.0",
44
"description": "the complete solution for node.js command-line programs",
55
"keywords": [
66
"commander",
@@ -76,7 +76,7 @@
7676
},
7777
"types": "typings/index.d.ts",
7878
"engines": {
79-
"node": ">=18"
79+
"node": ">=20"
8080
},
8181
"support": true
8282
}

0 commit comments

Comments
 (0)