Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Update meow to the latest version 🚀 #146

Merged
merged 2 commits into from
Dec 11, 2017
Merged

Conversation

greenkeeper[bot]
Copy link
Contributor

@greenkeeper greenkeeper bot commented Nov 26, 2017

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. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper bot 🌴

@simonmarklar simonmarklar merged commit 22b970c into master Dec 11, 2017
@simonmarklar simonmarklar deleted the greenkeeper/meow-4.0.0 branch December 11, 2017 04:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant