-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Description
Again, another ticket to have all discussions and info on the next major in one thread. Feel free to propose (or make) changes. Everyone is invited to discuss here!
Breaking
-
Remove deprecated_since we're breaking a ton of stuff in this release, I'm tempted to leave.demand()
in favour of.demandCommand()
and.demandOption()
as introduced in v6.6.0 (feat: split demand() into demandCommand()/demandOption() #740).demand()
for now (I don't see a reason to add an extra annoyance for folks upgrading)`. - Alert misuse of yargs API (Silent crash when calling
alias
with only one parameter. #739) - Don't handle program errors within yargs (Sync error of handler should throw a global error #455)
- Apply options defined in global scope globally by default
- Rearranged order of precedence for args (Discuss: Order of precedence for program argument values #627)
- Rearranged order of precedence for context/default values (default value interferes with passing context to sub-commands #724)
- default commands, finally!
Additionally, we wanted to pull of a readme overhaul. Perhaps a major would be a great time to do this, or we postpone this. Also, we discussed adding certain tutorials to the yargs website (yargs.github.io/#26), what's the status on that?
JaKXz