Kikobeats / finepack

Organizes and maintains readable your JSON files.
MIT License
19 stars 7 forks source link

Update meow to the latest version 🚀 #55

Closed greenkeeper[bot] closed 6 years ago

greenkeeper[bot] commented 6 years ago

Version 4.0.0 of meow was just published.

Dependency meow
Current Version 3.7.0
Type dependency

The version 4.0.0 is not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

It might be worth looking into these changes and trying to get this project onto the latest version of meow.

If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don’t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.


Release Notes v4.0.0

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

v3.7.0...v4.0.0

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.

Commits

The new version differs by 26 commits ahead by 26, behind by 2.

  • 8c82a18 4.0.0
  • 59dda7a Add autoVersion and autoHelp options (#68)
  • 4f7ded3 Update read-pkg-up to version 3 (#72)
  • 554119b Document #63
  • 7f54d4b Meta tweaks
  • 43401c3 Rewrite flags input (#63)
  • b561b55 Code style tweaks
  • a5fbc8c Minor tweaks
  • edcdff8 Update dependencies (#52)
  • 6a32bbc use exit code 2 when manually calling cli.showHelp()
  • 2d4d890 drop support for pkg option accepting a string
  • c80321d drop support for using an array in the help option
  • 578733e [BREAKING] ES2015ify - Now requires Node.js >=4
  • 0fc44ad Fix type for cli.help (#45)
  • bf66f3a fix XO lint issues

There are 26 commits in total.

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:

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 10795c92228b9f049b9919edea26afc360a8f034 on greenkeeper/meow-4.0.0 into 28a9c6f0f2d7075dc62e222d3b113126159aef03 on master.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 10795c92228b9f049b9919edea26afc360a8f034 on greenkeeper/meow-4.0.0 into 28a9c6f0f2d7075dc62e222d3b113126159aef03 on master.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 10795c92228b9f049b9919edea26afc360a8f034 on greenkeeper/meow-4.0.0 into 28a9c6f0f2d7075dc62e222d3b113126159aef03 on master.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 10795c92228b9f049b9919edea26afc360a8f034 on greenkeeper/meow-4.0.0 into 28a9c6f0f2d7075dc62e222d3b113126159aef03 on master.