Releases: yargs/yargs
Releases · yargs/yargs
v18.0.0
18.0.0 (2025-05-26)
⚠ BREAKING CHANGES
- command names are not derived from modules passed to
command
. - singleton usage of yargs yargs.foo, yargs().argv, has been removed.
- minimum node.js versions now
^20.19.0 || ^22.12.0 || >=23
. - yargs is now ESM first
Features
- commandDir now works with ESM files (#2461) (27eec18)
- locale: adds hebrew translation (#2357) (4266485)
- yargs is now ESM first (d90af45)
- zsh: Add default completion as fallback (#2331) (e02c91b)
Bug Fixes
- addDirectory do not support absolute command dir (#2465) (3a40a78)
- allows ESM modules commands to be extensible using visit option (#2468) (200e1aa)
- browser: fix shims so that yargs continues working in browser context (#2457) (4ae5f57)
- build: address problems with typescript compilation (#2445) (8d72fb3)
- coerce should play well with parser configuration (#2308) (8343c66)
- deps: update dependency yargs-parser to v22 (#2470) (639130d)
- exit after async handler done (#2313) (e326cde)
- handle spaces in bash completion (#2452) (83b7788)
- parser-configuration should work well with generated completion script (#2332) (888db19)
- propagate Dictionary including undefined in value type (#2393) (2b2f7f5)
- zsh: completion no longer requires double tab when using autoloaded (0dd8fe4)
Code Refactoring
- command names are not derived from modules passed to
command
. (d90af45) - singleton usage of yargs yargs.foo, yargs().argv, has been removed. (d90af45)
Build System
- minimum node.js versions now
^20.19.0 || ^22.12.0 || >=23
. (d90af45)
v17.7.2
v17.7.1
v17.7.0
v17.6.2
v17.6.1
v17.6.0
v17.5.1
17.5.1 (2022-05-16)
Bug Fixes
- add missing entries to published files (#2185) (5685382)
- address bug when strict and async middleware used together (#2164) (cbc2eb7)
- completion: correct zsh installation instructions (22e9af2)
- handle multiple node_modules folders determining mainFilename for ESM (#2123) (e0823dd)
- lang: add missing terms to Russian translation (#2181) (1c331f2)
- prevent infinite loop with empty locale (#2179) (b672e70)
- veriadic arguments override array provided in config (the same as multiple dash arguments). (4dac5b8)