mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
8bf69a3076
### 💥 BREAKING CHANGES -94fbacbast: [**BREAKING**] Only export `AstBuilder` and `NONE` in `builder` module (#23876) (overlookmotel) -8de5122ecmascript: [**BREAKING**] Switch to new `AstBuilder` (#23834) (overlookmotel) -dc0ef38transformer: [**BREAKING**] Switch to new `AstBuilder` (#23831) (overlookmotel) -88f4455str: [**BREAKING**] `Str` and `Ident` methods take `&GetAllocator` (#23781) (overlookmotel) -36009ddallocator: [**BREAKING**] `GetAllocator::allocator` take `&self` (#23676) (overlookmotel) -bd74f9dallocator: [**BREAKING**] Rename `AllocatorAccessor` trait to `GetAllocator` (#23675) (overlookmotel) ### 🚀 Features -326fe25transformer_plugins: Support `typeof` `define` keys (#23605) (Alexander Lichter) -f2091b3ast: Unify old and new `AstBuilder`s (#23875) (overlookmotel) -cd1fd12codegen: Expose `Codegen::print_string` API (#23785) (camc314) -785461bast: Add custom builder methods to AST types (#23651) (overlookmotel) -05d1357ast: Add AST creation methods to AST types (#23650) (overlookmotel) -2580edastr: Add `Str::from_str_in` and `Ident::from_str_in` methods (#23767) (overlookmotel) -6883fcfminifier: Fold write-once falsy var to false in boolean context (#23540) (Dunqing) -fcbf993allocator: Add `Vec::from_value_in` method (#23718) (overlookmotel) -989ddb7allocator: Add `Vec::from_box_in` method (#23717) (overlookmotel) -9d1aa7fallocator: Improve `PartialEq` for `Vec` (#23716) (overlookmotel) ### 🐛 Bug Fixes -da0e5bfminifier: Don't reorder a closed-over TDZ read when inlining a var (#23771) (Dunqing) -0b3021fallocator: Remove `Vec::from_box_in` (#23873) (overlookmotel) -0ab64ecast: Silence deprecation warnings within files defining deprecated `AstBuilder` methods (#23889) (overlookmotel) -8c07cadall: Enable `disable_old_builder` Cargo feature for `oxc_ast` crate in tests (#23888) (overlookmotel) -3800f01ast: Legacy `AstBuilder` methods take `self` not `&self` (#23891) (overlookmotel) -869ac20semantic/cfg: Connect for update exit to loop test (#23791) (camc314) -d3e92d5semantic/cfg: Connect while branches from condition exit (#23790) (camc314) -025045dast: `ExportNamedDeclaration` plain builder methods return boxed nodes (#23783) (overlookmotel) -7537c58ast: Fix name of `AstBuilder` method for `Expression::V8IntrinsicExpression` (#23766) (overlookmotel) -3f574f5traverse: Fix unsoundness in `Traverse` walk functions (#23745) (overlookmotel) -585760fparser: String in AST reference arena (#23721) (overlookmotel) -7231d55allocator: Fix unsound lifetime extension in `Box::new_in` (#23685) (overlookmotel) ### ⚡ Performance -d5c916asemantic: Flatten hoisting_variables to avoid per-scope map allocation (#23927) (Lawrence Lin) -e71609dminifier: Bail member-expr folding before the side-effect walk (#23924) (Lawrence Lin) -e1f89abminifier: Reduce string allocations folding addition (#23846) (overlookmotel) -9f6ee3bisolated-declarations: Pool scope maps to avoid per-scope alloc/rehash (#23761) (Boshen) -0b07c4csemantic: Avoid heap alloc for catch-clause binding ids (#23911) (Lawrence Lin) -c5eef8bregular_expression: Skip capturing-group pre-parse when pattern has no `(` (#23908) (Lawrence Lin) -b4f5b4bisolated_declarations: Remove redundant clone of formal parameter pattern (#23912) (Lawrence Lin) -53d083fisolated_declarations: Use `TakeIn` not `CloneIn` (#23847) (overlookmotel) -3ea9304react_compiler: Use faster API to arena allocate strings (#23849) (overlookmotel) -a6d8e45parser: Avoid span lookup for arrow expression body (#23788) (camc314) -e1886a0transformer, minifier: Use `static_ident!` macro to create static `Ident`s (#23727) (overlookmotel) -5527beftransformer/object-rest-spread: Reduce iteration (#23720) (overlookmotel) -680ffbctransformer: Allocate AST nodes in arena directly (#23711) (overlookmotel) -1c63c66parser: Allocate AST nodes in arena directly (#23712) (overlookmotel) -3855f0cminifier: Allocate AST nodes in arena directly (#23710) (overlookmotel) -d025887isolated_declarations: Allocate AST nodes in arena directly (#23709) (overlookmotel) -10b96c6parser: Remove string search from parsing JSX element name (#23713) (overlookmotel) ### 📚 Documentation -3d61deaall: Correct capitalization in comments (#23887) (overlookmotel) -aa1ad74ast: Add `#[deprecated]` to legacy `AstBuilder` methods (#23877) (overlookmotel) -a4676dbast: Correct doc comment for `NONE` (#23765) (overlookmotel) -419ec80syntax: Fix typo in doc comment (#23674) (overlookmotel) ### 🛡️ Security -3cdd18fdeps: Update npm packages (#23690) (renovate[bot]) Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com> Co-authored-by: Cameron <cameron.clark@hey.com>
3.0 KiB
3.0 KiB
Changelog
All notable changes to this package will be documented in this file.
The format is based on Keep a Changelog.
[0.138.0] - 2026-06-29
🐛 Bug Fixes
8c07cadall: Enabledisable_old_builderCargo feature foroxc_astcrate in tests (#23888) (overlookmotel)
[0.136.0] - 2026-06-15
⚡ Performance
da1a6c6diagnostics: Migrate to allocation-optimized oxc-miette (#23094) (Boshen)
[0.117.0] - 2026-03-09
⚡ Performance
4ea8f9anapi: Removenapi_build::setup()fromoxc_napito avoid redundant rebuilds (#20094) (Boshen)
[0.109.0] - 2026-01-19
🚀 Features
6e8fa80napi/parser, napi/transform: AcceptsourceType: "commonjs"(#18197) (overlookmotel)66b8c02parser: Implement unambiguous module parsing for JS/TS files (#18124) (Boshen)
[0.103.0] - 2025-12-15
💥 BREAKING CHANGES
320c09fast, parser, linter, codegen, formatter: [BREAKING] RenameCommentKind::BlocktoCommentKind::SinglelineBlock(#16501) (Dunqing)
🚀 Features
30a9076ast, parser, codegen: AddCommentKind::MultilineBlock(#16479) (Dunqing)
[0.102.0] - 2025-12-08
💥 BREAKING CHANGES
083fea9napi/parser: [BREAKING] Represent empty optional fields on JS side asnull(#16411) (overlookmotel)
[0.91.0] - 2025-09-22
💼 Other
fb347dacrates: V0.91.0 (#13961) (Boshen)
[0.80.0] - 2025-08-03
📚 Documentation
de1de35rust: Add comprehensive README.md documentation for all Rust crates (#12706) (Copilot)
[0.77.0] - 2025-07-12
🚀 Features
407429anapi/parser,napi/transform: Acceptlang=dts(#12154) (Boshen)
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.70.0] - 2025-05-15
Bug Fixes
635aa96napi: Computed final source type fromlangthensourceType(#11060) (Boshen)
[0.68.0] - 2025-05-03
Refactor
06fde2aast/estree:convert_utf8_to_utf16take&mutslice of errors, not&mut Vec(#10672) (overlookmotel)
[0.61.0] - 2025-03-20
Features
2cedfe4napi: Add codeframe to napi error (#9893) (Boshen)
Refactor
961b95dnapi: Move common code tooxc_napi(#9875) (Boshen)
[0.50.0] - 2025-02-12
Bug Fixes
ad93eceoxc_napi: Add napi build.rs (#9038) (LongYinan)
[0.49.0] - 2025-02-10
Styling
a4a8e7dall: Replace#[allow]with#[expect](#8930) (overlookmotel)
[0.42.0] - 2024-12-18
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
85eec3cnapi/transform,napi/parser: Return structured error object (#7724) (Boshen)