[Snyk] Upgrade commander from 2.11.0 to 8.0.0 #4
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 commander from 2.11.0 to 8.0.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: commander
-
8.0.0 - 2021-06-25
- supports default value for optional command-arguments (#1508)
- supports custom processing function (#1508)
- client typing of
- the number of command-arguments is checked for programs without an action handler (#1502)
- refactor and simplify TypeScript declarations (with no default export) (#1520)
- Breaking:
- Breaking: Commander 8 requires Node.js 12 or higher (#1500)
- Breaking:
- Breaking: TypeScript declaration for
- refactor
- remove help suggestion from "unknown command" error message (see
- update dependencies
- second parameter of
- (use new
- Breaking: TypeScript declaration for default export of global
- (still available as named
-
8.0.0-2 - 2021-06-06
- custom argument processing function also called without action handler (only with action handler in v8.0.0-0) (#1529)
- remove help suggestion from "unknown command" error message (see
-
8.0.0-1 - 2021-05-31
- client typing of
- refactor
- update dependencies
-
8.0.0-0 - 2021-05-22
- supports default value for optional command-arguments (#1508)
- supports custom processing function (#1508)
- the number of command-arguments is checked for programs without an action handler (#1502)
- refactor and simplify TypeScript declarations (with no default export) (#1520)
- Breaking:
- Breaking: Commander 8 requires Node.js 12 or higher (#1500)
- Breaking:
- Breaking: TypeScript declaration for
- second parameter of
- (use new
- Breaking: TypeScript declaration for default export of global
- (still available as named
-
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
- some tests failed if directory path included a space (1390)
-
6.2.0 - 2020-10-25
-
6.1.0 - 2020-08-28
-
6.0.0 - 2020-07-19
-
6.0.0-0 - 2020-06-20
-
5.1.0 - 2020-04-25
-
5.0.0 - 2020-03-14
-
5.0.0-4 - 2020-03-03
-
5.0.0-3 - 2020-02-20
-
5.0.0-2 - 2020-02-11
-
5.0.0-1 - 2020-02-08
-
5.0.0-0 - 2020-02-01
-
4.1.1 - 2020-02-03
-
4.1.0 - 2020-01-06
-
4.0.1 - 2019-11-11
-
4.0.0 - 2019-11-01
-
4.0.0-1 - 2019-10-08
-
4.0.0-0 - 2019-10-01
-
3.0.2 - 2019-09-26
-
3.0.1 - 2019-08-30
-
3.0.0 - 2019-08-09
-
3.0.0-0 - 2019-07-27
-
2.20.3 - 2019-10-11
-
2.20.1 - 2019-09-28
-
2.20.0 - 2019-04-03
-
2.19.0 - 2018-10-08
-
2.18.0 - 2018-09-07
-
2.17.1 - 2018-08-07
-
2.17.0 - 2018-08-04
-
2.16.0 - 2018-06-29
-
2.15.1 - 2018-03-20
-
2.15.0 - 2018-03-08
-
2.14.1 - 2018-02-07
-
2.14.0 - 2018-02-06
-
2.13.0 - 2018-01-11
-
2.12.2 - 2017-11-28
-
2.12.1 - 2017-11-23
-
2.12.0 - 2017-11-22
-
2.11.0 - 2017-07-03
from commander GitHub release notesAdded
.argument(name, description)for adding command-arguments (#1490).createArgument()factory method (#1497).addArgument()(#1490)Argumentsupports.choices()(#1525).showHelpAfterError()to display full help or a custom message after an error (#1534).hook()with support for'preAction'and'postAction'callbacks (#1514).opts()return type using TypeScript generics (#1539).getOptionValue()and.setOptionValue()(#1521)Changed
.parseAsync()is now declared asasync(#1513)Helpmethod.visibleArguments()returns array ofArgument(#1490)CommanderErrorcodecommander.invalidOptionArgumentrenamedcommander.invalidArgument(#1508).addTextHelp()callback no longer allows result ofundefined, now juststring(#1516)index.tabinto a file per class (#1522).showHelpAfteError()) (#1534)Commandproperty.arginitialised to empty array (was previously undefined) (#1529)Deprecated
cmd.description(desc, argDescriptions)for adding argument descriptions (#1490).argument(name, description)instead)InvalidOptionArgumentError(replaced byInvalidArgumentError) (#1508)Removed
Commandobject (#1520)programexport)Migration Tips
If you have a simple program without an action handler, you will now get an error if
there are missing command-arguments.
$ node trivial.js error: missing required argument 'file'If you want to show the help in this situation, you could check the arguments before parsing:
Or, you might choose to show the help after any user error:
Added
.showHelpAfterError()to display full help or a custom message after an error (#1534)Changed
.showHelpAfteError()) (#1534)Commandproperty.arginitialised to empty array (was previously undefined) (#1529)Added
.addArgument()(#1490)Argumentsupports.choices()(#1525).opts()return type using TypeScript generics (#1539)Changed
index.tabinto a file per class (#1522)Added
.getOptionValue()and.setOptionValue()(#1521).hook()with support for'preAction'and'postAction'callbacks (#1514).argument(name, description)for adding command-arguments (#1490).createArgument()factory method (#1497)Changed
.parseAsync()is now declared asasync(#1513)Helpmethod.visibleArguments()returns array ofArgument(#1490)CommanderErrorcodecommander.invalidOptionArgumentrenamedcommander.invalidArgument(#1508).addTextHelp()callback no longer allows result ofundefined, now juststring(#1516)Deprecated
cmd.description(desc, argDescriptions)for adding argument descriptions (#1490).argument(name, description)instead)InvalidOptionArgumentError(replaced byInvalidArgumentError) (#1508)Removed
Commandobject (#1520)programexport)Read more
Read more
Read more
Read more
Read more
Fixed
Commit messages
Package name: commander
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