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.64.0] - 2025-04-17
09f4c30 ast: [BREAKING] Remove
ArrayAssignmentTarget::new_with_elementsandObjectAssignmentTarget::new_with_properties(refactor(ast)!: removeArrayAssignmentTarget::new_with_elementsandObjectAssignmentTarget::new_with_properties#10440) (overlookmotel)c538efa ast: [BREAKING]
ImportExpressiononly allows one option argument (fix(ast)!:ImportExpressiononly allows one option argument #10432) (Boshen)7284135 ast: [BREAKING] Remove
trailing_commasfromArrayExpressionandObjectExpression(refactor(ast)!: removetrailing_commasfromArrayExpressionandObjectExpression#10431) (Boshen)771d50f ast: [BREAKING] Change
Class::implementstoVec<TSClassImplements>(fix(ast)!: changeClass::implementstoVec<TSClassImplements>#10430) (Boshen)521de23 ast: [BREAKING] Add
computedproperty toTSEnumMemberandTSEnumMemberName::TemplateString(feat(ast)!: Addcomputedproperty toTSEnumMemberandTSEnumMemberName::TemplateString#10092) (Yuji Sugiura)49732ff ast: [BREAKING] Re-introduce
TSEnumBodyAST node (feat(ast)!: Re-introduceTSEnumBodyAST node #10284) (Yuji Sugiura)Features
overridefield inAccessorProperty(feat(ast): Addoverridefield inAccessorProperty#10415) (Yuji Sugiura)v8 ignore) (feat(codegen): preserve code coverage ignore comments (e.g.v8 ignore) #10338) (Boshen)SymbolFlags::Ambientfor declaration withdeclaremodifier (feat(semantic): addSymbolFlags::Ambientfor declaration withdeclaremodifier #10355) (Dunqing)ExportSpecifierwhere refers to adeclaredeclaration (feat(transformer): eliminateExportSpecifierwhere refers to adeclaredeclaration #10356) (Dunqing)usingby default (feat(transformer): enableusingby default #10333) (Boshen)Bug Fixes
TSThisTypeinTSTypePredicate(fix(ast): HandleTSThisTypeinTSTypePredicate#10328) (Yuji Sugiura)AssignmentTargetRestin TS-ESTree AST (fix(ast/estree): add missing fields toAssignmentTargetRestin TS-ESTree AST #10456) (overlookmotel)Programin TS-ESTree AST where first statement is@dec export class C {}(fix(ast/estree): fix start span ofProgramin TS-ESTree AST where first statement is@dec export class C {}#10448) (overlookmotel)AssignmentTargetPatternin TS-ESTree AST (fix(ast/estree): add fields toAssignmentTargetPatternin TS-ESTree AST #10423) (overlookmotel)optionalfield toAssignmentTargetPropertyin TS-ESTree AST (fix(ast/estree): addoptionalfield toAssignmentTargetPropertyin TS-ESTree AST #10412) (overlookmotel)BindingRestElementin TS-ESTree AST (fix(ast/estree): add fields toBindingRestElementin TS-ESTree AST #10411) (overlookmotel)Programspan when contains no statements (fix(ast/estree): fixProgramspan when contains no statements #10408) (overlookmotel)JSXOpeningFragment(fix(ast/estree): FixJSXOpeningFragment#10208) (therewillbecode)TemplateElementin TS AST (fix(ast/estree): fix span forTemplateElementin TS AST #10315) (overlookmotel)Utf8ToUtf16Converterprocess decorators before class (fix(ast_visit):Utf8ToUtf16Converterprocess decorators before class #10449) (overlookmotel)AssignmentTargetRest(fix(codegen): fix spaces beforeAssignmentTargetRest#10443) (overlookmotel)TSMappedTypefields (fix(estree): AlignTSMappedTypefields #10392) (Yuji Sugiura)JSDocXxxTypetoTSJSDocXxxType(fix(estree): RenameJSDocXxxTypetoTSJSDocXxxType#10358) (Yuji Sugiura)TSInstantiationExpression.type_parameterstotype_arguments(fix(estree): RenameTSInstantiationExpression.type_parameterstotype_arguments#10327) (Yuji Sugiura)a ? b() : b()(fix(minifier): panic when compressinga ? b() : b()#10311) (翠 / green)type x = typeof import('')->TSTypeQuery(TSImportType)(fix(parse):type x = typeof import('')->TSTypeQuery(TSImportType)#10317) (Boshen)+ ++x(fix(parser): fix span position for+ ++x#10429) (Boshen)?postfixed element type inTupleType(fix(parser): Correctly handle?postfixed element type inTupleType#10390) (Yuji Sugiura)ExportNamedDeclaration.exportKindshould betypefordeclaredeclaration (fix(parser):ExportNamedDeclaration.exportKindshould betypefordeclaredeclaration #10389) (Yuji Sugiura)JSDocUnknownTypecorrectly (fix(parser): HandleJSDocUnknownTypecorrectly #10363) (Yuji Sugiura)SymbolFlagsofTSModuleDeclaration(fix(semantic): incorrectSymbolFlagsofTSModuleDeclaration#10350) (Dunqing)Symbolfor anModuleDeclarationwhere theidis not aBindingIdentifier(fix(semantic): do not declare aSymbolfor anModuleDeclarationwhere theidis not aBindingIdentifier#10343) (Dunqing)developmentis disabled (fix(transformer/jsx): do not report "duplicate __source/__self prop found" error whendevelopmentis disabled #10393) (Dunqing)ChildScopeCollectorvisit all scopes (fix(traverse):ChildScopeCollectorvisit all scopes #10292) (overlookmotel)Performance
Vec(perf(minifier/minimize_statements): reduce allocations ofVec#10435) (Dunqing)ArenaVecto store decorators (perf(parser): useArenaVecto store decorators #10437) (Dunqing)Objectas early as possible if there is aTSTypeReferencewithinTSUnionType(perf(transformer/decorator-metadata): returnObjectas early as possible if there is aTSTypeReferencewithinTSUnionType#10361) (Dunqing)JSXTextstrings (perf(transformer/jsx): speed up decodingJSXTextstrings #9741) (overlookmotel)Boxtomake_object_spread(perf(transformer/object-rest-spread): passBoxtomake_object_spread#10446) (overlookmotel)ArenaVecto store values that will be used in constructing AST (perf(transformer/object_rest_spread): useArenaVecto store values that will be used in constructing AST #10434) (Dunqing)Documentation
AssignmentTargetRest(docs(ast): improve docs forAssignmentTargetRest#10442) (overlookmotel)Refactor
handle_alloc_errorfunction fromallocator_api2instead of writing a custom one (refactor(allocator/vec2): importhandle_alloc_errorfunction fromallocator_api2instead of writing a custom one #9860) (Dunqing)ModuleDeclaration::with_clausereturnOption<&WithClause>(refactor(ast):ModuleDeclaration::with_clausereturnOption<&WithClause>#10441) (overlookmotel)TSEnumMemberNamevariant to replacecomputedfield (refactor(ast): AddTSEnumMemberNamevariant to replacecomputedfield #10346) (Yuji Sugiura)JSXOpeningFragment(refactor(ast/estree): simplify serialization forJSXOpeningFragment#10316) (overlookmotel)TSModuleDeclarationtransformation (refactor(transformer/typescript): remove unnecessary specific handling ofTSModuleDeclarationtransformation #10359) (Dunqing)TSModuleDeclarationif is aNamespaceModule(refactor(transformer/typescript): do not need to go throughTSModuleDeclarationif is aNamespaceModule#10366) (Dunqing)TypeScriptAnnotations::has_value_referencemethod (refactor(transformer/typescript): simplifyTypeScriptAnnotations::has_value_referencemethod #10349) (Dunqing)