mirror of
https://github.com/danbulant/oxc
synced 2026-05-20 20:58:48 +00:00
## [0.42.0] - 2024-12-18 -84b75a0semantic: [**BREAKING**] Remove `ScopeFlags::Modifiers` (#7935) (overlookmotel) -c071494semantic: [**BREAKING**] Remove `SymbolTable::rename` method (#7868) (overlookmotel) ### Features -8b7c5aeast: Add `AstBuilder::atom_from_cow` (#7974) (overlookmotel) -46e2e27data_structures: Implement `Default` for `NonEmptyStack` (#7946) (overlookmotel) -db9e93bmangler: Mangle top level variables (#7907) (翠 / green) -075bd16minifier: Fold bitwise operation (#7908) (翠 / green) -c16a851napi/transform: Add `jsx: 'preserve'` option (#7965) (Boshen) -81eedb1parser: 'readonly' type modifier is only permitted on array and tuple literal types. (#7880) (Boshen) -b9322c6semantic: Re-export all flags and ID types (#7886) (overlookmotel) -c30a982span: Add `impl From<ArenaString> for Atom` (#7973) (overlookmotel) -02b653ctransformer/class-properties: Do not create temp var for template literal computed key (#7919) (overlookmotel) -feac02etransformer/class-properties: Only rename symbols if necessary (#7896) (overlookmotel) -6bc530dtransformer/class-properties: Transform super call expression that is inside static prop initializer (#7831) (Dunqing) -53e2bc0traverse: Add `TraverseScoping::rename_symbol` method (#7871) (overlookmotel) ### Bug Fixes -3659e6dcfg: Include export default code in CFG instructions (#7862) (Jan Olaf Martin) -850dd43codegen: Missing `,` when generating type parameters with jsx (#7929) (Dunqing) -4799471minfier: Bigint bitwise operation only works with bigint (#7937) (Boshen) -de8a86eminifier: Incorrect minification in `try_fold_left_child_op` (#7949) (翠 / green) -9a30910oxc_transformer: Inject_global_variables should considering string imported name (#7768) (IWANABETHATGUY) -111dc52parser: Include export token in spans of TSNamespaceExportDeclaration (#7963) (branchseer) -14c51ffsemantic: Remove inherting `ScopeFlags::Modifier` from parent scope (#7932) (Dunqing) -596aeadsemantic: Reset references flags when resolved (#7923) (Dunqing) -4924073semantic: `ScopeTree::rename_binding` preserve order of bindings (#7870) (overlookmotel) -bb38065transformer/class-properties: Do not transform `super.prop` in nested method within static prop initializer (#7978) (overlookmotel) -e76fbb0transformer/class-properties: Fix symbol clashes in instance prop initializers (#7872) (overlookmotel) -c0576fatransformer/class-properties: Use UID for `args` in created class constructor (#7866) (overlookmotel) -d660d8dtransformer/optional-chaining: Do not create unused reference when `noDocumentAll` assumption (#7847) (overlookmotel) -4920c6atransformer/optional-chaining: Avoid creating a useless reference when `noDocumentAll` is true (#7832) (Dunqing) ### Performance -a5f04a7ast: Faster `Comment::is_jsdoc` (#7905) (overlookmotel) -4b24335codegen: Improve printing of statement comments (#7857) (Boshen) -71a40a2codegen: Guard comment printing comments when there are no comments (#7856) (Boshen) -b31f123transformer/class-properties: Do not re-generate same method key (#7915) (overlookmotel) -8ca8fcetransformer/class-properties: Reduce work updating scopes when transforming static prop initializers (#7904) (overlookmotel) -80d0b3etransformer/class-properties: Fast path for instance prop initializer scope re-parenting (#7901) (overlookmotel) -38aafa2transformer/class-properties: Reduce size of `transform_call_expression_for_super_member_expr` (#7859) (overlookmotel) ### Documentation -e49de81ast: Document `Expression::is_*` methods (#7853) (overlookmotel) -10a86b9transformer: Fix comments (#7925) (overlookmotel) -f4cb5d3transformer: Clarify comment (#7918) (overlookmotel) -41a1456transformer/class-properties: Correct doc comments (#7966) (overlookmotel) -18441aftransformer/class-properties: Remove oudated todo for assignment expression (#7955) (Dunqing) -1317c00transformer/class-properties: Clarify doc comments (#7914) (overlookmotel) -9989b58transformer/class-properties: Re-order file list in doc comment (#7911) (overlookmotel) -7390048transformer/class-properties: Reformat doc comment (#7909) (overlookmotel) ### Refactor -beb982aast: Use exhaustive match for `Argument` to `ArrayExpressionElement` conversion (#7848) (overlookmotel) -3858221global: Sort imports (#7883) (overlookmotel) -1314c97minifier: Expose dce as an API instead of an option (#7957) (Boshen) -6551dfesemantic: Pass `&str` instead of `Cow` (#7972) (overlookmotel) -b8d2bd2semantic: Move determining references flags for export specifier to `visit_export_named_declaration` (#7924) (Dunqing) -98d7946semantic: Import flags and ID types from `oxc_syntax` (#7887) (overlookmotel) -1cf8f8fsemantic: `SymbolTable::set_name` return old name (#7869) (overlookmotel) -5d42df8semantic: Use `Expression::is_super` (#7851) (overlookmotel) -8cf9766semantic, syntax, wasm: Remove `#![allow(non_snake_case)]` (#7863) (overlookmotel) -d59bbaetransformer: Remove unneeded lint `#[allow]` (#7971) (overlookmotel) -2c94236transformer: Improve encapsulation of transforms (#7888) (overlookmotel) -34091b2transformer: Use `Expression::is_super` (#7852) (overlookmotel) -d4d7bc0transformer/async-to-generator: Avoid allocating unnecessary `Atom`s (#7975) (overlookmotel) -2e5ffd3transformer/class-properties: Store `temp_var_is_created` on `ClassBindings` (#7981) (overlookmotel) -27cc6datransformer/class-properties: Store `is_declaration` only on `ClassDetails` (#7980) (overlookmotel) -ee282f8transformer/class-properties: Remove `move_expression`s (#7979) (overlookmotel) -94b376atransformer/class-properties: Simplify logic for when to create temp binding (#7977) (overlookmotel) -ff9d1b3transformer/class-properties: Comments about shorter output (#7976) (overlookmotel) -6fc40f0transformer/class-properties: Pass `BoundIdentifier`s by reference (#7968) (overlookmotel) -69eeeeatransformer/class-properties: Methods take `&self` where possible (#7967) (overlookmotel) -98340bbtransformer/class-properties: Use stack of `ClassDetails` (#7947) (overlookmotel) -088dd48transformer/class-properties: Shorten code (#7913) (overlookmotel) -544ffbftransformer/class-properties: Split up code into multiple files (#7912) (overlookmotel) -dcaf674transformer/class-properties: Rename file (#7910) (overlookmotel) -6243980transformer/class-properties: Instance prop inits visitor use `Visit` (#7867) (overlookmotel) -eb47d43transformer/class-properties: Re-use existing `Vec` (#7854) (overlookmotel) -1380b7btransformer/class-properties: Reduce visibility of method (#7858) (overlookmotel) -0f5e078transformer/class-properties: Rename `*_owner` to `owned_*` (#7855) (Dunqing) -4ea90d4transformer/react-refresh: Calculate signature key once (#7970) (Dunqing) -15b9bfftransformer/typescript: Reuse `Atom` (#7969) (overlookmotel) ### Styling -fb897f6data_structures: Add line break (#7882) (overlookmotel) -7fb9d47rust: `cargo +nightly fmt` (#7877) (Boshen) ### Testing -523d48ctransformer: Move named test to exports folder (#7922) (Dunqing) -e766051transformer: Skip test which uses filesystem under miri (#7874) (overlookmotel) -f39e65etransformer: Prevent lint error when running miri (#7873) (overlookmotel) Co-authored-by: Dunqing <29533304+Dunqing@users.noreply.github.com>
6.8 KiB
6.8 KiB
Changelog
All notable changes to this package will be documented in this file.
The format is based on Keep a Changelog, and this project does not adhere to Semantic Versioning until v1.0.0.
[0.42.0] - 2024-12-18
Features
c16a851napi/transform: Addjsx: 'preserve'option (#7965) (Boshen)
Refactor
3858221global: Sort imports (#7883) (overlookmotel)
Styling
7fb9d47rust:cargo +nightly fmt(#7877) (Boshen)
[0.40.1] - 2024-12-10
Bug Fixes
18d0ce3napi: RenameErrortoOxcErrorto avoid name collision (#7780) (Boshen)
[0.40.0] - 2024-12-10
Features
2803aecnapi/transform: Return helpers information (#7737) (Boshen)85eec3cnapi/transform,napi/parser: Return structured error object (#7724) (Boshen)c98457dnapi/transformer: Add runtime helper mode (#7727) (Boshen)
Bug Fixes
245d7d9oxc_transformer: Aliases2015toes6(#7673) (Kevin Deng 三咲智子)
Testing
c254a5bnapi/transform: Use theexpectAPI instead ofassert(#7739) (Boshen)
[0.39.0] - 2024-12-04
Features
5864352napi/transform: AddTransformerOptions::assumptions(#7601) (翠 / green)771c698oxc: Removeoxc_napicrate (#7634) (Boshen)bd977cfoxc: Addoxc_napicrate (#7612) (Boshen)
Bug Fixes
be2293anapi/transform: Respectoptions.sourcemapfor id (#7590) (Kevin Deng 三咲智子)
Refactor
b4f3812oxc_napi: Removesource_map- moved to its crate (#7614) (Boshen)
[0.38.0] - 2024-11-26
bb2c0c2transformer: [BREAKING] ReturnStringas error instead of OxcDiagnostic (#7424) (Boshen)
Features
59e7e46napi/transform: AddTransformOptions::targetAPI (#7426) (Boshen)
Refactor
[0.36.0] - 2024-11-09
846711ctransformer: [BREAKING] Change API to take a&TransformOptionsinstead ofTransformOptions(#7213) (Boshen)
Features
b4258eetransformer: Add defaultedModule::Preserveoption (#7225) (Boshen)
Refactor
fc86703napi/transform: Change test files to TypeScript (#7221) (Boshen)
Testing
be819ddnapi/transform: Add test for not default es transform (Boshen)
[0.35.0] - 2024-11-04
Bug Fixes
d15e408napi/transform: Fix 'typescript.declaration' option not working (#7012) (Boshen)dcdb9eanapi/transform: Fix test (Boshen)b188b4atransformer: Fix typescript globals being recognized as globals (#7100) (Boshen)
Refactor
335eb38ast_tools: Faster formatting Rust code (#6972) (overlookmotel)
[0.32.0] - 2024-10-19
-
91c87ddcodegen: [BREAKING] RemoveCodegen::enableSourceMapAPI (#6452) (Boshen) -
7645e5ccodegen: [BREAKING] Remove CommentOptions API (#6451) (Boshen) -
5200960oxc: [BREAKING] Remove passingTriviasaround (#6446) (Boshen)
Refactor
[0.31.0] - 2024-10-08
-
020bb80codegen: [BREAKING] Change toCodegenReturn::codeandCodegenReturn::map(#6310) (Boshen) -
4f6bc79transformer: [BREAKING] Removesource_typeparam fromTransformer::new(#6251) (overlookmotel) -
afc3ccbnapi/transform: [BREAKING] RenameTransformOptions::reacttojsx. (#6211) (Boshen)
Features
abd3a9fnapi/transform: Perform dce after define plugin (#6312) (Boshen)a0ccc26napi/transform: Addlangoption to change source type (#6309) (Boshen)f98e12cnapi/transform: Add inject plugin (#6250) (Boshen)291891enapi/transform: Adddefineoption (#6212) (Boshen)51a78d5napi/transform: Rename all mention of React to Jsx; remove mention ofBinding(#6198) (Boshen)2f888edoxc: Add napi transform options (#6268) (Boshen)8729755oxc,napi/transform: Napi/transform use oxc compiler pipeline (#6298) (Boshen)
Bug Fixes
294da86napi/transform: Fix index.d.ts (Boshen)
Refactor
5b5daecnapi: Use vitest (#6307) (Boshen)58a8615napi/transform: Remove context (#6306) (Boshen)099ff3anapi/transform: Remove "Binding" from types; fix type error (#6260) (Boshen)54c1c53napi/transform: Remove a call onTransformOptions::clone(#6210) (Boshen)
[0.30.5] - 2024-09-29
Features
15552acnapi/transform: Display semantic error (#6160) (Boshen)f50fdcdnapi/transform: Make react refresh option take a boolean (#6146) (Boshen)
Bug Fixes
f27d59fnapi/transform: Remove confusingjsxoption (#6159) (Boshen)
[0.30.4] - 2024-09-28
Bug Fixes
6f98aadsourcemap: Align sourcemap type with Rollup (#6133) (Boshen)
[0.30.0] - 2024-09-23
Features
84a5816isolated_declarations: AddstripInternal(#5878) (Boshen)dfbde2cisolated_declarations: Print jsdoc comments (#5858) (Boshen)3230ae5semantic: AddSemanticBuilder::with_excess_capacity(#5762) (overlookmotel)
Bug Fixes
127c881napi/transform: Fix jsdoc links (#5886) (Boshen)6c04fa1napi/transform: Make isolated_declaration options optional (#5880) (Boshen)
[0.29.0] - 2024-09-13
Bug Fixes
608b7d3napi/transformer: Refresh plugin doesn't work even after passing the refresh option (#5702) (Dunqing)
[0.28.0] - 2024-09-11
b060525semantic: [BREAKING] Removesource_typeargument fromSemanticBuilder::new(#5553) (Boshen)
Features
e698418napi/transform: Align outputSourceMapwith Rollup'sExistingRawSourceMap(#5657) (Boshen)aba9194napi/transform: Export react refresh options (#5533) (underfin)
Refactor
[0.27.0] - 2024-09-06
Bug Fixes
ea7a52fnapi/transform: Fix test (Boshen)
[0.26.0] - 2024-09-03
b1d0075napi/transform: [BREAKING] Align output APIsourceText->codewith babel (#5398) (Boshen)
Features
72740b3isolated_declaration: Support sourcemap option (#5170) (dalaoshu)01c0c3etransformer: Add remaining options to transformer options (#5169) (Boshen)0abfc50transformer/typescript: Supportrewrite_import_extensionsoption (#5399) (Dunqing)
[0.25.0] - 2024-08-23
ce4d469codegen: [BREAKING] Remove const genericMINIFY(#5001) (Boshen)
Features
4b49cf8transformer: Always pass in symbols and scopes (#5087) (Boshen)
[0.24.1] - 2024-08-10
Bug Fixes
4d0b40anapi/transform: Fix wrong isolated declarations emit (Boshen)
[0.24.0] - 2024-08-08
Bug Fixes
01d85denapi/transform: Update napi files (Boshen)
Refactor
9b51e04Overhaul napi transformer package (#4592) (DonIsaac)
[0.23.1] - 2024-08-06
Refactor
9b51e04Overhaul napi transformer package (#4592) (DonIsaac)
[0.20.0] - 2024-07-11
Features
725571anapi/transformer: Addjsxoption to force parsing with jsx (#4133) (Boshen)
[0.17.2] - 2024-07-08
Features
720983anapi/transform: Allow settingsourceTypetotransform(#4113) (Boshen)
[0.17.1] - 2024-07-06
Bug Fixes
150f4d9napi/transform: Display error with spanned messages (Boshen)
[0.16.2] - 2024-06-30
Refactor
5845057transformer: Pass in symbols and scopes (#3978) (Boshen)