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 command-line-args from 4.0.7 to 5.2.1 #17

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

Conversation

lirantal
Copy link
Owner

@lirantal lirantal commented Feb 5, 2023

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to upgrade command-line-args from 4.0.7 to 5.2.1.

ℹ️ 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 12 versions ahead of your current version.
  • The recommended version was released a year ago, on 2022-01-29.
Release notes
Package name: command-line-args
  • 5.2.1 - 2022-01-29

    5.2.1

  • 5.2.0 - 2021-07-29

    New features since v5.1.3

  • 5.1.3 - 2021-07-12

    5.1.3

  • 5.1.2 - 2021-07-11

    5.1.2

  • 5.1.1 - 2019-03-31

    5.1.1

  • 5.1.0 - 2019-03-24

    New features since v5.0.2

    Library rewritten using ECMAScript Modules to facilitate use with rollup and --experimental-modules. Fixes #99. This is a non-functional change - the library API and functionality has not changed.

  • 5.0.2 - 2018-02-07

    5.0.2

  • 5.0.1 - 2018-01-19

    5.0.1

  • 5.0.0 - 2018-01-17

    Breaking changes from v4.0.7

    • Unknown values now throw an exception (UNKNOWN_VALUE) by default in the same way unknown options do. Command-line-args is now strict by default - all options and values must be accounted for in the option definitions.
      • An example of an unknown value is the arg 5 in the command --verbose 5 where verbose is defined as a Boolean.
      • "Strict by default" behaviour can be disabled using either partial or stopAtFIrstUnknown parse options.
    • Setting a singular, non-multiple option more than once (e.g. --help --help) now throws an ALREADY_SET exception.
    • The multiple error names (NAME_MISSING, INVALID_TYPE etc) thrown by commandLineArgs in the case of an invalid definition have been consolidated to just one error name: INVALID_DEFINITIONS. Given broken option definitions are a programmer error they'd never be handled anyway, making the various names pointless.

    New documentation

    Wiki introduced.

    New parse features

    • stopAtFirstUnknown
    • camelCase
    • the UNKNOWN_OPTION exception now has a optionName property containing the arg that specified an unknown option, e.g. --one
    • the ALREADY_SET exception has a optionName property containing the option name that has already been set, e.g. one
    • the UNKNOWN_VALUE exception has a value property containing the unknown value, e.g. 5

    New option definition features

    Bug fixes

    • #67 unknown "--option=value notation" value consumed as defaultOption
    • #68 unknown --option=value arg split when defaultOption set

    Upgrade notes

    No API changes were introduced in v5.0.0 - it is backward-compatible. If you're comfortable with the new version throwing exceptions on unknown values, you are safe to upgrade without code change.

  • 5.0.0-alpha.2 - 2018-01-17
  • 5.0.0-alpha.1 - 2018-01-16
  • 5.0.0-alpha.0 - 2018-01-15
  • 4.0.7 - 2017-08-09
from command-line-args GitHub release notes
Commit messages
Package name: command-line-args
  • bfc3d9d 5.2.1
  • e14b9bb update CI, deps and dates
  • f68a854 Merge branch 'sblackstone-allow-default-option-false'
  • 62db1ea additional testing for duplicate defaultOptions
  • 8920ca5 Allow for defaultOption to be set to false
  • 78bc342 5.2.0
  • f6b9735 update docs
  • f7df343 revert to rollup v1.7.4 for Node.js v4 compatibility
  • cff71b1 upgrade rollup and jsdoc-to-markdown
  • 654bbba Node.js 4.x compatibility
  • e98c7be CR fixes
  • 19bd60a Support case insensitive command line options
  • e6cc2e3 5.1.3
  • ffd8dab revert array-back module to version 3
  • 802245d 5.1.2
  • 2735086 update CI
  • 3cd4a43 upgrade deps, dates and CI
  • b07cb35 5.1.1
  • e28c9b0 use .indexOf instead of .includes for node v4 compatibility
  • b9860f4 add tests and support for '--exec='
  • 62cca98 Merge branch 'parse-correctly-when-eval-option' of https://github.com/zawataki/command-line-args into zawataki-parse-correctly-when-eval-option
  • f87d7ba Merge pull request #100 from zawataki/master
  • 3da987f Parse correctly when Node runs with --eval or -e
  • e88e500 Make git ignore node_modules directory

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

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