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.62.0] - 2025-04-01
4077868 ecmascript: [BREAKING] Introduce MayHaveSideEffectsContext (refactor(ecmascript)!: introduce MayHaveSideEffectsContext #10126) (sapphi-red)
cd1f035 semantic: [BREAKING] Store symbol information as the first entry in
symbol_declarationswhen it is redeclared (refactor(semantic)!: store symbol information as the first entry insymbol_declarationswhen it is redeclared #10062) (Dunqing)45015ee ast: [BREAKING] Remove unused
Function::symbol_idmethod (feat(ast)!: remove unusedFunction::symbol_idmethod #10061) (Dunqing)Features
TakeIntrait (feat(allocator):TakeIntrait #9969) (overlookmotel)retainmethod with the standard implementation (feat(allocator/vec2): align theretainmethod with the standard implementation #9752) (Dunqing)unknown_global_side_effectstoMayHaveSideEffectsContext(feat(ecmascript): addunknown_global_side_effectstoMayHaveSideEffectsContext#10130) (sapphi-red)property_read_side_effectstoMayHaveSideEffectsContext(feat(ecmascript): addproperty_read_side_effectstoMayHaveSideEffectsContext#10129) (sapphi-red)is_pure_calltoMayHaveSideEffectsContext(feat(ecmascript): addis_pure_calltoMayHaveSideEffectsContext#10128) (sapphi-red)respect_annotationstoMayHaveSideEffectsContext(feat(ecmascript): addrespect_annotationstoMayHaveSideEffectsContext#10127) (sapphi-red)symbol_idfordeclare classbinding (feat(semantic): addsymbol_idfordeclare classbinding #10095) (Dunqing)symbol_idfor declare function binding (feat(semantic): addsymbol_idfor declare function binding #10078) (Dunqing)RedeclaraionforScoping::symbol_declarations(feat(semantic): introduceRedeclaraionforScoping::symbol_declarations#10059) (Dunqing)declarationandflagsfields for Redeclaraion (feat(semantic/scoping): adddeclarationandflagsfields for Redeclaraion #10060) (Dunqing)Bug Fixes
StringLiterals containing lone surrogates (fix(ast/estree): fixStringLiterals containing lone surrogates #10036) (overlookmotel)TSMethodSignature(fix(ast/estree): FixTSMethodSignature#10032) (therewillbecode)TSPropertySignature(fix(ast/estree): FixTSPropertySignature#10031) (therewillbecode)TSIndexSignatureandTSIndexSignatureName(fix(ast/estree): fix TS type defs forTSIndexSignatureandTSIndexSignatureName#10003) (overlookmotel)$in strings unless using backtick as quote (fix(codegen): do not escape$in strings unless using backtick as quote #10103) (overlookmotel)StringLiterals (fix(codegen): prevent arithmetic overflow calculating quote forStringLiterals #10102) (overlookmotel)declare module "foo";(fix(parser): handle asi fordeclare module "foo";#10010) (Boshen)LabeledStatement(fix(semantic): function declaration is not allowed inLabeledStatement#10149) (Dunqing)FormalParameter::has_modifierto detect parameter properties (fix(semantic): useFormalParameter::has_modifierto detect parameter properties #10096) (Ulrich Stark 🦀)TransformOptions::enable_allenable decorator transform (fix(transformer):TransformOptions::enable_allenable decorator transform #9946) (overlookmotel)SymbolFlags::Function(fix(transformer): correct function symbol flags toSymbolFlags::Function#10008) (Dunqing)Performance
FxHashMapto replaceIndexVecforsymbol_redeclarations(perf(semantic): useFxHashMapto replaceIndexVecforsymbol_redeclarations#10058) (Dunqing)Documentation
Refactor
std(refactor(allocator/vec2): rename parameters and method name to align withstd#9858) (Dunqing)selfnot&self+ remove unnecessarymatches!(refactor(ast): methods for fieldless enums takeselfnot&self+ remove unnecessarymatches!#10013) (overlookmotel)AstBuilder::move_*methods useTakeIn(refactor(ast):AstBuilder::move_*methods useTakeIn#10001) (overlookmotel)raw(refactor(codegen): print string literals containing lone surrogates without reference toraw#10044) (overlookmotel)FormalParameter::has_modifierto detect parameter properties (refactor(isolated_declarations): useFormalParameter::has_modifierto detect parameter properties #10098) (Ulrich Stark 🦀)classwith TypeScript (refactor(semantic): align handling of declaring symbol forclasswith TypeScript #10094) (Dunqing)SymbolFlags::Functionfor function id (refactor(semantic): always useSymbolFlags::Functionfor function id #7479) (Dunqing)FormalParameter::has_modifierto detect parameter properties (refactor(transformer): useFormalParameter::has_modifierto detect parameter properties #10099) (Ulrich Stark 🦀)exit_classandexit_statementrespectively (refactor(transformer/legacy-decorator): split the transforming decorated class into two parts and run them inexit_classandexit_statementrespectively #10153) (Dunqing)current_scope_idconsistently (refactor(transformer/using): usecurrent_scope_idconsistently #9966) (camc314)Testing