mirror of
https://github.com/danbulant/oxc
synced 2026-05-22 13:48:55 +00:00
## [0.46.0] - 2025-01-14 -7eb6ccdast: [**BREAKING**] Remove unused and not useful `ContentHash` (#8483) (Boshen) ### Features -8accfefminifier: Minify `var x; void x` -> `void 0` (#8466) (Boshen) -870a583minifier: Fold `false['toString']` (#8447) (Boshen) -4ad695dnapi/minify: Implement napi (#8478) (Boshen) -9d550aaspan: Add `Atom::r#static` (#8479) (_Kerman) ### Bug Fixes -4071878isolated-declarations: Retain `declare` declarations when they are exported (#8477) (Dunqing) -7ee7634isolated-declarations: Import statement disappears when import binding is referenced in nested `typeof` (#8476) (Dunqing) -7252cb0isolated-declarations: Unexpected error when global `Symbol` as property key (#8475) (Dunqing) -4c6675cminifier: Do not convert while to fors in DCE (#8484) (Boshen) -1d6e84dminifier: Fix incorrect `null.toString()` and `1n.toString()` (#8464) (Boshen) -25d4bf9minifier: Remove usage of empty spans (#8462) (Boshen) -dd64340minifier: Keep `return undefined` in async generator function (#8439) (Boshen) -c444de8transformer/arrow-functions: Transform `this` and `super` incorrectly in async arrow function (#8435) (Dunqing) -270245ftransformer/typescript: Correct the semantic for TSImportEqualsDeclaration transformation (#8463) (Dunqing) -2a400d6transformer/typescript: Retain TSImportEqualsDeclaration when it is exported (Dunqing) -ab694b0transformer/typescript: Retain `TSImportEqualsDeclaration` in `namespace` when its binding has been referenced or `onlyRemoveTypeImports` is true (#8458) (Dunqing) ### Performance -7a8200cmangler: Allocate base54 name without heap allocation (#8472) (Boshen) -31dac22mangler: Allocate data in arena (#8471) (Boshen) -8fc238aminifier: Merge `Normalize` and `RemoveSyntax` pass (#8467) (Boshen) -372eb09minifier: Preallocate mangler's semantic data (#8451) (Boshen) ### Refactor -6e64eefcodegen: Remove `match_expression!` (#8450) (Boshen) -de5b288span: Rename `Atom::new_const` method (#8480) (overlookmotel) -c83ce5ctransformer/typescript: Improve transforming namespace (#8459) (Dunqing) Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
7.1 KiB
7.1 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.46.0] - 2025-01-14
Features
4ad695dnapi/minify: Implement napi (#8478) (Boshen)
[0.45.0] - 2025-01-11
Bug Fixes
9a03bd2transformer/typescript: Remove type-onlyimport =whenonly_remove_type_importsis true (#8275) (Dunqing)
[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)