leizongmin / js-bright

一种更优雅的JavaScript异步流程控制方式。
Other
3 stars 0 forks source link

An in-range update of commander is breaking the build 🚨 #7

Open greenkeeper[bot] opened 6 years ago

greenkeeper[bot] commented 6 years ago

Version 2.13.0 of commander was just published.

Branch Build failing 🚨
Dependency commander
Current Version 2.12.2
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

commander is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details - ❌ **continuous-integration/travis-ci/push** The Travis CI build could not complete due to an error [Details](https://travis-ci.org/leizongmin/js-bright/builds/327562419?utm_source=github_status&utm_medium=notification)

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.

  • 291fbaa Merge pull request #748 from abetomo/version_bump_2.13.0
  • 63f1ee9 version bump 2.13.0
  • f13ee18 Do not print default for --no-
  • ff712f1 remove trailing spaces in command help
  • fefda77 Merge pull request #713 from sveinburne/feature/enhanced-typedefs
  • d812171 Merge pull request #723 from abetomo/add_nodejs_version_to_ci_yml
  • 498ce71 Update CI's Node.js to LTS and latest version
  • 965188f typedefs: Command and Option types added to commander namespace

See the full diff

FAQ and help There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).

Your Greenkeeper Bot :palm_tree:

greenkeeper[bot] commented 6 years ago

After pinning to 2.12.2 your tests are still failing. The reported issue might not affect your project. These imprecisions are caused by inconsistent test results.

greenkeeper[bot] commented 6 years ago

Version 2.14.0 just got published.

Your tests are still failing with this version. Compare the changes 🚨

Commits

The new version differs by 16 commits.

  • de4af3a version bump 2.14.0
  • 445e80e Merge pull request #761 from mojavelinux/register-on-version-once
  • ba6592f only register the option:version event once
  • f5abcdb Merge pull request #728 from sorohan/master
  • 06451e3 Add missing semi-colons for linting.
  • 92d6e49 Check if argv is set in array, instead of checking falsey
  • f44fa3b Add test for empty option on command
  • d5ac793 Merge pull request #753 from mojavelinux/issue-560-version-option
  • 38f41bf Merge pull request #760 from mojavelinux/enable-eqeqeq-rule
  • cdb7a95 enable eqeqeq rule
  • 4c9b4b8 resolves #754 add linter configuration to project
  • 37359ee resolves #560 respect custom name for version option
  • e5d8f04 Merge pull request #752 from mojavelinux/document-version-flag
  • 9cee324 document how to override the version flag
  • 447ce8f Merge pull request #751 from mojavelinux/options-for-command

There are 16 commits in total.

See the full diff

greenkeeper[bot] commented 6 years ago

Version 2.14.1 just got published.

Your tests are still failing with this version. Compare the changes 🚨

Commits

The new version differs by 2 commits.

See the full diff

greenkeeper[bot] commented 6 years ago

Version 2.15.0 just got published.

Your tests are still failing with this version. Compare the changes 🚨

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.

  • d8404f8 Merge pull request #775 from abetomo/version_bump_2.15.0
  • cb6f680 version bump 2.15.0
  • 5c880fc Merge pull request #772 from cheapsteak/patch-2
  • 956b9e5 Update downloads badge to point to graph of downloads
  • c92ca1d Merge pull request #711 from cravler/args_description
  • 1d52048 Merge branch 'master' into args_description
  • f226259 Arguments description

See the full diff

greenkeeper[bot] commented 6 years ago

Version 2.15.1 just got published.

Your tests are still failing with this version. Compare the changes 🚨

Release Notes v2.15.1

fix #777
Released with npm@5.6.0

Commits

The new version differs by 1 commits.

See the full diff

greenkeeper[bot] commented 6 years ago

Version 2.16.0 just got published.

