Packages

oxc-parser

0.159.0 · 16 Nov 2026MIT116.4M / weekRepositoryHomepagenpmAtom feed

Your version

0.160.0

23 Nov 2026Where it was published

In short

3 breaking22 faster13 fixed1 internal

  • Breaking

    ast: Remove base field from NumericLiteral and BigIntLiteral

  • Breaking

    diagnostics: Implement SourceCode for &T

  • Breaking

    diagnostics: NamedSource support &str as name

Release note

The section about oxc-parser of a note shared by several packages.

Breaking changes

  • Breaking

    ast: Remove base field from NumericLiteral and BigIntLiteral

  • Breaking

    diagnostics: Implement SourceCode for &T

  • Breaking

    diagnostics: NamedSource support &str as name

Bug Fixes

  • parser: Parse <= after as and satisfies

  • parser: Require class keyword for decorated class export

  • parser: Treat import x = require() as module syntax

  • Parser,semantic: Reject invalid types in type arguments

  • parser: Parse TSX <T extends U as start of generic arrow function

  • parser: Never parse < as start of generic arrow function in JSX files

  • parser: Report import/export in unambiguous code resolved to script

  • parser: Don't treat await in function parameters and class fields as top-level await

  • parser: Report misplaced import/export before checking parse goal

  • parser: Discard comments from rewound speculative parses

  • parser: parse_expression produce correct error for overlong source

  • parser: Parse contextual keywords after relational expressions

  • napi/parser: Walk skipped ESTree fields in lazy visitor

Performance

  • parser: Remove unnecessary conversion when parsing BigInts

  • parser: Mark missing-digit lexer errors cold

  • various: Avoid copying source text in OxcDiagnostic::render_with_source_code callers

  • diagnostics: Loosen lifetime bound on OxcDiagnostic::with_source_code

  • parser: Read each comment once

  • parser: Take the name of a JSX identifier from its token

  • parser: Take the value of a string literal without escapes from its source text

  • parser: Take the value of JSX text from its source text

  • parser: Check for the < of type arguments without a call

  • parser: Keep the token read after import

  • parser: Parse (<div />) as a parenthesized expression directly

  • parser: Parse JSX at the start of an expression without speculation

  • estree: Merge compact serialize_field writes

  • parser: Cache failed type argument speculation

  • parser: Take comments from the lexer without copying inline storage

  • parser: Finish plain strings and integers in their token handler

  • parser: Choose how to scan a block comment from its first bytes

  • parser: Do less work to record each comment

  • parser: Lex the token after a line break in its token handler

  • parser: Finish identifier and keyword tokens in their token handler

  • parser: Dispatch tokens through handlers which finish the token

  • parser: Parse (…) once with a cover grammar for arrow functions

Documentation

Full release notes: 0.160.0

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.