yargs
18.2.0 · 20 Sep 2026MIT241.1M / weekRepositoryHomepagenpmAtom feed
Upgrading yargs from 4.3.2 to 4.8.1
7 releases in betweenevery note read
Release by release
- new
Add config lookup for .implies()
- fixed
commandDir: make dir relative to caller instead of require.main.filename
- fixed
Cache pkg lookups by path to avoid returning the wrong one
- fixed
Positional arguments were not being handled appropriately by parse()
- fixed
- new
- new
Add .commandDir(dir) to API to apply all command modules from a relative directory
- new
command: derive missing command string from module filename
- new
Builder is now optional for a command module
- fixed
- new
- fixed
Switch to using
constrather thanvar - fixed
Make stdout flush on newer versions of Node.js
- fixed
- new
completion: allow to get completions for any string, not just process.argv
- new
configuration: Allow to directly pass a configuration object to .config()
- new
validation: Add .skipValidation() method
- fixed
pkgConf: fix aliases issues in .pkgConf()
- new
- new
Switch to standard-version for release management
- new
Upgrade to version of yargs-parser that introduces some slick new features, great work @elas7. update cliui, replace win-spawn, replace badge.
- fixed
- new
- new
commands: implemented variadic positional arguments
- new
completion: completion now better handles aliases, and avoids duplicating keys.
- new
config: If invoking .config() without parameters, set a default option
- new
conventional-changelog: switching to using conventional-changelog for generating the changelog
- fixed
windows: handle $0 better on Windows platforms
- new
- new
Allow a method to be passed to
showHelp, rather than a log-level - fixed
Fix demand() when second argument is an array
- fixed
Fix code example for
.help()docs - fixed
Fix for bash completion trailing space edge-case
- new
3 other lines we could not sort, mostly version bumps
- 4.4.0
Update yargs-parser, y18n, nyc, cliui, pkg-conf
- 4.4.0
The rebase method is only used by tests, do not export it in two places
- 4.4.0
Initial support for subcommands