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.
Fix a bug where the parser would raise an error when an invalid escape was included in an identifier after a keyword.
Use a set of new, much more precise, TypeScript types.
Support quoted export names.
Support class private fields with the in
operator.
Fix a bug that caused semicolons after export *
statements to be parsed as empty statements.
Depend on the proper version of acorn.
Add support for ES2022 class static blocks.
Add support for ES2022 class fields and private methods.
Adjust package.json to work with Node 12.16.0 and 13.0-13.6.
Allow for await
at the top level.
The package can now be loaded directly as an ECMAScript module in node 13+.
The ecmaVersion
option is now required. For the moment, omitting it will still work with a warning, but that will change in a future release.
Fix various issues in regexp validation.
Add support for import.meta
.
Add support for optional chaining (?.
) and nullish coalescing (??
).
Support export * as ns from "source"
.
Changes the node format for dynamic imports to use the ImportExpression
node type, as defined in ESTree.
Support bigint syntax.
Support dynamic import.
This module has been moved into its own package, acorn-loose
.
Plugins work differently, and will have to be rewritten to work with this version.
The parse_dammit
function is now simply called parse
.
Make the ES module version of the loose parser actually work.
Fix issue with loading acorn_loose.js with an AMD loader.
Don't crash when the loose parser is called without options object.
Fix issue where the loose parser created invalid TemplateElement nodes for unclosed template literals.
Make sure the loose parser always attaches a local
property to ImportNamespaceSpecifier
nodes.
Fix crash in loose parser when parsing invalid object pattern.
Support plugins in the loose parser.
In the loose parser, don't allow non-string-literals as import sources.