Packages

commander

15.1.0 · 7 Nov 2026MIT785.6M / weekRepositoryHomepagenpmAtom feed

Upgrading commander From 8.3.0 to 9.0.0

1 release in betweenevery note read

Other targets from 8.3.0Latest15.1.0
  1. 8.3.0yours
  2. 9.0.0target
4
changes to make
0
advisories fixed
9
new
1
fix

Before you upgrade

Tick each one off as you go
  • Breaking9.0.0
  • Breaking9.0.0
  • Breaking9.0.0
  • Breaking9.0.0

Release by release

  1. 9.0.0

    Migration needed29 Jan 20229 new · 1 fix
    • Breaking
      • Commander 9 requires Node.js v12.20.0 or higher

    • Breaking
      • default value specified for boolean option now always used as default value (see .preset() to match some previous behaviours)

    • Breaking

      Removed restriction that nested subcommands must specify executableFile

    • Breaking
      • removed internal fallback to require.main.filename when script not known from arguments passed to .parse() (can supply details using .name(), and .executableDir() or executableFile)

4 other lines we could not sort, mostly version bumps
  • Update package-lock.json to lockfile@2 format

    9.0.0
  • showSuggestionAfterError is now on by default

    9.0.0
  • Default value for boolean option only shown in help if true/false

    9.0.0
  • Use command name as prefix for subcommand stand-alone executable name (with fallback to script name for backwards compatibility)

    9.0.0

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.