Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 19, 2025

Bumps commander from 12.1.0 to 14.0.0.

Release notes

Sourced from commander's releases.

v14.0.0

Added

  • 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 (#2328)
  • support for unescaped negative numbers as option-arguments and command-arguments (#2339)
  • TypeScript: add parseArg property to Argument class (#2359)

Fixed

  • remove bogus leading space in help when option has default value but not a description (#2348)
  • .configureOutput() now makes copy of settings instead of modifying in-place, fixing side-effects (#2350)

Changed

  • Breaking: Commander 14 requires Node.js v20 or higher
  • internal refactor of Help class adding .formatItemList() and .groupItems() methods (#2328)

v13.1.0

Added

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

v13.0.0

Added

  • support multiple calls to .parse() with default settings (#2299)
  • add .saveStateBeforeParse() and .restoreStateBeforeParse() for use by subclasses (#2299)
  • style routines like styleTitle() to add color to help using .configureHelp() or Help subclass (#2251)
  • color related support in .configureOutput() for getOutHasColors(), getErrHasColors(), and stripColor() (#2251)
  • Help property for minWidthToWrap (#2251)
  • Help methods for displayWidth(), boxWrap(), preformatted() et al (#2251)

Changed

  • Breaking: excess command-arguments cause an error by default, see migration tips (#2223)
  • Breaking: throw during Option construction for unsupported option flags, like multiple characters after single - (#2270)
  • Breaking: throw on multiple calls to .parse() if storeOptionsAsProperties: true (#2299)
  • TypeScript: include implicit this in parameters for action handler callback (#2197)

Deleted

  • Breaking: Help.wrap() refactored into formatItem() and boxWrap() (#2251)

Migration Tips

Excess command-arguments

It is now an error for the user to specify more command-arguments than are expected. (allowExcessArguments is now false by default.)

... (truncated)

Changelog

Sourced from commander's changelog.

[14.0.0] (2025-05-18)

Added

  • 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 options/commands (#2328)
  • support for unescaped negative numbers as option-arguments and command-arguments (#2339)
  • TypeScript: add parseArg property to Argument class (#2359)

Fixed

  • remove bogus leading space in help when option has default value but not a description (#2348)
  • .configureOutput() now makes copy of settings instead of modifying in-place, fixing side-effects (#2350)

Changed

  • Breaking: Commander 14 requires Node.js v20 or higher
  • internal refactor of Help class adding .formatItemList() and .groupItems() methods (#2328)

[13.1.0] (2025-01-21)

Added

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

[13.0.0] (2024-12-30)

Added

  • support multiple calls to .parse() with default settings (#2299)
  • add .saveStateBeforeParse() and .restoreStateBeforeParse() for use by subclasses (#2299)
  • style routines like styleTitle() to add color to help using .configureHelp() or Help subclass (#2251)
  • color related support in .configureOutput() for getOutHasColors(), getErrHasColors(), and stripColor() (#2251)
  • Help property for minWidthToWrap (#2251)
  • Help methods for displayWidth(), boxWrap(), preformatted() et al (#2251)

Changed

  • Breaking: excess command-arguments cause an error by default, see migration tips (#2223)
  • Breaking: throw during Option construction for unsupported option flags, like multiple characters after single - (#2270)
    • note: support for dual long option flags added in Commander 13.1
  • Breaking: throw on multiple calls to .parse() if storeOptionsAsProperties: true (#2299)
  • TypeScript: include implicit this in parameters for action handler callback (#2197)

Deleted

  • Breaking: Help.wrap() refactored into formatItem() and boxWrap() (#2251)

Migration Tips

Excess command-arguments

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [commander](https://github.com/tj/commander.js) from 12.1.0 to 14.0.0.
- [Release notes](https://github.com/tj/commander.js/releases)
- [Changelog](https://github.com/tj/commander.js/blob/master/CHANGELOG.md)
- [Commits](tj/commander.js@v12.1.0...v14.0.0)

---
updated-dependencies:
- dependency-name: commander
  dependency-version: 14.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels May 19, 2025
@oalders
Copy link
Owner

oalders commented May 20, 2025

╔══════════════════════════════════════════════════════════════╤═════════════╤═════════════╗
║ package-lock.json                                            │             │             ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ package                                                      │ old version │ new version ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║                                                              │ 1.0.2       │ 1.1.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/@eslint-community/regexpp                       │ 4.8.0       │ 4.12.1      ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/@eslint/eslintrc                                │ 3.0.2       │ 3.3.1       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/@eslint/js                                      │ 9.2.0       │ 9.26.0      ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/@humanwhocodes/config-array                     │ 0.13.0      │ null        ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/@humanwhocodes/object-schema                    │ 2.0.3       │ null        ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/@humanwhocodes/retry                            │ 0.2.3       │ 0.4.2       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/@nodelib/fs.scandir                             │ 2.1.5       │ null        ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/@nodelib/fs.stat                                │ 2.0.5       │ null        ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/@nodelib/fs.walk                                │ 1.2.8       │ null        ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/acorn                                           │ 8.11.3      │ 8.14.1      ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/braces                                          │ 3.0.2       │ 3.0.3       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/commander                                       │ 12.0.0      │ 14.0.0      ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/cross-spawn                                     │ 7.0.3       │ 7.0.6       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/debug                                           │ 4.3.4       │ 4.4.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/eslint                                          │ 9.2.0       │ 9.26.0      ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/eslint-scope                                    │ 8.0.1       │ 8.3.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/eslint/node_modules/eslint-visitor-keys         │ 4.0.0       │ 4.2.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/espree                                          │ 10.0.1      │ 10.3.0      ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/espree/node_modules/eslint-visitor-keys         │ 4.0.0       │ 4.2.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/fastq                                           │ 1.15.0      │ null        ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/fill-range                                      │ 7.0.1       │ 7.1.1       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/function-bind                                   │ 1.1.1       │ 1.1.2       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/ignore                                          │ 5.3.1       │ 5.3.2       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/import-fresh                                    │ 3.3.0       │ 3.3.1       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/is-path-inside                                  │ 3.0.3       │ null        ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/ms                                              │ 2.1.2       │ 2.1.3       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/queue-microtask                                 │ 1.2.3       │ null        ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/reusify                                         │ 1.0.4       │ null        ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/run-parallel                                    │ 1.2.0       │ null        ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/semver                                          │ 7.6.2       │ 7.7.2       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/text-table                                      │ 0.2.0       │ null        ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/@eslint/config-array                            │ null        │ 0.20.0      ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/@eslint/config-helpers                          │ null        │ 0.2.1       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/@eslint/core                                    │ null        │ 0.13.0      ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/@eslint/object-schema                           │ null        │ 2.1.6       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/@eslint/plugin-kit                              │ null        │ 0.2.8       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/@humanfs/core                                   │ null        │ 0.19.1      ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/@humanfs/node                                   │ null        │ 0.16.6      ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/@humanfs/node/node_modules/@humanwhocodes/retry │ null        │ 0.3.1       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/@modelcontextprotocol/sdk                       │ null        │ 1.11.0      ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/@types/estree                                   │ null        │ 1.0.6       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/@types/json-schema                              │ null        │ 7.0.15      ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/accepts                                         │ null        │ 2.0.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/body-parser                                     │ null        │ 2.2.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/bytes                                           │ null        │ 3.1.2       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/call-bind-apply-helpers                         │ null        │ 1.0.2       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/call-bound                                      │ null        │ 1.0.4       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/content-disposition                             │ null        │ 1.0.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/content-type                                    │ null        │ 1.0.5       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/cookie                                          │ null        │ 0.7.2       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/cookie-signature                                │ null        │ 1.2.2       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/cors                                            │ null        │ 2.8.5       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/depd                                            │ null        │ 2.0.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/dunder-proto                                    │ null        │ 1.0.1       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/ee-first                                        │ null        │ 1.1.1       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/encodeurl                                       │ null        │ 2.0.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/es-define-property                              │ null        │ 1.0.1       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/es-errors                                       │ null        │ 1.3.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/es-object-atoms                                 │ null        │ 1.1.1       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/escape-html                                     │ null        │ 1.0.3       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/etag                                            │ null        │ 1.8.1       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/eventsource                                     │ null        │ 3.0.6       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/eventsource-parser                              │ null        │ 3.0.1       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/express                                         │ null        │ 5.1.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/express-rate-limit                              │ null        │ 7.5.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/finalhandler                                    │ null        │ 2.1.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/forwarded                                       │ null        │ 0.2.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/fresh                                           │ null        │ 2.0.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/get-intrinsic                                   │ null        │ 1.3.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/get-proto                                       │ null        │ 1.0.1       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/gopd                                            │ null        │ 1.2.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/has-symbols                                     │ null        │ 1.1.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/hasown                                          │ null        │ 2.0.2       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/http-errors                                     │ null        │ 2.0.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/iconv-lite                                      │ null        │ 0.6.3       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/ipaddr.js                                       │ null        │ 1.9.1       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/is-promise                                      │ null        │ 4.0.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/math-intrinsics                                 │ null        │ 1.1.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/media-typer                                     │ null        │ 1.1.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/merge-descriptors                               │ null        │ 2.0.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/mime-db                                         │ null        │ 1.54.0      ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/mime-types                                      │ null        │ 3.0.1       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/negotiator                                      │ null        │ 1.0.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/object-assign                                   │ null        │ 4.1.1       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/object-inspect                                  │ null        │ 1.13.4      ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/on-finished                                     │ null        │ 2.4.1       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/parseurl                                        │ null        │ 1.3.3       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/path-to-regexp                                  │ null        │ 8.2.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/pkce-challenge                                  │ null        │ 5.0.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/proxy-addr                                      │ null        │ 2.0.7       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/qs                                              │ null        │ 6.14.0      ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/range-parser                                    │ null        │ 1.2.1       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/raw-body                                        │ null        │ 3.0.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/router                                          │ null        │ 2.2.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/safe-buffer                                     │ null        │ 5.2.1       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/safer-buffer                                    │ null        │ 2.1.2       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/send                                            │ null        │ 1.2.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/serve-static                                    │ null        │ 2.2.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/setprototypeof                                  │ null        │ 1.2.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/side-channel                                    │ null        │ 1.1.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/side-channel-list                               │ null        │ 1.0.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/side-channel-map                                │ null        │ 1.0.1       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/side-channel-weakmap                            │ null        │ 1.0.2       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/statuses                                        │ null        │ 2.0.1       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/toidentifier                                    │ null        │ 1.0.1       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/type-is                                         │ null        │ 2.0.1       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/unpipe                                          │ null        │ 1.0.0       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/vary                                            │ null        │ 1.1.2       ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/zod                                             │ null        │ 3.24.4      ║
╟──────────────────────────────────────────────────────────────┼─────────────┼─────────────╢
║ node_modules/zod-to-json-schema                              │ null        │ 3.24.5      ║
╚══════════════════════════════════════════════════════════════╧═════════════╧═════════════╝

@oalders oalders merged commit 9ac6804 into main May 20, 2025
2 checks passed
@oalders oalders deleted the dependabot/npm_and_yarn/commander-14.0.0 branch May 20, 2025 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant