commander
15.1.0 · 7 Nov 2026MIT785.6M / weekRepositoryHomepagenpmAtom feed
Upgrading commander From 11.1.0 to 15.1.0
10 releases in betweenevery note read
- 21
- changes to make
- 0
- advisories fixed
- 15
- new
- 9
- fixes
Before you upgrade
Tick each one off as you go- Breaking15.0.0
- Breaking15.0.0
- Breaking15.0.0
- Breaking15.0.0
- Breaking14.0.0
- Breaking14.0.0
- Breaking13.0.0
- Breaking13.0.0
- Breaking13.0.0
- Breaking13.0.0
Release by release
- Deprecated
cmd.storeOptionsAsProperties() - Deprecated
cmd.combineFlagAndOptionalValue() - Fixed
Accept uppercase E exponent in negative number arguments
- Fixed
Support Unicode variadic option placeholders
- Deprecated
- Breaking
only lone
--no-*option sets default option value totrue, default not implicitly set when define both positive and negative option in either order
- Breaking
migrated Commander implementation from CommonJS to ESM
- Breaking
Commander 15 requires Node.js v22.12.0 or higher (for
require(esm)).
- Breaking
removed deprecated export of
commander/esm.mjs
- New
Show excess command-arguments in error message
- Fixed
Update example to use compatible character for MINGW64
- Breaking
- New
Release Policy document
- New
14.0.2nothing new or fixed in the note
- Fixed
Broken markdown link in README
- Fixed
- Breaking
Remove bogus leading space in help when option has default value but not a description
- Breaking
Commander 14 requires Node.js v20 or higher
- New
Support for groups of options and commands in the help using low-level
.helpGroup()onOptionandCommand, and higher -level.optionsGroup()and.commandsGroup()which can be used in chaining way to specify group title for following option s/commands - New
Support for unescaped negative numbers as option-arguments and command-arguments
- New
TypeScript: Add
parseArgproperty toArgumentclass - Fixed
.configureOutput()now makes copy of settings instead of modifying in-place, fixing side-effects
- Breaking
- New
Support a pair of long option flags to allow a memorable shortened flag, like
.option('--ws, --workspace')
- New
- Breaking
Excess command-arguments cause an error by default, see migration tips
- Breaking
Throw during Option construction for unsupported option flags, like multiple characters after single
- - Breaking
Throw on multiple calls to
.parse()ifstoreOptionsAsProperties: true - Breaking
Help.wrap()refactored intoformatItem()andboxWrap()
- Breaking
24 other lines we could not sort, mostly version bumps
- 15.1.0
Limit Pull Requests to reduce volume and improve quality
- 15.1.0
Undeprecate
InvalidOptionArgumentError - 14.0.3
Old major versions now supported for 12 months instead of just previous major version, to give predictable end-of-life date
- 14.0.3
Clarify typing for deprecated callback parameter to
.outputHelp() - 14.0.3
Simple readability improvements to README
- 14.0.2
Improve negative number auto-detection test
- 14.0.2
Update (dev) dependencies
- 14.0.1
Improve code readability by using optional chaining
- 14.0.1
Use more idiomatic code with object spread instead of
Object.assign() - 14.0.1
Improve code readability using
string.endsWith()instead ofstring.slice()
1 internal line (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.