Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update command-line-args to version 4.0.0 🚀 #1059

Merged
merged 1 commit into from Jan 31, 2017

Conversation

greenkeeperio-bot
Copy link
Contributor

Hello lovely humans,

command-line-args just published its new version 4.0.0.

State Update 🚀
Dependency command-line-args
New version 4.0.0
Type dependency

This version 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 command-line-args.
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.

Do you have any ideas how I could improve these pull requests? Did I report anything you think isn’t right?
Are you unsure about how things are supposed to work?

There is a collection of frequently asked questions and while I’m just a bot, there is a group of people who are happy to teach me new things. Let them know.

Good luck with your project ✨

You rock!

🌴


GitHub Release

Breaking changes since v3.0.5

  • Removed support for node versions less than v4.0.0
  • The method signature changed. If you're passing a custom argv you now do it this way:

    const argv = [ '--log-level', 'info' ]
    commandLineArgs(optionDefinitions, { argv })

    Previously, it was done this way:

    const argv = [ '--log-level', 'info' ]
    commandLineArgs(optionDefinitions, argv)
  • String is the new default type function.

New feature

  • Partial parsing - support for unknown options. See the docs and issue 25 for background.

Other changes


The new version differs by 15 commits .

  • 4e40041 4.0.0
  • 266098b 4.0.0-1
  • 769b447 update examples
  • c7a43d9 overhauled the examples
  • 8b98b9d update validate example
  • 2d70566 docs
  • 978dae2 implemented partial parsing on grouped output
  • 1808f75 4.0.0-0
  • 279cc83 for non-multiple defaultOptions, the first parsed value is now taken - not the last
  • 8f2ce47 method sig is now commandLineArgs(definitions, [options]). Added mocha and unknown-options examples.
  • 8549990 implement 'partial' parse option.. initial tests
  • e72101e refactored internals.. default option type is now 'String'.
  • c343257 Options with multiple:true set must always return an array. Fixed a case where that was not so (where a scalar defaultValue was supplied and no option values passed on the command line). Fixes #24
  • a04ff8f fix tests.. linting
  • d54564a remove support for node versions less than v4.0.0

See the full diff.


✨ Try the all new Greenkeeper GitHub Integration ✨
With Integrations first-class bot support landed on GitHub and we’ve rewritten Greenkeeper to take full advantage of it. Simpler setup, fewer pull-requests, faster than ever.

Screencast

Try it today. Free for private repositories during beta.

@marcoscaceres marcoscaceres merged commit 505ffac into develop Jan 31, 2017
@marcoscaceres marcoscaceres deleted the greenkeeper-command-line-args-4.0.0 branch January 31, 2017 23:26
marcoscaceres added a commit that referenced this pull request Feb 1, 2017
* develop:
  v8.8.0
  feat(core/highlight): allow highlighting code blocks (#1061)
  feat(worker/respec-worker): remove xquery, as no one uses it
  style: fix indenting
  feat: do syntax highlighting in web worker (closes #964) (#1060)
  chore(.snyk): did vulnerability check
  style: eslint fixes
  feat(core/markdown): remove xquery, as no one uses it
  feat(package): remove xquery, as no one uses it
  chore(package): update command-line-args to version 4.0.0 (#1059)
  chore(deps/highlight.js): add hightlight.js again
  chore(.gitignore): don't ignore highlight.js
  chore(package): update dependecies
  chore(package): update snyk to version 1.24.6 (#1056)
  chore(package): update snyk to version 1.24.5 (#1053)
  tests: run karma against build instead (#1049)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants