Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f690fc9

Browse files
BridgeARaddaleax
authored andcommittedMar 30, 2020
deps: update acorn to v7.1.1
Also clean up the plugins package.json files. PR-URL: #32310 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent b973b93 commit f690fc9

File tree

14 files changed

+316
-346
lines changed

14 files changed

+316
-346
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,36 @@
11
{
2-
"_from": "acorn-class-fields",
3-
"_id": "acorn-class-fields@0.3.1",
4-
"_inBundle": false,
5-
"_integrity": "sha512-X/8hSJuregAnrvfV1Y80VJNfeJx1uhw7yskOwvL631ygYeCGVLPumCnnPDHYZ8acV3ytHhg53K171H3tAemgiw==",
6-
"_location": "/acorn-class-fields",
7-
"_phantomChildren": {},
8-
"_requested": {
9-
"type": "tag",
10-
"registry": true,
11-
"raw": "acorn-class-fields",
12-
"name": "acorn-class-fields",
13-
"escapedName": "acorn-class-fields",
14-
"rawSpec": "",
15-
"saveSpec": null,
16-
"fetchSpec": "latest"
17-
},
18-
"_requiredBy": [
19-
"#USER",
20-
"/"
21-
],
22-
"_resolved": "https://registry.npmjs.org/acorn-class-fields/-/acorn-class-fields-0.3.1.tgz",
23-
"_shasum": "032ce47a9688a71d4713ee366fadcb7fefaea9e0",
24-
"_spec": "acorn-class-fields",
25-
"_where": "/home/ruben/repos/node/node",
26-
"bugs": {
27-
"url": "https://github.com/acornjs/acorn-class-fields/issues"
28-
},
29-
"bundleDependencies": false,
2+
"name": "acorn-class-fields",
3+
"description": "Support for class fields in acorn",
4+
"homepage": "https://github.com/acornjs/acorn-class-fields",
305
"contributors": [
31-
{
32-
"name": "Adrian Heine",
33-
"email": "mail@adrianheine.de"
34-
}
6+
"Adrian Heine <mail@adrianheine.de>"
357
],
36-
"dependencies": {
37-
"acorn-private-class-elements": "^0.1.1"
38-
},
39-
"deprecated": false,
40-
"description": "Support for class fields in acorn",
41-
"devDependencies": {
42-
"acorn": "^6.1.0",
43-
"eslint": "^5.13.0",
44-
"eslint-plugin-node": "^8.0.1",
45-
"mocha": "^5.2.0",
46-
"test262": "git+https://github.com/tc39/test262.git#33a306d1026b72227eb50a918db19ada16f12b3d",
47-
"test262-parser-runner": "^0.5.0"
48-
},
498
"engines": {
509
"node": ">=4.8.2"
5110
},
52-
"homepage": "https://github.com/acornjs/acorn-class-fields",
53-
"license": "MIT",
54-
"name": "acorn-class-fields",
55-
"peerDependencies": {
56-
"acorn": "^6.0.0"
57-
},
5811
"repository": {
5912
"type": "git",
60-
"url": "git+https://github.com/acornjs/acorn-class-fields.git"
13+
"url": "https://github.com/acornjs/acorn-class-fields"
6114
},
15+
"license": "MIT",
6216
"scripts": {
63-
"lint": "eslint -c .eslintrc.json .",
6417
"test": "mocha",
65-
"test:test262": "node run_test262.js"
18+
"test:test262": "node run_test262.js",
19+
"lint": "eslint -c .eslintrc.json ."
6620
},
67-
"version": "0.3.1"
68-
}
21+
"peerDependencies": {
22+
"acorn": "^6.0.0"
23+
},
24+
"version": "0.3.1",
25+
"devDependencies": {
26+
"acorn": "^6.1.0",
27+
"eslint": "^5.13.0",
28+
"eslint-plugin-node": "^8.0.1",
29+
"mocha": "^5.2.0",
30+
"test262": "git+https://github.com/tc39/test262.git#33a306d1026b72227eb50a918db19ada16f12b3d",
31+
"test262-parser-runner": "^0.5.0"
32+
},
33+
"dependencies": {
34+
"acorn-private-class-elements": "^0.1.1"
35+
}
36+
}
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,33 @@
11
{
2-
"_from": "acorn-numeric-separator",
3-
"_id": "acorn-numeric-separator@0.3.0",
4-
"_inBundle": false,
5-
"_integrity": "sha512-g9FikQZHwG/P1Xs+dDzecqagmGBbU4b8OF4UbDQK8Wr8apwuFGG1c7KiaFxC4ClYU8D7zNl60vzqOCUuhKM3kA==",
6-
"_location": "/acorn-numeric-separator",
7-
"_phantomChildren": {},
8-
"_requested": {
9-
"type": "tag",
10-
"registry": true,
11-
"raw": "acorn-numeric-separator",
12-
"name": "acorn-numeric-separator",
13-
"escapedName": "acorn-numeric-separator",
14-
"rawSpec": "",
15-
"saveSpec": null,
16-
"fetchSpec": "latest"
17-
},
18-
"_requiredBy": [
19-
"#USER",
20-
"/"
21-
],
22-
"_resolved": "https://registry.npmjs.org/acorn-numeric-separator/-/acorn-numeric-separator-0.3.0.tgz",
23-
"_shasum": "15e2f9a698bbec83a339a70a7026ab1d9d257de2",
24-
"_spec": "acorn-numeric-separator",
25-
"_where": "/home/ruben/repos/node/node",
26-
"bugs": {
27-
"url": "https://github.com/acornjs/acorn-numeric-separator/issues"
28-
},
29-
"bundleDependencies": false,
2+
"name": "acorn-numeric-separator",
3+
"description": "Support for numeric separators in acorn",
4+
"homepage": "https://github.com/acornjs/acorn-numeric-separator",
305
"contributors": [
31-
{
32-
"name": "Adrian Heine",
33-
"email": "mail@adrianheine.de"
34-
}
6+
"Adrian Heine <mail@adrianheine.de>"
357
],
36-
"deprecated": false,
37-
"description": "Support for numeric separators in acorn",
38-
"devDependencies": {
39-
"acorn": "^6.0.0",
40-
"eslint": "^5.5.0",
41-
"eslint-plugin-node": "^8.0.1",
42-
"mocha": "^6.0.2",
43-
"test262": "git+https://github.com/tc39/test262.git#de567d3aa5de4eaa11e00131d26b9fe77997dfb0",
44-
"test262-parser-runner": "^0.5.0"
45-
},
468
"engines": {
479
"node": ">=4.8.2"
4810
},
49-
"homepage": "https://github.com/acornjs/acorn-numeric-separator",
50-
"license": "MIT",
51-
"name": "acorn-numeric-separator",
52-
"peerDependencies": {
53-
"acorn": "^6.0.0"
54-
},
5511
"repository": {
5612
"type": "git",
57-
"url": "git+https://github.com/acornjs/acorn-numeric-separator.git"
13+
"url": "https://github.com/acornjs/acorn-numeric-separator"
5814
},
15+
"license": "MIT",
5916
"scripts": {
60-
"lint": "eslint -c .eslintrc.json .",
6117
"test": "mocha",
62-
"test:test262": "node run_test262.js"
18+
"test:test262": "node run_test262.js",
19+
"lint": "eslint -c .eslintrc.json ."
20+
},
21+
"peerDependencies": {
22+
"acorn": "^6.0.0"
6323
},
64-
"version": "0.3.0"
65-
}
24+
"version": "0.3.0",
25+
"devDependencies": {
26+
"acorn": "^6.0.0",
27+
"eslint": "^5.5.0",
28+
"eslint-plugin-node": "^8.0.1",
29+
"mocha": "^6.0.2",
30+
"test262": "git+https://github.com/tc39/test262.git#de567d3aa5de4eaa11e00131d26b9fe77997dfb0",
31+
"test262-parser-runner": "^0.5.0"
32+
}
33+
}

