Packages

commander

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

Upgrading commander From 9.0.0 to 9.5.0

6 releases in betweenevery note read

Other targets from 9.0.0Latest15.1.0

Before you upgrade

Tick each one off as you go
  • Deprecated9.3.0

Release by release

  1. 9.5.0

    7 Jan 20232 new
    • New

      .getOptionValueSourceWithGlobals()

    • New

      showGlobalOptions for .configureHelp{} and Help

  2. 9.4.1

    30 Sep 20221 new · 2 fixes
    • New

      TypeScript: Add implied to OptionValueSource for option values set by using .implies()

    • Fixed

      .setOptionValue() now also clears option source

    • Fixed

      TypeScript : add undefined to return type of .getOptionValueSource()

  3. 9.4.0

    15 Jul 20221 new · 1 fix
    • New

      preSubcommand hook called before direct subcommands

    • Fixed

      Export InvalidOptionArgumentError in esm

  4. 9.3.0

    Deprecation28 May 20224 new
    • Deprecated

      multi-character short option flag (e.g. -ws)

    • New

      .summary() for a short summary to use instead of description when listing subcommands in help

    • New

      Option.implies() to set other option values when the option is specified

    • New

      Updated Chinese README with 9.x changes

    • New

      TypeScript: Add string to .options() default value parameter type for use with variadic options

  5. 9.2.0

    15 Apr 20222 new · 1 fix
    • New

      Conditional export of 'types' for upcoming TypeScript module resolution

    • New

      Example file showing two ways to add global options to subcommands

    • Fixed

      Detect option conflicts in parent commands of called subcommand

  6. 9.1.0

    18 Mar 20222 new
    • New

      Option .conflicts() to set conflicting options which can not be specified together

    • New

      (developer) CodeQL configuration for GitHub Actions

2 other lines we could not sort, mostly version bumps
  • Additions to README

    9.4.1
  • Replace deprecated String.prototype.substr

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