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

fix(deps): update dependency meow to v5 #495

Merged
merged 1 commit into from Aug 21, 2018

Conversation

Projects
None yet
2 participants
@renovate
Copy link
Contributor

commented Aug 21, 2018

This Pull Request updates dependency meow (source) from ^3.7.0 to ^5.0.0


Release Notes

v5.0.0

Compare Source

  • Drops support for Node.js 4
  • Switches the argument parser from minimist, which is no longer maintained, to yargs-parser. It should be fully compatible, but let us know if something breaks.
  • Add booleanDefault option. 09f7ef0

v4.0.1

Compare Source


v4.0.0

Compare Source
Meow 4 is finally out

Highlights

  • Requires Node.js 4 or higher.
  • Changed how minimist options are specified. (See more below) 43401c3 554119b
  • Disabled type inference by default. It can lead to some surprising behavior. Can be enabled again with the inferType option. 1662881
  • Removed support for using an array in the help option. Just use a template literal. c80321d
  • Removed support for the pkg option accepting a string. 2d4d890
  • Removed support for setting the help and version options to false. Instead, use the new autoHelp and autoVersion options. 59dda7a
  • Uses exit code 2 when manually calling cli.showHelp() now. 6a32bbc

Changed how minimist options are specified

In Meow v3 you specified minimist options top-level just like documented in the minimist readme. Now you specify them in a flags option, grouped by flag name instead of option type.

Before
const cli = meow(
    `
        Help text
    `,
    {
        boolean: [
            'unicorn'
        ],
        string: [
            'fooBar'
        ],
        alias: {
            u: 'unicorn'
        },
        default: {
            foobar: 'foo'
        }
    }
});
After
const cli = meow(
    `
        Help text
    `,
    flags: {
        unicorn: {
            type: 'boolean',
            alias: 'u'
        },
        fooBar: {
            type: 'string',
            default: 'foo'
        }
    }
});

I would strongly recommend specifying the type property whenever possible to reduce CLI argument parsing ambiguity.



This PR has been generated by Renovate Bot.

@codecov

This comment has been minimized.

Copy link

commented Aug 21, 2018

Codecov Report

Merging #495 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #495   +/-   ##
=======================================
  Coverage   98.91%   98.91%           
=======================================
  Files          31       31           
  Lines         831      831           
  Branches      133      133           
=======================================
  Hits          822      822           
  Misses          9        9

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 093f369...7b1d75e. Read the comment docs.

@tivac tivac merged commit e92795f into master Aug 21, 2018

4 of 5 checks passed

deploy/netlify Deploy preview failed.
Details
codecov/patch Coverage not affected when comparing 093f369...7b1d75e
Details
codecov/project 98.91% remains the same compared to 093f369
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@renovate renovate bot deleted the renovate/meow-5.x branch Aug 21, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.