Packages

oxc-parser

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

Your version

0.148.0

1 Sep 2026Where it was published

0.159.0 is the newest release of 0.148.x.

In short

1 breaking5 new5 faster14 fixed

  • Breaking

    allocator: Make Allocator::cursor_ptr and data_end_ptr private

Release note

Breaking changes

  • Breaking

    allocator: Make Allocator::cursor_ptr and data_end_ptr private

Features

  • minifier: Drop cases whose condition is statically false

  • minifier: Invert !0 and !1 in place for boolean context to 1 and 0

  • minifier: Expand fold leading assignments into the var decl

  • minifier: Expand de morgan's optimization to allow move of !

  • parser: Attach all comments to nodes

Bug Fixes

  • semantic: Skip body bindings in type parameters and this param

  • semantic: Validate chained continue labels

  • ecmascript: Math.round only exact half ties

  • minifier: Coerce omitted indexOf search argument

  • ecmascript: Trim trailing whitespace in string to number

  • transformer/object-rest: Lower multiple declarators correctly

  • parser: Avoid panic on escaped string export names

  • linter: Clamp invalid JS plugin locations

  • semantic: Skip function body bindings in parameters

  • transform-react: Match Babel diagnostic reporting

  • parser: Correctly classify unapplied pure annotations

  • linter/plugins: Alter method for obtaining mutable Program when sending AST to JS plugins

  • regular_expression: Allow oversized decimal escape for Annex B

  • regular_expression: Reject oversized backreferences

Performance

  • diagnostics: Use fixed ANSI styles

  • packages/codegen: Flatten output in chunks

  • packages/codegen: Faster string flattening

  • packages/codegen: Ensure indent strings are flattened

  • packages/codegen: Store mapping positions in an Int32Array

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.