commander
15.1.0 · 7 Nov 2026MIT785.6M / weekRepositoryHomepagenpmAtom feed
Upgrading commander From 9.1.0 to 9.5.0
5 releases in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 10
- new
- 4
- fixes
Before you upgrade
Tick each one off as you go- Deprecated9.3.0
Release by release
- New
.getOptionValueSourceWithGlobals() - New
showGlobalOptionsfor.configureHelp{}andHelp
- New
- New
TypeScript: Add
impliedtoOptionValueSourcefor option values set by using.implies() - Fixed
.setOptionValue()now also clears option source - Fixed
TypeScript : add
undefinedto return type of.getOptionValueSource()
- New
- New
preSubcommandhook called before direct subcommands - Fixed
Export
InvalidOptionArgumentErrorin esm
- New
- Deprecated
multi-character short option flag (e.g.
-ws) - New
.summary()for a short summary to use instead of description when listing subcommands in help - New
Option.implies()to set other option values when the option is specified - New
Updated Chinese README with 9.x changes
- New
TypeScript: Add
stringto.options()default value parameter type for use with variadic options
- Deprecated
- New
Conditional export of 'types' for upcoming TypeScript module resolution
- New
Example file showing two ways to add global options to subcommands
- Fixed
Detect option conflicts in parent commands of called subcommand
- New
2 other lines we could not sort, mostly version bumps
- 9.4.1
Additions to README
- 9.2.0
Replace deprecated
String.prototype.substr
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.