PackageTrack

npm · #4647 most downloaded on npm

@lezer/javascript

1.5.4lezer-parser/javascript

lezer-based JavaScript grammar

Release timeline

41 releases since 2021
20222023202420252026

Releases

  1. 1.5.418 Sept 2025
    Release notes

    Bug fixes

    Support this parameters in function types.

    Open source →
  2. 1.5.39 Sept 2025
    Release notes

    Bug fixes

    Fix missing highlight tag for defer contextual keyword.

    Open source →
  3. 1.5.24 Sept 2025
    Release notes

    Bug fixes

    Allow const casts with old angle-bracket cast syntax.

    Add support for import defer syntax.

    Open source →
  4. 1.5.118 Apr 2025
    Release notes

    Bug fixes

    Properly highlight satisfies as a keyword.

    Open source →
  5. 1.5.017 Apr 2025
    Release notes

    Bug fixes

    Support in/out modifiers on TypeScript type parameters.

    New features

    Support the TypeScript satisfies operator.

    Open source →
  6. 1.4.213 Dec 2024
    Release notes

    Bug fixes

    Add support for const modifiers 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.

    Open source →
  7. 1.4.202 Dec 2024
    Release notes

    Bug fixes

    Use the className style tag for variable names used as constructors with new.

    Add support for asserts syntax in function return types.

    Open source →
  8. 1.4.198 Oct 2024
    Release notes

    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.

    Open source →
  9. 1.4.1817 Sept 2024
    Release notes

    Bug fixes

    Support as syntax in mapped object types.

    Make sure the parser doesn't get confused when a template interpolation is missing its expression.

    Open source →
  10. 1.4.1711 Jun 2024
    Release notes

    Bug fixes

    Add support for {-readonly [K in T]-?: U} TypeScript syntax.

    Open source →
  11. 1.4.164 May 2024
    Release notes

    Bug fixes

    Don't consume ?. tokens when followed by a digit.

    Support type arguments on non-call expressions.

    Open source →
  12. 1.4.1523 Apr 2024
    Release notes

    Bug fixes

    Add support for new.target syntax.

    Open source →
  13. 1.4.1430 Mar 2024
    Release notes

    Bug fixes

    Recognize the d and v RegExp flags. Support destructured parameters in function types

    Allow destructured parameters in function signature types.

    Open source →
  14. 1.4.1316 Jan 2024
    Release notes

    Bug fixes

    Fix inverted relative precedence of &, |, and ^ bitwise operators.

    Add an explicit dependency on @lezer/common ^1.2.0.

    Open source →
  15. 1.4.124 Jan 2024
    Release notes

    Bug fixes

    Mark strings, comments, and interpolations as isolating for bidirectional text.

    Open source →
  16. 1.4.1118 Dec 2023
    Release notes

    Bug fixes

    In TSX mode, parse <T,> or <T extends U> as type parameters, not JSX tags.

    Open source →
  17. 1.4.106 Dec 2023
    Release notes

    Bug fixes

    Support | and & as prefixes in TypeScript types.

    Open source →
  18. 1.4.930 Oct 2023
    Release notes

    Bug fixes

    Allow default to be used in import/export binding sets.

    Open source →
  19. 1.4.85 Oct 2023
    Release notes

    Bug fixes

    Properly highlight using as a keyword.

    Open source →
  20. 1.4.723 Aug 2023
    Release notes

    Bug fixes

    Properly parse hashbang comments.

    Open source →
  21. 1.4.622 Aug 2023
    Release notes

    Bug fixes

    Make sure that, in TypeScript, type argument lists are prefered over comparison operators when both produce valid parses.

    Open source →
  22. 1.4.525 Jul 2023
    Release notes

    Bug fixes

    Allow the index in a TypeScript indexed type to be any kind of type.

    Open source →
  23. 1.4.43 Jul 2023
    Release notes

    Bug fixes

    Add support for using syntax.

    Make the package work with new TS resolution styles.

    Open source →
  24. 1.4.324 Apr 2023
    Release notes

    Bug fixes

    Properly parse this: Type within parameter lists for TypeScript.

    Open source →
  25. 1.4.229 Mar 2023
    Release notes

    Bug fixes

    Properly parse declare in front of class properties and methods in TypeScript.

    Open source →
  26. 1.4.19 Jan 2023
    Release notes

    Bug fixes

    Fix a bug where something like yield [1] (or await) 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 escape tag).

    Open source →
  27. 1.4.019 Dec 2022
    Release notes

    New features

    The new "SingleClassItem" top-level rule can be used to parse only a class item (method, property, or static block).

    Open source →
  28. 1.3.214 Dec 2022
    Release notes

    Bug fixes

    Typescript allows override on all class elements, not just methods.

    Allow expressions in class extends clauses in TypeScript.

    Open source →
  29. 1.3.129 Nov 2022
    Release notes

    Bug fixes

    Actually emit a tree node for the @ characters in decorators.

    Open source →
  30. 1.3.028 Nov 2022
    Release notes

    New features

    Add support for decorator syntax.

    Open source →
  31. 1.2.024 Nov 2022
    Release notes

    New features

    The grammar now supports top: "SingleExpression" to parse an expression rather than a script.

    Open source →
  32. 1.1.119 Nov 2022
    Release notes

    Bug fixes

    Fix parsing of computed properties in class declarations.

    Open source →
  33. 1.1.017 Nov 2022
    Release notes

    Bug fixes

    Fix parsing of 'null' as type in TypeScript.

    Allow computed properties in object destructuring patterns.

    Add TypeScript 4.9's satisfies operator.

    Support accessor syntax 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.

    Open source →
  34. 1.0.221 Jul 2022
    Release notes

    Bug fixes

    Properly assign a highlighting tag to the super keyword.

    Open source →
  35. 1.0.127 Jun 2022
    Release notes

    Bug fixes

    Fix parsing of TypeScript conditional types.

    Support type parameters in TypeScript function type syntax.

    Open source →
  36. 1.0.06 Jun 2022
    Release notes

    New features

    First stable version.

    Open source →
  37. 0.16.020 Apr 2022
    Release notes

    Breaking changes

    Move to 0.16 serialized parser format.

    Bug fixes

    Allow commas as separators in TypeScript object type syntax.

    New features

    Add CatchClause and FinallyClause nodes wrapping parts of TryStatement.

    The parser now includes syntax highlighting information in its node types.

    Open source →
  38. 0.15.326 Jan 2022
    Release notes

    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.

    Open source →
  39. 0.15.28 Dec 2021
    Release notes

    Bug fixes

    Fix a typo in the TaggedTemplateExpression node name. Support n suffixes after non-decimal integers

    Add support for non-decimal bignum literals ().

    Add support for static class initialization blocks.

    Open source →
  40. 0.15.112 Nov 2021
    Release notes

    Bug fixes

    Add support for TypeScript import {type X} from y syntax.

    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 override keyword.

    Open source →
  41. 0.15.011 Aug 2021
    Release notes

    Breaking changes

    The module's name changed from lezer-javascript to @lezer/javascript.

    Upgrade to the 0.15.0 lezer interfaces.

    Open source →