[Snyk] Upgrade command-line-args from 4.0.7 to 5.2.0 #141
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade command-line-args from 4.0.7 to 5.2.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.
Release notes
Package name: command-line-args
New features since v5.1.3
options.caseInsensitive
, see #116 and the docs.5.1.3
5.1.2
5.1.1
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
5.0.1
Breaking changes from v4.0.7
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.5
in the command--verbose 5
where verbose is defined as aBoolean
.partial
orstopAtFIrstUnknown
parse options.--help --help
) now throws anALREADY_SET
exception.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
UNKNOWN_OPTION
exception now has aoptionName
property containing the arg that specified an unknown option, e.g.--one
ALREADY_SET
exception has aoptionName
property containing the option name that has already been set, e.g.one
UNKNOWN_VALUE
exception has avalue
property containing the unknown value, e.g.5
New option definition features
Bug fixes
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
Commit messages
Package name: command-line-args
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