‎deps/acorn-plugins/acorn-private-class-elements/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.2.0 (2020-03-07)
2+
3+
* Mark as compatible with acorn v7
4+
15
## 0.1.1 (2019-02-09)
26

37
* Add \_branch() method

‎deps/acorn-plugins/acorn-private-class-elements/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"use strict"
22

33
const acorn = require('internal/deps/acorn/acorn/dist/acorn')
4-
if (acorn.version.indexOf("6.") != 0 || acorn.version.indexOf("6.0.") == 0) {
5-
throw new Error(`acorn-private-class-elements requires acorn@^6.1.0, not ${acorn.version}`)
4+
if (acorn.version.indexOf("6.") != 0 && acorn.version.indexOf("6.0.") == 0 && acorn.version.indexOf("7.") != 0) {
5+
throw new Error(`acorn-private-class-elements requires acorn@^6.1.0 or acorn@7.0.0, not ${acorn.version}`)
66
}
77
const tt = acorn.tokTypes
88
const TokenType = acorn.TokenType
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,30 @@
11
{
2-
"_from": "acorn-private-class-elements@^0.1.1",
3-
"_id": "acorn-private-class-elements@0.1.1",
4-
"_inBundle": false,
5-
"_integrity": "sha512-bZpmSnaOsK3jkF7J8xaLJ05f008vapPX+XliIv8+jjkclvDR+M4OnTHLhFnCCSeJ0fMwRKjbY+BXsglSNpVZtw==",
6-
"_location": "/acorn-private-class-elements",
7-
"_phantomChildren": {},
8-
"_requested": {
9-
"type": "range",
10-
"registry": true,
11-
"raw": "acorn-private-class-elements@^0.1.1",
12-
"name": "acorn-private-class-elements",
13-
"escapedName": "acorn-private-class-elements",
14-
"rawSpec": "^0.1.1",
15-
"saveSpec": null,
16-
"fetchSpec": "^0.1.1"
17-
},
18-
"_requiredBy": [
19-
"/acorn-class-fields"
20-
],
21-
"_resolved": "https://registry.npmjs.org/acorn-private-class-elements/-/acorn-private-class-elements-0.1.1.tgz",
22-
"_shasum": "85209cb5791ab84fde2362cb208fa51e7679bcdc",
23-
"_spec": "acorn-private-class-elements@^0.1.1",
24-
"_where": "/home/ruben/repos/node/node/node_modules/acorn-class-fields",
25-
"bugs": {
26-
"url": "https://github.com/acornjs/acorn-private-class-elements/issues"
27-
},
28-
"bundleDependencies": false,
2+
"name": "acorn-private-class-elements",
3+
"description": "Helpers for supporting private class methods and fields in acorn",
4+
"homepage": "https://github.com/acornjs/acorn-private-class-elements",
295
"contributors": [
30-
{
31-
"name": "Adrian Heine",
32-
"email": "mail@adrianheine.de"
33-
}
6+
"Adrian Heine <mail@adrianheine.de>"
347
],
35-
"dependencies": {
36-
"mocha": "^5.2.0"
37-
},
38-
"deprecated": false,
39-
"description": "Helpers for supporting private class methods and fields in acorn",
40-
"devDependencies": {
41-
"acorn": "^6.1.0",
42-
"eslint": "^5.13.0",
43-
"eslint-plugin-node": "^8.0.1"
44-
},
458
"engines": {
469
"node": ">=4.8.2"
4710
},
48-
"homepage": "https://github.com/acornjs/acorn-private-class-elements",
49-
"license": "MIT",
50-
"name": "acorn-private-class-elements",
51-
"peerDependencies": {
52-
"acorn": "^6.1.0"
53-
},
5411
"repository": {
5512
"type": "git",
56-
"url": "git+https://github.com/acornjs/acorn-private-class-elements.git"
13+
"url": "https://github.com/acornjs/acorn-private-class-elements"
5714
},
15+
"license": "MIT",
5816
"scripts": {
59-
"lint": "eslint -c .eslintrc.json .",
60-
"test": "mocha"
17+
"test": "mocha",
18+
"lint": "eslint -c .eslintrc.json ."
19+
},
20+
"peerDependencies": {
21+
"acorn": "^6.1.0 || ^7.0.0"
6122
},
62-
"version": "0.1.1"
63-
}
23+
"version": "0.2.0",
24+
"devDependencies": {
25+
"acorn": "^7.0.0",
26+
"eslint": "^6.8.0",
27+
"eslint-plugin-node": "^11.0.0",
28+
"mocha": "^7.1.0"
29+
}
30+
}
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,36 @@
11
{
2-
"_from": "acorn-private-methods",
3-
"_id": "acorn-private-methods@0.3.0",
4-
"_inBundle": false,
5-
"_integrity": "sha512-+gWTjSA+13lsv1mwCPosSrLzEyghYtWgrr/1Ck7i7Pu5iK7Ke0hOgw3IW1RUxhc4qS2QTQBQx2+qHYqsa4Qlqw==",
6-
"_location": "/acorn-private-methods",
7-
"_phantomChildren": {},
8-
"_requested": {
9-
"type": "tag",
10-
"registry": true,
11-
"raw": "acorn-private-methods",
12-
"name": "acorn-private-methods",
13-
"escapedName": "acorn-private-methods",
14-
"rawSpec": "",
15-
"saveSpec": null,
16-
"fetchSpec": "latest"
17-
},
18-
"_requiredBy": [
19-
"#USER",
20-
"/"
21-
],
22-
"_resolved": "https://registry.npmjs.org/acorn-private-methods/-/acorn-private-methods-0.3.0.tgz",
23-
"_shasum": "a5a9f8cd83d175bc138fa22592fababd0afda35d",
24-
"_spec": "acorn-private-methods",
25-
"_where": "/home/ruben/repos/node/node",
26-
"bugs": {
27-
"url": "https://github.com/acornjs/acorn-private-methods/issues"
28-
},
29-
"bundleDependencies": false,
2+
"name": "acorn-private-methods",
3+
"description": "Support for private methods in acorn",
4+
"homepage": "https://github.com/acornjs/acorn-private-methods",
305
"contributors": [
31-
{
32-
"name": "Adrian Heine",
33-
"email": "mail@adrianheine.de"
34-
}
6+
"Adrian Heine <mail@adrianheine.de>"
357
],
8+
"engines": {
9+
"node": ">=4.8.2"
10+
},
11+
"repository": {
12+
"type": "git",
13+
"url": "https://github.com/acornjs/acorn-private-methods"
14+
},
15+
"license": "MIT",
16+
"scripts": {
17+
"test": "mocha",
18+
"test:test262": "node run_test262.js",
19+
"lint": "eslint -c .eslintrc.json ."
20+
},
21+
"peerDependencies": {
22+
"acorn": "^6.1.0"
23+
},
3624
"dependencies": {
3725
"acorn-private-class-elements": "^0.1.0"
3826
},
39-
"deprecated": false,
40-
"description": "Support for private methods in acorn",
27+
"version": "0.3.0",
4128
"devDependencies": {
4229
"acorn": "^6.1.0",
4330
"eslint": "^5.13.0",
4431
"eslint-plugin-node": "^8.0.1",
4532
"mocha": "^5.2.0",
4633
"test262": "git+https://github.com/tc39/test262.git#33a306d1026b72227eb50a918db19ada16f12b3d",
4734
"test262-parser-runner": "^0.5.0"
48-
},
49-
"engines": {
50-
"node": ">=4.8.2"
51-
},
52-
"homepage": "https://github.com/acornjs/acorn-private-methods",
53-
"license": "MIT",
54-
"name": "acorn-private-methods",
55-
"peerDependencies": {
56-
"acorn": "^6.1.0"
57-
},
58-
"repository": {
59-
"type": "git",
60-
"url": "git+https://github.com/acornjs/acorn-private-methods.git"
61-
},
62-
"scripts": {
63-
"lint": "eslint -c .eslintrc.json .",
64-
"test": "mocha",
65-
"test:test262": "node run_test262.js"
66-
},
67-
"version": "0.3.0"
68-
}
35+
}
36+
}
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,36 @@
11
{
2-
"_from": "acorn-static-class-features",
3-
"_id": "acorn-static-class-features@0.2.0",
4-
"_inBundle": false,
5-
"_integrity": "sha512-46IooHSRsvgSi+t36Wx9iPfF9BKFKVDcAWELXVqvKHmZogSCk11iUCi2FiZmLeTaM0hlJ3EYDyYiVmHRUGPzWA==",
6-
"_location": "/acorn-static-class-features",
7-
"_phantomChildren": {},
8-
"_requested": {
9-
"type": "tag",
10-
"registry": true,
11-
"raw": "acorn-static-class-features",
12-
"name": "acorn-static-class-features",
13-
"escapedName": "acorn-static-class-features",
14-
"rawSpec": "",
15-
"saveSpec": null,
16-
"fetchSpec": "latest"
17-
},
18-
"_requiredBy": [
19-
"#USER",
20-
"/"
21-
],
22-
"_resolved": "https://registry.npmjs.org/acorn-static-class-features/-/acorn-static-class-features-0.2.0.tgz",
23-
"_shasum": "8a12b0b280b2e067e268fdbb14116a5b02affd71",
24-
"_spec": "acorn-static-class-features",
25-
"_where": "/home/ruben/repos/node/node",
26-
"bugs": {
27-
"url": "https://github.com/acornjs/acorn-static-class-features/issues"
28-
},
29-
"bundleDependencies": false,
2+
"name": "acorn-static-class-features",
3+
"description": "Support for static class features in acorn",
4+
"homepage": "https://github.com/acornjs/acorn-static-class-features",
305
"contributors": [
31-
{
32-
"name": "Adrian Heine",
33-
"email": "mail@adrianheine.de"
34-
}
6+
"Adrian Heine <mail@adrianheine.de>"
357
],
36-
"dependencies": {
37-
"acorn-private-class-elements": "^0.1.0"
38-
},
39-
"deprecated": false,
40-
"description": "Support for static class features in acorn",
41-
"devDependencies": {
42-
"acorn": "^6.1.0",
43-
"eslint": "^5.13.0",
44-
"eslint-plugin-node": "^8.0.1",
45-
"mocha": "^5.2.0",
46-
"test262": "git+https://github.com/tc39/test262.git#33a306d1026b72227eb50a918db19ada16f12b3d",
47-
"test262-parser-runner": "^0.5.0"
48-
},
498
"engines": {
509
"node": ">=4.8.2"
5110
},
52-
"homepage": "https://github.com/acornjs/acorn-static-class-features",
53-
"license": "MIT",
54-
"name": "acorn-static-class-features",
55-
"peerDependencies": {
56-
"acorn": "^6.1.0"
57-
},
5811
"repository": {
5912
"type": "git",
60-
"url": "git+https://github.com/acornjs/acorn-static-class-features.git"
13+
"url": "https://github.com/acornjs/acorn-static-class-features"
6114
},
15+
"license": "MIT",
6216
"scripts": {
63-
"lint": "eslint -c .eslintrc.json .",
6417
"test": "mocha",
65-
"test:test262": "node run_test262.js"
18+
"test:test262": "node run_test262.js",
19+
"lint": "eslint -c .eslintrc.json ."
20+
},
21+
"peerDependencies": {
22+
"acorn": "^6.1.0"
6623
},
67-
"version": "0.2.0"
68-
}
24+
"version": "0.2.0",
25+
"devDependencies": {
26+
"acorn": "^6.1.0",
27+
"eslint": "^5.13.0",
28+
"eslint-plugin-node": "^8.0.1",
29+
"mocha": "^5.2.0",
30+
"test262": "git+https://github.com/tc39/test262.git#33a306d1026b72227eb50a918db19ada16f12b3d",
31+
"test262-parser-runner": "^0.5.0"
32+
},
33+
"dependencies": {
34+
"acorn-private-class-elements": "^0.1.1"
35+
}
36+
}

