Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(master): release 17.0.0 #1

Conversation

github-actions[bot]
Copy link

🤖 I have created a release beep boop

17.0.0 (2022-07-27)

⚠ BREAKING CHANGES

Features

  • add browser.d.ts and check for existence of Error.captureStackTrace() (#2144) (6192990)
  • 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)
  • autocomplete choices for options (#2018) (01b2c6a)
  • command() now accepts an array of modules (f415388)
  • completion: choices will now work for all possible aliases of an option and not just the default long option (30edd50)
  • completion: positional arguments completion (#2090) (00e4ebb)
  • fallback to default bash completion (74c0ba5)
  • improve support for async/await (#1823) (169b815)
  • locale: add Ukrainian locale (#1893) (c872dfc)
  • locales: Added Uzbek translation (#2024) (ee047b9)
  • 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)
  • update Levenshtein to Damerau-Levenshtein (#1973) (d2c121b)

Bug Fixes

  • add missing entries to published files (#2185) (5685382)
  • add package.json to module exports (#1818) (d783a49), closes #1817
  • address bug when strict and async middleware used together (#2164) (cbc2eb7)
  • always cache help message when running commands (#1865) (d57ca77), closes #1853
  • async: don't call parse callback until async ops complete (#1896) (a93f5ff), closes #1888
  • avoid legacy accessors (#2013) (adb0d11)
  • boolean option should work with strict (#1996) (e9379e2)
  • builder: apply default builder for showHelp/getHelp (#1913) (395bb67), closes #1912
  • builder: nested builder is now awaited (#1925) (b5accd6)
  • build: Node 12 is now minimum version (#1936) (0924566)
  • cast error types as TypeScript 4.4 infers them as unknown instead of any (#2016) (01b2c6a)
  • coerce middleware should be applied once (#1978) (14bd6be)
  • coerce pollutes argv (#2161) (2d1136d)
  • coerce: options using coerce now displayed in help (#1911) (d2128cc), closes #1909
  • completion script name clashing on bash (#1903) (8f62d9a)
  • completion: changed the check for option arguments to match options that begin with '-', instead of '--', to include short options (30edd50)
  • completion: correct zsh installation instructions (22e9af2)
  • completion: don't show positional args choices with option choices (#2148) (b58b5bc)
  • completion: fix for completions that contain non-leading hyphens (30edd50)
  • completion: support for default flags (db35423)
  • conflicts and strip-dashed (#1998) (59a86fb)
  • deno: get yargs working on deno@1.5.x (#1799) (cb01c98)
  • deno: use actual names for keys instead of inferring (#1891) (b96ef01)
  • deps: update dependency yargs-parser to v21 (#2063) (76c1951)
  • docs: stop advertising .argv property (#2036) (4f5ecc1), closes #2035
  • don't fail if "fileURLToPath(import.meta.url)" throws (3a44796)
  • emit warning on version name collision (#1986) (d0e8292)
  • exclude positionals from default completion (#1881) (0175677)
  • expose helpers for legacy versions of Node.js (#1801) (107deaa)
  • failed command usage string is missing arg descriptions and optional args (#2105) (d6e342d)
  • handle multiple node_modules folders determining mainFilename for ESM (#2123) (e0823dd)
  • help command spacing when scriptName is empty (#1994) (d33e997)
  • hide hidden options from completion (#2143) (e086dfa), closes #2142
  • Deno bundle yargsParser initialization failure yargs/yargs#1841 (comment) (b96ef01)
  • implies should not fail when implied key's value is 0, false or empty string (#1985) (8010472)
  • import yargs/yargs in esm projects (#2151) (95aed1c)
  • lang: add missing terms to Russian translation (#2181) (1c331f2)
  • positional array defaults should not be combined with provided values (#2006) (832222d)
  • positionals should not overwrite options (#1992) (9d84309)
  • prevent infinite loop with empty locale (#2179) (b672e70)
  • re-add options to check callback (#2079) (e75319d)
  • show message when showHelpOnFail is chained globally (#2154) (ad9fcac)
  • showHelp() and .getHelp() now return same output for commands as --help (#1826) (36abf26)
  • strict should fail unknown arguments (#1977) (c804f0d)
  • translations: correct Korean translation (#2095) (c7c2b9e)
  • veriadic arguments override array provided in config (the same as multiple dash arguments). (4dac5b8)
  • wrap unknown args in quotes (#2092) (6a29778)
  • wrap(null) no longer causes strange indentation behavior (#1988) (e1871aa)
  • zsh completion is now autoloadable (#1856) (d731f9f)

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)

This PR was generated with Release Please. See documentation.

@rivy rivy closed this Oct 30, 2023
@rivy rivy deleted the release-please--branches--master--components--yargs branch October 30, 2023 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant