github oxc-project/oxc crates_v0.123.0
oxc crates_v0.123.0

10 hours ago

🚀 Features

  • 59fd797 parser: Mark pure comments that cannot be applied (#20687) (Boshen)
  • 2917bb2 minifier: Minify x ? 1 : 0 to +x or +!!x (#20594) (John Costa)

🐛 Bug Fixes

  • 1a370a6 minifier: Inline single-use vars past non-computed object keys (#20810) (Ulrich Stark)
  • ffacf99 semantic: Report error on await inside block inside static block (#20750) (camc314)
  • ccf9301 semantic: Report error on for-await inside block inside static block (#20749) (camc314)
  • 9a5ff73 semantic: Hoist Annex B block-scoped function declarations to var scope (#20728) (Dunqing)
  • 2bad7f5 semantic: Report error on await-using inside nested static block (#20746) (camc314)
  • 77abf54 codegen: Preserve coverage comments before ConditionalExpression alternate and between SwitchCases (#20718) (Boshen)
  • c09a5ab diagnostics: Skip minified fallback for single-line reporters (#20716) (camc314)
  • 3375627 transformer: Remove false positive duplicate __source/__self prop error (#20678) (Dunqing)
  • 3931b98 transformer: Ignore @jsxImportSource inside inline code spans in comments (#20674) (Dunqing)

⚡ Performance

  • f72f108 parser: Move kinds field of Modifiers to first (#20833) (overlookmotel)
  • 2a06835 parser: Add Modifiers::contains_accessibility (#20832) (overlookmotel)
  • 5995339 parser: Make Modifiers::accessibility branchless (#20827) (overlookmotel)
  • 2208114 parser: Add #[inline] to trivial modifier methods (#20826) (overlookmotel)
  • 055a7ac parser: Defer calculation of Modifier spans (#20823) (overlookmotel)
  • 2e7e6bd parser: Remove branch from parse_modifiers (#20821) (overlookmotel)
  • eb02c88 parser: Reduce Kind to ModifierKind conversions in eat_modifiers_before_declaration (#20820) (overlookmotel)
  • 1f57448 parser: Fast path for no syntax errors when checking modifiers (#20748) (overlookmotel)
  • 4e8b817 parser: Remove a lookahead from eat_modifiers_before_declaration (#20755) (overlookmotel)
  • 5f9bee5 parser: Store Modifiers on stack (#20742) (overlookmotel)
  • 511d5e5 parser: Add Modifiers::get method (#20741) (overlookmotel)
  • bd10021 transformer: Only scan comments before first statement for JSX pragmas (#20675) (Dunqing)
  • 611fca5 parser: Pre-allocate extends vec with 1 cap (#20667) (camc314)
  • ad58dd7 parser: Avoid re-allocating when parsing import stmt (#20666) (camc314)
  • 2b2794b parser: Avoid vec clone in parse_heritage_clause (#20665) (camc314)
  • 89a5374 allocator: Remove op from StringBuilder::grow_one (#20650) (overlookmotel)

📚 Documentation

Don't miss a new oxc release

NewReleases is sending notifications on new releases.