Skip to content

Tags: acornjs/acorn

Tags

8.12.1

Toggle 8.12.1's commit message
Version 8.12.1

### Bug fixes

Fix a regression that caused Acorn to no longer run on Node versions <8.10.

8.12.0

Toggle 8.12.0's commit message
Version 8.12.0

### New features

Support ES2025 duplicate capture group names in regular expressions.

### Bug fixes

Include `VariableDeclarator` in the `AnyNode` type so that walker objects can refer to it without getting a type error.

Properly raise a parse error for invalid `for`/`of` statements using `async` as binding name.

Properly recognize \"use strict\" when preceded by a string with an escaped newline.

Mark the `Parser` constructor as protected, not private, so plugins can extend it without type errors.

Fix a bug where some invalid `delete` expressions were let through when the operand was parenthesized and `preserveParens` was enabled.

Properly normalize line endings in raw strings of invalid template tokens.
    
Properly track line numbers for escaped newlines in strings.

Fix a bug that broke line number accounting after a template literal with invalid escape sequences.

8.11.3

Toggle 8.11.3's commit message
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.

8.11.2

Toggle 8.11.2's commit message
Version 8.11.2

### Bug fixes

Fix a bug that caused regular expressions after colon tokens to not be properly tokenized in some circumstances.

8.11.1

Toggle 8.11.1's commit message
Version 8.11.1

### Bug fixes

Fix a regression where `onToken` would receive 'name' tokens for 'new' keyword tokens.

8.11.0

Toggle 8.11.0's commit message
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.

8.10.0

Toggle 8.10.0's commit message
Version 8.10.0

### New features

Add a `checkPrivateFields` option that disables strict checking of private property use.

8.9.0

Toggle 8.9.0's commit message
Version 8.9.0

### Bug fixes

Forbid dynamic import after `new`, even when part of a member expression.

### New features

Add Unicode properties for ES2023.

Add support for the `v` flag to regular expressions.

8.8.2

Toggle 8.8.2's commit message

Verified

This tag was signed with the committer’s verified signature.
marijnh Marijn Haverbeke
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]`.

8.8.1

Toggle 8.8.1's commit message

Verified

This tag was signed with the committer’s verified signature.
marijnh Marijn Haverbeke
Version 8.8.1

### Bug fixes

Make type for `Comment` compatible with estree types.