Skip to content

Releases: MatAtBread/acorn-es7-plugin

Fix parsing of IIAFE `(async function (){ }())` with acorn v3.

30 Mar 09:50

Choose a tag to compare

Fix parsing of IIAFE (async function (){ }()) with acorn v3.

Add tests.

Correct parsing of `class Foo { static get() {...} }`

28 Dec 14:59

Choose a tag to compare

1.1.5

Add tests for static class getters/methods

Disambiguate async, get and set when defining object properties

06 Oct 16:22

Choose a tag to compare

Fix disambiguation of async, get and set tokens (and add tests) when defining object properties

Update for acorn v4. Also works with v2 and v3

26 Sep 11:38

Choose a tag to compare

Update to work with acorn v4, if present. Note that async and await are fully parsed by acorn v4. The use cases for the plugin are:

  • With acorn v4, to use the compiler options which are enable specific parsing modes
  • When the installed version of acorn is unknown (for example if passed from another tool such as webpack)

Correctly parse `async(()=>0)`

24 Sep 22:29

Choose a tag to compare

Correctly parse async(()=>0) as a call to the Identifer 'async', not a failed attempt to define an async arrow.

Implement non-standard "range" property on async nodes

20 Jul 08:59

Choose a tag to compare

Required by tools such as Webpack

Fix issue parsing async methods in classes and object literals which (incorrectly) required the `awaitAnywhere` option

27 Jun 10:08

Choose a tag to compare

(incorrectly) required the `awaitAnywhere` option

Closes https://github.com/MatAtBread/acorn-es7-plugin/issues/12

Parse comments correctly. Add option `inAsyncFunction`

18 May 14:57

Choose a tag to compare

Correctly parse comments between async and function.
Implement the option inAsyncFunction

Correctly parse `export async function name(){...}`

03 May 16:34

Choose a tag to compare

Correctly parse the statement export async function name(){...} as async function name(){...} is a valid named declaration.

Return the original acorn object

26 Feb 15:40

Choose a tag to compare

Update to return the original acorn object. See #4

This is minor update with no functional changes, just a convenience method.