es-check 5.2.4 → 6.0.0
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/README.md +4 -0
- package/index.js +3 -3
- package/package.json +6 -6
- package/CHANGELOG.md +0 -67
package/README.md
CHANGED
|
@@ -20,6 +20,10 @@ Ensuring that JavaScript files can pass ES Check is important in a [modular and
|
|
|
20
20
|
|
|
21
21
|
---
|
|
22
22
|
|
|
23
|
+
**Version 6:** released with [dropped support for es4](https://github.com/yowainwright/es-check/pull/98/files#r680564074) and a **major version bump of the [acorn](https://github.com/acornjs/acorn) parser**. Thanks so much for your insightful PR, [Noah](https://github.com/noahnu)! For any issues with the newer acorn version or for es4 support, use [version 5.2.4](https://www.npmjs.com/package/es-check/v/5.2.4) (`npm i es-check@5.2.4`). 🎉
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
23
27
|
<p align="center">
|
|
24
28
|
<a href="#get-started">Get Started</a>
|
|
25
29
|
<a href="#why-es-check">Why ES Check?</a>
|
package/index.js
CHANGED
|
@@ -83,8 +83,8 @@ prog
|
|
|
83
83
|
ecmaVersion = '3'
|
|
84
84
|
break
|
|
85
85
|
case 'es4':
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
logger.error('ES4 is not supported.')
|
|
87
|
+
process.exit(1)
|
|
88
88
|
case 'es5':
|
|
89
89
|
ecmaVersion = '5'
|
|
90
90
|
break
|
|
@@ -139,7 +139,7 @@ prog
|
|
|
139
139
|
|
|
140
140
|
const errArray = []
|
|
141
141
|
const globOpts = { nodir: true }
|
|
142
|
-
const acornOpts = { ecmaVersion, silent: true }
|
|
142
|
+
const acornOpts = { ecmaVersion: parseInt(ecmaVersion, 10), silent: true }
|
|
143
143
|
|
|
144
144
|
const expandedPathsToIgnore = pathsToIgnore.reduce((result, path) => {
|
|
145
145
|
if (path.includes('*')) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "es-check",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "Checks the ECMAScript version of .js glob against a specified version of ECMAScript with a shell command",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"homepage": "https://github.com/yowainwright/es-check#readme",
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@commitlint/cli": "^12.0.1",
|
|
37
|
-
"@commitlint/config-conventional": "^
|
|
37
|
+
"@commitlint/config-conventional": "^13.1.0",
|
|
38
38
|
"@commitlint/prompt": "^12.0.1",
|
|
39
39
|
"assert": "^2.0.0",
|
|
40
40
|
"codecov": "^3.0.0",
|
|
@@ -48,16 +48,16 @@
|
|
|
48
48
|
"eslint-plugin-node": "^11.1.0",
|
|
49
49
|
"eslint-plugin-prettier": "^3.4.0",
|
|
50
50
|
"eslint-plugin-promise": "^5.1.0",
|
|
51
|
-
"husky": "^
|
|
51
|
+
"husky": "^7.0.1",
|
|
52
52
|
"mocha": "^9.0.1",
|
|
53
53
|
"nyc": "^15.1.0",
|
|
54
54
|
"prettier": "^2.3.2",
|
|
55
55
|
"prettier-config-standard": "^4.0.0"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"acorn": "^
|
|
59
|
-
"caporal": "1.4.0",
|
|
60
|
-
"glob": "^7.1.
|
|
58
|
+
"acorn": "^8.4.1",
|
|
59
|
+
"caporal": "^1.4.0",
|
|
60
|
+
"glob": "^7.1.7"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
63
63
|
"node": ">= 4"
|
package/CHANGELOG.md
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
# [5.1.0](https://github.com/yowainwright/es-check/compare/5.0.0...5.1.0) (2019-11-13)
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Features
|
|
5
|
-
|
|
6
|
-
* **index:** Add not option to filter files ([#104](https://github.com/yowainwright/es-check/issues/104)) ([f709c3b](https://github.com/yowainwright/es-check/commit/f709c3b94749f065586843c482880e26ea66f5de))
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
# [5.0.0](https://github.com/yowainwright/es-check/compare/4.0.0...5.0.0) (2018-11-20)
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
### Features
|
|
14
|
-
|
|
15
|
-
* Update Caporal.js, exit without files, options as flags ([#75](https://github.com/yowainwright/es-check/issues/75)) ([6ea433c](https://github.com/yowainwright/es-check/commit/6ea433cf833fd012d6b46e257cc03d4defe9d677))
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
# [4.0.0](https://github.com/yowainwright/es-check/compare/3.0.0...4.0.0) (2018-09-13)
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
### Bug Fixes
|
|
23
|
-
|
|
24
|
-
* exit on an invalid es version ([#67](https://github.com/yowainwright/es-check/issues/67)) ([37bf919](https://github.com/yowainwright/es-check/commit/37bf9191c3a1d5eac72848df6a807228089c5df1))
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
# [3.0.0](https://github.com/yowainwright/es-check/compare/2.3.0...3.0.0) (2018-09-10)
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
### Bug Fixes
|
|
32
|
-
|
|
33
|
-
* should exit with an error if no files were checked ([#58](https://github.com/yowainwright/es-check/issues/58)) ([8e8d61f](https://github.com/yowainwright/es-check/commit/8e8d61f720c2633016ed74c0d2d55a221a2b8db6))
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
### Features
|
|
37
|
-
|
|
38
|
-
* support files that start with hash bang ([#62](https://github.com/yowainwright/es-check/issues/62)) ([06b412c](https://github.com/yowainwright/es-check/commit/06b412c1aade76e8fbc04e47a6d31b5abff56f60))
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
# [2.3.0](https://github.com/yowainwright/es-check/compare/2.2.0...2.3.0) (2018-09-09)
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
### Features
|
|
46
|
-
|
|
47
|
-
* log version, module, and files ([#59](https://github.com/yowainwright/es-check/issues/59)) ([3de6d31](https://github.com/yowainwright/es-check/commit/3de6d31840efb8332d4b60b63b466f81dc81b213))
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
# [2.2.0](https://github.com/yowainwright/es-check/compare/2.1.0...2.2.0) (2018-09-04)
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
# [2.1.0](https://github.com/yowainwright/es-check/compare/270ed6ca82859495cf9f134cb2c8783f14e0b8cc...2.1.0) (2018-08-02)
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
### Bug Fixes
|
|
59
|
-
|
|
60
|
-
* **package:** update acorn to version 5.6.0 ([#45](https://github.com/yowainwright/es-check/issues/45)) ([90d1ae7](https://github.com/yowainwright/es-check/commit/90d1ae7fc752de0f3a4e2eff281db7d730becf62))
|
|
61
|
-
* **package:** update acorn to version 5.7.0 ([#47](https://github.com/yowainwright/es-check/issues/47)) ([3826159](https://github.com/yowainwright/es-check/commit/3826159a6059d33623feb7d88fc77c42ff7c2948))
|
|
62
|
-
* **package:** update caporal to version 0.10.0 ([#37](https://github.com/yowainwright/es-check/issues/37)) ([f3e0f52](https://github.com/yowainwright/es-check/commit/f3e0f528a12ddb97c21a25a0fbb0e701695666ef))
|
|
63
|
-
* **package:** update caporal to version 0.8.0 ([#17](https://github.com/yowainwright/es-check/issues/17)) ([270ed6c](https://github.com/yowainwright/es-check/commit/270ed6ca82859495cf9f134cb2c8783f14e0b8cc))
|
|
64
|
-
* **package:** update caporal to version 0.9.0 ([#33](https://github.com/yowainwright/es-check/issues/33)) ([300c0d5](https://github.com/yowainwright/es-check/commit/300c0d5e7b92b7e8b48d5cd07200a7e0d99b0385))
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|