Packages

commander

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

Upgrading commander From 7.2.0 to 8.0.0

1 release in betweenevery note read

Other targets from 7.2.0Latest15.1.0
  1. 7.2.0yours
  2. 8.0.0target
7
changes to make
0
advisories fixed
9
new
0
fixes

Before you upgrade

Tick each one off as you go
  • Breaking8.0.0
  • Breaking8.0.0
  • Breaking8.0.0
  • Breaking8.0.0
  • Breaking8.0.0
  • Deprecated8.0.0
  • Deprecated8.0.0

Release by release

  1. 8.0.0

    Migration needed25 Jun 20219 new
    • Breaking
      • Help method .visibleArguments() returns array of Argument

    • Breaking
      • Commander 8 requires Node.js 12 or higher

    • Breaking
      • CommanderError code commander.invalidOptionArgument renamed commander.invalidArgument

    • Breaking
      • TypeScript declaration for .addTextHelp() callback no longer allows result of undefined, now just string

5 other lines we could not sort, mostly version bumps
  • Refactor and simplify TypeScript declarations (with no default export)

    8.0.0
  • .parseAsync() is now declared as async

    8.0.0
  • Refactor index.tab into a file per class

    8.0.0
  • Remove help suggestion from "unknown command" error message (see .showHelpAfteError())

    8.0.0
  • Command property .arg initialised to empty array (was previously undefined)

    8.0.0

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.