Packages

oxc-parser

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

Your version

0.149.0

7 Sep 2026Where it was published

0.159.0 is the newest release of 0.149.x.

In short

2 breaking1 removed5 new11 faster18 fixed3 internal

  • Breaking

    parser: Rename panicked to fatal_error in ParserReturn

  • Breaking

    parser: Reduce MAX_LEN to 256 bytes below u32::MAX

  • Removed

    runtime: Remove stale regenerator exports

Release note

Breaking changes

  • Breaking

    parser: Rename panicked to fatal_error in ParserReturn

  • Breaking

    parser: Reduce MAX_LEN to 256 bytes below u32::MAX

Features

  • allocator: Construct ArenaHashSet with any Default hasher

  • minifier: Process of return/throw in non last position and fix async * inlining

  • parser: Distinguish unapplied no-side-effects comments

  • ast: Add GetNodeId trait

Bug Fixes

  • codegen: Order accessibility before abstract on accessors

  • transformer/class-properties: Keep private methods in class-expression scope

  • parser: Require a string source after export ... from

  • codegen: Print matching quoted import names as identifiers

  • codegen: Preserve private-in left operand precedence

  • parser: Correctly round large nondecimal literals

  • transformer: Gate async-only rewrites by owning transform

  • transformer: Limit arguments capture to lowered async functions

  • transformer: Gate this capture by owning async transform

  • minifier: Mangle class private members in Node API

  • semantic: Detect duplicate private class elements

  • semantic: Reject await and yield in rest parameter defaults

  • semantic: Reject jumps across arrow functions

  • parser: Do not omit < token opening type argument list

  • ast_visit: Add the trimmed prefix length to translation table offsets

  • parser: Do not re-lex template substitution tail after fatal error

  • parser: Fix debug assert failure when lexer error with tokens enabled

  • allocator: Gate Allocator::data_end_ptr behind fixed_size feature

  • ecmascript: Avoid charAt panic on 32-bit

  • Removed

    runtime: Remove stale regenerator exports

Performance

  • minifier: Use Ident for property mangler

  • minifier: Unify merging of last expression into target sequence

  • minifier: Consume nodes in minimize_statements in reverse order

  • mangler: Use Ident for variable names to keep

  • minifier: Use Ident instead of Str in KeepVar

  • minifier: Use IdentHashSet in PrivateMemberUsageStack

  • minifier: Merge nested if stmt in place instead of creating dummies

  • parser: Shrink annotation comment ranges

  • parser: Shave instruction off parse_jsx_element_name

  • parser: Remove fatal error guard from parse_jsx_element_name

  • parser: Remove token field from LexerCheckpoint

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.