Skip to content
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

build(deps): bump commander and @commander-js/extra-typings #302

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 1, 2025

Bumps commander and @commander-js/extra-typings. These dependencies needed to be updated together.
Updates commander from 12.1.0 to 13.0.0

Release notes

Sourced from commander's releases.

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.

program.option('-p, --port <number>', 'port number');
program.argument('[args...]', 'remote command and arguments'); // expecting zero or more arguments
program.action((args, options) => {
</tr></table> 

... (truncated)

Changelog

Sourced from commander's changelog.

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

program.option('-p, --port <number>', 'port number');
program.argument('[args...]', 'remote command and arguments'); // expecting zero or more arguments
</tr></table> 

... (truncated)

Commits

Updates @commander-js/extra-typings from 12.1.0 to 13.0.0

Release notes

Sourced from @​commander-js/extra-typings's releases.

v13.0.0

Added

  • strongly type .optsWithGlobals() to include inferred globals (#78)
  • weakly type .getOptionValueSourceWithGlobals() to include inferred globals (#78)
  • infer narrow types for choices, so no longer need to specify as const (#79)

Changed

  • Breaking: Typescript 5.0 or higher is required (#79)

v13.0.0-1

Added

  • strongly type .optsWithGlobals() to include inferred globals (#78)
  • weakly type .getOptionValueSourceWithGlobals() to include inferred globals (#78)
  • infer narrow types for choices, so no longer need to specify as const (#79)

Changed

  • Breaking: Typescript 5.0 or higher is required (#79)
Changelog

Sourced from @​commander-js/extra-typings's changelog.

[13.0.0] (2024-12-31)

Added

  • strongly type .optsWithGlobals() to include inferred globals (#78)
  • weakly type .getOptionValueSourceWithGlobals() to include inferred globals (#78)
  • infer narrow types for choices, so no longer need to specify as const (#79)

Changed

  • Breaking: Typescript 5.0 or higher is required (#79)

[13.0.0-1] (2024-12-08)

(Released in 13.0.0)

13.0.0-0 (2024-12-08) [YANKED]

Published from wrong branch.

Commits
  • 0bbf8b6 Merge release/13.x
  • 1359878 Merge branch 'main' into develop
  • 074b8aa Prepare for 13.0.0 (#84)
  • bd0b140 Fixup for 13.0.0-1
  • 38cc2b1 Prepare for 13.0.0-0 (#81)
  • e53229b Update README.md (#80)
  • c274405 Use const type parameters for narrower typing, especially for choices (#79)
  • 8649fe9 Strongly typed optsWithGlobals (#78)
  • bce4491 Merge remote-tracking branch 'origin/develop' into release/13.x
  • 5a90c8f Remove dummy if() blocks mirroring Jest it() tests (#77)
  • Additional commits viewable in compare view

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) and [@commander-js/extra-typings](https://github.com/commander-js/extra-typings). These dependencies needed to be updated together.

Updates `commander` from 12.1.0 to 13.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...v13.0.0)

Updates `@commander-js/extra-typings` from 12.1.0 to 13.0.0
- [Release notes](https://github.com/commander-js/extra-typings/releases)
- [Changelog](https://github.com/commander-js/extra-typings/blob/main/CHANGELOG.md)
- [Commits](commander-js/extra-typings@v12.1.0...v13.0.0)

---
updated-dependencies:
- dependency-name: commander
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: "@commander-js/extra-typings"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jan 1, 2025
Copy link

cloudflare-workers-and-pages bot commented Jan 1, 2025

Deploying json2struct with  Cloudflare Pages  Cloudflare Pages

Latest commit: 370fb34
Status: ✅  Deploy successful!
Preview URL: https://31d4dba2.json2struct.pages.dev
Branch Preview URL: https://dependabot-npm-and-yarn-mult.json2struct.pages.dev

View logs

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.

0 participants