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

[Snyk] Upgrade commander from 6.2.1 to 9.3.0 #85

Merged
merged 1 commit into from Aug 18, 2022

Conversation

snyk-bot
Copy link
Contributor

Snyk has created this PR to upgrade commander from 6.2.1 to 9.3.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


Warning: This is a major version upgrade, and may be a breaking change.

  • The recommended version is 19 versions ahead of your current version.
  • The recommended version was released a month ago, on 2022-05-28.
Release notes
Package name: commander
  • 9.3.0 - 2022-05-28

    Added

    • .summary() for a short summary to use instead of description when listing subcommands in help (#1726)
    • Option.implies() to set other option values when the option is specified (#1724)
    • updated Chinese README with 9.x changes (#1727)

    Fixed

    • TypeScript: add string[] to .options() default value parameter type for use with variadic options (#1721)

    Deprecated

    • multi-character short option flag (e.g. -ws) (#1718)
  • 9.2.0 - 2022-04-15

    Added

    • conditional export of 'types' for upcoming TypeScript module resolution (#1703)
    • example file showing two ways to add global options to subcommands (#1708)

    Fixed

    • detect option conflicts in parent commands of called subcommand (#1710)

    Changed

    • replace deprecated String.prototype.substr (#1706)
  • 9.1.0 - 2022-03-18

    Added

    • Option .conflicts() to set conflicting options which can not be specified together (#1678)
    • (developer) CodeQL configuration for GitHub Actions (#1698)
  • 9.0.0 - 2022-01-29

    Added

    • simpler ECMAScript import (#1589)
    • Option.preset() allows specifying value/arg for option when used without option-argument (especially optional, but also boolean option) (#1652)
    • .executableDir() for custom search for subcommands (#1571)
    • throw with helpful message if pass Option to .option() or .requiredOption() (#1655)
    • .error() for generating errors from client code just like Commander generated errors, with support for .configureOutput (), .exitOverride(), and .showHelpAfterError() (#1675)
    • .optsWithGlobals() to return merged local and global options (#1671)

    Changed

    • Breaking: Commander 9 requires Node.js v12.20.0 or higher
    • update package-lock.json to lockfile@2 format (#1659)
    • showSuggestionAfterError is now on by default (#1657)
    • Breaking: default value specified for boolean option now always used as default value (see .preset() to match some previous behaviours) (#1652)
    • default value for boolean option only shown in help if true/false (#1652)
    • use command name as prefix for subcommand stand-alone executable name (with fallback to script name for backwards compatibility) (#1571)
    • allow absolute path with executableFile (#1571)
    • removed restriction that nested subcommands must specify executableFile (#1571)
    • TypeScript: allow passing readonly string array to .choices() (#1667)
    • TypeScript: allow passing readonly string array to .parse(), .parseAsync(), .aliases() (#1669)

    Fixed

    • option with optional argument not supplied on command line now works when option already has a value, whether from default value or from previous arguments (#1652)

    Removed

    • Breaking: removed internal fallback to require.main.filename when script not known from arguments passed to .parse()
      (can supply details using .name(), and .executableDir() or executableFile) (#1571)
  • 9.0.0-1 - 2022-01-14

    Added

    • .error() for generating errors from client code just like Commander generated errors, with support for .configureOutput(), .exitOverride(), and .showHelpAfterError() (#1675)
    • .optsWithGlobals() to return merged local and global options (#1671)
  • 9.0.0-0 - 2021-12-22

    Added

    • simpler ECMAScript import (#1589)
    • Option.preset() allows specifying value/arg for option when used without option-argument (especially optional, but also boolean option) (#1652)
    • .executableDir() for custom search for subcommands (#1571)
    • throw with helpful message if pass Option to .option() or .requiredOption() (#1655)

    Changed

    • Breaking: Commander 9 requires Node.js v12.20.0 or higher
    • update package-lock.json to lockfile@2 format (#1659)
    • showSuggestionAfterError is now on by default (#1657)
    • Breaking: default value specified for boolean option now always used as default value (see .preset() to match some previous behaviours) (#1652)
    • default value for boolean option only shown in help if true/false (#1652)
    • use command name as prefix for subcommand stand-alone executable name (with fallback to script name for backwards compatibility) (#1571)
    • allow absolute path with executableFile (#1571)
    • removed restriction that nested subcommands must specify executableFile (#1571)

    Fixed

    • option with optional argument not supplied on command line now works when option already has a value, whether from default value or from previous arguments (#1652)

    Removed

    • Breaking: removed internal fallback to require.main.filename when script not known from arguments passed to .parse() (can supply details using .name(), and .executableDir() or executableFile) (#1571)
  • 8.3.0 - 2021-10-22

    Added

    • .getOptionValueSource() and .setOptionValueWithSource(), where expected values for source are one of 'default', 'env', 'config', 'cli' (#1613)

    Deprecated

    • .command('*'), use default command instead (#1612)
    • on('command:*'), use .showSuggestionAfterError() instead (#1612)
  • 8.2.0 - 2021-09-10

    Added

    • .showSuggestionAfterError() to show suggestions after unknown command or unknown option (#1590)
    • add Option support for values from environment variables using .env() (#1587)

    Changed

    • show error for unknown global option before subcommand (rather than just help) (#1590)

    Removed

    • TypeScript declaration of unimplemented Option method argumentRejected
  • 8.1.0 - 2021-07-27

    Added

    • .copyInheritedSettings() (#1557)
    • update Chinese translations for Commander v8 (#1570)
    • Argument methods for .argRequired() and .argOptional() (#1567)
  • 8.0.0 - 2021-06-25
    Read more
  • 8.0.0-2 - 2021-06-06
  • 8.0.0-1 - 2021-05-31
  • 8.0.0-0 - 2021-05-22
  • 7.2.0 - 2021-03-21
  • 7.1.0 - 2021-02-15
  • 7.0.0 - 2021-01-15
  • 7.0.0-2 - 2020-12-14
  • 7.0.0-1 - 2020-11-21
  • 7.0.0-0 - 2020-10-25
  • 6.2.1 - 2020-12-14
from commander GitHub release notes
Commit messages
Package name: commander
  • f2aec26 Prepare for 9.3.0
  • e89eca8 chore: Included githubactions in the dependabot config
  • 3103c6b Add more tests for implies (#1730)
  • 1bab84c Add test for Option passed to wrong routines (#1729)
  • 4094e22 chore: Set permissions for GitHub actions
  • b2842dc update chinese readme (#1727)
  • cc2db5b Add optional summary for short form of subcommand description. (#1726)
  • d660967 Add Option.implies() (#1724)
  • 1b492d9 Add string[] to options defaultValue type (#1721)
  • 06cf751 ci: add nodejs18 as it is released
  • a80b984 Rework example to avoid graphql warnings (#1719)
  • acbbe18 Deprecate multi-character short flags (#1718)
  • 6c26370 Add link for 9.2.0 changes
  • 9864529 Add another PR to CHANGELOG
  • b77a0e9 Prepare for 9.2.0
  • bf205d1 Check for conflicts in parent commands (#1711)
  • 7d7a674 Clarify option arguments (#1709)
  • 40e67bc Add example for "global" options (#1708)
  • 961c45e refactor: replace deprecated String.prototype.substr()
  • 8cbd082 Add `"types"` to `"exports"` (#1704)
  • 5bddedf Update CHANGELOG and version for 9.1.0
  • 0e29b3d Fix the typo
  • 019499b Remove low-value argument test (#1701)
  • 1d27078 Add extended conflicts example (#1700)

Compare


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

@ovhemert ovhemert merged commit a716e82 into master Aug 18, 2022
@ovhemert ovhemert deleted the snyk-upgrade-882047454878bbc9167b5d53427d92e2 branch August 18, 2022 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants