oxc-parser
0.159.0 · 16 Nov 2026MIT116.4M / weekRepositoryHomepagenpmAtom feed
0.160.0 is the newest release of 0.142.x.
In short
1 breaking11 new3 faster22 fixed2 internal
- Breaking
ast: Tighten bound on
AstBuildtrait
Release note
Breaking changes
- Breaking
ast: Tighten bound on
AstBuildtrait
Features
minifier: Fold parenthesized boolean ternary tests
minifier: Fold sequence branches in boolean ternaries
ast_visit: Add VisitJsMut visitor
minifier: Add new IsTerminated trait and use it in exit-point optimization
minifier: Shorten integer zero comparisons
minifier: Convert switch with one case to if statement
str: Add
static_str!macroparser: Emit error for type args in JS files
ast: Re-export
Identfromoxc_astcrateoxc: Re-export
oxc_strtypes fromoxccrateast_visit: Add
Utf8ToUtf16::convert_program_and_comments
Bug Fixes
minifier: Optimize termination statements in labeled statements
minifier: Avoid longer numeric constant folds
minifier: Keep side effects in typeof comparisons
minifier: Keep side effects when compressing
== trueto== 1minifier: Keep side effects values in template literals
minifier: Keep side effects when folding
Numbercallreact-compiler: Preserve warning bailouts
codegen: Preserve orphaned file coverage comments
parser: Clarify return in class static blocks
str: Fix hygiene of
format_ident!andformat_str!macrosecmascript: Keep side effects in parent of
toStringcallsecmascript: Detect side effects in unused arguments to
charCodeAtparser: Use specific for-await diagnostic
parser: Report for-await in non-async functions
minifier: Avoid reordering this in nested class keys
minifier: Isolate derived constructor this state
parser: Parse unary conditional after satisfies
minifier: Preserve default parameter side effects
parser: Use correct diagnostic for
await usingin bare switch caseestree: Handle empty spans serializing
ImportMetaandNewTargetminifier: Do not fold a
-0ternary branch to+a(loses the sign)ecmascript: Detect side effects of
foo().#barcorrectly when PropertyReadSideEffects::None
Performance
ecmascript: Avoid number literal allocations
react_compiler: Compare value set pointers before probing in state merge
estree: Avoid ident hash calculations when serializing
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.