commander
15.1.0 · 7 Nov 2026MIT785.6M / weekRepositoryHomepagenpmAtom feed
Upgrading commander From 8.1.0 to 8.3.0
2 releases in betweenevery note read
- 3
- changes to make
- 0
- advisories fixed
- 3
- new
- 0
- fixes
Before you upgrade
Tick each one off as you go- Breaking8.2.0
- Deprecated8.3.0
- Deprecated8.3.0
Release by release
- Deprecated
.command('*'), use default command instead - Deprecated
on('command:*'), use.showSuggestionAfterError()instead - New
.getOptionValueSource()and.setOptionValueWithSource(), where expected values for source are one of 'default', 'env', 'config', 'cli'
- Deprecated
- Breaking
TypeScript declaration of unimplemented
OptionmethodargumentRejected - New
.showSuggestionAfterError()to show suggestions after unknown command or unknown option - New
Add
Optionsupport for values from environment variables using.env()
- Breaking
1 other line we could not sort, mostly version bumps
- 8.2.0
Show error for unknown global option before subcommand (rather than just help)
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.