Packages

oxc-parser

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

Your version

0.145.0

18 Aug 2026Where it was published

0.160.0 is the newest release of 0.145.x.

In short

1 breaking7 new13 faster38 fixed9 internal

  • Breaking

    packages/codegen: printSync return an object

Release note

Breaking changes

  • Breaking

    packages/codegen: printSync return an object

Features

  • packages/codegen: Alter capitalization of sourceFilename option

  • packages/codegen: Add full source map support

  • napi/minify: Expose property name mangling options

  • minifier: Add property name mangling

  • mangler: Deduplicate private accessor names

  • napi: Add Relay transform plugin

  • codegen: Add oxc-codegen package

Bug Fixes

  • codegen: Validate sourcemap options

  • react_compiler: Skip node_modules by default

  • minifier: Drop side-effect-free additions

  • napi/minify: Accept RegExp for property filters

  • codegen: Reject invalid indent options

  • isolated-declarations: Preserve undefined for defaulted any

  • codegen: Preserve property key annotations

  • minifier: Model uninitialized module vars as undefined

  • ecmascript: Fold ** with Number::exponentiate, not IEEE pow

  • isolated-declarations: Handle ambient expando properties

  • react-compiler: Standardize diagnostics

  • parser: Reject initialized lexical declarations in for-in

  • parser: Forbid type parameters on quoted constructors

  • react-compiler: Use Babel v1 validation defaults

  • napi: Disable reuseWorker in browser bindings

  • react_compiler: Preserve JSX import source pragmas

  • semantic: Respect shadowed Infinity and NaN in enum evaluation

  • minifier: Keep variable declaration initilized with class when keepNames is enabled

  • minifier: Keep side effects when rotating bitwise operands

  • ecmascript: Derive ToNumber of !x from ToBoolean

  • semantic: Classify global references per identifier

  • mangler: Correct base54 safety comment

  • codegen: Resolve private names in class heritage

  • codegen: Escape sources for empty import specifiers

  • estree: Emit decorators on FormalParameterRest

  • semantic: Allow legacy escapes in JSX attributes

  • minifier: Preserve block statement in labeled iteration statements

  • mangler: Exclude non-manglable symbols from slot assignment

  • minifier: Avoid duplicating large folded strings

  • codegen: Validate starting indent level

  • clippy: Remove unneeded unsafe

  • parser: Stop delimited lists at end of file

  • parser: Preserve fatal errors during await reparse

  • minifier: Avoid invalid octal escapes in template folds

  • codegen: Output newline after export default interface

  • minifier: Correct issue with try finally termination

  • react_compiler: Preserve source spans

  • react_compiler: Honor eslint suppressions

Performance

  • ecmascript: Use binary search for known globals

  • estree_tokens: Share JS token update entry point

  • minifier: Move owned statements directly

  • minifier: Move owned AST nodes directly

  • minifier: Replace expressions without take_in dummies

  • linter: Outline diagnostic construction

  • diagnostics: Measure graphemes lazily

  • diagnostics: Optimize graphical number rendering

  • diagnostics: Reduce graphical formatting overhead

  • diagnostics: Reduce graphical rendering allocations

  • diagnostics: Batch graphical reports

  • mangler: Share allocated names across reused slots

  • codegen: Skip escaping harmless < tokens

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.