From e17574ef635a3d35b3e0c8ac53c1504c93ddc0c4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 21 Sep 2020 05:39:45 +0000 Subject: [PATCH] chore: release 16.1.0 --- CHANGELOG.md | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 69 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 55bf05e9..c7ace819 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,74 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [16.1.0](https://www.github.com/laggingreflex/yargs-parser/compare/v16.0.0...v16.1.0) (2020-09-21) + + +### ⚠ BREAKING CHANGES + +* do not ship type definitions (#318) +* adds support for ESM and Deno (#295) +* **ts:** projects using `@types/yargs-parser` may see variations in type definitions. +* drops Node 6. begin following Node.js LTS schedule (#278) +* the narg count is now enforced when parsing arrays. +* this reverts parsing behavior of booleans to that of yargs@14 +* objects used during parsing are now created with a null +* populate error if incompatible narg/count or array/count options are used (#191) + +### Features + +* **string-utils:** export looksLikeNumber helper ([#324](https://www.github.com/laggingreflex/yargs-parser/issues/324)) ([c8580a2](https://www.github.com/laggingreflex/yargs-parser/commit/c8580a2327b55f6342acecb6e72b62963d506750)) +* adds parse-positional-numbers configuration ([#321](https://www.github.com/laggingreflex/yargs-parser/issues/321)) ([9cec00a](https://www.github.com/laggingreflex/yargs-parser/commit/9cec00a622251292ffb7dce6f78f5353afaa0d4c)) +* adds support for ESM and Deno ([#295](https://www.github.com/laggingreflex/yargs-parser/issues/295)) ([195bc4a](https://www.github.com/laggingreflex/yargs-parser/commit/195bc4a7f20c2a8f8e33fbb6ba96ef6e9a0120a1)) +* expose camelCase and decamelize helpers ([#296](https://www.github.com/laggingreflex/yargs-parser/issues/296)) ([39154ce](https://www.github.com/laggingreflex/yargs-parser/commit/39154ceb5bdcf76b5f59a9219b34cedb79b67f26)) +* **deps:** update to latest camelcase/decamelize ([#281](https://www.github.com/laggingreflex/yargs-parser/issues/281)) ([8931ab0](https://www.github.com/laggingreflex/yargs-parser/commit/8931ab08f686cc55286f33a95a83537da2be5516)) +* boolean arguments will not be collected into an implicit array ([#236](https://www.github.com/laggingreflex/yargs-parser/issues/236)) ([34c4e19](https://www.github.com/laggingreflex/yargs-parser/commit/34c4e19bae4e7af63e3cb6fa654a97ed476e5eb5)) +* introduce greedy-arrays config, for specifying whether arrays consume multiple positionals ([#249](https://www.github.com/laggingreflex/yargs-parser/issues/249)) ([60e880a](https://www.github.com/laggingreflex/yargs-parser/commit/60e880a837046314d89fa4725f923837fd33a9eb)) +* introduce nargs-eats-options config option ([#246](https://www.github.com/laggingreflex/yargs-parser/issues/246)) ([d50822a](https://www.github.com/laggingreflex/yargs-parser/commit/d50822ac10e1b05f2e9643671ca131ac251b6732)) +* introduce single-digit boolean aliases ([#255](https://www.github.com/laggingreflex/yargs-parser/issues/255)) ([9c60265](https://www.github.com/laggingreflex/yargs-parser/commit/9c60265fd7a03cb98e6df3e32c8c5e7508d9f56f)) +* NaN can now be provided as a value for nargs, indicating "at least" one value is expected for array ([#251](https://www.github.com/laggingreflex/yargs-parser/issues/251)) ([9db4be8](https://www.github.com/laggingreflex/yargs-parser/commit/9db4be81417a2c7097128db34d86fe70ef4af70c)) +* options that have had their default value used are now tracked ([#211](https://www.github.com/laggingreflex/yargs-parser/issues/211)) ([a525234](https://www.github.com/laggingreflex/yargs-parser/commit/a525234558c847deedd73f8792e0a3b77b26e2c0)) +* populate error if incompatible narg/count or array/count options are used ([#191](https://www.github.com/laggingreflex/yargs-parser/issues/191)) ([84a401f](https://www.github.com/laggingreflex/yargs-parser/commit/84a401f0fa3095e0a19661670d1570d0c3b9d3c9)) + + +### Bug Fixes + +* **array, nargs:** support -o=--value and --option=--value format ([#262](https://www.github.com/laggingreflex/yargs-parser/issues/262)) ([41d3f81](https://www.github.com/laggingreflex/yargs-parser/commit/41d3f8139e116706b28de9b0de3433feb08d2f13)) +* **build:** fixing publication ([#310](https://www.github.com/laggingreflex/yargs-parser/issues/310)) ([5d3c6c2](https://www.github.com/laggingreflex/yargs-parser/commit/5d3c6c29a9126248ba601920d9cf87c78e161ff5)) +* **build:** push tag created for deno ([2186a14](https://www.github.com/laggingreflex/yargs-parser/commit/2186a14989749887d56189867602e39e6679f8b0)) +* **build:** switch to action for publish ([#308](https://www.github.com/laggingreflex/yargs-parser/issues/308)) ([5c2f305](https://www.github.com/laggingreflex/yargs-parser/commit/5c2f30585342bcd8aaf926407c863099d256d174)) +* **build:** update release-please; make labels kick off builds ([#323](https://www.github.com/laggingreflex/yargs-parser/issues/323)) ([09f448b](https://www.github.com/laggingreflex/yargs-parser/commit/09f448b4cd66e25d2872544718df46dab8af062a)) +* **deps:** update dependency decamelize to v3 ([#274](https://www.github.com/laggingreflex/yargs-parser/issues/274)) ([4d98698](https://www.github.com/laggingreflex/yargs-parser/commit/4d98698bc6767e84ec54a0842908191739be73b7)) +* **setArg:** options using camel-case and dot-notation populated twice ([#268](https://www.github.com/laggingreflex/yargs-parser/issues/268)) ([f7e15b9](https://www.github.com/laggingreflex/yargs-parser/commit/f7e15b9800900b9856acac1a830a5f35847be73e)) +* **types:** switch back to using Partial types ([#293](https://www.github.com/laggingreflex/yargs-parser/issues/293)) ([bdc80ba](https://www.github.com/laggingreflex/yargs-parser/commit/bdc80ba59fa13bc3025ce0a85e8bad9f9da24ea7)) +* **unknown-options-as-args:** convert positionals that look like numbers ([#326](https://www.github.com/laggingreflex/yargs-parser/issues/326)) ([f85ebb4](https://www.github.com/laggingreflex/yargs-parser/commit/f85ebb4face9d4b0f56147659404cbe0002f3dad)) +* address bugs with "uknown-options-as-args" ([bc023e3](https://www.github.com/laggingreflex/yargs-parser/commit/bc023e3b13e20a118353f9507d1c999bf388a346)) +* only strip camel case if hyphenated ([#316](https://www.github.com/laggingreflex/yargs-parser/issues/316)) ([95a9e78](https://www.github.com/laggingreflex/yargs-parser/commit/95a9e785127b9bbf2d1db1f1f808ca1fb100e82a)), closes [#315](https://www.github.com/laggingreflex/yargs-parser/issues/315) +* **types:** envPrefix should be optional ([#305](https://www.github.com/laggingreflex/yargs-parser/issues/305)) ([ae3f180](https://www.github.com/laggingreflex/yargs-parser/commit/ae3f180e14df2de2fd962145f4518f9aa0e76523)) +* __proto__ will now be replaced with ___proto___ in parse ([#258](https://www.github.com/laggingreflex/yargs-parser/issues/258)) ([63810ca](https://www.github.com/laggingreflex/yargs-parser/commit/63810ca1ae1a24b08293a4d971e70e058c7a41e2)) +* array should take precedence over nargs, but enforce nargs ([#243](https://www.github.com/laggingreflex/yargs-parser/issues/243)) ([4cbc188](https://www.github.com/laggingreflex/yargs-parser/commit/4cbc188b7abb2249529a19c090338debdad2fe6c)) +* boolean numeric short option ([#294](https://www.github.com/laggingreflex/yargs-parser/issues/294)) ([f600082](https://www.github.com/laggingreflex/yargs-parser/commit/f600082c959e092076caf420bbbc9d7a231e2418)) +* normalized keys were not enumerable ([#247](https://www.github.com/laggingreflex/yargs-parser/issues/247)) ([57119f9](https://www.github.com/laggingreflex/yargs-parser/commit/57119f9f17cf27499bd95e61c2f72d18314f11ba)) +* raise permission error for Deno if config load fails ([#298](https://www.github.com/laggingreflex/yargs-parser/issues/298)) ([1174e2b](https://www.github.com/laggingreflex/yargs-parser/commit/1174e2b3f0c845a1cd64e14ffc3703e730567a84)) +* support keys that collide with object prototypes ([#234](https://www.github.com/laggingreflex/yargs-parser/issues/234)) ([1587b6d](https://www.github.com/laggingreflex/yargs-parser/commit/1587b6d91db853a9109f1be6b209077993fee4de)) +* unknown options terminated with digits now handled by unknown-options-as-args ([#238](https://www.github.com/laggingreflex/yargs-parser/issues/238)) ([d36cdfa](https://www.github.com/laggingreflex/yargs-parser/commit/d36cdfa854254d7c7e0fe1d583818332ac46c2a5)) + + +### Reverts + +* revert 16.0.0 CHANGELOG entry ([920320a](https://www.github.com/laggingreflex/yargs-parser/commit/920320ad9861bbfd58eda39221ae211540fc1daf)) + + +### Build System + +* drops Node 6. begin following Node.js LTS schedule ([#278](https://www.github.com/laggingreflex/yargs-parser/issues/278)) ([9014ed7](https://www.github.com/laggingreflex/yargs-parser/commit/9014ed722a32768b96b829e65a31705db5c1458a)) + + +### Code Refactoring + +* do not ship type definitions ([#318](https://www.github.com/laggingreflex/yargs-parser/issues/318)) ([8fbd56f](https://www.github.com/laggingreflex/yargs-parser/commit/8fbd56f1d0b6c44c30fca62708812151ca0ce330)) +* **ts:** move index.js to TypeScript ([#292](https://www.github.com/laggingreflex/yargs-parser/issues/292)) ([f78d2b9](https://www.github.com/laggingreflex/yargs-parser/commit/f78d2b97567ac4828624406e420b4047c710b789)) + ## [20.2.0](https://www.github.com/yargs/yargs-parser/compare/v20.1.0...v20.2.0) (2020-09-21) diff --git a/package.json b/package.json index a47fe3ff..ba95c144 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "yargs-parser", - "version": "20.2.0", + "version": "16.1.0", "description": "the mighty option parser used by yargs", "main": "build/index.cjs", "exports": {