reg-cli icon indicating copy to clipboard operation
reg-cli copied to clipboard

fix(deps): update dependency meow to v10

Open renovate[bot] opened this issue 2 years ago • 0 comments

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
meow 3.7.0 -> 10.1.3 age adoption passing confidence

Release Notes

sindresorhus/meow

v10.1.3

Compare Source

v10.1.2

Compare Source

v10.1.1

Compare Source

v10.1.0

Compare Source

v10.0.1

Compare Source

v10.0.0

Compare Source

Breaking
  • Require Node.js 12 (#​181) 05320ac
  • This package is now pure ESM. Please read this.
  • You must now pass in the importMeta option so meow can find your package.json:
 const cli = meow(…, {
+	importMeta: import.meta
 });

Previously, meow used some tricks to infer the location of your package.json, but this no longer works in ESM.

v9.0.0

Compare Source

Breaking
  • Strictly validate flag config (#​168) 1609709 This is a breaking change if you incorrectly used kebab-case format for flags (was never officially supported) in the meow config:
 meow(``, {
 	flags: {
-		'foo-bar': {
+		fooBar: {
 			type: 'boolean'
 		}
 	}
 });

v8.1.2

Compare Source

v8.1.1

Compare Source

v8.1.0

Compare Source

v8.0.0

Compare Source

Breaking
Fixes

v7.1.1

Compare Source

v7.1.0

Compare Source

  • Improve flags option TypeScript types to acknowledge isMultiple and isRequired options (#​154) e38789f

v7.0.1

Compare Source

v7.0.0

Compare Source

Breaking
Improvements

v6.1.1

Compare Source

v6.1.0

Compare Source

v6.0.1

Compare Source

v6.0.0

Compare Source

Breaking
  • Require Node.js 8 cd635d4
  • Remove flag's aliases from the flags property (#​108) f36715c
  • Only consider enabling autoHelp/autoVersion in case there is only one argument in process.argv (#​114) cd29865
  • Switch from loud-rejection to hard-rejection f60c26e
Enhancements

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. https://github.com/sindresorhus/meow/commit/09f7ef0e427d30741d57f4a3918b133c39a7d30f

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) https://github.com/sindresorhus/meow/commit/43401c39ee442db308288f50d6f213cd0e6e602c https://github.com/sindresorhus/meow/commit/554119b0af09cb33aea4e709c0572043cd00586d
  • Disabled type inference by default. It can lead to some surprising behavior. Can be enabled again with the inferType option. https://github.com/sindresorhus/meow/commit/1662881674c6b243226314e35d46115ea66329ff
  • Removed support for using an array in the help option. Just use a template literal. https://github.com/sindresorhus/meow/commit/c80321d2ec6733d502335edb29d173f12bbf1111
  • Removed support for the pkg option accepting a string. https://github.com/sindresorhus/meow/commit/2d4d89043c41030d60ee9eb5130a4fa62935ca37
  • Removed support for setting the help and version options to false. Instead, use the new autoHelp and autoVersion options. https://github.com/sindresorhus/meow/commit/59dda7a9caf8400ce602d2b1cf663aa1b35bdfca
  • Uses exit code 2 when manually calling cli.showHelp() now. https://github.com/sindresorhus/meow/commit/6a32bbc3acc9c41068234d80188e9d2e865f50fa

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.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • [ ] If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Mend Renovate. View repository job log here.

renovate[bot] avatar Aug 02 '21 00:08 renovate[bot]