NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet
NuGet, #2425 most downloaded on NuGet
A standard-compliant JavaScript parser, which is a fork of Esprima.NET combined with the .NET port of the acornjs parser.
Latest stable
1.9.1
Last release 28 days ago
25 Oct 2026
Release timing varies
gaps range from 8 days to 8 months
Nearly every release is documented
notes for 21 of 21 stable releases
Nothing withdrawn
no release was ever pulled
3 years old
21 releases · first in 2024
Drag across the ruler to compare, or tap a release to open it.
Eliminate unnecessary copying when parsing sequence expressions.
Improvements:
Bug fixes:
arguments not being allowed as a label in class field initializers and static blocks (see https://github.com/acornjs/acorn/issues/1473).in/instanceof keyword (see https://github.com/acornjs/acorn/issues/1475).Introduce Tokenizer.TryParse... static helper methods to enable standalone parsing of ECMAScript literals.
New features:
Tokenizer.TryParse... static helper methods to enable standalone parsing of ECMAScript literals.Improvements:
for (var x = 1 in {}) {} is now accepted in sloppy mode,f() = 1 is now accepted in strict mode as well,Bug fixes:
let, using, etc. (see https://github.com/acornjs/acorn/issues/1464).const/using/await using being incorrectly allowed before in/of outside for statements (see https://github.com/acornjs/acorn/issues/1470).Your coding agent can read these notes before it upgrades. Set up the MCP server →
Introduce ParserOptions.AllowSuperCallOutsideConstructor to support PerformEval (see #44).
New features:
ParserOptions.AllowSuperCallOutsideConstructor to support PerformEval (see #44).Bug fixes:
ParserOptions.AllowSuperOutsideMethod to reject super property access in function contexts outside of classes (see https://github.com/adams85/acornima/pull/44#issuecomment-5316406338).super() in class fields when the class is declared inside another class's constructor (see https://github.com/adams85/acornima/pull/44#issuecomment-5316406338).Significant performance improvements to execution time and memory allocation (see #41, #42, #43 - big thanks to @lahma!):
Improvements:
Significant performance improvements to execution time and memory allocation (see #41, #42, #43 - big thanks to @lahma!):
| Diff | Method | FileName | Mean | Error | Allocated |
|---|---|---|---|---|---|
| Old | AcornimaParse | angular-1.2.5 | 6,537.2 μs | 41.25 μs | 3970.92 KB |
| New | 5,802.3 μs (-11%) | 33.54 μs | 3746.47 KB (-6%) | ||
| Old | AcornimaParse | angular-1.7.9 | 14,917.3 μs | 200.57 μs | 6719.28 KB |
| New | 10,488.5 μs (-30%) | 64.75 μs | 6380.38 KB (-5%) | ||
| Old | AcornimaParse | backbone-1.1.0 | 806.5 μs | 3.85 μs | 628.3 KB |
| New | 718.7 μs (-11%) | 23.39 μs | 585.99 KB (-7%) | ||
| Old | AcornimaParse | jquery-1.9.1 | 4,897.8 μs | 67.04 μs | 3263.86 KB |
| New | 4,309.8 μs (-12%) | 36.58 μs | 3122.52 KB (-4%) | ||
| Old | AcornimaParse | jquery.mobile-1.4.2 | 8,620.0 μs | 88.40 μs | 5443.43 KB |
| New | 7,329.0 μs (-15%) | 75.73 μs | 5231.79 KB (-4%) | ||
| Old | AcornimaParse | mootools-1.4.5 | 4,068.6 μs | 33.49 μs | 2750.82 KB |
| New | 3,384.7 μs (-17%) | 15.17 μs | 2609.48 KB (-5%) | ||
| Old | AcornimaParse | underscore-1.5.2 | 695.8 μs | 4.79 μs | 528.92 KB |
| New | 589.2 μs (-15%) | 4.38 μs | 500.55 KB (-5%) | ||
| Old | AcornimaParse | yui-3.12.0 | 3,693.0 μs | 21.02 μs | 2607.91 KB |
| New | 3,282.1 μs (-11%) | 4.38 μs | 2466.57 KB (-5%) |
Bug fixes:
OnToken callback for edge cases (see also https://github.com/acornjs/acorn/pull/1443#issuecomment-5171206841).ParenthesizedExpression is omitted from the AST when converting existing expressions to pattern nodes, despite enabling the PreserveParens option.await expressions as the left side of exponentiation.({ *m() { yield <></> } }) and ({ async m() { await <></> } })).let/var/const line without terminating semicolon (see also https://github.com/acornjs/acorn-jsx/issues/92).Acornima.Cli's tokenizer mode.Eliminate some unnecessary range checks and a few other micro-optimizations.
Improvements:
Bug fixes:
/[!-\#]/v).Tokenizer.AdaptRegExp and Tokenizer.ValidateRegExp.Fix bug that disallows quantifier after modifier groups in flag v regexp patterns (i.e., in patterns like /(?i:x)?/v).
Bug fixes:
/(?i:x)?/v).Implement the Source phase imports and Deferring module evaluation Stage 3 proposals as experimental features (see #39).
New features:
Bug fixes:
Expose information about the parsed code to OnNode callbacks.
Improvements:
OnNode callbacks.NotNullWhen attribute to the signature Tokenizer.ValidateRegExp to improve nullable static analysis.Bug fixes:
\w and \W character classes in regexp patterns. (U+0130 should not be matched.)$ anchor in regexp patterns. (In .NET, \z should be used instead of $ to avoid matching before potential newline at the end of the input string.)Breaking changes:
context parameter of ParserOptions.OnNode callbacks to be passed by-ref.The corresponding members in ExperimentalESFeatures have been deprecated as these features are now enabled for the related EcmaVersion compatibility l…
This release brings full support for ES2026.
The Import Attributes, Duplicate named capturing groups, Regular expression modifiers and Explicit resource management features are no longer experimental. The corresponding members in ExperimentalESFeatures have been deprecated as these features are now enabled for the related EcmaVersion compatibility levels by default.
A side note about regular expressions: For flag v patterns, only validation is supported. There are no plans to implement JS RegExp to .NET Regex conversion for flag v mode. Moreover, conversion logic for the other modes is going to be extracted into a separate library in v2.0. Therefore, this release deprecates regular expression conversion-related APIs but introduces new extension points (TokenizerOptions.OnRegExp and ParserOptions.OnRegExp) to take control over regular expression parsing if needed.
New features:
TokenizerOptions.OnRegExp and ParserOptions.OnRegExp as an alternative to TokenizerOptions.RegExpParseMode and ParserOptions.RegExpParseMode, respectively.Improvements:
EcmaVersion to allow parsing against the recent ECMAScript standards, up to ES2026.Breaking changes:
RegExpParseResult.ConversionError property to ParseError.Implement Annex B.3.9 ("Runtime Errors for Function Call Assignment Targets") (see https://github.com/acornjs/acorn/pull/1433, #33)
Improvements:
Bug fixes:
using/await using edge cases in for loops (see https://github.com/acornjs/acorn/pull/1432, #31, #32)Disallow new super() expressions (see also https://github.com/acornjs/acorn/issues/1431).
Bug fixes:
new super() expressions (see also https://github.com/acornjs/acorn/issues/1431).Implement Regular Expression Modifiers as an experimental feature (see ExperimentalESFeatures.RegExpModifiers).
New features:
ExperimentalESFeatures.RegExpModifiers).Improvements:
Breaking changes:
DuplicateImportAttribute to ImportAttributesDuplicateKey to match V8 naming.RegExpInvalidClassEscape as it is no longer reported.Minor improvement to error reporting (adjust some RegExp-related error messages changed in V8 recently).
Improvements:
Bug fixes:
ConditionalExpression to be an unparenthesized ArrowFunctionExpression (see also https://github.com/acornjs/acorn/pull/1428).Mark the deprecated Expression property of function nodes as obsolete.
New features:
ExperimentalESFeatures.ExplicitResourceManagement).Improvements:
net6.0 from the target frameworks.Expression property of function nodes as obsolete.each property of ForInStatement from the output of AST to JSON conversion.Bug fixes:
AllowReturnOutsideFunction is used (see also https://github.com/acornjs/acorn/pull/1378).Fix parsing bug related to handling await in class property initializers in non-module code (see also https://github.com/acornjs/acorn/issues/1334, ht
Bug fixes:
Parser.Reset/JsxParser.Resert to correctly reset the underlying tokenizer.Deprecate NodeList.Create and add From instead for consistency.
New features:
ParserOptions.OnNode callback.Improvements:
OnNode callback even when enabling ParserOptionsExtensions.RecordParentNodeInUserData.Reset method to AstVisitor which can be used by inheritors to reset recursion depth tracking if they want to make the visitor instance reusable even if visitation is interrupted by an exception.NodeList.Create and add From instead for consistency.FileParsingBenchmark, .NET 8, x64:
| Diff | Method | FileName | Mean | Error | Allocated |
|---|---|---|---|---|---|
| Old | AcornimaParse | bundle | 332.005 ms | 4.1200 ms | 75.53 MB |
| New | 330.062 ms (-1%) | 4.6807 ms | 75.52 MB (0%) | ||
| Old | AcornimaParse | jquery-1.9.1 | 8.189 ms | 0.0827 ms | 3.19 MB |
| New | 8.112 ms (-1%) | 0.0799 ms | 3.19 MB (0%) | ||
| Old | AcornimaParse | yui-3.12.0 | 6.411 ms | 0.0080 ms | 2.55 MB |
| New | 6.312 ms (-2%) | 0.0152 ms | 2.55 MB (0%) |
Bug fixes:
CatchClause node to JS code.Breaking changes:
context) to the ParserOptions.OnNode callback (more precisely, to the OnNodeHandler delegate).Node) to the INode interface, which can be used to access the underlying Node instance 3-4x faster than via type casting.Support for parsing and generating JSX. (See the JsxParser class and ToJsx extension methods, respectively).
New features:
JsxParser class and ToJsx extension methods, respectively).Improvements:
Breaking changes:
ObjectProperty (the method parameter comes last).VisitProperty method from the visitors and introduce VisitAssignmentProperty and VisitObjectProperty instead.VisitFunctionBody method to the visitors. Visitation of function bodies are no longer dispatched to VisitBlockStatement.ToJavaScriptString extension methods to ToJavaScript.ToJsonString extension methods to ToJson.RegExpValue and TemplateValue and provide factory methods (From) instead.Add RangeRef and LocationRef to INode as well.
Improvements:
RangeRef and LocationRef to INode as well.Tokenizer and Parser.Bug fixes:
Breaking changes:
IDestructuringElement to IDestructuringPatternElementIntroduce ParserOptions.ExperimentalESFeatures to allow fine-tuning which experimental feature to enable.
Improvements:
ParserOptions.ExperimentalESFeatures to allow fine-tuning which experimental feature to enable.BindingPattern to the AST under the name DestructuringPattern.Literal.Value from re-boxing the return value on every call by caching it when necessary (i.e. in the case of NumericLiteral, BigIntLiteral).Node.Range and Node.Location as readonly references (see Node.RangeRef and Node.LocationRef, respectively).ParseError (as it's not reliable to check error messages because those are localizable).Breaking changes:
EcmaVersion.Experimental.IVarScope to IHoistingScope.IDestructuringPattern to IDestructuringElement.Add option to allow new.target meta-properties outside functions (ParserOptions.AllowNewTargetOutsideFunction).
Improvements:
new.target meta-properties outside functions (ParserOptions.AllowNewTargetOutsideFunction).Breaking changes:
CatchClause.Body, TryStatement.Block and TryStatement.Finalizer to NestedBlockStatement (which is sealed).Initial release with complete support for ES2023 parsing (including some experimental features like decorators and import attributes). 🎉
Initial release with complete support for ES2023 parsing (including some experimental features like decorators and import attributes). 🎉
It's not v1.0.0 mostly because JSX is still missing. Also, even though the public API should be pretty stable now, there might be minor changes to it before v1.0.0.
One column per month.