Packages

oxc-parser

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

Your version

0.142.0

27 Jul 2026Where it was published

0.160.0 is the newest release of 0.142.x.

In short

1 breaking11 new3 faster22 fixed2 internal

  • Breaking

    ast: Tighten bound on AstBuild trait

Release note

Breaking changes

  • Breaking

    ast: Tighten bound on AstBuild trait

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! macro

  • parser: Emit error for type args in JS files

  • ast: Re-export Ident from oxc_ast crate

  • oxc: Re-export oxc_str types from oxc crate

  • ast_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 == true to == 1

  • minifier: Keep side effects values in template literals

  • minifier: Keep side effects when folding Number call

  • react-compiler: Preserve warning bailouts

  • codegen: Preserve orphaned file coverage comments

  • parser: Clarify return in class static blocks

  • str: Fix hygiene of format_ident! and format_str! macros

  • ecmascript: Keep side effects in parent of toString calls

  • ecmascript: Detect side effects in unused arguments to charCodeAt

  • parser: 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 using in bare switch case

  • estree: Handle empty spans serializing ImportMeta and NewTarget

  • minifier: Do not fold a -0 ternary branch to +a (loses the sign)

  • ecmascript: Detect side effects of foo().#bar correctly 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.