All notable changes to this project will be documented in this file.
This project adheres to Semantic Versioning.
- Fix crash on class methods named
static
:class X { static () {} }
Thanks @kumavis!
- Use acorn's builtin dynamic
import()
parsing. This parses theImportExpression
node type instead of theImport
node type from acorn-node 1.x. - Reject escape sequences in
import.meta
.
- Revert a breaking change in import.meta parsing.
- Fix crash in compiled private-class-elements code.
-
Upgrade acorn to v7.
For backwards compatibility,
acorn-node
still uses theImport
node type for dynamic imports, NOTImportExpression
like acorn v7 and estree. -
Add numeric separator support:
var a = 10_000_000_000_000_000_000_000_000n;
- Add class instance fields support:
class X { pub = 1; #priv = 2; }
- Add class static fields support:
class X { static pub = 1; static #priv = 2; }
- Add
export * as ns
support whensourceType
is 'module':export * as ns from './ns.mjs';
- Allow dynamic
import()
in scripts. - Update minimum dependency versions, fixing a peerDependency warning.
- Add Node 10 and 11 to CI.
- Update acorn-dynamic-import to v4.
- Upgrade acorn to v6.
- Add bigint support.
- Upgrade acorn to support optional catch binding in the AST walker.
- Fix tests on Node <= 0.12.
- Add tests for async iteration, optional catch binding, import.meta, dynamic import, bigint (currently unsupported).
- Add import.meta support. (
sourceType: 'module'
only) - Add dynamic import support. (
sourceType: 'module'
only) - Fix optional catch binding support in the walker.
- Upgrade acorn to 5.6, which supports optional catch bindings and other new syntax features.
- Set ecmaVersion to 2019 to opt in to optional catch bindings etc.
- Upgrade acorn to 5.4, which supports object spread and async iteration.
- Remove acorn5-object-spread plugin.
- Expose
acorn/dist/walk
asacorn-node/walk
.
- Enable
allowHashBang
andallowReturnOutsideFunction
by default.
- Initial release.