acorn-stage3
Advanced tools
Comparing version 3.1.0 to 4.0.0
@@ -0,1 +1,5 @@ | ||
## 4.0.0 (2020-08-13) | ||
* Require acorn ^7.4 or ^8 | ||
## 3.1.0 (2020-08-13) | ||
@@ -2,0 +6,0 @@ |
@@ -5,8 +5,6 @@ "use strict" | ||
return Parser.extend( | ||
require("acorn-numeric-separator"), | ||
require("acorn-class-fields"), | ||
require("acorn-static-class-features"), | ||
require("acorn-private-methods"), | ||
require("acorn-logical-assignment") | ||
require("acorn-private-methods") | ||
) | ||
} |
@@ -1,16 +0,16 @@ | ||
| | ECMAScript | | acorn | | | | acorn-stage3| | | | ||
| | 2020 | stage 3 | 6.1 | 6.2 | 7.2 | 7.3 | 2.0 | 2.1 | 3.0 | | ||
|-----------------------|-------|---------|-----|-----|-----------|-----|-----|-----| | ||
| dynamic-import | x | - | - | x | x | x | x | x | - | | ||
| bigint | x | - | - | x | x | x | x | x | - | | ||
| import-meta | x | - | - | - | x | x | x | x | - | | ||
| export-ns-from | x | - | - | - | x | x | x | x | - | | ||
| nullish-coalescing | x | - | - | - | x | x | - | - | - | | ||
| optional-chaining | x | - | - | - | - | x | - | - | - | | ||
| hashbang | - | x | x | x | x | x | - | - | - | | ||
| top-level-await | - | x | x | x | x | x | - | - | - | | ||
| numeric-separator | - | x | - | - | - | - | - | x | x | | ||
| class-fields | - | x | - | - | - | - | x | x | x | | ||
| private-methods | - | x | - | - | - | - | x | x | x | | ||
| static-class-features | - | x | - | - | - | - | x | x | x | | ||
| logical-assignment | - | x | - | - | - | - | - | x | x | | ||
| | ECMAScript | | acorn | | | | acorn-stage3| | | | ||
| | 2020 | stage 3 | 6.1 | 6.2 | 7.2 | 7.3 | 7.4 | 2.0 | 2.1 | 3.0 | | ||
|-----------------------|-------|---------|-----|-----|-----------|-----|-----|-----|-----| | ||
| dynamic-import | x | - | - | x | x | x | x | x | x | - | | ||
| bigint | x | - | - | x | x | x | x | x | x | - | | ||
| import-meta | x | - | - | - | x | x | x | x | x | - | | ||
| export-ns-from | x | - | - | - | x | x | x | x | x | - | | ||
| nullish-coalescing | x | - | - | - | x | x | x | - | - | - | | ||
| optional-chaining | x | - | - | - | - | x | x | - | - | - | | ||
| hashbang | - | x | x | x | x | x | x | - | - | - | | ||
| top-level-await | - | x | x | x | x | x | x | - | - | - | | ||
| numeric-separator | - | x | - | - | - | - | x | - | x | x | | ||
| logical-assignment | - | x | - | - | - | - | x | - | x | x | | ||
| class-fields | - | x | - | - | - | - | - | x | x | x | | ||
| private-methods | - | x | - | - | - | - | - | x | x | x | | ||
| static-class-features | - | x | - | - | - | - | - | x | x | x | |
@@ -22,12 +22,10 @@ { | ||
"peerDependencies": { | ||
"acorn": "^7 || ^8" | ||
"acorn": "^7.4 || ^8" | ||
}, | ||
"dependencies": { | ||
"acorn-class-fields": "^0.3.7", | ||
"acorn-logical-assignment": "^0.1.4", | ||
"acorn-numeric-separator": "^0.3.6", | ||
"acorn-private-methods": "^0.3.3", | ||
"acorn-static-class-features": "^0.2.4" | ||
}, | ||
"version": "3.1.0", | ||
"version": "4.0.0", | ||
"devDependencies": { | ||
@@ -34,0 +32,0 @@ "acorn": "^8", |
@@ -14,3 +14,3 @@ "use strict" | ||
run( | ||
(content, options) => Parser.parse(content, {sourceType: options.sourceType, ecmaVersion: 11, allowHashBang: true, allowAwaitOutsideFunction: true}), | ||
(content, options) => Parser.parse(content, {sourceType: options.sourceType, ecmaVersion: 12, allowHashBang: true, allowAwaitOutsideFunction: true}), | ||
{ | ||
@@ -17,0 +17,0 @@ testsDirectory: path.dirname(require.resolve("test262/package.json")), |
@@ -10,3 +10,3 @@ "use strict" | ||
const parse = testCode => Parser.parse(testCode, { ecmaVersion: 11, sourceType: "module" }) | ||
const parse = testCode => Parser.parse(testCode, { ecmaVersion: 12, sourceType: "module" }) | ||
@@ -23,3 +23,3 @@ function test(testCode, ast) { | ||
try { | ||
Parser.parse(text, Object.assign({ ecmaVersion: 11, plugins: { numericSeparator: true } }, additionalOptions)) | ||
Parser.parse(text, Object.assign({ ecmaVersion: 12, additionalOptions })) | ||
} catch (e) { | ||
@@ -26,0 +26,0 @@ assert.strictEqual(e.message, expectedError) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4
48587
1171
- Removedacorn-logical-assignment@^0.1.4
- Removedacorn-numeric-separator@^0.3.6
- Removedacorn-logical-assignment@0.1.4(transitive)
- Removedacorn-numeric-separator@0.3.6(transitive)