Skip to content

fix(deps): bump commander from 12.1.0 to 13.1.0 #2301

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 21, 2025

Bumps commander from 12.1.0 to 13.1.0.

Release notes

Sourced from commander's releases.

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

Old code:

program.option('-p, --port <number>', 'port number');
program.action((options) => {
  console.log(program.args);
});

Now shows an error:

$ node example.js a b c
error: too many arguments. Expected 0 arguments but got 3.

You can declare the expected arguments. The help will then be more accurate too. Note that declaring new arguments will change what is passed to the action handler.

... (truncated)

Changelog

Sourced from commander's changelog.

[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

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

Old code:

program.option('-p, --port <number>', 'port number');
program.action((options) => {
  console.log(program.args);
});

Now shows an error:

$ node example.js a b c
error: too many arguments. Expected 0 arguments but got 3.

... (truncated)

Commits

Dependabot compatibility score

You can trigger a rebase of this PR 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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 21, 2025
@dependabot dependabot bot requested a review from a team January 21, 2025 10:38
@contentful-automation contentful-automation bot enabled auto-merge (squash) January 21, 2025 10:38
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/commander-13.1.0 branch from 5694e63 to ff960ea Compare January 22, 2025 10:12
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/commander-13.1.0 branch 2 times, most recently from ed77f30 to 6c31393 Compare January 24, 2025 11:06
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/commander-13.1.0 branch from 6c31393 to a6b44a7 Compare January 24, 2025 11:11
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/commander-13.1.0 branch 3 times, most recently from 6042ebf to e5aeebf Compare January 28, 2025 10:12
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/commander-13.1.0 branch from e5aeebf to c528be2 Compare January 28, 2025 10:17
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/commander-13.1.0 branch from c528be2 to d37a425 Compare January 28, 2025 10:22
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/commander-13.1.0 branch from d37a425 to 75070b7 Compare January 29, 2025 10:52
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/commander-13.1.0 branch from 75070b7 to c6873f8 Compare January 30, 2025 10:34
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/commander-13.1.0 branch from c6873f8 to 076f597 Compare February 5, 2025 10:12
contentful-automation[bot]
contentful-automation bot previously approved these changes Feb 5, 2025
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/commander-13.1.0 branch from 076f597 to 7b33cc8 Compare February 7, 2025 10:57
contentful-automation[bot]
contentful-automation bot previously approved these changes Feb 7, 2025
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/commander-13.1.0 branch from 7b33cc8 to daf4e57 Compare February 7, 2025 11:03
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/commander-13.1.0 branch from daf4e57 to 074fad3 Compare February 7, 2025 21:26
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/commander-13.1.0 branch 4 times, most recently from 4d158e8 to 49190bd Compare February 13, 2025 10:29
Bumps [commander](https://github.com/tj/commander.js) from 12.1.0 to 13.1.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...v13.1.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/commander-13.1.0 branch from 49190bd to b958a5c Compare February 14, 2025 10:40
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants