Tags: Probensyano/acorn
Tags
Version 8.11.3 ### Bug fixes Add `Function` and `Class` to the `AggregateType` type, so that they can be used in walkers without raising a type error. Make sure `onToken` get an `import` keyword token when parsing `import.meta`. Fix a bug where `.loc.start` could be undefined for `new.target` `meta` nodes.
Version 8.11.0 ### Bug fixes Fix an issue where tokenizing (without parsing) an object literal with a property named `class` or `function` could, in some circumstance, put the tokenizer into an invalid state. Fix an issue where a slash after a call to a propery named the same as some keywords would be tokenized as a regular expression. ### New features Upgrade to Unicode 15.1. Use a set of new, much more precise, TypeScript types.
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.
PreviousNext