codeboost
codeboost copied to clipboard
Update commander → 11.1.0 (unknown)
Welcome to Depfu 👋
This is one of the first three pull requests with dependency updates we've sent your way. We tried to start with a few easy patch-level updates. Hopefully your tests will pass and you can merge this pull request without too much risk. This should give you an idea how Depfu works in general.
After you merge your first pull request, we'll send you a few more. We'll never open more than seven PRs at the same time so you're not getting overwhelmed with updates.
Let us know if you have any questions. Thanks so much for giving Depfu a try!
Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳️ commander (^10.0.0 → ^11.1.0) · Repo · Changelog
Release Notes
11.1.0
Fixed
- TypeScript: update
OptionValueSourceto allow any string, to match supported use of custom sources (#1983)- TypeScript: add that
Command.version()can also be used as getter (#1982)- TypeScript: add null return type to
Commands.executableDir(), for when not configured (#1965)- subcommands with an executable handler and only a short help flag are now handled correctly by the parent's help command (#1930)
Added
registeredArgumentsproperty onCommandwith the array of definedArgument(likeCommand.optionsforOption) (#2010)- TypeScript declarations for Option properties:
envVar,presetArg(#2019)- TypeScript declarations for Argument properties:
argChoices,defaultValue,defaultValueDescription(#2019)- example file which shows how to configure help to display any custom usage in the list of subcommands (#1896)
Changed
- (developer) refactor TypeScript configs for multiple use-cases, and enable checks in JavaScript files in supporting editors (#1969)
Deprecated
Command._argswas private anyway, but now available asregisteredArguments(#2010)
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 37 commits:
Update CHANGELOG for 11.1.0 (#2025)Merge branch 'fix/grammar' of github.com:aweebit/commander.js into aweebit-fix/grammarRefactor headings (#2028)Comment out new misuse check until a major version (#2026)Refactor type-checking setup (#1969)Add more Option and Argument properties to typings (#2019)Replace {any} with {*} as native JSDoc (#2015)Revert factory function reexport (#2014)Explicitly export factory functions (#2013)Bump actions/checkout from 3 to 4 (#2012)Add public Arguments property (#2010)Work-around bug in Jest (#2011)Rework option inline doc (#2009)Move Jest configuration to config file (#2005)Make OptionValueSource a string with well-known values for auto-complete. (#1983)Types for version getter (#1982)Refactor to wrap invalid argument (#1977)Improve chain variable name (#1958)Use _getCommandAndAncestors() less aggressivelyUse _getCommandAndAncestors() consistentlyIntroduce _getCommandAndAncestors()Call storeOptionsAsProperties() with appropriate parameter value in testAdd test for storeOptionsAsProperties() after setting option valueThrow error on options-as-properties config after setting option valuesFix help for commands with executable handler & only a short help flagRevert "Fix version() parameter type"Do not use undefined long help option flag in legacy codeChange initial variable values in test for better error messagesFix version() parameter typeFix executableDir() return typeImprove docs about inherited settingsAdd note on inherited settings to docsWatch for npm package updates with dependabotFix indentationFix grammar in docsBump extra Commander version number in lock file (#1905)Add example of displaying custom usage in subcommand list (#1896)
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.
All Depfu comment commands
- @depfu rebase
- Rebases against your default branch and redoes this update
- @depfu recreate
- Recreates this PR, overwriting any edits that you've made to it
- @depfu merge
- Merges this PR once your tests are passing and conflicts are resolved
- @depfu cancel merge
- Cancels automatic merging of this PR
- @depfu close
- Closes this PR and deletes the branch
- @depfu reopen
- Restores the branch and reopens this PR (if it's closed)
- @depfu pause
- Ignores all future updates for this dependency and closes this PR
- @depfu pause [minor|major]
- Ignores all future minor/major updates for this dependency and closes this PR
- @depfu resume
- Future versions of this dependency will create PRs again (leaves this PR as is)
Code Climate has analyzed commit 93cb63cd and detected 0 issues on this pull request.
View more on Code Climate.
Apply Sweep Rules to your PR?
- [ ] Apply: Leftover TODOs in the code should be handled.
- [ ] Apply: All new business logic should have corresponding unit tests in the tests/ directory.
- [ ] Apply: Any clearly inefficient or repeated code should be optimized or refactored.
The inspection completed: No new issues
This PR is stale because it has been open 30 days with no activity.