Skip to content

Tags: lovelib/acorn

Tags

5.3.0

Toggle 5.3.0's commit message

Verified

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

### Bug fixes

Fix parsing of floating point literals with leading zeroes in loose mode.

Allow duplicate property names in object patterns.

Don't allow static class methods named `prototype`.

Disallow async functions directly under `if` or `else`.

Parse right-hand-side of `for`/`of` as an assignment expression.

Stricter parsing of `for`/`in`.

Don't allow unicode escapes in contextual keywords.

### New features

Parsing class members was factored into smaller methods to allow plugins to hook into it.

5.2.1

Toggle 5.2.1's commit message

Verified

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

### Bug fixes

Fix a token context corruption bug.

5.2.0

Toggle 5.2.0's commit message

Verified

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

### Bug fixes

Fix token context tracking for `class` and `function` in property-name position.

Make sure `%*` isn't parsed as a valid operator.

The `full` and `fullAncestor` walkers no longer visit nodes multiple times.

Allow shorthand properties `get` and `set` to be followed by default values.

Disallow `super` when not in callee or object position.

### New features

Support [`directive` property](estree/estree@b3de58c...1da8e60) on directive expression statements.

5.1.2

Toggle 5.1.2's commit message

Verified

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

### Bug fixes

Disable parsing of legacy HTML-style comments in modules.

Fix parsing of async methods whose names are keywords.

5.1.1

Toggle 5.1.1's commit message

Verified

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

### Bug fixes

Fix problem with disambiguating regexp and division after a class.

5.1.0

Toggle 5.1.0's commit message

Verified

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

### Bug fixes

Fix tokenizing of regexps in an object-desctructuring `for`/`of` loop and after `yield`.

Parse zero-prefixed numbers with non-octal digits as decimal.

Allow object/array patterns in rest parameters.

Don't error when `yield` is used as a property name.

Allow `async` as a shorthand object property.

Make the ES module version of the loose parser actually work.

### New features

Implement the [template literal revision proposal](https://github.com/tc39/proposal-template-literal-revision) for ES9.

New walker functions `full` and `fullAncestor`.

5.0.3

Toggle 5.0.3's commit message
Mark version 5.0.3

5.0.2

Toggle 5.0.2's commit message
Mark version 5.0.2

5.0.1

Toggle 5.0.1's commit message
Mark version 5.0.1

5.0.0

Toggle 5.0.0's commit message
Release version 5.0.0

This is 4.0.12, but as a major version bump. 4.0.12 is deprecated.