Packages

commander

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

Upgrading commander From 2.20.3 to 15.1.0

41 releases in betweenevery note read

  1. 2.20.3yours
  2. 3.0.0major
  3. 2 releases
  4. 4.0.0major
  5. 3 releases
  6. 5.0.0major
  7. 1 release
  8. 6.0.0major
  9. 3 releases
  10. 7.0.0major
  11. 2 releases
  12. 8.0.0major
  13. 3 releases
  14. 9.0.0major
  15. 6 releases
  16. 10.0.0major
  17. 1 release
  18. 11.0.0major
  19. 1 release
  20. 12.0.0major
  21. 1 release
  22. 13.0.0major
  23. 1 release
  24. 14.0.0major
  25. 3 releases
  26. 15.0.0major
  27. 15.1.0target

Before you upgrade

Tick each one off as you go
  • Breaking15.0.0
  • Breaking15.0.0
  • Breaking15.0.0
  • Breaking15.0.0
  • Breaking14.0.0
  • Breaking14.0.0
  • Breaking13.0.0
  • Breaking13.0.0
  • Breaking13.0.0
  • Breaking13.0.0

Release by release

  1. 15.1.0

    Deprecation7 Nov 20266 fixes
    • Deprecated

      cmd.storeOptionsAsProperties()

    • Deprecated

      cmd.combineFlagAndOptionalValue()

    • Fixed

      Accept uppercase E exponent in negative number arguments

    • Fixed

      Support Unicode variadic option placeholders

  2. 15.0.0

    Migration needed29 May 20261 new · 1 fix
    • Breaking
      • only lone --no-* option sets default option value to true, default not implicitly set when define both positive and negative option in either order

    • Breaking
      • migrated Commander implementation from CommonJS to ESM

    • Breaking
      • Commander 15 requires Node.js v22.12.0 or higher (for require(esm)).

    • Breaking
      • removed deprecated export of commander/esm.mjs

    • New

      Show excess command-arguments in error message

    • Fixed

      Update example to use compatible character for MINGW64

  3. 14.0.3

    31 Jan 20261 new
    • New

      Release Policy document

  4. 14.0.2nothing new or fixed in the note

  5. 14.0.1

    12 Sep 20251 fix
    • Fixed

      Broken markdown link in README

  6. 14.0.0

    Migration needed18 May 20253 new · 1 fix
    • Breaking

      Remove bogus leading space in help when option has default value but not a description

    • Breaking
      • Commander 14 requires Node.js v20 or higher

    • New

      Support for groups of options and commands in the help using low-level .helpGroup() on Option and Command, and higher -level .optionsGroup() and .commandsGroup() which can be used in chaining way to specify group title for following option s/commands

    • New

      Support for unescaped negative numbers as option-arguments and command-arguments

    • New

      TypeScript: Add parseArg property to Argument class

    • Fixed

      .configureOutput() now makes copy of settings instead of modifying in-place, fixing side-effects

  7. 13.1.0

    20 Jan 20251 new
    • New

      Support a pair of long option flags to allow a memorable shortened flag, like .option('--ws, --workspace')

  8. 13.0.0

    Migration needed30 Dec 20246 new
    • Breaking

      Excess command-arguments cause an error by default, see migration tips

    • Breaking

      Throw during Option construction for unsupported option flags, like multiple characters after single -

    • Breaking

      Throw on multiple calls to .parse() if storeOptionsAsProperties: true

    • Breaking

      Help.wrap() refactored into formatItem() and boxWrap()

67 other lines we could not sort, mostly version bumps
  • Limit Pull Requests to reduce volume and improve quality

    15.1.0
  • Undeprecate InvalidOptionArgumentError

    15.1.0
  • Old major versions now supported for 12 months instead of just previous major version, to give predictable end-of-life date

    14.0.3
  • Clarify typing for deprecated callback parameter to .outputHelp()

    14.0.3
  • Simple readability improvements to README

    14.0.3
  • Improve negative number auto-detection test

    14.0.2
  • Update (dev) dependencies

    14.0.2
  • Improve code readability by using optional chaining

    14.0.1
  • Use more idiomatic code with object spread instead of Object.assign()

    14.0.1
  • Improve code readability using string.endsWith() instead of string.slice()

    14.0.1

9 internal lines (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.