Closed lholmquist closed 5 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 89.54%. Comparing base (
882fba2
) to head (9328d96
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade commander from 11.0.0 to 12.0.0.
:information_source: 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 **4 versions** ahead of your current version. - The recommended version was released **a month ago**, on 2024-02-03.
Release notes
Package name: commander
Added
.addHelpOption()
as another way of configuring built-in help option (#2006).helpCommand()
for configuring built-in help command (#2087)Fixed
passThroughOptions
constraints when using.addCommand
and throw if parent command does not have.enablePositionalOptions()
enabled (#1937)Changed
.storeOptionsAsProperties()
after setting an option value (#1928)@ api private
with documented@ private
(#1949).addHelpCommand()
now takes a Command (passing string or boolean still works as before but deprecated) (#2087)Deprecated
.addHelpCommand()
passing string or boolean (use.helpCommand()
or pass a Command) (#2087)Removed
program
export instead) (#2017)Migration Tips
global program
If you are using the deprecated default import of the global Command object, you need to switch to using a named import (or create a new
Command
).option and command clashes
A couple of configuration problems now throw an error, which will pick up issues in existing programs:
Added
.addHelpOption()
as another way of configuring built-in help option (#2006).helpCommand()
for configuring built-in help command (#2087)Changed
.addHelpCommand()
now takes a Command (passing string or boolean still works as before but deprecated) (#2087)Deprecated
.addHelpCommand()
passing string or boolean (use.helpCommand()
or pass a Command) (#2087)Fixed
passThroughOptions
constraints when using.addCommand
and throw if parent command does not have.enablePositionalOptions()
enabled (#1937)Changed
.storeOptionsAsProperties()
after setting an option value (#1928)@ api private
with documented@ private
(#1949)Removed
program
export instead) (#2017)Migration Tips
global program
If you are using the deprecated default import of the global Command object, you need to switch to using a named import (or create a new
Command
).option and command clashes
A couple of configuration problems now throw an error, which will pick up issues in existing programs:
Fixed
OptionValueSource
to allow any string, to match supported use of custom sources (#1983)Command.version()
can also be used as getter (#1982)Commands.executableDir()
, for when not configured (#1965)Added
registeredArguments
property onCommand
with the array of definedArgument
(likeCommand.options
forOption
) (#2010)envVar
,presetArg
(#2019)argChoices
,defaultValue
,defaultValueDescription
(#2019)Changed
Deprecated
Command._args
was private anyway, but now available asregisteredArguments
(#2010)Fixed
Changed
Commit messages
Package name: commander
**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](https://app.snyk.io/org/nodeshift-agg/project/53f94480-e7ae-41d2-985c-270fae345664?utm_source=github&utm_medium=referral&page=upgrade-pr) 🛠 [Adjust upgrade PR settings](https://app.snyk.io/org/nodeshift-agg/project/53f94480-e7ae-41d2-985c-270fae345664/settings/integration?utm_source=github&utm_medium=referral&page=upgrade-pr) 🔕 [Ignore this dependency or unsubscribe from future upgrade PRs](https://app.snyk.io/org/nodeshift-agg/project/53f94480-e7ae-41d2-985c-270fae345664/settings/integration?pkg=commander&utm_source=github&utm_medium=referral&page=upgrade-pr#auto-dep-upgrades)