[Snyk] Upgrade command-line-args from 4.0.7 to 5.2.1 #17
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.
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.
Release notes
Package name: command-line-args
5.2.1
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.
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:![](https://camo.githubusercontent.com/493630114a6009941a77ffb847bf64a2118fbb40a2e01817c1957c1d46018d8c/68747470733a2f2f6170692e7365676d656e742e696f2f76312f706978656c2f747261636b3f646174613d65794a33636d6c305a55746c65534936496e4a79576d785a634564485932527954485a7362306c596430645563566734576b4652546e4e434f5545774969776959573576626e6c746233567a535751694f6949324e475a694d4451774f4330315a446b784c5451784f4441744f44426b597930774d32526b5a5749334e6a6b795a4755694c434a6c646d567564434936496c425349485a705a58646c5a434973496e42796233426c636e52705a584d694f6e736963484a4a5a434936496a59305a6d49774e4441344c54566b4f5445744e4445344d4330344d47526a4c54417a5a47526c596a63324f544a6b5a534a3966513d3d)
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs