Per the yargs docs, yargs.middleware(...) is intended to be used for argv transformations that should be run before a command is applied. applyConfig used to transform the object exported by builders. This is a bad idea. Instead, it now transform argv in the yargs middleware, just like sanitizeInputs was already doing.
Per the
yargs
docs,yargs.middleware(...)
is intended to be used forargv
transformations that should be run before a command is applied.applyConfig
used to transform the object exported bybuilders
. This is a bad idea. Instead, it now transformargv
in theyargs
middleware, just likesanitizeInputs
was already doing.