oxc-parser
0.159.0 · 16 Nov 2026MIT116.4M / weekRepositoryHomepagenpmAtom feed
0.159.0 is the newest release of 0.150.x.
In short
3 new9 faster29 fixed1 internal
Release note
Features
ecma: Define math constants as known globals and resolve their types
codegen: Add
ascii_onlyoptionminifier: Negate binary comparison for
typeof x < 'u'
Bug Fixes
parser: Reject
accessormodifiers on methodsparser: Reject
readonlymodifier on constructorsparser: Handle escaped let in for loops
parser: Recognize annotated empty arrows in conditionals
parser: Classify Unicode line breaks in block comments
transformer: Preserve receivers in private optional chains
parser: Reject escaped import-phase keywords
parser: Recognize contextual binding names in type lookaheads
parser: Require arrow separator in TypeScript function types
parser: Disambiguate await using in for initializers
parser: Allow parenthesized JSX comma expressions with preserve_parens=false
parser: Reject return types on constructor overloads
parser: Validate await context for await using declarations
parser: Disallow in expressions in using for-loop initializers
parser: Allow escaped type names in import and export specifiers
parser: Reject async modifiers on class fields
parser: Require comma after TypeScript this parameter
codegen: Preserve instantiation expression precedence
parser: Allow
inexpressions in class static blockspackages/codegen: Preserve private-in right operand precedence
packages/codegen: Preserve in restriction through yield arguments
parser: Validate TS named tuple rest elements
codegen: Preserve in restriction through yield arguments
codegen: Preserve private-in right operand precedence
parser: Allow escaped type default import bindings
parser: Reject rest parameters in getters
packages/codegen: Print matching quoted import names as identifiers
packages/codegen: Preserve private-in left operand precedence
packages/codegen: Print accessibility modifiers before abstract
parser: Allow
inin arrow block bodies withinforinitializersparser: Reject partially parenthesized mixed coalesce expressions
Performance
isolated_declarations: Key scope maps by
Identminfiier: Reduce allocs when creating indirect access
minifier: Update chain expressions in place
minifier: Try merging before creating new expression statements
minifier: Process newly created stmt in handle_if_statement
minfier: Update expressions in place when substituting alternate syntax
codegen: Outline postfix source mapping work
ecmascript: Format small integer literals with itoa
codegen: Avoid duplicate sourcemap name lookups
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.