Skip to content

oxc crates_v0.161.0

Choose a tag to compare

@github-actions github-actions released this 30 Nov 10:09
Immutable release. Only release title and notes can be modified.
0601085

💥 BREAKING CHANGES

  • b7dd935 ast: [BREAKING] Split object methods into ObjectMethodProperty (#29951) (Cameron)
  • 2947286 parser: [BREAKING] Record source-phase imports as source bindings in module records (#30295) (Cameron)
  • e87c19c lexer: [BREAKING] Give BigInt literals exact values in a bigints lane (#30199) (Shanon Jackson)

🚀 Features

  • 847c6a4 simd: Add SIMD128-only vector methods (#30535) (Shanon Jackson)
  • 706ad34 simd: Implement Vec128 and Vec256 for Simd128 (#30534) (Shanon Jackson)
  • 663d7fe simd: Add Simd128 CPU feature set for wasm32 (#30532) (Shanon Jackson)
  • 558f4aa minifier: Collapse x = e; return x into return x = e (#30504) (Cameron)
  • 45c9e9a allocator: Allow arena chunks to come from a parent allocator (#29903) (YT)
  • 746ad93 transformer: Expose Helper::ALL and check @oxc-project/runtime ships every helper (#30250) (Dunqing)
  • 697a09b transformer: Expose whether env options lower any JavaScript syntax (#30251) (Dunqing)
  • 1ca8aaa linter/jsdoc/require-template-description: Require descriptions for template tags (#30279) (Jonghyeon Ko)
  • f6882ce syntax: Derive PartialEq and Eq for DynamicImport (#30178) (Cameron)
  • efea0d6 syntax: Derive PartialEq and Eq for RequestedModule (#30174) (Cameron)
  • e0a7554 simd: Add opaque method to Vec128 and Vec256 (#30108) (overlookmotel)
  • 2ecf652 simd: Add Vec128::gt_u8 and lt_u8 methods for Neon (#30107) (overlookmotel)

🐛 Bug Fixes

  • 3d6adc0 minifier: Keep spread objects whose methods use super (#30521) (Ilakian Puvanendra)
  • 0f7b19f transformer/class-properties: Map private name storage declarations to their source (#30552) (Dunqing)
  • 90861da parser: Label the whole ambient using declaration (#30515) (Cameron)
  • 57f0205 parser: Label both ? and ! in the optional-and-definite property diagnostic (#30514) (Cameron)
  • 8e74231 parser: Do not suggest = undefined for a destructuring declaration (#30513) (Cameron)
  • d3b83d8 ast/estree: Type TSModuleDeclaration.body as optional TSModuleBlock (#30511) (oxc-captain[bot])
  • 6a1713f parser: Do not mark export default abstract class as a type-only export (#30512) (Cameron)
  • c6d5817 parser: Reject parenthesized patterns in for-in/for-of heads with preserve_parens: false (#30509) (Cameron)
  • 3c6e5d8 parser: Reject parenthesized labels with preserve_parens: false (#30508) (Cameron)
  • 875da63 parser: Discard dynamic imports and import.metas recorded by a rewound parse (#30507) (Cameron)
  • 53dcd74 parser: Treat await and yield as type starts in type lookahead (#30505) (Cameron)
  • f35064a parser: Parse import x = require.y as a qualified name (#30502) (Cameron)
  • 7b025b5 parser: Accept keywords in dotted namespace name segments (#30500) (Cameron)
  • a944c8b parser: Parse a qualified intrinsic type alias target as a full type (#30498) (Cameron)
  • ac3161d parser: Stop TypeScript enum members from inheriting await and yield context (#30497) (Cameron)
  • 1b671c3 parser: Retry unambiguous source as module for top-level for await (#30429) (overlookmotel)
  • bac2031 simd: Make opaque a no-op under Miri (#30447) (overlookmotel)
  • c7d3f6b napi/minify, napi/transform: Do not produce codeframe for options errors (#30431) (overlookmotel)
  • e45ad77 parser: Parse unambiguous source as module when script parse fails (#30127) (Cameron)
  • f4ca56e parser: Reparse unambiguous top-level await like TypeScript (#30125) (Cameron)
  • b1bdc75 parser: Treat reserved await/yield before extends as a TSX element name (#30366) (Cameron)
  • a0c41dd mangler: Keep CommonJS wrapper names on top-level bindings (#27975) (Cestercian)
  • 4b63792 napi: Type source map sources as Array<string | null> (#30344) (Cameron)
  • 53c7607 parser: Unapply annotation comments when rewinding (#30167) (Cameron)
  • ab59476 transformer: Map lowered auto-accessors and class field initializers to their source (#30326) (Dunqing)
  • 8f7a7a0 runtime: Reject non-object receivers in decorator access objects (#30322) (Dunqing)
  • 56b8f4f transformer/legacy-decorator: Evaluate computed keys of decorated declare fields (#30264) (Dunqing)
  • f10f033 napi/transform: Correct error messages for compile options (#30280) (overlookmotel)
  • a21e08f parser: Reject unparenthesized comma in JSX spread attribute (#30293) (Cameron)
  • 24ba5a0 parser: Reject decorators on non-class exports (#30290) (Cameron)
  • d942f59 parser: Stop TypeScript types from inheriting await and yield context (#30289) (Cameron)
  • cb9636b parser: Reject unnamed generic and ambient TypeScript function declarations (#30285) (Cameron)
  • d7f9336 parser: Reject decorators on class constructors (#30278) (Cameron)
  • 1aef2f4 napi/parser, linter/plugins: Deserialize statements directly onto directives in raw transfer (#30274) (Cameron)
  • 827a45f parser: Reject static auto-accessors named prototype or constructor (#30273) (Cameron)
  • 5a0133f transformer/typescript: Don't evaluate keys of declare fields with removeClassFieldsWithoutInitializer (#30272) (Dunqing)
  • e1834b4 parser: Reject default as a class element modifier (#30271) (Cameron)
  • 92c6dfd parser: Reject abstract and declare on decorated JavaScript classes (#30267) (Cameron)
  • eb7b58b diagnostics: Collapse long source spans (#28995) (Cameron)
  • dd4056f parser: Parse an escaped of as a using binding in for...of heads (#30262) (Cameron)
  • 3aa6da3 parser: Allow a line break after export default interface in TypeScript (#30261) (Cameron)
  • cd7c35f parser: Parse yield as a for...of target in sloppy scripts (#30259) (Cameron)
  • 3764191 parser: Parse await !x and await ~x as await expressions in unambiguous JavaScript (#30257) (Cameron)
  • ff34aa2 parser: Parse JSX elements as primary expressions in JavaScript (#30255) (Cameron)
  • a0af2d6 parser: Do not emit TS1477 for element access on an instantiation expression (#30253) (Cameron)
  • 8dfb478 parser: Parse async arrow functions as computed class keys in JavaScript (#30249) (Cameron)
  • 8d26af4 parser: Parse auto-accessors named static before a line break (#30239) (Cameron)
  • b6b8bd9 parser: Parse auto-accessors named get or set before a line break (#30237) (Cameron)
  • ac9285a parser: Parse async<A, B>() as a call in TypeScript (#30231) (Cameron)
  • ad66bdb parser: Reject decorator calls after parenthesized and non-member expressions (#30213) (Dunqing)
  • 983509d transformer/object-rest-spread: Reparent scopes of destructuring moved into the loop body (#30220) (Dunqing)
  • f7ec42a transformer/class-properties: Reparent scopes of computed keys moved out of the class (#30218) (Dunqing)
  • a876984 transformer/async-generator-functions: Reparent scopes of the for-await iterable (#30216) (Dunqing)
  • 30f2001 transformer/legacy-decorator: Keep class decorators when a member decorator uses private-in (#30215) (Dunqing)
  • 6fe9062 transformer/legacy-decorator: Reparent scopes of decorator expressions moved out of the class (#30214) (Dunqing)
  • 8f42fa2 codegen: Map a call with a generated callee at the call's span (#30204) (Dunqing)
  • 738a564 lexer: Drop invalid escapes from identifier values (#30203) (Shanon Jackson)
  • 1abb96d transformer/typescript: Hide computed key methods from decorators (#30184) (Dunqing)
  • 9353d2c transformer/typescript: Preserve computed key context (#30148) (Dunqing)
  • dae2f74 semantic: Skip auto-increment for ambient non-const enums (#30172) (Cameron)
  • 597169d semantic: Allow omitted initializers in ambient non-const enums (#30171) (Cameron)
  • 59b196f semantic: Allow type queries on arguments in class fields and static blocks (#30169) (Cameron)
  • 548bbbe lexer: Read decimal literals longer than 511 bytes in full (#30160) (Shanon Jackson)
  • f2f83f8 transformer/legacy-decorator: Keep decorated static fields with setPublicClassFields (#29979) (Dunqing)
  • 4675362 minifier: Keep (0, fn) in NamedEvaluation positions with keepNames (#30052) (Dunqing)
  • b1d3269 parser: Make class declarations in single-statement positions a fatal error (#30141) (Dunqing)
  • 4a6f9c6 lexer: Round hex, octal and binary literals above u64::MAX (#30133) (Shanon Jackson)
  • babafe1 lexer: Evaluate legacy octal literals in base 8 (#30132) (Shanon Jackson)
  • 69dd396 lexer: Open JSX at a bare ( in tsx, as TypeScript does (#30077) (Shanon Jackson)
  • 739e675 lexer: Read annotations in for and catch heads, await using and arrow return types (#30076) (Shanon Jackson)
  • 9162a8e codegen,packages/codegen: Parenthesize conditional infer constraints (#30101) (Cameron)
  • 78659f6 minifier: Keep indirect access in decorator expressions (#30086) (oxc-captain[bot])
  • f00f85b minifier: Keep decorated private class members (#30094) (oxc-captain[bot])
  • e8923b9 codegen,packages/codegen: Parenthesize asserts type references before keywords (#30091) (Cameron)
  • aaa89af codegen: Stabilize minified spacing before TypeScript unions and intersections (#30087) (Cameron)
  • ad63be4 codegen,packages/codegen: Parenthesize decorators not of the form @a.b or @a.b() (#30083) (Cameron)

⚡ Performance

  • d78e3a9 lexer: Add SIMD128 JSX hyphen gluing (#30543) (Shanon Jackson)
  • e93bf93 lexer: Add SIMD128 token compression (#30542) (Shanon Jackson)
  • 5ec9561 lexer: Add SIMD128 keyword matching (#30541) (Shanon Jackson)
  • 8879083 lexer: Add SIMD128 value post-pass and string decode check (#30540) (Shanon Jackson)
  • 20cc4c6 lexer: Add SIMD128 classify (#30539) (Shanon Jackson)
  • 051a4f2 lexer: Add SIMD128 comment scans (#30538) (Shanon Jackson)
  • ba0446f lexer: Add SIMD128 find and bracket bits (#30537) (Shanon Jackson)
  • d3e39c5 napi: Drop all data on worker thread (#30434) (overlookmotel)
  • d498745 packages/codegen: Avoid a redundant type lookup in endsWithAssertsReference (#30104) (Cameron)
  • a1b9b52 lexer: Avoid inverting whitespace mask in AVX2 classify (#30114) (overlookmotel)
  • f0308be lexer: Reduce instructions in AVX2 classify (#30113) (overlookmotel)
  • d7a377d lexer: Remove control char compare from Neon classify (#30112) (overlookmotel)
  • 4028a7a lexer: Reuse splat constant in AVX2 classify (#30111) (overlookmotel)
  • c57969e lexer: Reduce instructions and spills in classify (#30110) (overlookmotel)
  • cc67720 packages/codegen: Reduce polymorphic type lookups in forOfHeadNeedsWrapping (#30096) (overlookmotel)
  • d18f52e packages/codegen: Reduce polymorphic type lookups in decoratorNeedsWrap (#30095) (overlookmotel)

📚 Documentation

  • fbe5d61 lexer: List the SIMD128 implementation (#30544) (Shanon Jackson)
  • e18e0b3 napi: Improve JSDoc comments for all NAPI entry point functions (#30437) (overlookmotel)
  • e6e00d6 allocator: Clarify comments about parent allocators (#30360) (overlookmotel)
  • 248e2d9 ast: Clarify docs for ObjectPattern and ArrayPattern (#30183) (overlookmotel)
  • 91608e6 minifier: Clarify input requirements and parenthesis handling (#30089) (Cameron)