Open
Conversation
Snyk has created this PR to upgrade commander from 12.1.0 to 14.0.0. See this package in npm: commander See this project in Snyk: https://app.snyk.io/org/sherfeyinv/project/e89bf1d2-0f14-40c3-bdc6-633661922a5c?utm_source=github&utm_medium=referral&page=upgrade-pr
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 12.1.0 to 14.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.
The recommended version is 4 versions ahead of your current version.
The recommended version was released 3 months ago.
Issues fixed by the recommended upgrade:
SNYK-JS-MARKDOWNIT-12143043
Release notes
Package name: commander
-
14.0.0 - 2025-05-18
- support for groups of options and commands in the help using low-level
- support for unescaped negative numbers as option-arguments and command-arguments (#2339)
- TypeScript: add
- remove bogus leading space in help when option has default value but not a description (#2348)
- Breaking: Commander 14 requires Node.js v20 or higher
- internal refactor of
-
13.1.0 - 2025-01-20
- support a pair of long option flags to allow a memorable shortened flag, like
-
13.0.0 - 2024-12-30
- support multiple calls to
- add
- style routines like
- color related support in
- Help property for
- Help methods for
- Breaking: excess command-arguments cause an error by default, see migration tips (#2223)
- Breaking: throw during Option construction for unsupported option flags, like multiple characters after single
- Breaking: throw on multiple calls to
- TypeScript: include implicit
- Breaking:
-
13.0.0-0 - 2024-12-06
- style routines like
- color related support in
- Help property for
- Help methods for
- Breaking: excess command-arguments cause an error by default, see migration tips (#2223)
- Breaking: throw during Option construction for unsupported option flags, like multiple characters after single
- TypeScript: include implicit
- Breaking:
-
12.1.0 - 2024-05-18
- auto-detect special node flags
- prefix require of Node.js core modules with
- format source files with Prettier (#2180)
- switch from StandardJS to directly calling ESLint for linting (#2153)
- extend security support for previous major version of Commander (#2150)
- removed unimplemented Option.fullDescription from TypeScript definition (#2191)
from commander GitHub release notesAdded
.helpGroup()onOptionandCommand, and higher-level
.optionsGroup()and.commandsGroup()which can be used in chaining way to specify group title for following options/commands (#2328)
parseArgproperty toArgumentclass (#2359)Fixed
.configureOutput()now makes copy of settings instead of modifying in-place, fixing side-effects (#2350)Changed
Helpclass adding.formatItemList()and.groupItems()methods (#2328)Added
.option('--ws, --workspace')(#2312)Added
.parse()with default settings (#2299).saveStateBeforeParse()and.restoreStateBeforeParse()for use by subclasses (#2299)styleTitle()to add color to help using.configureHelp()or Help subclass (#2251).configureOutput()forgetOutHasColors(),getErrHasColors(), andstripColor()(#2251)minWidthToWrap(#2251)displayWidth(),boxWrap(),preformatted()et al (#2251)Changed
-(#2270).parse()ifstoreOptionsAsProperties: true(#2299)thisin parameters for action handler callback (#2197)Deleted
Help.wrap()refactored intoformatItem()andboxWrap()(#2251)Migration Tips
Excess command-arguments
It is now an error for the user to specify more command-arguments than are expected. (
allowExcessArgumentsis now false by default.)Old code:
Now shows an error:
You can declare the expected arguments. The help will then be more accurate too. Note that declaring
new arguments will change what is passed to the action handler.
Or you could suppress the error, useful for minimising changes in legacy code.
Added
styleTitle()to add color to help using.configureHelp()or Help subclass (#2251).configureOutput()forgetOutHasColors(),getErrHasColors(), andstripColor()(#2251)minWidthToWrap(#2251)displayWidth(),boxWrap(),preformatted()et al (#2251)Changed
-(#2270)thisin parameters for action handler callback (#2197)Deleted
Help.wrap()refactored intoformatItem()andboxWrap()(#2251)Migration Tips
Excess command-arguments
It is now an error for the user to specify more command-arguments than are expected. (
allowExcessArgumentsis now false by default.)Old code:
Now shows an error:
You can declare the expected arguments. The help will then be more accurate too. Note that declaring
new arguments will change what is passed to the action handler.
Or you could suppress the error, useful for minimising changes in legacy code.
Added
node --evalandnode --printwhen call.parse()with no arguments (#2164)Changed
node:(#2170)Removed
Important
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: