Skip to content

Releases: yargs/yargs

v17.3.1: chore(main): release 17.3.1 (#2103)

23 Dec 22:40
4ea28fb
Compare
Choose a tag to compare

17.3.1 (2021-12-23)

Bug Fixes

  • translations: correct Korean translation (#2095) (c7c2b9e)

v17.3.0

30 Nov 18:58
Compare
Choose a tag to compare

17.3.0 (2021-11-30)

Features

  • fallback to default bash completion (74c0ba5)

Bug Fixes

  • avoid legacy accessors (#2013) (adb0d11)
  • deps: update dependency yargs-parser to v21 (#2063) (76c1951)
  • don't fail if "fileURLToPath(import.meta.url)" throws (3a44796)
  • re-add options to check callback (#2079) (e75319d)

yargs v17.2.1

25 Sep 21:17
2324175
Compare
Choose a tag to compare

Bug Fixes

yargs v17.2.0

23 Sep 01:47
cfe1c6d
Compare
Choose a tag to compare

Features

Bug Fixes

  • boolean option should work with strict (#1996) (e9379e2)
  • cast error types as TypeScript 4.4 infers them as unknown instead of any (#2016) (01b2c6a)
  • conflicts and strip-dashed (#1998) (59a86fb)
  • emit warning on version name collision (#1986) (d0e8292)
  • help command spacing when scriptName is empty (#1994) (d33e997)

yargs v17.1.1

13 Aug 21:07
8f77414
Compare
Choose a tag to compare

Bug Fixes

  • positional array defaults should not be combined with provided values (#2006) (832222d)

yargs v17.1.0

04 Aug 21:59
5d53144
Compare
Choose a tag to compare

Features

  • update Levenshtein to Damerau-Levenshtein (#1973) (d2c121b)

Bug Fixes

  • coerce middleware should be applied once (#1978) (14bd6be)
  • implies should not fail when implied key's value is 0, false or empty string (#1985) (8010472)
  • positionals should not overwrite options (#1992) (9d84309)
  • strict should fail unknown arguments (#1977) (c804f0d)
  • wrap(null) no longer causes strange indentation behavior (#1988) (e1871aa)

yargs v17.0.1

03 May 23:55
99016f6
Compare
Choose a tag to compare

Bug Fixes

yargs v17.0.0

02 May 19:01
a1fe863
Compare
Choose a tag to compare

⚠ BREAKING CHANGES

  • node: drop Node 10 (#1919)
  • implicitly private methods are now actually private
  • deprecated reset() method is now private (call yargs() instead).
  • yargs-factory: refactor yargs-factory to use class (#1895)
  • .positional() now allowed at root level of yargs.
  • coerce: coerce is now applied before validation.
  • async: yargs now returns a promise if async or check are asynchronous.
  • middleware: global middleware now applied when no command is configured.
  • #1823 contains the following breaking API changes:
    • now returns a promise if handler is async.
    • onFinishCommand removed, in favor of being able to await promise.
    • getCompletion now invokes callback with err and `completions, returns promise of completions.

Features

  • add commands alias (similar to options function) (#1850) (00b74ad)
  • add parseSync/parseAsync method (#1898) (6130ad8)
  • add support for showVersion, similar to showHelp (#1831) (1a1e2d5)
  • adds support for async builder (#1888) (ade29b8), closes #1042
  • allow calling standard completion function from custom one (#1855) (31765cb)
  • allow default completion to be referenced and modified, in custom completion (#1878) (01619f6)
  • async: add support for async check and coerce (#1872) (8b95f57)
  • improve support for async/await (#1823) (169b815)
  • locale: add Ukrainian locale (#1893) (c872dfc)
  • middleware: async middleware can now be used before validation. (e0f9363)
  • middleware: global middleware now applied when no command is configured. (e0f9363)
  • node: drop Node 10 (#1919) (5edeb9e)

Bug Fixes

Code Refactoring

  • coerce: coerce is now applied before validation. (8b95f57)
  • deprecated reset() method is now private (call yargs() instead). (376f892)
  • implicitly private methods are now actually private (376f892)
  • yargs-factory: refactor yargs-factory to use class (#1895) (376f892)

yargs yargs-v7.1.2

25 Apr 03:52
3d12fa3
Compare
Choose a tag to compare

Bug Fixes

yargs yargs-v16.2.1

25 Apr 04:40
71cf116
Compare
Choose a tag to compare

Bug Fixes