Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[0.52.0] - 2025-02-21
216b33f ast/estree: [BREAKING] Replace
serde
with customESTree
serializer (feat(ast/estree)!: replaceserde
with customESTree
serializer #9256) (overlookmotel)611b029 ast: [BREAKING] Remove
AstBuilder::copy
(feat(ast)!: removeAstBuilder::copy
#9210) (Dunqing)Features
#[builder(skip)]
attribute for structs and enums (feat(ast_tools): add#[builder(skip)]
attribute for structs and enums #9205) (overlookmotel)#[builder(default)]
attribute for structs and enums (feat(ast_tools): add#[builder(default)]
attribute for structs and enums #9203) (overlookmotel)emitDecoratorMetadata
(feat(napi/transform): support enablingemitDecoratorMetadata
#9190) (Dunqing)decorateMetadata
helper function (feat(npm/runtime): adddecorateMetadata
helper function #9189) (Dunqing)a ? b ? (c = 0) : d => 1 : (e = 2) : f => 3
(feat(parser): parsea ? b ? (c = 0) : d => 1 : (e = 2) : f => 3
#9229) (Boshen)Bug Fixes
WithClause
(fix(ast/estree): remove unused TS type def forWithClause
#9250) (overlookmotel)clippy::debug_assert_with_mut_call
(fix(cfg): fixclippy::debug_assert_with_mut_call
#9257) (Boshen)clippy::unused_peekable
warning (fix(codegen): fixclippy::unused_peekable
warning #9236) (Boshen)clippy::suspicious_operation_groupings
warning (fix(minifier): fixclippy::suspicious_operation_groupings
warning #9238) (Boshen)clippy::iter_on_single_items
warning (fix(transformer): fixclippy::iter_on_single_items
warning #9235) (Boshen)insert_many_before
(fix(transformer/class-properties): do not insert an empty iterator toinsert_many_before
#9157) (Dunqing)oxc-wasm
(fix(wasm): transfer AST to JS as JSON string inoxc-wasm
#9269) (overlookmotel)Documentation
get_identifier
methods on JSX types (docs(ast): correct and improve docs forget_identifier
methods on JSX types #9225) (overlookmotel)AstBuilder
*_with_*
methods list extra field names, not field types (docs(ast): docs forAstBuilder
*_with_*
methods list extra field names, not field types #9206) (overlookmotel)clippy::too_long_first_doc_paragraph
(docs(oxc): enableclippy::too_long_first_doc_paragraph
#9237) (Boshen)Refactor
serde
impls (refactor(allocator, linter): shortenserde
impls #9254) (overlookmotel)TSLiteral::NullLiteral
(replaced byTSNullKeyword
) (refactor(ast): removeTSLiteral::NullLiteral
(replaced byTSNullKeyword
) #9147) (Boshen)BindingProperty
(refactor(ast/estree): simplify serializer forBindingProperty
#9255) (overlookmotel)FormalParameters
(refactor(ast/estree): simplify serializingFormalParameters
#9195) (overlookmotel)iter::repeat_n
(refactor(mangler): useiter::repeat_n
#9272) (overlookmotel)Math.pow(a,b)
->a ** (+b)
instead of(+a) ** (+b)
(refactor(minifier):Math.pow(a,b)
->a ** (+b)
instead of(+a) ** (+b)
#9154) (Boshen)clippy::needless_pass_by_ref_mut
(refactor(oxc): applyclippy::needless_pass_by_ref_mut
#9253) (Boshen)clippy::redundant_clone
(refactor(oxc): applyclippy::redundant_clone
#9252) (Boshen)ArrowFunctionHead
struct (refactor(parser): addArrowFunctionHead
struct #9222) (Boshen)cllippy::nursery
rules (refactor(rust): applycllippy::nursery
rules #9232) (Boshen)Deserialize
forCompactStr
(refactor(span): manually deriveDeserialize
forCompactStr
#9249) (overlookmotel)Serialize
manually forAtom
(refactor(span): implementSerialize
manually forAtom
#9196) (overlookmotel)Serialize
impls (refactor(syntax): shortenSerialize
impls #9248) (overlookmotel)&mut
when&
ref will do (refactor(transformer): do not use&mut
when&
ref will do #9266) (overlookmotel)DashMap
withRwLock<FxHashMap>
(refactor(transformer): replaceDashMap
withRwLock<FxHashMap>
#9221) (Boshen)Class
as first argument (refactor(transformer/decorators): passClass
as first argument #9265) (overlookmotel)GetAddress::address
(refactor(transformer/decorators): get statement address withGetAddress::address
#9264) (overlookmotel)None
when extractingkey
prop (refactor(transformer/jsx): do not takeNone
when extractingkey
prop #9228) (overlookmotel)has_proto
(refactor(transformer/jsx): refactor and documenthas_proto
#9227) (overlookmotel)span()
method calls (refactor(transformer/jsx): avoidspan()
method calls #9226) (overlookmotel)Vec
values byinto_iter
rather thandrain
(refactor(transformer/jsx): take ownership ofVec
values byinto_iter
rather thandrain
#9216) (Dunqing)AstBuilder::copy
usages (refactor(transformer/jsx): simplify and remove allAstBuilder::copy
usages #9209) (Dunqing)clippy::redundant_pub_crate
(refactor(traverse): applyclippy::redundant_pub_crate
#9258) (Boshen)Testing