Packages

oxc-parser

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

Your version

0.141.0

21 Jul 2026Where it was published

0.160.0 is the newest release of 0.141.x.

In short

2 breaking22 new14 faster25 fixed1 internal

  • Breaking

    str: Move IdentBuildHasher to oxc_str crate

  • Breaking

    ast: Split MetaProperty into ImportMeta and NewTarget

Release note

Breaking changes

  • Breaking

    str: Move IdentBuildHasher to oxc_str crate

  • Breaking

    ast: Split MetaProperty into ImportMeta and NewTarget

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_in

  • semantic: Add context notes for strict assignments

  • data_structures: Add implements! macro

  • data_structures: Add const_str_eq function

  • semantic: 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 NONE to be passed to AST builder methods where Option<ArenaVec> is expected

  • ast: Accept arrays for ArenaVec params of AST builder methods

  • allocator: Implement FromIn for array to Vec conversion

  • track-memory-allocations: Track heap deallocs, alloc bytes, and peak growth

  • Syntax,transformer: Move JSX entity decoder to oxc_syntax

  • str: Export Str as ArenaStr

  • minifier: 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 parentheses

  • minifier: Avoid incorrect logical assignment transformation when base object may be mutated

  • isolated-declarations: Separate static accessors

  • semantic: Resolve import-equals namespaces

  • str: Enable hashbrown feature inline-more

  • isolated-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.Symbol as global symbol reference

  • minifier: 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_in do not allocate zero-length array

  • codegen: Preserve comments before expression operands

  • parser: Reject new import member access

  • minifier: Clippy warning with no-debug-assertions

  • parser: Use first as span for imported name

  • parser: Reject invalid accessor assertions

Performance

  • react_compiler: Transform reactive blocks in place

  • allocator: Speed up CloneIn for Vec and Box<[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 ReplaceWith panic path cold

  • Semantic, allocator: Branchless clone_in for semantic IDs

  • parser: 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.