yargs 16.0.0-beta.3 → 16.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,54 @@
2
2
 
3
3
  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.
4
4
 
5
+ ### [16.0.3](https://www.github.com/yargs/yargs/compare/v16.0.2...v16.0.3) (2020-09-10)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * move yargs.cjs to yargs to fix Node 10 imports ([#1747](https://www.github.com/yargs/yargs/issues/1747)) ([5bfb85b](https://www.github.com/yargs/yargs/commit/5bfb85b33b85db8a44b5f7a700a8e4dbaf022df0))
11
+
12
+ ### [16.0.2](https://www.github.com/yargs/yargs/compare/v16.0.1...v16.0.2) (2020-09-09)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **typescript:** yargs-parser was breaking @types/yargs ([#1745](https://www.github.com/yargs/yargs/issues/1745)) ([2253284](https://www.github.com/yargs/yargs/commit/2253284b233cceabd8db677b81c5bf1755eef230))
18
+
19
+ ### [16.0.1](https://www.github.com/yargs/yargs/compare/v16.0.0...v16.0.1) (2020-09-09)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * code was not passed to process.exit ([#1742](https://www.github.com/yargs/yargs/issues/1742)) ([d1a9930](https://www.github.com/yargs/yargs/commit/d1a993035a2f76c138460052cf19425f9684b637))
25
+
26
+ ## [16.0.0](https://www.github.com/yargs/yargs/compare/v15.4.2...v16.0.0) (2020-09-09)
27
+
28
+
29
+ ### ⚠ BREAKING CHANGES
30
+
31
+ * tweaks to ESM/Deno API surface: now exports yargs function by default; getProcessArgvWithoutBin becomes hideBin; types now exported for Deno.
32
+ * find-up replaced with escalade; export map added (limits importable files in Node >= 12); yarser-parser@19.x.x (new decamelize/camelcase implementation).
33
+ * **usage:** single character aliases are now shown first in help output
34
+ * rebase helper is no longer provided on yargs instance.
35
+ * drop support for EOL Node 8 (#1686)
36
+
37
+ ### Features
38
+
39
+ * adds strictOptions() ([#1738](https://www.github.com/yargs/yargs/issues/1738)) ([b215fba](https://www.github.com/yargs/yargs/commit/b215fba0ed6e124e5aad6cf22c8d5875661c63a3))
40
+ * **helpers:** rebase, Parser, applyExtends now blessed helpers ([#1733](https://www.github.com/yargs/yargs/issues/1733)) ([c7debe8](https://www.github.com/yargs/yargs/commit/c7debe8eb1e5bc6ea20b5ed68026c56e5ebec9e1))
41
+ * adds support for ESM and Deno ([#1708](https://www.github.com/yargs/yargs/issues/1708)) ([ac6d5d1](https://www.github.com/yargs/yargs/commit/ac6d5d105a75711fe703f6a39dad5181b383d6c6))
42
+ * drop support for EOL Node 8 ([#1686](https://www.github.com/yargs/yargs/issues/1686)) ([863937f](https://www.github.com/yargs/yargs/commit/863937f23c3102f804cdea78ee3097e28c7c289f))
43
+ * i18n for ESM and Deno ([#1735](https://www.github.com/yargs/yargs/issues/1735)) ([c71783a](https://www.github.com/yargs/yargs/commit/c71783a5a898a0c0e92ac501c939a3ec411ac0c1))
44
+ * tweaks to API surface based on user feedback ([#1726](https://www.github.com/yargs/yargs/issues/1726)) ([4151fee](https://www.github.com/yargs/yargs/commit/4151fee4c33a97d26bc40de7e623e5b0eb87e9bb))
45
+ * **usage:** single char aliases first in help ([#1574](https://www.github.com/yargs/yargs/issues/1574)) ([a552990](https://www.github.com/yargs/yargs/commit/a552990c120646c2d85a5c9b628e1ce92a68e797))
46
+
47
+
48
+ ### Bug Fixes
49
+
50
+ * **yargs:** add missing command(module) signature ([#1707](https://www.github.com/yargs/yargs/issues/1707)) ([0f81024](https://www.github.com/yargs/yargs/commit/0f810245494ccf13a35b7786d021b30fc95ecad5)), closes [#1704](https://www.github.com/yargs/yargs/issues/1704)
51
+
52
+
5
53
  ## [15.4.0](https://www.github.com/yargs/yargs/compare/v15.3.1...v15.4.0) (2020-06-30)
6
54
 
7
55
 
@@ -122,7 +170,8 @@ arguments when duplicates are provided
122
170
 
123
171
  ### Bug Fixes
124
172
 
125
- * **docs:** TypeScript import to prevent a future major release warning ([#1441](https://www.github.com/yargs/yargs/issues/1441)) ([b1b156a](https://www.github.com/yargs/yargs/commit/b1b156a3eb4ddd6803fbbd56c611a77919293000))
173
+ * **docs:**
174
+ cript import to prevent a future major release warning ([#1441](https://www.github.com/yargs/yargs/issues/1441)) ([b1b156a](https://www.github.com/yargs/yargs/commit/b1b156a3eb4ddd6803fbbd56c611a77919293000))
126
175
  * stop-parse was not being respected by commands ([#1459](https://www.github.com/yargs/yargs/issues/1459)) ([12c82e6](https://www.github.com/yargs/yargs/commit/12c82e62663e928148a7ee2f51629aa26a0f9bb2))
127
176
  * update to yargs-parser with fix for array default values ([#1463](https://www.github.com/yargs/yargs/issues/1463)) ([ebee59d](https://www.github.com/yargs/yargs/commit/ebee59d9022da538410e69a5c025019ed46d13d2))
128
177
  * **docs:** update boolean description and examples in docs ([#1474](https://www.github.com/yargs/yargs/issues/1474)) ([afd5b48](https://www.github.com/yargs/yargs/commit/afd5b4871bfeb90d58351ac56c5c44a83ef033e6))
package/build/index.cjs CHANGED
@@ -2720,8 +2720,8 @@ var cjsPlatformShim = {
2720
2720
  argv: () => process.argv,
2721
2721
  cwd: process.cwd,
2722
2722
  execPath: () => process.execPath,
2723
- exit: () => {
2724
- process.exit();
2723
+ exit: (code) => {
2724
+ process.exit(code);
2725
2725
  },
2726
2726
  nextTick: process.nextTick,
2727
2727
  stdColumns: typeof process.stdout.columns !== 'undefined' ? process.stdout.columns : null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yargs",
3
- "version": "16.0.0-beta.3",
3
+ "version": "16.0.3",
4
4
  "description": "yargs the modern, pirate-themed, successor to optimist.",
5
5
  "main": "./index.cjs",
6
6
  "exports": {
@@ -12,7 +12,7 @@
12
12
  "import": "./helpers.mjs"
13
13
  },
14
14
  "./yargs": {
15
- "require": "./yargs.cjs"
15
+ "require": "./yargs"
16
16
  }
17
17
  },
18
18
  "type": "module",
@@ -28,7 +28,7 @@
28
28
  "index.cjs",
29
29
  "helpers.mjs",
30
30
  "index.mjs",
31
- "yargs.cjs",
31
+ "yargs",
32
32
  "build",
33
33
  "locales",
34
34
  "LICENSE",
@@ -42,7 +42,7 @@
42
42
  "require-directory": "^2.1.1",
43
43
  "string-width": "^4.2.0",
44
44
  "y18n": "^5.0.1",
45
- "yargs-parser": "^19.0.4"
45
+ "yargs-parser": "^20.0.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/chai": "^4.2.11",
File without changes