acorn
Advanced tools
Comparing version 8.7.1 to 8.8.0
@@ -0,1 +1,13 @@ | ||
## 8.8.0 (2022-07-21) | ||
### Bug fixes | ||
Allow parentheses around spread args in destructuring object assignment. | ||
Fix an issue where the tree contained `directive` properties in when parsing with a language version that doesn't support them. | ||
### New features | ||
Support hashbang comments by default in ECMAScript 2023 and later. | ||
## 8.7.1 (2021-04-26) | ||
@@ -2,0 +14,0 @@ |
@@ -19,3 +19,3 @@ { | ||
}, | ||
"version": "8.7.1", | ||
"version": "8.8.0", | ||
"engines": { | ||
@@ -22,0 +22,0 @@ "node": ">=0.4.0" |
@@ -57,6 +57,6 @@ # Acorn | ||
either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10 (2019), | ||
11 (2020), 12 (2021), 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. | ||
11 (2020), 12 (2021), 13 (2022), 14 (2023), or `"latest"` (the | ||
latest the library supports). This influences support for strict | ||
mode, the set of reserved words, and support for new syntax | ||
features. | ||
@@ -108,5 +108,5 @@ **NOTE**: Only 'stage 4' (finalized) ECMAScript features are being | ||
- **allowHashBang**: When this is enabled (off by default), if the | ||
code starts with the characters `#!` (as in a shellscript), the | ||
first line will be treated as a comment. | ||
- **allowHashBang**: When this is enabled, if the code starts with the | ||
characters `#!` (as in a shellscript), the first line will be | ||
treated as a comment. Defaults to true when `ecmaVersion` >= 2023. | ||
@@ -113,0 +113,0 @@ - **locations**: When `true`, each node has a `loc` object attached |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
466429
10225