oxc-parser
0.159.0 · 16 Nov 2026MIT116.4M / weekRepositoryHomepagenpmAtom feed
In short
3 breaking22 faster13 fixed1 internal
- Breaking
ast: Remove
basefield fromNumericLiteralandBigIntLiteral - Breaking
diagnostics: Implement
SourceCodefor&T - Breaking
diagnostics:
NamedSourcesupport&stras name
Release note
The section about oxc-parser of a note shared by several packages.
Breaking changes
- Breaking
ast: Remove
basefield fromNumericLiteralandBigIntLiteral - Breaking
diagnostics: Implement
SourceCodefor&T - Breaking
diagnostics:
NamedSourcesupport&stras name
Bug Fixes
parser: Parse
<=afterasandsatisfiesparser: Require
classkeyword for decorated class exportparser: Treat
import x = require()as module syntaxParser,semantic: Reject invalid types in type arguments
parser: Parse TSX
<T extends Uas start of generic arrow functionparser: Never parse
<as start of generic arrow function in JSX filesparser: Report import/export in unambiguous code resolved to script
parser: Don't treat
awaitin function parameters and class fields as top-level awaitparser: Report misplaced import/export before checking parse goal
parser: Discard comments from rewound speculative parses
parser:
parse_expressionproduce correct error for overlong sourceparser: 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_codecallersdiagnostics: Loosen lifetime bound on
OxcDiagnostic::with_source_codeparser: 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 callparser: Keep the token read after
importparser: Parse
(<div />)as a parenthesized expression directlyparser: Parse JSX at the start of an expression without speculation
estree: Merge compact
serialize_fieldwritesparser: 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.