mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +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>
265 lines
7.1 KiB
Markdown
265 lines
7.1 KiB
Markdown
# Changelog
|
|
|
|
All notable changes to this package will be documented in this file.
|
|
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0.
|
|
|
|
## [0.46.0] - 2025-01-14
|
|
|
|
### Features
|
|
|
|
- 4ad695d napi/minify: Implement napi (#8478) (Boshen)
|
|
|
|
## [0.45.0] - 2025-01-11
|
|
|
|
### Bug Fixes
|
|
|
|
- 9a03bd2 transformer/typescript: Remove type-only `import =` when `only_remove_type_imports` is true (#8275) (Dunqing)
|
|
|
|
## [0.42.0] - 2024-12-18
|
|
|
|
### Features
|
|
|
|
- c16a851 napi/transform: Add `jsx: 'preserve'` option (#7965) (Boshen)
|
|
|
|
### Refactor
|
|
|
|
- 3858221 global: Sort imports (#7883) (overlookmotel)
|
|
|
|
### Styling
|
|
|
|
- 7fb9d47 rust: `cargo +nightly fmt` (#7877) (Boshen)
|
|
|
|
## [0.40.1] - 2024-12-10
|
|
|
|
### Bug Fixes
|
|
|
|
- 18d0ce3 napi: Rename `Error` to `OxcError` to avoid name collision (#7780) (Boshen)
|
|
|
|
## [0.40.0] - 2024-12-10
|
|
|
|
### Features
|
|
|
|
- 2803aec napi/transform: Return helpers information (#7737) (Boshen)
|
|
- 85eec3c napi/transform,napi/parser: Return structured error object (#7724) (Boshen)
|
|
- c98457d napi/transformer: Add runtime helper mode (#7727) (Boshen)
|
|
|
|
### Bug Fixes
|
|
|
|
- 245d7d9 oxc_transformer: Alias `es2015` to `es6` (#7673) (Kevin Deng 三咲智子)
|
|
|
|
### Testing
|
|
|
|
- c254a5b napi/transform: Use the `expect` API instead of `assert` (#7739) (Boshen)
|
|
|
|
## [0.39.0] - 2024-12-04
|
|
|
|
### Features
|
|
|
|
- 5864352 napi/transform: Add `TransformerOptions::assumptions` (#7601) (翠 / green)
|
|
- 771c698 oxc: Remove `oxc_napi` crate (#7634) (Boshen)
|
|
- bd977cf oxc: Add `oxc_napi` crate (#7612) (Boshen)
|
|
|
|
### Bug Fixes
|
|
|
|
- be2293a napi/transform: Respect `options.sourcemap` for id (#7590) (Kevin Deng 三咲智子)
|
|
|
|
### Refactor
|
|
|
|
- b4f3812 oxc_napi: Remove `source_map` - moved to its crate (#7614) (Boshen)
|
|
|
|
## [0.38.0] - 2024-11-26
|
|
|
|
- bb2c0c2 transformer: [**BREAKING**] Return `String` as error instead of OxcDiagnostic (#7424) (Boshen)
|
|
|
|
### Features
|
|
|
|
- 59e7e46 napi/transform: Add `TransformOptions::target` API (#7426) (Boshen)
|
|
|
|
### Refactor
|
|
|
|
|
|
## [0.36.0] - 2024-11-09
|
|
|
|
- 846711c transformer: [**BREAKING**] Change API to take a `&TransformOptions` instead of `TransformOptions` (#7213) (Boshen)
|
|
|
|
### Features
|
|
|
|
- b4258ee transformer: Add defaulted `Module::Preserve` option (#7225) (Boshen)
|
|
|
|
### Refactor
|
|
|
|
- fc86703 napi/transform: Change test files to TypeScript (#7221) (Boshen)
|
|
|
|
### Testing
|
|
|
|
- be819dd napi/transform: Add test for not default es transform (Boshen)
|
|
|
|
## [0.35.0] - 2024-11-04
|
|
|
|
### Bug Fixes
|
|
|
|
- d15e408 napi/transform: Fix 'typescript.declaration' option not working (#7012) (Boshen)
|
|
- dcdb9ea napi/transform: Fix test (Boshen)
|
|
- b188b4a transformer: Fix typescript globals being recognized as globals (#7100) (Boshen)
|
|
|
|
### Refactor
|
|
|
|
- 335eb38 ast_tools: Faster formatting Rust code (#6972) (overlookmotel)
|
|
|
|
## [0.32.0] - 2024-10-19
|
|
|
|
- 91c87dd codegen: [**BREAKING**] Remove `Codegen::enableSourceMap` API (#6452) (Boshen)
|
|
|
|
- 7645e5c codegen: [**BREAKING**] Remove CommentOptions API (#6451) (Boshen)
|
|
|
|
- 5200960 oxc: [**BREAKING**] Remove passing `Trivias` around (#6446) (Boshen)
|
|
|
|
### Refactor
|
|
|
|
|
|
## [0.31.0] - 2024-10-08
|
|
|
|
- 020bb80 codegen: [**BREAKING**] Change to `CodegenReturn::code` and `CodegenReturn::map` (#6310) (Boshen)
|
|
|
|
- 4f6bc79 transformer: [**BREAKING**] Remove `source_type` param from `Transformer::new` (#6251) (overlookmotel)
|
|
|
|
- afc3ccb napi/transform: [**BREAKING**] Rename `TransformOptions::react` to `jsx`. (#6211) (Boshen)
|
|
|
|
### Features
|
|
|
|
- abd3a9f napi/transform: Perform dce after define plugin (#6312) (Boshen)
|
|
- a0ccc26 napi/transform: Add `lang` option to change source type (#6309) (Boshen)
|
|
- f98e12c napi/transform: Add inject plugin (#6250) (Boshen)
|
|
- 291891e napi/transform: Add `define` option (#6212) (Boshen)
|
|
- 51a78d5 napi/transform: Rename all mention of React to Jsx; remove mention of `Binding` (#6198) (Boshen)
|
|
- 2f888ed oxc: Add napi transform options (#6268) (Boshen)
|
|
- 8729755 oxc,napi/transform: Napi/transform use oxc compiler pipeline (#6298) (Boshen)
|
|
|
|
### Bug Fixes
|
|
|
|
- 294da86 napi/transform: Fix index.d.ts (Boshen)
|
|
|
|
### Refactor
|
|
|
|
- 5b5daec napi: Use vitest (#6307) (Boshen)
|
|
- 58a8615 napi/transform: Remove context (#6306) (Boshen)
|
|
- 099ff3a napi/transform: Remove "Binding" from types; fix type error (#6260) (Boshen)
|
|
- 54c1c53 napi/transform: Remove a call on `TransformOptions::clone` (#6210) (Boshen)
|
|
|
|
## [0.30.5] - 2024-09-29
|
|
|
|
### Features
|
|
|
|
- 15552ac napi/transform: Display semantic error (#6160) (Boshen)
|
|
- f50fdcd napi/transform: Make react refresh option take a boolean (#6146) (Boshen)
|
|
|
|
### Bug Fixes
|
|
|
|
- f27d59f napi/transform: Remove confusing `jsx` option (#6159) (Boshen)
|
|
|
|
## [0.30.4] - 2024-09-28
|
|
|
|
### Bug Fixes
|
|
|
|
- 6f98aad sourcemap: Align sourcemap type with Rollup (#6133) (Boshen)
|
|
|
|
## [0.30.0] - 2024-09-23
|
|
|
|
### Features
|
|
|
|
- 84a5816 isolated_declarations: Add `stripInternal` (#5878) (Boshen)
|
|
- dfbde2c isolated_declarations: Print jsdoc comments (#5858) (Boshen)
|
|
- 3230ae5 semantic: Add `SemanticBuilder::with_excess_capacity` (#5762) (overlookmotel)
|
|
|
|
### Bug Fixes
|
|
|
|
- 127c881 napi/transform: Fix jsdoc links (#5886) (Boshen)
|
|
- 6c04fa1 napi/transform: Make isolated_declaration options optional (#5880) (Boshen)
|
|
|
|
## [0.29.0] - 2024-09-13
|
|
|
|
### Bug Fixes
|
|
|
|
- 608b7d3 napi/transformer: Refresh plugin doesn't work even after passing the refresh option (#5702) (Dunqing)
|
|
|
|
## [0.28.0] - 2024-09-11
|
|
|
|
- b060525 semantic: [**BREAKING**] Remove `source_type` argument from `SemanticBuilder::new` (#5553) (Boshen)
|
|
|
|
### Features
|
|
|
|
- e698418 napi/transform: Align output `SourceMap` with Rollup's `ExistingRawSourceMap` (#5657) (Boshen)
|
|
- aba9194 napi/transform: Export react refresh options (#5533) (underfin)
|
|
|
|
### Refactor
|
|
|
|
|
|
## [0.27.0] - 2024-09-06
|
|
|
|
### Bug Fixes
|
|
|
|
- ea7a52f napi/transform: Fix test (Boshen)
|
|
|
|
## [0.26.0] - 2024-09-03
|
|
|
|
- b1d0075 napi/transform: [**BREAKING**] Align output API `sourceText` -> `code` with babel (#5398) (Boshen)
|
|
|
|
### Features
|
|
|
|
- 72740b3 isolated_declaration: Support sourcemap option (#5170) (dalaoshu)
|
|
- 01c0c3e transformer: Add remaining options to transformer options (#5169) (Boshen)
|
|
- 0abfc50 transformer/typescript: Support `rewrite_import_extensions` option (#5399) (Dunqing)
|
|
|
|
## [0.25.0] - 2024-08-23
|
|
|
|
- ce4d469 codegen: [**BREAKING**] Remove const generic `MINIFY` (#5001) (Boshen)
|
|
|
|
### Features
|
|
|
|
- 4b49cf8 transformer: Always pass in symbols and scopes (#5087) (Boshen)
|
|
|
|
## [0.24.1] - 2024-08-10
|
|
|
|
### Bug Fixes
|
|
|
|
- 4d0b40a napi/transform: Fix wrong isolated declarations emit (Boshen)
|
|
|
|
## [0.24.0] - 2024-08-08
|
|
|
|
### Bug Fixes
|
|
|
|
- 01d85de napi/transform: Update napi files (Boshen)
|
|
|
|
### Refactor
|
|
- 9b51e04 Overhaul napi transformer package (#4592) (DonIsaac)
|
|
|
|
## [0.23.1] - 2024-08-06
|
|
|
|
### Refactor
|
|
- 9b51e04 Overhaul napi transformer package (#4592) (DonIsaac)
|
|
|
|
## [0.20.0] - 2024-07-11
|
|
|
|
### Features
|
|
|
|
- 725571a napi/transformer: Add `jsx` option to force parsing with jsx (#4133) (Boshen)
|
|
|
|
## [0.17.2] - 2024-07-08
|
|
|
|
### Features
|
|
|
|
- 720983a napi/transform: Allow setting `sourceType` to `transform` (#4113) (Boshen)
|
|
|
|
## [0.17.1] - 2024-07-06
|
|
|
|
### Bug Fixes
|
|
|
|
- 150f4d9 napi/transform: Display error with spanned messages (Boshen)
|
|
|
|
## [0.16.2] - 2024-06-30
|
|
|
|
### Refactor
|
|
|
|
- 5845057 transformer: Pass in symbols and scopes (#3978) (Boshen)
|
|
|