Packages

oxc-parser

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

Your version

0.154.0

13 Oct 2026Where it was published

0.159.0 is the newest release of 0.154.x.

In short

3 breaking1 new30 faster15 fixed5 internal

  • Breaking

    ast: Refactor comment attachment storage

  • Breaking

    ast: Add comment attachment storage

  • Breaking

    parser: Assign node IDs during parsing

Release note

Breaking changes

  • Breaking

    ast: Refactor comment attachment storage

  • Breaking

    ast: Add comment attachment storage

  • Breaking

    parser: Assign node IDs during parsing

Features

  • minifier: Add folding of delete expression

Bug Fixes

  • Codegen, packages/codegen: Remove extraneous space before RestElement in ArrayPattern

  • packages/codegen: Support printing V8IntrinsicExpressions

  • minifier: Preserve parameter writes through mapped arguments

  • semantic: Stop arguments resolution at ordinary functions

  • transformer_plugins: Preserve optional chains through non-null assertions

  • crates/oxc_semantic: Decline to evaluate unary ops on strings in enum initializers

  • parser: Apply no-side-effects annotations after export

  • minifier: Preserve delete semantic when folding non-finite numbers

  • minifier: Eliminate unused IIFE calls with constant arguments

  • transformer: Avoid synthetic private fields for static blocks

  • semantic: Mark delete of optional members as MemberWriteTarget

  • codegen: Avoid extra indent before empty do-while bodies

  • codegen: Fix printing negative BigIntLiteral after -

  • packages/codegen: Fix printing negative BigIntLiteral after -

  • packages/codegen: Fix debug assert fail printing TSJSDocNonNullableType

  • semantic: Visit TSMethodSignature computed method keys in enclosing scope

Performance

  • packages/codegen: Remove all printSpaceBeforeIdentifier calls

  • packages/codegen: Skip redundant printSpaceBeforeIdentifier call

  • packages/codegen: Remove branches from loops printing arrays

  • packages/codegen: Remove branch printing RestElement in ArrayPattern

  • packages/codegen: Reduce branches in printArguments

  • packages/codegen: Remove unnecessary printSpaceBeforeIdentifier calls

  • packages/codegen: Print SpreadElement arguments via printExpression

  • packages/codegen: Reduce megamorphic type reads in printParams

  • packages/codegen: Reduce writes in printForOfStatement

  • packages/codegen: Reduce megamorphic type reads in printForOfStatement

  • packages/codegen: Reduce megamorphic type reads in printDirectivesAndStatements

  • packages/codegen: Reduce megamorphic type reads in printConditionalExpression

  • packages/codegen: Reduce megamorphic type reads in printObjectProperty

  • packages/codegen: Ensure shorthand var is always a boolean

  • packages/codegen: Reduce branches in printObjectProperty

  • packages/codegen: Reduce megamorphic type reads in printMemberExpression

  • packages/codegen: Reduce megamorphic type reads

  • ast: Generate derive for CloneIn on Comment

  • minifier: Optimize unused expression removal in minimize_if

  • transformer: Skip expression exit pipeline for unaffected nodes

  • transformer: Skip static block dispatch for ordinary statements

  • transformer: Skip ES2022 exits for non-class expressions

  • packages/codegen: Reduce megamorphic type reads in binCheckAndPrepare

  • packages/codegen: Reduce megamorphic property accesses for BinaryExpressions

  • packages/codegen: Reduce megamorphic property accesses in printBinaryish

  • packages/codegen: Reduce writes and branches printing functions

  • packages/codegen: Reduce writes for optional MemberExpressions

  • linter: Share one source per file across type-aware diagnostics

  • minifier: Use ident when checking specific id names

  • minifier: Avoid unecessary import/export merging for cjs/scripts

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.