Packages

oxc-parser

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

Your version

0.150.0

14 Sep 2026Where it was published

0.159.0 is the newest release of 0.150.x.

In short

3 new9 faster29 fixed1 internal

Release note

Features

  • ecma: Define math constants as known globals and resolve their types

  • codegen: Add ascii_only option

  • minifier: Negate binary comparison for typeof x < 'u'

Bug Fixes

  • parser: Reject accessor modifiers on methods

  • parser: Reject readonly modifier on constructors

  • parser: Handle escaped let in for loops

  • parser: Recognize annotated empty arrows in conditionals

  • parser: Classify Unicode line breaks in block comments

  • transformer: Preserve receivers in private optional chains

  • parser: Reject escaped import-phase keywords

  • parser: Recognize contextual binding names in type lookaheads

  • parser: Require arrow separator in TypeScript function types

  • parser: Disambiguate await using in for initializers

  • parser: Allow parenthesized JSX comma expressions with preserve_parens=false

  • parser: Reject return types on constructor overloads

  • parser: Validate await context for await using declarations

  • parser: Disallow in expressions in using for-loop initializers

  • parser: Allow escaped type names in import and export specifiers

  • parser: Reject async modifiers on class fields

  • parser: Require comma after TypeScript this parameter

  • codegen: Preserve instantiation expression precedence

  • parser: Allow in expressions in class static blocks

  • packages/codegen: Preserve private-in right operand precedence

  • packages/codegen: Preserve in restriction through yield arguments

  • parser: Validate TS named tuple rest elements

  • codegen: Preserve in restriction through yield arguments

  • codegen: Preserve private-in right operand precedence

  • parser: Allow escaped type default import bindings

  • parser: Reject rest parameters in getters

  • packages/codegen: Print matching quoted import names as identifiers

  • packages/codegen: Preserve private-in left operand precedence

  • packages/codegen: Print accessibility modifiers before abstract

  • parser: Allow in in arrow block bodies within for initializers

  • parser: Reject partially parenthesized mixed coalesce expressions

Performance

  • isolated_declarations: Key scope maps by Ident

  • minfiier: Reduce allocs when creating indirect access

  • minifier: Update chain expressions in place

  • minifier: Try merging before creating new expression statements

  • minifier: Process newly created stmt in handle_if_statement

  • minfier: Update expressions in place when substituting alternate syntax

  • codegen: Outline postfix source mapping work

  • ecmascript: Format small integer literals with itoa

  • codegen: Avoid duplicate sourcemap name lookups

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.