‎deps/acorn/acorn-walk/CHANGELOG.md

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
## 7.1.1 (2020-02-13)
2+
3+
### Bug fixes
4+
5+
Clean up the type definitions to actually work well with the main parser.
6+
7+
## 7.1.0 (2020-02-11)
8+
9+
### New features
10+
11+
Add a TypeScript definition file for the library.
12+
13+
## 7.0.0 (2017-08-12)
14+
15+
### New features
16+
17+
Support walking `ImportExpression` nodes.
18+
119
## 6.2.0 (2017-07-04)
220

321
### New features

‎deps/acorn/acorn-walk/dist/walk.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
// An ancestor walk keeps an array of ancestor nodes (including the
3535
// current node) and passes them to the callback as third parameter
3636
// (and also as state parameter when no other state is present).
37-
function ancestor(node, visitors, baseVisitor, state) {
37+
function ancestor(node, visitors, baseVisitor, state, override) {
3838
var ancestors = [];
3939
if (!baseVisitor) { baseVisitor = base
4040
; }(function c(node, st, override) {
@@ -44,7 +44,7 @@
4444
baseVisitor[type](node, st, c);
4545
if (found) { found(node, st || ancestors, ancestors); }
4646
if (isNew) { ancestors.pop(); }
47-
})(node, state);
47+
})(node, state, override);
4848
}
4949

