I’ve just tagged Acorn 6.0.0. This is a backwards-incompatible release. It splits the loose parser and the AST walker off into separate modules (
acorn-walk), and changes the way the plugin system works.
You can get the package from npm as usual, or look at the new patches on GitHub.
Better handle variable-redefinition checks for catch bindings and functions directly under if statements.
new.target in top-level arrow functions.
Fix issue with parsing a regexp after
yield in some contexts.
The package now comes with TypeScript definitions.
The default value of the
ecmaVersion option is now 9 (2018).
Plugins work differently, and will have to be rewritten to work with this version.
The loose parser and walker have been moved into separate packages (
parse_dammit function in the loose parser is now simply called
ScopeExpression meta node-types in the AST walker are no longer supported.