acorn on npm
6.1.1 (27 Feb 2019 07:02)
Fix failure to tokenize regexps after expressions like
Better error message for unterminated template literals.
allowAwaitOutsideFunction in for statements.
Treat function declarations at the top level of modules like let bindings.
Don't allow async function declarations as the only statement under a label.
Make sure the walker and bin files are rebuilt on release (the previous release didn't get the up-to-date versions).
Fix crash in walker when walking a binding-less catch node.
Upgraded to Unicode 11.
In the walker, go back to allowing the
baseVisitor argument to be null to default to the default base everywhere.
Fix regression when passing
null as fourth argument to
Fix a bug in the walker that caused a crash when walking an object pattern spread.
Allow U+2028 and U+2029 in string when ECMAVersion >= 10.
Allow binding-less catch statements when ECMAVersion >= 10.
allowAwaitOutsideFunction option for parsing top-level
A second republish of the code in 5.5.1, this time with yarn, to hopefully get valid timestamps.
A republish of the code in 5.5.1 in an attempt to solve an issue with the file timestamps in the npm package being 0.
Fix regression in walker causing property values in object patterns to be walked as expressions.
Fix misleading error message for octal escapes in template strings.
Support object spread in the AST walker.
The identifier character categorization is now based on Unicode version 10.
Acorn will now validate the content of regular expressions, including new ES9 features.
5.4.0 somehow accidentally included an old version of walk.js.
Disallow duplicate or escaped flags on regular expressions.
Disallow octal escapes in strings in strict mode.
Add support for async iteration.
Add support for object spread and rest.
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
Disallow async functions directly under
Parse right-hand-side of
of as an assignment expression.
Stricter parsing of
Don't allow unicode escapes in contextual keywords.
Parsing class members was factored into smaller methods to allow plugins to hook into it.
Fix a token context corruption bug.
Fix token context tracking for
function in property-name position.
%* isn't parsed as a valid operator.
fullAncestor walkers no longer visit nodes multiple times.
Allow shorthand properties
set to be followed by default values.
super when not in callee or object position.
directive property on directive expression statements.
Disable parsing of legacy HTML-style comments in modules.
Fix parsing of async methods whose names are keywords.
Fix problem with disambiguating regexp and division after a class.
Fix tokenizing of regexps in an object-desctructuring
of loop and after
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.
async as a shorthand object property.
Make the ES module version of the loose parser actually work.
Implement the template literal revision proposal for ES9.
New walker functions
Fix spurious duplicate variable definition errors for named functions.
A binary operator after a parenthesized arrow expression is no longer incorrectly treated as an error.
Raise an error for duplicated lexical bindings.
Fix spurious error when an assignement expression occurred after a spread expression.
Accept regular expressions after
yield (in a generator), and braced arrow functions.
Allow labels in front or
var declarations, even in strict mode.
Parse declarations following
export default as declaration nodes, not expressions. This means that class and function declarations nodes can now have
null as their
Allow all forms of member expressions to be parenthesized as lvalue.
Don't expect semicolons after default-exported functions or classes, even when they are expressions.
Check for use of
'use strict' directives in non-simple parameter
functions, even when already in strict mode.
Fix incorrect error raised for parenthesized simple assignment
targets, so that
(x) = 1 parses again.
Solve spurious parenthesized pattern errors by temporarily erring on the side of accepting programs that our delayed errors don't handle correctly yet.
Accept invalidly rejected code like
(x).y = 2 again.
Don't raise an error when a function inside strict code has a non-simple parameter list.
Fix exponential behavior (manifesting itself as a complete hang for even relatively small source files) introduced by the new 'use strict' check.
Disallow parenthesized pattern expressions.
Allow keywords as export names.
Don't allow the
async keyword to be parenthesized.
Properly raise an error when a keyword contains a character escape.
"use strict" to appear after other string literal expressions.
Disallow labeled declarations.
Fix issue with loading acorn_loose.js with an AMD loader.
Fix crash when
export was followed by a keyword that can't be
Allow regular function declarations inside single-statement
branches in loose mode. Forbid them entirely in strict mode.
Properly parse properties named
async in ES2017 mode.
Fix bug where reserved words were broken in ES2017 mode.
Don't ignore period or 'e' characters after octal numbers.
Fix broken parsing for call expressions in default parameter values of arrow functions.
Fix false positives in duplicated export name errors.
ecmaVersion option value is now 7.
A number of internal method signatures changed, so plugins might need to be updated.
The parser now raises errors on duplicated export names.
eval can now be used in shorthand properties.
Duplicate parameter names in non-simple argument lists now always produce an error.
ecmaVersion option now also accepts year-style version numbers
await syntax when
ecmaVersion is >= 8.
Support for trailing commas in call expressions when
is >= 8.
Fix bug in tokenizing of regexp operator after a function declaration.
Fix parser crash when parsing an array pattern with a hole.
Implement check against complex argument lists in functions that enable strict mode in ES7.
Improve handling of lack of unicode regexp support in host environment.
Properly reject shorthand properties whose name is a keyword.
Don't crash when the loose parser is called without options object.
Visitors created with
visit.make now have their base as prototype,
rather than copying properties into a fresh object.
Make it possible to use
visit.ancestor with a walk state.
Fix issue where the loose parser created invalid TemplateElement nodes for unclosed template literals.
Properly tokenize the division operator directly after a function expression.
Allow trailing comma in destructuring arrays.
The walker now allows defining handlers for
Allow update expressions as left-hand-side of the ES7 exponential operator.
Fix bug that accidentally made
undefined a reserved word when
The default value of the
ecmaVersion option is now 6 (used to be 5).
Support for comprehension syntax (which was dropped from the draft spec) has been removed.
yield are now “contextual keywords”, meaning you can
mostly use them as identifiers in ES5 non-strict code.
A parenthesized class or function expression after
export default is
now parsed correctly.
ecmaVersion is set to 7, Acorn will parse the exponentiation
The identifier character ranges are now based on Unicode 8.0.0.
Plugins can now override the
raiseRecoverable method to override the
way non-critical errors are handled.
Stop allowing rest parameters in setters.
Make sure the loose parser always attaches a
local property to
y rexexp flag in ES5.
\000 escapes in strict mode.
Raise an error when an import name is a reserved word.
Fix crash in loose parser when parsing invalid object pattern.
Support plugins in the loose parser.
Don't crash when no options object is passed.
await as a reserved word in module sources.
yield in a parameter default value for a generator.
Forbid using a comma after a rest pattern in an array destructuring.
Support parsing stdin in command-line tool.
Fix bug where the walker walked an exported
let statement as an
Fix tokenizer support in the command-line tool.
In the loose parser, don't allow non-string-literals as import sources.
new.target outside of functions.
guardedHandler properties from try nodes.
Stop allowing multiple
__proto__ properties on an object literal in
Don't allow rest parameters to be non-identifier patterns.
Check for duplicate paramter names in arrow functions.
|6.1.1||27 Feb 2019 07:02|
|6.1.0||08 Feb 2019 09:02|
|6.0.7||04 Feb 2019 09:02|
|6.0.6||30 Jan 2019 08:01|
|6.0.5||02 Jan 2019 11:01|
|6.0.4||05 Nov 2018 09:11|
|6.0.3||04 Nov 2018 13:11|
|6.0.2||26 Sep 2018 06:09|
|6.0.1||14 Sep 2018 07:09|
|6.0.0||14 Sep 2018 07:09|
|5.7.3||10 Sep 2018 09:09|
|5.7.2||24 Aug 2018 06:08|
|5.7.1||15 Jun 2018 11:06|
|5.7.0||15 Jun 2018 10:06|
|5.6.2||05 Jun 2018 06:06|
|5.6.1||01 Jun 2018 07:06|
|5.6.0||31 May 2018 08:05|
|5.5.3||08 Mar 2018 09:03|
|5.5.2||08 Mar 2018 09:03|
|5.5.1||06 Mar 2018 11:03|
|5.5.0||27 Feb 2018 07:02|
|5.4.1||02 Feb 2018 09:02|
|5.4.0||01 Feb 2018 21:02|
|5.3.0||28 Dec 2017 13:12|
|5.2.1||29 Oct 2017 16:10|
|5.2.0||29 Oct 2017 09:10|
|5.1.2||04 Sep 2017 08:09|
|5.1.1||06 Jul 2017 07:07|
|5.1.0||05 Jul 2017 15:07|
|4.0.13||24 May 2017 10:05|
|5.0.3||01 Apr 2017 17:04|
|5.0.2||30 Mar 2017 07:03|
|5.0.1||30 Mar 2017 06:03|
|5.0.0||28 Mar 2017 11:03|
|4.0.12||28 Mar 2017 10:03|
|4.0.11||07 Feb 2017 14:02|
|4.0.10||07 Feb 2017 08:02|
|4.0.9||06 Feb 2017 10:02|
|4.0.8||03 Feb 2017 08:02|
|4.0.7||02 Feb 2017 23:02|
|4.0.6||02 Feb 2017 23:02|
|4.0.5||02 Feb 2017 21:02|
|4.0.4||19 Dec 2016 14:12|
|4.0.3||16 Sep 2016 08:09|
|4.0.2||11 Sep 2016 19:09|
|4.0.1||08 Sep 2016 08:09|
|4.0.0||07 Sep 2016 08:09|
|3.3.0||25 Jul 2016 21:07|
|3.2.0||07 Jun 2016 11:06|
|3.1.0||18 Apr 2016 08:04|
|3.0.4||25 Feb 2016 08:02|
|3.0.2||10 Feb 2016 10:02|
|3.0.0||10 Feb 2016 09:02|
|2.7.0||04 Jan 2016 10:01|
|2.6.4||12 Nov 2015 21:11|
|2.6.2||10 Nov 2015 08:11|
|2.6.0||09 Nov 2015 10:11|
|2.5.2||27 Oct 2015 21:10|
|2.5.0||27 Oct 2015 21:10|
|2.4.0||01 Sep 2015 15:09|
|2.3.0||17 Aug 2015 10:08|
|2.2.0||06 Aug 2015 11:08|
|2.1.0||17 Jul 2015 08:07|
|2.0.4||19 Jun 2015 18:06|
|1.2.2||28 May 2015 07:05|
|2.0.1||22 May 2015 14:05|
|1.2.1||22 May 2015 14:05|
|2.0.0||22 May 2015 14:05|
|1.2.0||22 May 2015 14:05|
|1.1.0||12 May 2015 09:05|
|1.0.3||07 Apr 2015 20:04|
|1.0.1||25 Mar 2015 11:03|
|1.0.0||25 Mar 2015 11:03|
|0.12.0||02 Mar 2015 10:03|
|0.11.0||17 Dec 2014 10:12|
|0.10.0||11 Dec 2014 13:12|
|0.9.0||01 Oct 2014 21:10|
|0.8.0||12 Sep 2014 14:09|
|0.7.0||14 Aug 2014 11:08|
|0.6.0||06 Jun 2014 20:06|
|0.5.0||12 Mar 2014 16:03|
|0.4.2||15 Oct 2013 11:10|
|0.4.0||10 Oct 2013 08:10|
|0.3.1||11 Jun 2013 10:06|
|0.3.0||11 Jun 2013 10:06|
|0.2.0||03 May 2013 09:05|
|0.1.0||14 Feb 2013 08:02|
|0.0.1||24 Sep 2012 10:09|