Upgrading yargs 6 to 7
Breaking6.6.0 → 7.1.2Breaking6New9Fixed16
BreakingUpgrade verdict
6 breaking changes.
In plain terms
- extends key in config file is now used for extending other config files.
- context now takes precedence over argv and defaults.
- by default options, and many of yargs' parsing helpers will now default to being applied globally; such that they are no-longer reset before being passed into commands.
- yargs will no longer aggressively suppress errors, allowing errors that are not generated internally to bubble.
Must act Top 3 of 6 that need code or config changes
Installs 70 packages in all (was 50).
What you must change
Breaking6
extends key in config file is now used for extending other config files.
extendscontext now takes precedence over argv and defaults.
by default options, and many of yargs' parsing helpers will now default to being applied globally; such that they are no-longer reset before being passed into commands.
yargs will no longer aggressively suppress errors, allowing errors that are not generated internally to bubble.
environment variables now take precedence over config files.
the arguments passed to functions are now validated, there's a good chance this will throw exceptions for a few folks who are using the API in an unexpected way.