Tags: Gregoryplys/acorn
Tags
Version 8.8.2 ### Bug fixes Fix a bug that caused `allowHashBang` to be set to false when not provided, even with `ecmaVersion >= 14`. Fix an exception when passing no option object to `parse` or `new Parser`. Fix incorrect parse error on `if (0) let\n[astral identifier char]`.
Version 8.8.0 ### 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.
Version 8.7.0 ### New features Support quoted export names. Upgrade to Unicode 14. Add support for Unicode 13 properties in regular expressions. ### Bug fixes Use a loop to find line breaks, because the existing regexp search would overrun the end of the searched range and waste a lot of time in minified code.
Version 8.5.0 ### Bug fixes Improve context-dependent tokenization in a number of corner cases. Fix location tracking after a 0x2028 or 0x2029 character in a string literal (which before did not increase the line number). Fix an issue where arrow function bodies in for loop context would inappr B551 opriately consume `in` operators. Fix wrong end locations stored on SequenceExpression nodes. Implement restriction that `for`/`of` loop LHS can't start with `let`. ### New features Add support for ES2022 class static blocks. Allow multiple input files to be passed to the CLI tool.
Version 8.3.0 ### New features Default `allowAwaitOutsideFunction` to true for ECMAScript 2022 an higher. Add support for the `p` ([indices](https://github.com/tc39/proposal-regexp-match-indices)) regexp flag.
PreviousNext