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_scopewithancestor_scopesreturning iterator (refactor(traverse)!: replacefind_scopewithancestor_scopesreturning iterator #4693) (overlookmotel)506709f traverse: [BREAKING] Replace
find_ancestorwithancestorsreturning iterator (refactor(traverse)!: replacefind_ancestorwithancestorsreturning iterator #4692) (overlookmotel)Features
CloneIntrait. (feat(allocator): introduceCloneIntrait. #4726) (rzvxa)CloneInfor AST types, usinggenerate_derive. (feat(ast): deriveCloneInfor AST types, usinggenerate_derive. #4732) (rzvxa)AstKind::debug_name(feat(ast): improveAstKind::debug_name#4553) (DonIsaac)GetSpanMuttrait (feat(ast):GetSpanMuttrait #4609) (overlookmotel)#[ast]enums (feat(ast, ast_macros): apply stable repr to all#[ast]enums #4373) (rzvxa)derive_clone_ingenerator. (feat(ast_codegen): addderive_clone_ingenerator. #4731) (rzvxa)generate_derivemarker. (feat(ast_codegen): support forgenerate_derivemarker. #4728) (rzvxa)syntaxtypes. (feat(ast_codegen): process AST-relatedsyntaxtypes. #4694) (rzvxa)Spanthrough ast_codegen (feat(ast_codegen, span): processSpanthrough ast_codegen #4703) (overlookmotel)SourceTypethrough ast_codegen. (feat(ast_codegen, span): processSourceTypethrough ast_codegen. #4696) (rzvxa)ConcatSourceMapBuilder::from_sourcemaps(feat(sourcemap): addConcatSourceMapBuilder::from_sourcemaps#4639) (overlookmotel)CloneInfor the AST-related items. (feat(span): implementCloneInfor the AST-related items. #4729) (rzvxa)CloneInfor the AST-related items. (feat(syntax): deriveCloneInfor the AST-related items. #4730) (rzvxa)Bug Fixes
KeepVar(fix(minifier): avoid removing function declaration fromKeepVar#4722) (Boshen)remove_syntaxin dead_code_elimination (Boshen)keep_varkeeping vars from arrow functions (fix(minifier): fixkeep_varkeeping vars from arrow functions #4680) (Boshen)undefinedvariable (fix(minifier): temporarily fix shadowedundefinedvariable #4678) (Boshen)synlacking features to build (Boshen)assertkeyword inTSImportAttributes(fix(parser): parseassertkeyword inTSImportAttributes#4610) (Boshen)scope_idfor catch parameter symbols (fix(semantic): incorrectscope_idfor catch parameter symbols #4659) (Dunqing)type_name_comment. (fix(semantic/jsdoc): panic on parsingtype_name_comment. #4632) (rzvxa)requireIdentifierReference does not have areference_id(fix(transformer/react): therequireIdentifierReference does not have areference_id#4658) (Dunqing)symbol_id/reference_id(fix(transformer/typescript): incorrect enum-relatedsymbol_id/reference_id#4660) (Dunqing)SymbolFlagsfor jsx imports (fix(transformer/typescript): incorrectSymbolFlagsfor jsx imports #4549) (Dunqing)Performance
LineOffsetTable(perf(codegen): reduce size ofLineOffsetTable#4643) (overlookmotel)u32indexes inLineOffsetTablefor source maps (perf(codegen):u32indexes inLineOffsetTablefor source maps #4641) (overlookmotel)CowandCompactStrinstead ofString(perf(linter): change react rules and utils to useCowandCompactStrinstead 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)ConcatSourceMapBuilderextendsource_contentsin separate loop (perf(sourcemap):ConcatSourceMapBuilderextendsource_contentsin separate loop #4634) (overlookmotel)Documentation
Refactor
CloneIn::ClonedGAT. (refactor(ast): use type identifier instead ofCloneIn::ClonedGAT. #4738) (rzvxa)assert_layouts.rsbehinddebug_assertions(refactor(ast): putassert_layouts.rsbehinddebug_assertions#4621) (rzvxa)repr(C). (refactor(ast): make AST structsrepr(C). #4614) (rzvxa)visit_as+visit_argsattrs from#[ast]macro (refactor(ast): remove defunctvisit_as+visit_argsattrs from#[ast]macro #4599) (overlookmotel)generate_derivefor implementingGetSpanandGetSpanMuttraits. (refactor(ast, ast_codegen): usegenerate_derivefor implementingGetSpanandGetSpanMuttraits. #4735) (rzvxa)NodeUtiltrait for accessing symbols on ast nodes (refactor(minifier): addNodeUtiltrait for accessing symbols on ast nodes #4734) (Boshen)oxc_traversefor AST passes (refactor(minifier): useoxc_traversefor AST passes #4725) (Boshen)ast_builderin more places. (refactor(parser): useast_builderin more places. #4612) (rzvxa)Testing
assert_layouts.rsoffset tests on 32bit platforms. (test(ast): fixassert_layouts.rsoffset tests on 32bit platforms. #4620) (rzvxa)