Your tests are still failing with this version. Compare the changes 🚨

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.

  • 4cc348b Merge pull request #822 from abetomo/version_bump_2.16.0
  • 8db14db version bump 2.16.0
  • 1f9354f Remove Makefile and test/run (#821)
  • 3f4f5ca Make 'npm test' run on Windows (#820)
  • 3b8e519 Merge pull request #807 from styfle/patch-1
  • 77ffd4f Merge pull request #814 from DanielRuf/chore/cache-node-modules
  • 6889693 chore: cache node_modules
  • ff2f618 Merge pull request #813 from DanielRuf/chore/remove-nodejs-4-add-nodejs-10
  • d5c1d7d chore: remove Node.js 4 (EOL), add Node.js 10
  • c05ed98 Merge pull request #812 from yausername/fixReadme
  • 55ff22f fixed typo in readme
  • 2415089 Add badge to display install size
  • 89edef0 Fix types (#804)
  • 001d560 Update eslint to resolve vulnerabilities in lodash
  • 988d09b Merge pull request #791 from yausername/master

There are 17 commits in total.

See the full diff

greenkeeper[bot] commented 6 years ago

Version 2.17.0 just got published.

Your tests are still failing with this version. Compare the changes 🚨

Release Notes v2.17.0
  • fixed newline output after help information (#833)
  • Fix to emit the action even without command (#778)
  • npm update (#823)
Commits

The new version differs by 5 commits.

  • 25b06ee version bump 2.17.0
  • 6ddb8eb fixed newline output after help information (#833)
  • 28ff02a Fix to emit the action even without command (#778)
  • 2d49ddf Fix the path of tsc command (#824)
  • aaa447a npm update (#823)

See the full diff

greenkeeper[bot] commented 6 years ago

Version 2.17.1 just got published.

Your tests are still failing with this version. Compare the changes 🚨

Release Notes v2.17.1
  • Fix bug in command emit (#844)
Commits

The new version differs by 3 commits.

See the full diff

greenkeeper[bot] commented 6 years ago

Version 2.18.0 just got published.

Your tests are still failing with this version. Compare the changes 🚨

Release Notes v2.18.0
  • Standardize help output (#853)
  • chmod 644 travis.yml (#851)
  • add support for execute typescript subcommand via ts-node (#849)
Commits

The new version differs by 5 commits.

  • 54b7f14 version bump 2.18.0
  • 713db77 Standardize help output (#853)
  • af17996 chmod 644 travis.yml
  • 8bcc493 Merge pull request #849 from KillWolfVlad/feature/executeSubCommand-tsnode
  • bf47dcc add support for execute typescript subcommand via ts-node

See the full diff

greenkeeper[bot] commented 6 years ago

Your tests are still failing with this version. Compare changes

Release Notes for v2.19.0
  • Removed newline after Options and Commands headers (#864)
  • Bugfix - Error output (#862)
  • Fix to change default value to string (#856)
Commits

The new version differs by 6 commits.

  • 78b7dbd version bump 2.19.0
  • 6aafa20 prefixed error messages with "error:"
  • 6c0c1f6 removed newline above and below errors
  • b6549f2 removed indentation from errors
  • 2c20e91 removed newline after options and commands headers
  • 4c294c1 Fix to change default value to string

See the full diff

greenkeeper[bot] commented 5 years ago

Your tests are still failing with this version. Compare changes

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.

  • 3e8bf54 Merge pull request #946 from abetomo/version_bump_2.20.0
  • 1ffcbef version bump 2.20.0
  • 50922d8 Merge pull request #935 from MarshallOfSound/fix-deep-sym-link-resolution
  • 994d24d fix: resolve symbol links until their are no more symbolic links
  • 291fc04 Merge pull request #930 from kira1928/update-index.d.ts
  • a469137 some more fix.
  • a679949 Refine variable name. Use strict type definition instead of
  • e31bb8a Update index.d.ts
  • 4542306 Merge pull request #924 from ForJing/patch-1
  • 77bb580 Update Readme.md
  • 68545af Remove --save option as it isn't required anymore
  • 82d0d0a fix url :construction:
  • cec57f5 Add link to the license file :+1:
  • d240081 Update Readme.md
  • 03f7d38 Added example of receiving args from options

There are 18 commits in total.

See the full diff

greenkeeper[bot] commented 5 years ago

Your tests are still failing with this version. Compare changes

Release Notes for v3.0.0
  • Add option to specify executable file name (#999)
    • e.g. .command('clone', 'clone description', { executableFile: 'myClone' })
  • Change docs for .command to 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 80 can also be supplied as -p80
  • Add executable arguments to spawn in win32, for git-style executables (#611)
    • e.g. node --harmony myCommand.js clone
  • 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')
  • Add .helpOption(flags, description) routine to customise help flags and description (#963)
    • e.g. .helpOption('-e, --HELP', 'read more information')
  • Fix behavior of --no-* options (#795)
    • can now define both --foo and --no-foo
    • Breaking custom event listeners: --no-foo on cli now emits option:no-foo (previously option:foo)
    • Breaking default value: defining --no-foo after defining --foo leaves the default value unchanged (previously set it to false)
    • allow boolean default value, such as from environment (#987)
  • Increment inspector port for spawned subcommands (#991)
    • e.g. node --inspect myCommand.js clone

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 }) // Correct
Commits

The new version differs by 104 commits.

  • 3b0127b update Readme_zh-CN to v3.0.0 and modify some old translation problems
  • bfcd39a Set release date for 3.0.0
  • d1469c0 Bump version for release
  • 41d0bdb Add explicit breaking notes (#1006)
  • 5b1b2fe Add links for issues (so work for direct viewing of CHANGELOG)
  • fb56370 Add Tidelift links (#1004)
  • f743bf4 Expand changelog for prerelease
  • e5bce2f Add #987 to CHANGELOG
  • a9503bb Allow boolean default for flag option (#987)
  • 55e88dc Add missing changes to v3.0.0 changelog
  • fb00b0e Merge branch 'master' into release/3.0.0
  • 831d52f Merge pull request #999 from shadowspawn/feature/specifyExecutableFile
  • a59e90f Merge pull request #998 from shadowspawn/feature/develop
  • 6d68637 Increment inspector port for spawned subcommands (#991)
  • facd66f Add debugging note with issue for mixed action/executable

There are 104 commits in total.

See the full diff

greenkeeper[bot] commented 5 years ago

Your tests are still failing with this version. Compare changes

Release Notes for 3.0.1

Added

  • .name and .usage to README (#1010)
  • Table of Contents to README (#1010)
  • TypeScript definition for executableFile in CommandOptions (#1028)

Changed

  • consistently use const rather than var in README (#1026)

Fixed

  • help for sub commands with custom executableFile (#1018)
Commits

The new version differs by 17 commits.

  • 4312302 3.0.1
  • 7cf3ee7 Add date for 3.0.1
  • 3286dc7 Update CHANGELOG for 3.0.1 (#1029)
  • 4c34d0e Add definition for executableFile CommandOption (#1028)
  • 1298a79 Merge pull request #1026 from abetomo/unify_readme_code_examples_with_const
  • e9c24fe Unify readme code examples with 'const'
  • 3b3d3b5 Change CHANGELOG format for next release, and add pending changes (#1022)
  • c0e7651 Merge pull request #1021 from shadowspawn/feature/update-dependencies
  • 7d88c96 Update devDependencies
  • 3e89cc9 Merge pull request #1018 from nazieb/develop
  • bd8be00 fix showing help for sub commands with custom executableFile
  • 8b8d6e6 Merge branch 'master' into develop
  • fea94a9 Move CONTRIBUTING and add PULL_REQUEST_TEMPLATE (#1017)
  • b939242 Add Chinese translation for .name and .usage section
  • b19b58e Add TOC and some lint

There are 17 commits in total.

See the full diff

greenkeeper[bot] commented 5 years ago

Your tests are still failing with this version. Compare changes

Commits

The new version differs by 1 commits.

  • 2544df8 Improve executable subcommand tracking (#1056)

See the full diff

greenkeeper[bot] commented 5 years ago

Your tests are still failing with this version. Compare changes

Release Notes for 4.0.0

Added

  • automatically wrap and indent help descriptions for options and commands (#1051)
  • .exitOverride() allows override of calls to process.exit for additional error handling and to keep program running (#1040)
  • support for declaring required options with .requiredOptions() (#1071)
  • GitHub Actions support (#1027)
  • translation links in README

Changed

  • 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)

Fixed

  • 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 command:* event to include unknown arguments
  • removed deprecated customFds option from call to child_process.spawn (#1052)
  • rework TypeScript declarations to bring all types into imported namespace (#1081)
Commits

The new version differs by 49 commits.

  • f0315b8 Prepare for 4.0.0
  • 0a626bb Updates to CHANGELOG
  • 41c6985 Switch from class to class-like to include all types in commander namespace
  • 08a5f02 Add full width colon in Chinese introducing languages
  • dad5c1a Add translation links
  • c1c1db6 Update Tidelift description to use enterprise wording
  • 7fa903f Remove translated english text, and add new TOC items
  • 8b656f9 add requiredOption and exitOverride for Chinese Readme
  • 2ef5401 Merge pull request #1082 from shadowspawn/feature/engines_node6
  • 3fd7913 Explicitly require node 6, so hopefully get a warning on install if there is an older version of node.
  • a98f35a Add 'pull_request' to GitHub Actions trigger (#1076)
  • e9929fb 4.0.0-1
  • 82fd44a Add .requiredOption to CHANGELOG
  • 7f9edba Add .requiredOption() for mandatory options (#1071)
  • 57e9d98 Examples: use "require" that works from git repo, and lint. (#1072)

There are 49 commits in total.

See the full diff

greenkeeper[bot] commented 4 years ago

Your tests are still failing with this version. Compare changes

Release Notes for 4.0.1

Fixed

  • display help when requested, even if there are missing required options [(#1091)]
Commits

The new version differs by 5 commits.

  • 5083e14 Merge pull request #1094 from shadowspawn/release/4.0.1
  • b38f262 Bump version for 4.0.1
  • 88d1341 Update CHANGELOG for 4.0.1
  • 36082ba Check for missing required options after check for displaying help
  • 6bfc580 Adding migration tips to match manual additions on GitHub release notes

See the full diff

greenkeeper[bot] commented 4 years ago

Your tests are still failing with this version. Compare changes

Release Notes for v4.1.1

Fixed

  • TypeScript definition for .action() should include Promise for async ([#1157])
Commits

The new version differs by 47 commits.

  • d5186ba Bump version to 4.1.1
  • 37e9428 Add 4.1.1 to CHANGELOG
  • e5f316f Use npm ci with CI (#1164)
  • cb54d5f fix(ts): action can be an async function (#1157)
  • 6791884 Merge branch 'master' into develop
  • f31d757 Add FUNDING file for enabling GitHub Sponsor on repo
  • d9627f5 Merge pull request #1147 from shadowspawn/feature/changelog-lint
  • 32c26df Use consistent list character in markdown
  • 4092956 Merge branch 'master' into develop
  • 82f5157 Fix diff order for 4.1 link
  • 7a480a7 Add missing diff link for 4.1.0
  • e45ae5a Merge pull request #1136 from shadowspawn/feature/update-examples
  • d97aaaa Add missing diff link for 4.1.0
  • 8e1cdf5 Merge pull request #1142 from tj/develop
  • 1c66935 add zh-CN translation for parseAsync

There are 47 commits in total.

See the full diff

greenkeeper[bot] commented 4 years ago

Your tests are still failing with this version. Compare changes

Release Notes for v5.0.0

Added

  • support for nested commands with action-handlers ([#1] [#764] [#1149])
  • .addCommand() for adding a separately configured command ([#764] [#1149])
  • allow a non-executable to be set as the default command ([#742] [#1149])
  • implicit help command when there are subcommands (previously only if executables) ([#1149])
  • customise implicit help command with .addHelpCommand() ([#1149])
  • display error message for unknown subcommand, by default ([#432] [#1088] [#1149])
  • display help for missing subcommand, by default ([#1088] [#1149])
  • combined short options as single argument may include boolean flags and value flag and value (e.g. -a -b -p 80 can be written as -abp80) ([#1145])
  • .parseOption() includes short flag and long flag expansions ([#1145])
  • .helpInformation() returns help text as a string, previously a private routine ([#1169])
  • .parse() implicitly uses process.argv if arguments not specified ([#1172])
  • optionally specify where .parse() arguments "from", if not following node conventions ([#512] [#1172])
  • suggest help option along with unknown command error ([#1179])
  • TypeScript definition for commands property of Command ([#1184])
  • export program property ([#1195])
  • createCommand factory method to simplify subclassing ([#1191])

Fixed

  • preserve argument order in subcommands ([#508] [#962] [#1138])
  • do not emit command:* for executable subcommands ([#809] [#1149])
  • action handler called whether or not there are non-option arguments ([#1062] [#1149])
  • combining option short flag and value in single argument now works for subcommands ([#1145])
  • only add implicit help command when it will not conflict with other uses of argument ([#1153] [#1149])
  • implicit help command works with command aliases ([#948] [#1149])
  • options are validated whether or not there is an action handler ([#1149])

Changed

  • Breaking .args contains command arguments with just recognised options removed ([#1032] [#1138])
  • Breaking display error if required argument for command is missing ([#995] [#1149])
  • tighten TypeScript definition of custom option processing function passed to .option() ([#1119])
  • Breaking .allowUnknownOption() ([#802] [#1138])
    • unknown options included in arguments passed to command action handler
    • unknown options included in .args
  • only recognised option short flags and long flags are expanded (e.g. -ab or --foo=bar) ([#1145])
  • Breaking .parseOptions() ([#1138])
    • args in returned result renamed operands and does not include anything after first unknown option
    • unknown in returned result has arguments after first unknown option including operands, not just options and values
  • Breaking .on('command:*', callback) and other command events passed (changed) results from .parseOptions, i.e. operands and unknown ([#1138])
  • refactor Option from prototype to class ([#1133])
  • refactor Command from prototype to class ([#1159])
  • changes to error handling ([#1165])
    • throw for author error, not just display message
    • preflight for variadic error
    • add tips to missing subcommand executable
  • TypeScript fluent return types changed to be more subclass friendly, return this rather than Command ([#1180])
  • .parseAsync returns Promise<this> to be consistent with .parse() ([#1180])
  • update dependencies

Removed

  • removed EventEmitter from TypeScript definition for Command, eliminating implicit peer dependency on @types/node ([#1146])
  • removed private function normalize (the functionality has been integrated into parseOptions) ([#1145])
  • parseExpectedArgs is now private ([#1149])

Migration Tips

If you use .on('command:*') or more complicated tests to detect an unrecognised subcommand, you may be able to delete the code and rely on the default behaviour.

If you use program.args or more complicated tests to detect a missing subcommand, you may be able to delete the code and rely on the default behaviour.

If you use .command('*') to add a default command, you may be be able to switch to isDefault:true with a named command.

Commits

The new version differs by 53 commits.

  • 2aad525 Update dependencies (#1214)
  • f86d878 Add cli keyword (#1213)
  • 83af0fd Prepare for 5.0.0 (#1211)
  • f14df07 Add eslint settings for TypeScript (#1205)
  • 95e0d19 5.0.0-4
  • bd5a49e Add factory to CHANGELOG
  • 8c3dd6f createCommand factory routine (#1191)
  • 3c9f33f Say we support LTS, so do not need to update when node changes (#1204)
  • 3cf8cff Expand typescript checks (#1198)
  • a3f453f 5.0.0-3
  • 87bfca6 Add CHANGELOG entries for 5.0.0-3
  • 1757564 Use a tidier global command (#1200)
  • 0a50bd6 Add program to exports (#1195)
  • 77e511f Enable TypeScript checking of javascript, and resolve or suppress errors (#1194)
  • 2491c76 URLEncode several chinese toc link

There are 53 commits in total.

See the full diff