oxc-parser
0.159.0 · 16 Nov 2026MIT116.4M / weekRepositoryHomepagenpmAtom feed
0.160.0 is the newest release of 0.141.x.
In short
2 breaking22 new14 faster25 fixed1 internal
- Breaking
str: Move
IdentBuildHashertooxc_strcrate - Breaking
ast: Split
MetaPropertyintoImportMetaandNewTarget
Release note
Breaking changes
- Breaking
str: Move
IdentBuildHashertooxc_strcrate - Breaking
ast: Split
MetaPropertyintoImportMetaandNewTarget
Features
minifier: Merge combined assign expression in conditional expression
minifier: Merge assign expression against member expression in conditional expression
allocator: Add
Vec::from_raw_parts_insemantic: Add context notes for strict assignments
data_structures: Add
implements!macrodata_structures: Add
const_str_eqfunctionsemantic: Add context notes for reserved keyword diagnostic
parser: More friendly error for spread element in dynamic imports
minfier: Drop last break from last switch case
minifier: Remove unreachable recursive functions
ast: Allow
NONEto be passed to AST builder methods whereOption<ArenaVec>is expectedast: Accept arrays for
ArenaVecparams of AST builder methodsallocator: Implement
FromInfor array toVecconversiontrack-memory-allocations: Track heap deallocs, alloc bytes, and peak growth
Syntax,transformer: Move JSX entity decoder to
oxc_syntaxstr: Export
StrasArenaStrminifier: Expand switch optimiation to remove empty cases
parser: Improve diagnostics for unparenthesized LHS on exponential expr
minifier: Fold arithmetic over undefined and null operands
minifier: Drop empty switch statements
ast_visit: Generate VisitJs visitor that skips TypeScript type-space
parser: Add
ParseOptions::enable_ident_hashes
Bug Fixes
minifier: Avoid reordering this before super
minifier: Preserve RegExp feature detection
semantic: Allow arguments in ambient declarations
react_compiler: Preserve aliasing diagnostic locations
react_compiler: Honor default suppressions
codegen: Wrap negative BigInt literal base of
**in parenthesesminifier: Avoid incorrect logical assignment transformation when base object may be mutated
isolated-declarations: Separate static accessors
semantic: Resolve import-equals namespaces
str: Enable
hashbrownfeatureinline-moreisolated-declarations: Normalize accessor keys
minifier: Align class heritage removal with assumptions
parser: Span ambient generator diagnostics
ecmascript: Fix false negative for may_have_side_effects on dynamic property access
minifier: Guard reordered identifier reads
isolated-declarations: Reject
window.Symbolas global symbol referenceminifier: Invalidate facts for redeclared bindings
minifier: Don't treat a conditionally-assigned var as write-once
minifier: Avoid stale pure function summaries
allocator:
Vec::from_array_indo not allocate zero-length arraycodegen: Preserve comments before expression operands
parser: Reject new import member access
minifier: Clippy warning with no-debug-assertions
parser: Use first
asspan for imported nameparser: Reject invalid accessor assertions
Performance
react_compiler: Transform reactive blocks in place
allocator: Speed up
CloneInforVecandBox<[T]>parser: Pre-size cover-grammar assignment target buffers
diagnostics: Box OxcDiagnosticInner to reduce binary size
parser: Defer diagnostic creation until parse exit
allocator: Mark
ReplaceWithpanic path coldSemantic, allocator: Branchless
clone_infor semantic IDsparser: Build AST nodes with the AST builder instead of cloning
react_compiler: Use IndexVec for dense id-keyed maps
react_compiler: Keep small hot-path collections inline
transformer: Outline rare expression exits
react_compiler: Make aliasing effects cheap to intern and clone
react_compiler: Store AbstractValue reasons as a u16 bitmask
react_compiler: Use FxHashMap for the lookup-only aliasing node map
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.