5050
// A recursive walk is one where your functions override the default
@@ -416,7 +416,10 @@
416416
}
417417
c(node.source, st, "Expression");
418418
};
419-
base.ImportSpecifier = base.ImportDefaultSpecifier = base.ImportNamespaceSpecifier = base.Identifier = base.Literal = base.Import = ignore;
419+
base.ImportExpression = function (node, st, c) {
420+
c(node.source, st, "Expression");
421+
};
422+
base.ImportSpecifier = base.ImportDefaultSpecifier = base.ImportNamespaceSpecifier = base.Identifier = base.Literal = ignore;
420423

421424
base.TaggedTemplateExpression = function (node, st, c) {
422425
c(node.tag, st, "Expression");

‎deps/acorn/acorn-walk/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
"description": "ECMAScript (ESTree) AST walker",
44
"homepage": "https://github.com/acornjs/acorn",
55
"main": "dist/walk.js",
6+
"types": "dist/walk.d.ts",
67
"module": "dist/walk.mjs",
7-
"version": "6.2.0",
8+
"version": "7.1.1",
89
"engines": {"node": ">=0.4.0"},
910
"maintainers": [
1011
{

‎deps/acorn/acorn/CHANGELOG.md

+46-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,47 @@
1+
## 7.1.1 (2020-03-01)
2+
3+
### Bug fixes
4+
5+
Treat `\8` and `\9` as invalid escapes in template strings.
6+
7+
Allow unicode escapes in property names that are keywords.
8+
9+
Don't error on an exponential operator expression as argument to `await`.
10+
11+
More carefully check for valid UTF16 surrogate pairs in regexp validator.
12+
13+
## 7.1.0 (2019-09-24)
14+
15+
### Bug fixes
16+
17+
Disallow trailing object literal commas when ecmaVersion is less than 5.
18+
19+
### New features
20+
21+
Add a static `acorn` property to the `Parser` class that contains the entire module interface, to allow plugins to access the instance of the library that they are acting on.
22+
23+
## 7.0.0 (2019-08-13)
24+
25+
### Breaking changes
26+
27+
Changes the node format for dynamic imports to use the `ImportExpression` node type, as defined in [ESTree](https://github.com/estree/estree/blob/master/es2020.md#importexpression).
28+
29+
Makes 10 (ES2019) the default value for the `ecmaVersion` option.
30+
31+
## 6.3.0 (2019-08-12)
32+
33+
### New features
34+
35+
`sourceType: "module"` can now be used even when `ecmaVersion` is less than 6, to parse module-style code that otherwise conforms to an older standard.
36+
37+
## 6.2.1 (2019-07-21)
38+
39+
### Bug fixes
40+
41+
Fix bug causing Acorn to treat some characters as identifier characters that shouldn't be treated as such.
42+
43+
Fix issue where setting the `allowReserved` option to `"never"` allowed reserved words in some circumstances.
44+
145
## 6.2.0 (2019-07-04)
246

347
### Bug fixes
@@ -8,9 +52,9 @@ Disallow binding `let` in patterns.
852

953
### New features
1054

11-
Support bigint syntax with `ecmaVersion` >= 10.
55+
Support bigint syntax with `ecmaVersion` >= 11.
1256

13-
Support dynamic `import` syntax with `ecmaVersion` >= 10.
57+
Support dynamic `import` syntax with `ecmaVersion` >= 11.
1458

1559
Upgrade to Unicode version 12.
1660

‎deps/acorn/acorn/README.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@ Options can be provided by passing a second argument, which should be
5252
an object containing any of these fields:
5353

5454
- **ecmaVersion**: Indicates the ECMAScript version to parse. Must be
55-
either 3, 5, 6 (2015), 7 (2016), 8 (2017), 9 (2018) or 10 (2019, partial
56-
support). This influences support for strict mode, the set of
57-
reserved words, and support for new syntax features. Default is 9.
55+
either 3, 5, 6 (2015), 7 (2016), 8 (2017), 9 (2018), 10 (2019) or 11
56+
(2020, partial support). This influences support for strict mode,
57+
the set of reserved words, and support for new syntax features.
58+
Default is 10.
5859

5960
**NOTE**: Only 'stage 4' (finalized) ECMAScript features are being
6061
implemented by Acorn. Other proposed new features can be implemented
@@ -64,6 +65,9 @@ an object containing any of these fields:
6465
either `"script"` or `"module"`. This influences global strict mode
6566
and parsing of `import` and `export` declarations.
6667

68+
**NOTE**: If set to `"module"`, then static `import` / `export` syntax
69+
will be valid, even if `ecmaVersion` is less than 6.
70+
6771
- **onInsertedSemicolon**: If given a callback, that callback will be
6872
called whenever a missing semicolon is inserted by the parser. The
6973
callback will be given the character offset of the point where the

‎deps/acorn/acorn/dist/acorn.js

+118-62
Large diffs are not rendered by default.

‎deps/acorn/acorn/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
"description": "ECMAScript parser",
44
"homepage": "https://github.com/acornjs/acorn",
55
"main": "dist/acorn.js",
6+
"types": "dist/acorn.d.ts",
67
"module": "dist/acorn.mjs",
7-
"version": "6.2.0",
8+
"version": "7.1.1",
89
"engines": {"node": ">=0.4.0"},
910
"maintainers": [
1011
{

0 commit comments

Comments
 (0)
Please sign in to comment.