Comparing version 8.3.0 to 8.4.0
@@ -0,1 +1,7 @@ | ||
## 8.4.0 (2021-06-11) | ||
### New features | ||
A new option, `allowSuperOutsideMethod`, can be used to suppress the error when `super` is used in the wrong context. | ||
## 8.3.0 (2021-05-31) | ||
@@ -2,0 +8,0 @@ |
@@ -15,3 +15,3 @@ export as namespace acorn | ||
interface Options { | ||
ecmaVersion: 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 'latest' | ||
ecmaVersion: 3 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 'latest' | ||
sourceType?: 'script' | 'module' | ||
@@ -24,2 +24,3 @@ onInsertedSemicolon?: (lastTokEnd: number, lastTokEndLoc?: Position) => void | ||
allowAwaitOutsideFunction?: boolean | ||
allowSuperOutsideMethod?: boolean | ||
allowHashBang?: boolean | ||
@@ -26,0 +27,0 @@ locations?: boolean |
@@ -19,3 +19,3 @@ { | ||
}, | ||
"version": "8.3.0", | ||
"version": "8.4.0", | ||
"engines": {"node": ">=0.4.0"}, | ||
@@ -22,0 +22,0 @@ "maintainers": [ |
@@ -57,5 +57,6 @@ # Acorn | ||
either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10 (2019), | ||
11 (2020), or 12 (2021, partial support), or `"latest"` (the latest | ||
the library supports). This influences support for strict mode, the | ||
set of reserved words, and support for new syntax features. | ||
11 (2020), 12 (2021, partial support), 13 (2022, partial support) | ||
or `"latest"` (the latest the library supports). This influences | ||
support for strict mode, the set of reserved words, and support | ||
for new syntax features. | ||
@@ -104,2 +105,5 @@ **NOTE**: Only 'stage 4' (finalized) ECMAScript features are being | ||
- **allowSuperOutsideMethod**: By default, `super` outside a method | ||
raises an error. Set this to `true` to accept such code. | ||
- **allowHashBang**: When this is enabled (off by default), if the | ||
@@ -106,0 +110,0 @@ code starts with the characters `#!` (as in a shellscript), the |
Sorry, the diff of this file is too big to display
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
453355
10033
281