This repository was archived by the owner on Oct 20, 2020. It is now read-only.
[Snyk] Upgrade commander from 2.15.1 to 4.1.1 #3
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.15.1 to 4.1.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: commander
-
4.1.1 - 2020-02-03
- TypeScript definition for
-
4.1.0 - 2020-01-06
- two routines to change how option values are handled, and eliminate name clashes with command properties (#933 #1102)
- see storeOptionsAsProperties and passCommandToAction in README
- Remove trailing blanks from wrapped help text (#1096)
- update dependencies
- extend security coverage for Commander 2.x to 2020-02-03
- improvements to README
- improvements to TypeScript definition documentation
- move old versions out of main CHANGELOG
- removed explicit use of
-
4.0.1 - 2019-11-11
- display help when requested, even if there are missing required options (#1091)
-
4.0.0 - 2019-11-01
- automatically wrap and indent help descriptions for options and commands (#1051)
- support for declaring required options with
- GitHub Actions support (#1027)
- translation links in README
- dev: switch tests from Sinon+Should to Jest with major rewrite of tests (#1035)
- call default subcommand even when there are unknown options (#1047)
- Breaking Commander is only officially supported on Node 8 and above, and requires Node 6 (#1053)
- Breaking keep command object out of program.args when action handler called (#1048)
- also, action handler now passed array of unknown arguments
- complain about unknown options when program argument supplied and action handler (#1049)
- this changes parameters to
- removed deprecated
- rework TypeScript declarations to bring all types into imported namespace (#1081)
-
4.0.0-1 - 2019-10-08
- support for declaring required options with
-
4.0.0-0 - 2019-10-01
- automatically wrap and indent help descriptions for options and commands (#1051)
- dev: work in progress GitHub Actions support (#1027)
- dev: switch tests from Sinon+Should to Jest with major rewrite of tests (#1035)
- call default subcommand even when there are unknown options (#1047)
- Breaking Commander is only officially supported on Node 8 and above (#1053)
- Breaking keep command object out of program.args when action handler called (#1048)
- also, action handler now passed array of unknown arguments
- complain about unknown options when program argument supplied and action handler (#1049)
- this changes parameters to
- removed deprecated
-
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
- Support Node.js 0.10 (Revert #1059)
-
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
from commander GitHub release notesFixed
.action()should include Promise for async ([#1157])Added
.parseAsyncto use instead of.parseif supply async action handlers (#806 #1118)Fixed
Changed
ts-nodein testsFixed
Added
.exitOverride()allows override of calls toprocess.exitfor additional error handling and to keep program running (#1040).requiredOptions()(#1071)Changed
Fixed
command:*event to include unknown argumentscustomFdsoption from call tochild_process.spawn(#1052)Migration Tips
Testing for no arguments
If you were previously using code like:
a partial replacement is:
Added
.requiredOptions()(#1071)Added
.exitOverride()allows override of calls toprocess.exitfor additional error handling and to keep program running (#1040)Changed
Fixed
command:*event to include unknown argumentscustomFdsoption from call tochild_process.spawn(#1052)Ran "npm unpublish [email protected]". There is no 2.20.2.
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