commander
15.1.0 · 7 Nov 2026MIT785.6M / weekRepositoryHomepagenpmAtom feed
Upgrading commander From 11.1.0 to 12.0.0
1 release in betweenevery note read
- 8
- changes to make
- 0
- advisories fixed
- 2
- new
- 0
- fixes
Before you upgrade
Tick each one off as you go- Breaking12.0.0
- Breaking12.0.0
- Breaking12.0.0
- Breaking12.0.0
- Breaking12.0.0
- Breaking12.0.0
- Breaking12.0.0
- Deprecated12.0.0
Release by release
- Breaking
use non-zero exit code when spawned executable subcommand terminates due to a signal
- Breaking
check
passThroughOptionsconstraints when using.addCommandand throw if parent command does not have.enablePositionalOptions()enabled
- Breaking
Commander 12 requires Node.js v18 or higher
- Breaking
throw an error if add an option with a flag which is already in use
- Breaking
6 other lines we could not sort, mostly version bumps
- 12.0.0
Replace non-standard JSDoc of
@api privatewith documented@private - 12.0.0
.addHelpCommand()now takes a Command (passing string or boolean still works as before but deprecated) - 12.0.0
Refactor internal implementation of built-in help option
- 12.0.0
Refactor internal implementation of built-in help command
- 12.0.0
Adding an option which uses the same flag as a previous option
- 12.0.0
Adding a command which uses the same name or alias as a previous command
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.