lezer-based JavaScript grammar
Last release 11 months ago
18 Sep 2025
Release timing varies
gaps range from 1 weeks to 5 months
Nearly every release is documented
notes for 41 of 41 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
41 releases · first in 2021
Release timeline
41 releases since 2021Releases
- 1.5.418 Sept 2025
- 1.5.39 Sept 2025
- 1.5.24 Sept 2025
Release notes
Open source →Bug fixes
Allow
constcasts with old angle-bracket cast syntax.Add support for
import defersyntax. - 1.5.118 Apr 2025
- 1.5.017 Apr 2025
Release notes
Open source →Bug fixes
Support
in/outmodifiers on TypeScript type parameters.New features
Support the TypeScript
satisfiesoperator. - 1.4.213 Dec 2024
Release notes
Open source →Bug fixes
Add support for
constmodifiers on TypeScript type parameters.Allow TypeScript syntax, where the condition is just a variable.
Fix a bug where some TypeScript
<tokens didn't appear in the syntax tree. - 1.4.202 Dec 2024
Release notes
Open source →Bug fixes
Use the
classNamestyle tag for variable names used as constructors withnew.Add support for
assertssyntax in function return types. - 1.4.198 Oct 2024
Release notes
Open source →Bug fixes
Support question marks after method names in TypeScript object type notation.
Support bracketed property names in TypeScript object types.
Allow TypeScript interface declarations to extend multiple types.
- 1.4.1817 Sept 2024
Release notes
Open source →Bug fixes
Support
assyntax in mapped object types.Make sure the parser doesn't get confused when a template interpolation is missing its expression.
- 1.4.1711 Jun 2024
- 1.4.164 May 2024
Release notes
Open source →Bug fixes
Don't consume
?.tokens when followed by a digit.Support type arguments on non-call expressions.
- 1.4.1523 Apr 2024
- 1.4.1430 Mar 2024
Release notes
Open source →Bug fixes
Recognize the
dandvRegExp flags. Support destructured parameters in function typesAllow destructured parameters in function signature types.
- 1.4.1316 Jan 2024
Release notes
Open source →Bug fixes
Fix inverted relative precedence of
&,|, and^bitwise operators.Add an explicit dependency on @lezer/common ^1.2.0.
- 1.4.124 Jan 2024
Release notes
Open source →Bug fixes
Mark strings, comments, and interpolations as isolating for bidirectional text.
- 1.4.1118 Dec 2023
Release notes
Open source →Bug fixes
In TSX mode, parse
<T,>or<T extends U>as type parameters, not JSX tags. - 1.4.106 Dec 2023
- 1.4.930 Oct 2023
- 1.4.85 Oct 2023
- 1.4.723 Aug 2023
- 1.4.622 Aug 2023
Release notes
Open source →Bug fixes
Make sure that, in TypeScript, type argument lists are prefered over comparison operators when both produce valid parses.
- 1.4.525 Jul 2023
Release notes
Open source →Bug fixes
Allow the index in a TypeScript indexed type to be any kind of type.
- 1.4.43 Jul 2023
Release notes
Open source →Bug fixes
Add support for
usingsyntax.Make the package work with new TS resolution styles.
- 1.4.324 Apr 2023
Release notes
Open source →Bug fixes
Properly parse
this: Typewithin parameter lists for TypeScript. - 1.4.229 Mar 2023
Release notes
Open source →Bug fixes
Properly parse
declarein front of class properties and methods in TypeScript. - 1.4.19 Jan 2023
Release notes
Open source →Bug fixes
Fix a bug where something like
yield [1](orawait) was parsed as a member expression.Add support for
yield*syntax.Escapes in strings are now parsed as their own tokens (and styled with the
escapetag). - 1.4.019 Dec 2022
Release notes
Open source →New features
The new
"SingleClassItem"top-level rule can be used to parse only a class item (method, property, or static block). - 1.3.214 Dec 2022
Release notes
Open source →Bug fixes
Typescript allows
overrideon all class elements, not just methods.Allow expressions in class extends clauses in TypeScript.
- 1.3.129 Nov 2022
- 1.3.028 Nov 2022
- 1.2.024 Nov 2022
Release notes
Open source →New features
The grammar now supports
top: "SingleExpression"to parse an expression rather than a script. - 1.1.119 Nov 2022
- 1.1.017 Nov 2022
Release notes
Open source →Bug fixes
Fix parsing of 'null' as type in TypeScript.
Allow computed properties in object destructuring patterns.
Add TypeScript 4.9's
satisfiesoperator.Support
accessorsyntax on class properties.New features
Add support for optional call syntax.
Distinguish lower-case JSX element names syntactically, give them a
standard(tagName)highlight tag. - 1.0.221 Jul 2022
- 1.0.127 Jun 2022
Release notes
Open source →Bug fixes
Fix parsing of TypeScript conditional types.
Support type parameters in TypeScript function type syntax.
- 1.0.06 Jun 2022
- 0.16.020 Apr 2022
Release notes
Open source →Breaking changes
Move to 0.16 serialized parser format.
Bug fixes
Allow commas as separators in TypeScript object type syntax.
New features
Add
CatchClauseandFinallyClausenodes wrapping parts ofTryStatement.The parser now includes syntax highlighting information in its node types.
- 0.15.326 Jan 2022
Release notes
Open source →Bug fixes
Support missing values in array pattern syntax.
Support quoted module export names.
New features
Template string interpolations now get their own nodes in the syntax tree.
- 0.15.28 Dec 2021
Release notes
Open source →Bug fixes
Fix a typo in the
TaggedTemplateExpressionnode name. Support n suffixes after non-decimal integersAdd support for non-decimal bignum literals ().
Add support for static class initialization blocks.
- 0.15.112 Nov 2021
Release notes
Open source →Bug fixes
Add support for TypeScript
import {type X} from ysyntax.Indexed TypeScript types can now take type parameters.
Add support for private field syntax.
Rename PropertyNameDefinition node to PropertyDefinition for consistency with other names.
New features
Recognize TypeScript 4.3's
overridekeyword. - 0.15.011 Aug 2021
Release notes
Open source →Breaking changes
The module's name changed from
lezer-javascriptto@lezer/javascript.Upgrade to the 0.15.0 lezer interfaces.