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.24.0] - 2024-08-08
75f2207 traverse: [BREAKING] Replace
find_scope
withancestor_scopes
returning iterator (refactor(traverse)!: replacefind_scope
withancestor_scopes
returning iterator #4693) (overlookmotel)506709f traverse: [BREAKING] Replace
find_ancestor
withancestors
returning iterator (refactor(traverse)!: replacefind_ancestor
withancestors
returning iterator #4692) (overlookmotel)Features
CloneIn
trait. (feat(allocator): introduceCloneIn
trait. #4726) (rzvxa)CloneIn
for AST types, usinggenerate_derive
. (feat(ast): deriveCloneIn
for AST types, usinggenerate_derive
. #4732) (rzvxa)AstKind::debug_name
(feat(ast): improveAstKind::debug_name
#4553) (DonIsaac)GetSpanMut
trait (feat(ast):GetSpanMut
trait #4609) (overlookmotel)#[ast]
enums (feat(ast, ast_macros): apply stable repr to all#[ast]
enums #4373) (rzvxa)derive_clone_in
generator. (feat(ast_codegen): addderive_clone_in
generator. #4731) (rzvxa)generate_derive
marker. (feat(ast_codegen): support forgenerate_derive
marker. #4728) (rzvxa)syntax
types. (feat(ast_codegen): process AST-relatedsyntax
types. #4694) (rzvxa)Span
through ast_codegen (feat(ast_codegen, span): processSpan
through ast_codegen #4703) (overlookmotel)SourceType
through ast_codegen. (feat(ast_codegen, span): processSourceType
through ast_codegen. #4696) (rzvxa)ConcatSourceMapBuilder::from_sourcemaps
(feat(sourcemap): addConcatSourceMapBuilder::from_sourcemaps
#4639) (overlookmotel)CloneIn
for the AST-related items. (feat(span): implementCloneIn
for the AST-related items. #4729) (rzvxa)CloneIn
for the AST-related items. (feat(syntax): deriveCloneIn
for the AST-related items. #4730) (rzvxa)Bug Fixes
KeepVar
(fix(minifier): avoid removing function declaration fromKeepVar
#4722) (Boshen)remove_syntax
in dead_code_elimination (Boshen)keep_var
keeping vars from arrow functions (fix(minifier): fixkeep_var
keeping vars from arrow functions #4680) (Boshen)undefined
variable (fix(minifier): temporarily fix shadowedundefined
variable #4678) (Boshen)syn
lacking features to build (Boshen)assert
keyword inTSImportAttributes
(fix(parser): parseassert
keyword inTSImportAttributes
#4610) (Boshen)scope_id
for catch parameter symbols (fix(semantic): incorrectscope_id
for catch parameter symbols #4659) (Dunqing)type_name_comment
. (fix(semantic/jsdoc): panic on parsingtype_name_comment
. #4632) (rzvxa)require
IdentifierReference does not have areference_id
(fix(transformer/react): therequire
IdentifierReference does not have areference_id
#4658) (Dunqing)symbol_id
/reference_id
(fix(transformer/typescript): incorrect enum-relatedsymbol_id
/reference_id
#4660) (Dunqing)SymbolFlags
for jsx imports (fix(transformer/typescript): incorrectSymbolFlags
for jsx imports #4549) (Dunqing)Performance
LineOffsetTable
(perf(codegen): reduce size ofLineOffsetTable
#4643) (overlookmotel)u32
indexes inLineOffsetTable
for source maps (perf(codegen):u32
indexes inLineOffsetTable
for source maps #4641) (overlookmotel)Cow
andCompactStr
instead ofString
(perf(linter): change react rules and utils to useCow
andCompactStr
instead ofString
#4603) (DonIsaac)console.log
(perf(minifier): only visit arrow expression after droppingconsole.log
#4677) (Boshen)ConcatSourceMapBuilder
(perf(sourcemap): reduce string copying inConcatSourceMapBuilder
#4638) (overlookmotel)ConcatSourceMapBuilder
extendsource_contents
in separate loop (perf(sourcemap):ConcatSourceMapBuilder
extendsource_contents
in separate loop #4634) (overlookmotel)Documentation
Refactor
CloneIn::Cloned
GAT. (refactor(ast): use type identifier instead ofCloneIn::Cloned
GAT. #4738) (rzvxa)assert_layouts.rs
behinddebug_assertions
(refactor(ast): putassert_layouts.rs
behinddebug_assertions
#4621) (rzvxa)repr(C)
. (refactor(ast): make AST structsrepr(C)
. #4614) (rzvxa)visit_as
+visit_args
attrs from#[ast]
macro (refactor(ast): remove defunctvisit_as
+visit_args
attrs from#[ast]
macro #4599) (overlookmotel)generate_derive
for implementingGetSpan
andGetSpanMut
traits. (refactor(ast, ast_codegen): usegenerate_derive
for implementingGetSpan
andGetSpanMut
traits. #4735) (rzvxa)NodeUtil
trait for accessing symbols on ast nodes (refactor(minifier): addNodeUtil
trait for accessing symbols on ast nodes #4734) (Boshen)oxc_traverse
for AST passes (refactor(minifier): useoxc_traverse
for AST passes #4725) (Boshen)ast_builder
in more places. (refactor(parser): useast_builder
in more places. #4612) (rzvxa)Testing
assert_layouts.rs
offset tests on 32bit platforms. (test(ast): fixassert_layouts.rs
offset tests on 32bit platforms. #4620) (rzvxa)