Update commander to the latest version 🚀
Version 2.10.0 of commander just got published.
| Dependency | commander |
|---|---|
| Current Version | 2.9.0 |
| Type | dependency |
The version 2.10.0 is not covered by your current version range.
Without accepting this pull request your project will work just like it did before. There might be a bunch of new features, fixes and perf improvements that the maintainers worked on for you though.
I recommend you look into these changes and try to get onto the latest version of commander. Given that you have a decent test suite, a passing build is a strong indicator that you can take advantage of these changes by merging the proposed change into your project. Otherwise this branch is a great starting point for you to work on the update.
Release Notes
Release V2.10.0- Update .travis.yml. drop support for older node.js versions.
- Fix require arguments in README.md
- On SemVer you do not start from 0.0.1
- Add missing semi colon in readme
- Add save param to npm install
- node v6 travis test
- Update Readme_zh-CN.md
- Allow literal '--' to be passed-through as an argument
- Test subcommand alias help
- link build badge to master branch
- Support the alias of Git style sub-command
- added keyword commander for better search result on npm
- Fix Sub-Subcommands
- test node.js stable
- Fixes TypeError when a command has an option called
--description - Update README.md to make it beginner friendly and elaborate on the difference between angled and square brackets.
- Add chinese Readme file
Commits
The new version differs by 50 commits.
8870675version bump 2.10.098e66bc#330 make .option defaultValue and fn and .version flag optionald674384Merge pull request #639 from abetomo/update_version_to_be_tested45ce032Remove io.jsb888282Add version 55ac0439Do not test older versions579f670Do not test older versions4c7c1cfAdd new version8049258Do not test older versions9bfc4ebMerge pull request #610 from xcatliu/patch-1648629fMerge pull request #619 from Nepomuceno/patch-120493bbOn SemVer you do not start from 0.0.18a4f1adFix require arguments in README.md3367806Merge pull request #585 from simeg/simeg-patch-1ff501a1Merge pull request #593 from junajan/patch-1
There are 50 commits in total.
See the full diff
Not sure how things should work exactly?
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot :palm_tree:
Version 2.11.0 just got published.
Update to this version instead 🚀
Release Notes
Release V2.11.0- Fix help section order and padding (#652)
- feature: support for signals to subcommands (#632)
- Fixed #37, --help should not display first (#447)
- Fix translation errors. (#570)
- Add package-lock.json
- Remove engines
- Upgrade package version
- Prefix events to prevent conflicts between commands and options (#494)
- Removing dependency on graceful-readlink
- Support setting name in #name function and make it chainable
- Add .vscode directory to .gitignore (Visual Studio Code metadata)
- Updated link to ruby commander in readme files
Commits
The new version differs by 13 commits.
30535a6Version bump 2.11.0 (#657)14e5738Fix help section order and padding (#652)1e4c689feature: support for signals to subcommands (#632)3c2fd5cFixed #37, --help should not display first (#447)f2eb7e3Fix translation errors. (#570)6106f10Add package-lock.json14c2c81Remove enginesb00b6aaUpgrade package version78c563dPrefix events to prevent conflicts between commands and options (#494)85450a0Removing dependency on graceful-readlink57bc3baSupport setting name in #name function and make it chainableadd00adAdd .vscode directory to .gitignore (Visual Studio Code metadata)5c97707Updated link to ruby commander in readme files
See the full diff
Version 2.12.0 just got published.
Update to this version instead 🚀
Release Notes
v2.12.0- add attributeName() method to Option objects
- Documentation updated for options with --no prefix
- typings:
outputHelptakes a string as the first parameter - typings: use overloads
- feat(typings): update to match js api
- Print default value in option help
- Fix translation error
- Fail when using same command and alias (#491)
- feat(typings): add help callback
- fix bug when description is add after command with options (#662)
- Format js code
- Rename History.md to CHANGELOG.md (#668)
- feat(typings): add typings to support TypeScript (#646)
- use current node
Commits
The new version differs by 15 commits.
7e22f38version bump 2.12.00060ddeadd attributeName() method to Option objectsd359b75Documentation updated for options with --no prefix0ae8353typings:outputHelptakes a string as the first parameterc5511a2typings: use overloads7a122e7feat(typings): update to match js apid9abf56Print default value in option helpb92a7c6Fix translation error2f07e29Fail when using same command and alias (#491)df86179feat(typings): add help callback5c74431fix bug when description is add after command with options (#662)df3b529Format js codef249c85Rename History.md to CHANGELOG.md (#668)66dfb8cfeat(typings): add typings to support TypeScript (#646)90b7fefuse current node
See the full diff
Version 2.12.1 just got published.
Update to this version instead 🚀
Release Notes
v2.12.1- Move @types/node to dev dependency
Version 2.12.2 just got published.
Update to this version instead 🚀
Release Notes
v2.12.2- fix: typings are not shipped
Version 2.13.0 just got published.
Update to this version instead 🚀
Release Notes
v2.13.0- Do not print default for --no-
- remove trailing spaces in command help
- Update CI's Node.js to LTS and latest version
- typedefs: Command and Option types added to commander namespace
Commits
The new version differs by 8 commits.
291fbaaMerge pull request #748 from abetomo/version_bump_2.13.063f1ee9version bump 2.13.0f13ee18Do not print default for --no-ff712f1remove trailing spaces in command helpfefda77Merge pull request #713 from sveinburne/feature/enhanced-typedefsd812171Merge pull request #723 from abetomo/add_nodejs_version_to_ci_yml498ce71Update CI's Node.js to LTS and latest version965188ftypedefs: Command and Option types added to commander namespace
See the full diff
Version 2.14.0 just got published.
Update to this version instead 🚀
Commits
The new version differs by 16 commits.
de4af3aversion bump 2.14.0445e80eMerge pull request #761 from mojavelinux/register-on-version-onceba6592fonly register the option:version event oncef5abcdbMerge pull request #728 from sorohan/master06451e3Add missing semi-colons for linting.92d6e49Check if argv is set in array, instead of checking falseyf44fa3bAdd test for empty option on commandd5ac793Merge pull request #753 from mojavelinux/issue-560-version-option38f41bfMerge pull request #760 from mojavelinux/enable-eqeqeq-rulecdb7a95enable eqeqeq rule4c9b4b8resolves #754 add linter configuration to project37359eeresolves #560 respect custom name for version optione5d8f04Merge pull request #752 from mojavelinux/document-version-flag9cee324document how to override the version flag447ce8fMerge pull request #751 from mojavelinux/options-for-command
There are 16 commits in total.
See the full diff
Version 2.14.1 just got published.
Version 2.15.0 just got published.
Update to this version instead 🚀
Release Notes
v2.15.0- Update downloads badge to point to graph of downloads over time instead of duplicating link to npm
- Arguments description
Commits
The new version differs by 7 commits.
d8404f8Merge pull request #775 from abetomo/version_bump_2.15.0cb6f680version bump 2.15.05c880fcMerge pull request #772 from cheapsteak/patch-2956b9e5Update downloads badge to point to graph of downloadsc92ca1dMerge pull request #711 from cravler/args_description1d52048Merge branch 'master' into args_descriptionf226259Arguments description
See the full diff
Version 2.15.1 just got published.
Update to this version instead 🚀
Release Notes
v2.15.1fix #777
Released with [email protected]
Version 2.16.0 just got published.
Update to this version instead 🚀
Release Notes
v2.16.0- Remove Makefile and test/run (#821)
- Make 'npm test' run on Windows (#820)
- Add badge to display install size (#807)
- chore: cache node_modules (#814)
- chore: remove Node.js 4 (EOL), add Node.js 10 (#813)
- fixed typo in readme (#812)
- Fix types (#804)
- Update eslint to resolve vulnerabilities in lodash (#799)
- updated readme with custom event listeners. (#791)
- fix tests (#794)
Commits
The new version differs by 17 commits.
4cc348bMerge pull request #822 from abetomo/version_bump_2.16.08db14dbversion bump 2.16.01f9354fRemove Makefile andtest/run(#821)3f4f5caMake 'npm test' run on Windows (#820)3b8e519Merge pull request #807 from styfle/patch-177ffd4fMerge pull request #814 from DanielRuf/chore/cache-node-modules6889693chore: cache node_modulesff2f618Merge pull request #813 from DanielRuf/chore/remove-nodejs-4-add-nodejs-10d5c1d7dchore: remove Node.js 4 (EOL), add Node.js 10c05ed98Merge pull request #812 from yausername/fixReadme55ff22ffixed typo in readme2415089Add badge to display install size89edef0Fix types (#804)001d560Update eslint to resolve vulnerabilities in lodash988d09bMerge pull request #791 from yausername/master
There are 17 commits in total.
See the full diff
Version 2.17.1 just got published.
Update to this version instead 🚀
Release Notes
v2.17.1- Fix bug in command emit (#844)
Version 2.18.0 just got published.
Update to this version instead 🚀
Release Notes
v2.18.0Commits
The new version differs by 5 commits.
54b7f14version bump 2.18.0713db77Standardize help output (#853)af17996chmod 644 travis.yml8bcc493Merge pull request #849 from KillWolfVlad/feature/executeSubCommand-tsnodebf47dccadd support for execute typescript subcommand via ts-node
See the full diff
- The
dependencycommander was updated from2.9.0to2.19.0.
Update to this version instead 🚀
Release Notes for v2.19.0
Commits
The new version differs by 6 commits.
78b7dbdversion bump 2.19.06aafa20prefixed error messages with "error:"6c0c1f6removed newline above and below errorsb6549f2removed indentation from errors2c20e91removed newline after options and commands headers4c294c1Fix to change default value to string
See the full diff
- The
dependencycommander was updated from2.9.0to2.20.0.
Update to this version instead 🚀
Release Notes for v2.20.0
- fix: resolve symbolic links completely when hunting for subcommands (#935)
- Update index.d.ts (#930)
- Update Readme.md (#924)
- Remove --save option as it isn't required anymore (#918)
- Add link to the license file (#900)
- Added example of receiving args from options (#858)
- Added missing semicolon (#882)
- Add extension to .eslintrc (#876)
Commits
The new version differs by 18 commits.
3e8bf54Merge pull request #946 from abetomo/version_bump_2.20.01ffcbefversion bump 2.20.050922d8Merge pull request #935 from MarshallOfSound/fix-deep-sym-link-resolution994d24dfix: resolve symbol links until their are no more symbolic links291fc04Merge pull request #930 from kira1928/update-index.d.tsa469137some more fix.a679949Refine variable name. Use strict type definition instead ofe31bb8aUpdate index.d.ts4542306Merge pull request #924 from ForJing/patch-177bb580Update Readme.md68545afRemove --save option as it isn't required anymore82d0d0afix url :construction:cec57f5Add link to the license file :+1:d240081Update Readme.md03f7d38Added example of receiving args from options
There are 18 commits in total.
See the full diff
- The
dependencycommander was updated from2.9.0to3.0.0.
Update to this version instead 🚀
Release Notes for v3.0.0
- Add option to specify executable file name (#999)
- e.g.
.command('clone', 'clone description', { executableFile: 'myClone' })
- e.g.
- Change docs for
.commandto contrast action handler vs git-style executable. (#938 #990) - Breaking Change TypeScript to use overloaded function for
.command. (#938 #990) - Change to use straight quotes around strings in error messages (like 'this' instead of `this') (#915)
- Add TypeScript "reference types" for node (#974)
- Add support for hyphen as an option argument in subcommands (#697)
- Add support for a short option flag and its value to be concatenated for action handler subcommands (#599)
- e.g.
-p 80can also be supplied as-p80
- e.g.
- Add executable arguments to spawn in win32, for git-style executables (#611)
- e.g.
node --harmony myCommand.js clone
- e.g.
- Add parent command as prefix of subcommand in help (#980)
- Add optional custom description to
.version(#963)- e.g.
program.version('0.0.1', '-v, --vers', 'output the current version')
- e.g.
- Add
.helpOption(flags, description)routine to customise help flags and description (#963)- e.g.
.helpOption('-e, --HELP', 'read more information')
- e.g.
- Fix behavior of --no-* options (#795)
- can now define both
--fooand--no-foo - Breaking custom event listeners:
--no-fooon cli now emitsoption:no-foo(previouslyoption:foo) - Breaking default value: defining
--no-fooafter defining--fooleaves the default value unchanged (previously set it to false) - allow boolean default value, such as from environment (#987)
- can now define both
- Increment inspector port for spawned subcommands (#991)
- e.g.
node --inspect myCommand.js clone
- e.g.
Example Breaking Changes
The custom event for a negated option like --no-foo is option:no-foo (previously option:foo).
program
.option('--no-foo')
.on('option:no-foo', () => {
console.log('removing foo');
});When using TypeScript, adding a command does not allow an explicit undefined for an unwanted executable description (e.g. for a command with an action handler).
program
.command('action1', undefined, { noHelp: true }) // No longer valid
.command('action2', { noHelp: true }) // CorrectCommits
The new version differs by 104 commits.
3b0127bupdate Readme_zh-CN to v3.0.0 and modify some old translation problemsbfcd39aSet release date for 3.0.0d1469c0Bump version for release41d0bdbAdd explicit breaking notes (#1006)5b1b2feAdd links for issues (so work for direct viewing of CHANGELOG)fb56370Add Tidelift links (#1004)f743bf4Expand changelog for prereleasee5bce2fAdd #987 to CHANGELOGa9503bbAllow boolean default for flag option (#987)55e88dcAdd missing changes to v3.0.0 changelogfb00b0eMerge branch 'master' into release/3.0.0831d52fMerge pull request #999 from shadowspawn/feature/specifyExecutableFilea59e90fMerge pull request #998 from shadowspawn/feature/develop6d68637Increment inspector port for spawned subcommands (#991)facd66fAdd debugging note with issue for mixed action/executable
There are 104 commits in total.
See the full diff