reg-cli
reg-cli copied to clipboard
fix(deps): update dependency meow to v10
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
meow | 3.7.0 -> 10.1.3 |
Release Notes
sindresorhus/meow
v10.1.3
v10.1.2
v10.1.1
v10.1.0
- Upgrade dependencies
829aab0
- Allow
default
property ofFlag
types to accept arrays (#​190)ae73466
v10.0.1
v10.0.0
Breaking
- Require Node.js 12 (#​181)
05320ac
- This package is now pure ESM. Please read this.
- You must now pass in the
importMeta
option someow
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
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 themeow
config:
meow(``, {
flags: {
- 'foo-bar': {
+ fooBar: {
type: 'boolean'
}
}
});
v8.1.2
v8.1.1
v8.1.0
- Add
allowUnknownFlags
options (#​169)a27ff12
v8.0.0
Breaking
- Default
isMultiple
option to empty array (#​163)14924de
- Make
isMultiple
option non-greedy (#​162)49ce74d
Fixes
v7.1.1
v7.1.0
- Improve
flags
option TypeScript types to acknowledgeisMultiple
andisRequired
options (#​154)e38789f
v7.0.1
v7.0.0
Breaking
- Require Node.js 10
ea3fd99
Improvements
v6.1.1
- Update dependencies
f85b546
v6.1.0
v6.0.1
v6.0.0
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
tohard-rejection
f60c26e
Enhancements
- Add TypeScript definition (#​116)
f1036df
- Add support for
number
flag type (#​103)5ef9478
- Add
hardRejection
option2bcfee7
v5.0.0
- Drops support for Node.js 4
- Switches the argument parser from
minimist
, which is no longer maintained, toyargs-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
v4.0.0
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
andversion
options tofalse
. Instead, use the newautoHelp
andautoVersion
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.