Packages

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

Other targets from 11.1.0Latest15.1.0
  1. 11.1.0yours
  2. 12.0.0target
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

  1. 12.0.0

    Migration needed3 Feb 20242 new
    • Breaking
      • use non-zero exit code when spawned executable subcommand terminates due to a signal

    • Breaking
      • check passThroughOptions constraints when using .addCommand and 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

6 other lines we could not sort, mostly version bumps
  • Replace non-standard JSDoc of @api private with 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

    12.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.