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.33.0] - 2024-10-24
718ccde ast: [BREAKING] Remove unused
newmethods (refactor(ast)!: remove unusednewmethods #6789) (overlookmotel)4d2d214 ast, transformer: [BREAKING] Remove
StringLiteral::newmethod (refactor(ast, transformer)!: removeStringLiteral::newmethod #6788) (overlookmotel)a1ca964 ast, parser: [BREAKING] Remove
NumericLiteral::newmethod (refactor(ast, parser)!: removeNumericLiteral::newmethod #6787) (overlookmotel)aeaa27a ast, parser, transformer, traverse: [BREAKING] Remove
BindingIdentifier::newmethods (refactor(ast, parser, transformer, traverse)!: removeBindingIdentifier::newmethods #6786) (overlookmotel)ecc9151 ast, parser, transformer, traverse: [BREAKING] Remove
IdentifierReference::newmethods (refactor(ast, parser, transformer, traverse)!: removeIdentifierReference::newmethods #6785) (overlookmotel)c91ffbc ast, transformer: [BREAKING] Remove
IdentifierName::newmethod (refactor(ast, transformer)!: removeIdentifierName::newmethod #6784) (overlookmotel)2bee4e2 ast, transformer: [BREAKING] Remove
BlockStatement::newmethods (refactor(ast, transformer)!: removeBlockStatement::newmethods #6783) (overlookmotel)8032813 regular_expression: [BREAKING] Migrate to new regexp parser API (fix(regular_expression)!: Migrate to new regexp parser API #6741) (leaysgur)
1248557 ast: [BREAKING] Remove
AstKind::FinallyClause(refactor(ast)!: removeAstKind::FinallyClause#6744) (Boshen)202c7f6 ast: [BREAKING] Remove
AstKind::ExpressionArrayElementandAstKind::ClassHeritage(fix(ast)!: removeAstKind::ExpressionArrayElementandAstKind::ClassHeritage#6740) (Boshen)e1c2d30 allocator: [BREAKING] Make
Vecnon-drop (fix(allocator)!: makeVecnon-drop #6623) (overlookmotel)Features
AstBuilder::*_with_scope_idetc methods (feat(ast): addAstBuilder::*_with_scope_idetc methods #6760) (overlookmotel)GetAddresstrait (feat(ast): addGetAddresstrait #6652) (Dunqing)ConstructorParser(andLiteralParser) to handle escape sequence in RegExp('pat') (feat(regular_expression): IntroConstructorParser(andLiteralParser) to handle escape sequence in RegExp('pat') #6635) (leaysgur)move_bindingAPI inScopeTree(feat(semantic): addmove_bindingAPI inScopeTree#6808) (Dunqing)change_parent_idAPI in ScopeTree (feat(semantic): addchange_parent_idAPI in ScopeTree #6807) (Dunqing)StatementInjectorhelper (feat(transformer): introduceStatementInjectorhelper #6653) (Dunqing)generate_bindingandgenerate_binding_current_scopeAPIs in context (feat(traverse): addgenerate_bindingandgenerate_binding_current_scopeAPIs in context #6805) (Dunqing)BoundIdentifier::from_binding_identmethod (feat(traverse): addBoundIdentifier::from_binding_identmethod #6814) (overlookmotel)Bug Fixes
__proto__shorthand (fix(codegen): correct print__proto__shorthand #6802) (Boshen)#field in {} << 0;correctly (fix(codegen): print#field in {} << 0;correctly #6799) (Boshen)1n- -1ncorrectly after constant folding (fix(codegen): print negative bigint1n- -1ncorrectly after constant folding #6798) (Boshen)undefinedfor destructuring patterns (fix(minifier): do not removeundefinedfor destructuring patterns #6828) (Boshen)ArrayExpressionElementandElision(fix(wasm): remove type defs forArrayExpressionElementandElision#6683) (overlookmotel)Documentation
ClassElement::r#static(docs(ast): fix comment forClassElement::r#static#6771) (overlookmotel)ClassElement::r#static(docs(ast): fix comment ofClassElement::r#static#6731) (_Kerman)AstBuilderdoc comments (docs(ast): improve formatting ofAstBuilderdoc comments #6756) (overlookmotel)#![warn(missing_docs)]tooxc_codegen(docs(codegen): add#![warn(missing_docs)]tooxc_codegen#6711) (DonIsaac)Spandocumentation (docs(span): enhanceSpandocumentation #6707) (DonIsaac)BoundIdentifier(docs(traverse): correct doc comment forBoundIdentifier#6810) (overlookmotel)Refactor
GetAddresstrait intooxc_allocator(refactor(allocator): moveGetAddresstrait intooxc_allocator#6738) (overlookmotel)impl GetAddress for Statement(refactor(ast): moveimpl GetAddress for Statement#6742) (overlookmotel)plain_functionto acceptFunctionBodyas a required parameter (refactor(ast): changeplain_functionto acceptFunctionBodyas a required parameter #6709) (Dunqing)ESTreederive (refactor(ast_tools): add line breaks to generated code forESTreederive #6680) (overlookmotel)impl Serialize(refactor(ast_tools): shorten generated code forimpl Serialize#6684) (overlookmotel)#[allow]attrs to top of generated files (refactor(ast_tools): move#[allow]attrs to top of generated files #6679) (overlookmotel)refin matches (refactor(ast_tools): shorten generated code by avoidingrefin matches #6675) (overlookmotel)SymbolIdas soon as possible (refactor(minifier): dereferenceSymbolIdas soon as possible #6823) (overlookmotel)ConstantEvaluation(refactor(minifier): binary operations useConstantEvaluation#6700) (Boshen)&TraverseCtxwhere possible (refactor(transformer): methods only take&TraverseCtxwhere possible #6812) (overlookmotel)OxcVectoAVec(refactor(transformer): renameOxcVectoAVec#6737) (overlookmotel)ScopeIdas soon as possible (refactor(transformer/react-refresh): dereferenceScopeIdas soon as possible #6820) (overlookmotel)BindingIdentifier::symbol_id(refactor(transformer/react-refresh): unwrapBindingIdentifier::symbol_id#6817) (overlookmotel)Atoms (refactor(transformer/react-refresh): avoid re-creatingAtoms #6816) (overlookmotel)BoundIdentifier(refactor(transformer/react-refresh): shorten code by usingBoundIdentifier#6815) (overlookmotel)TraverseCtx::generate_bindingto create a symbol (refactor(transformer/typescript): useTraverseCtx::generate_bindingto create a symbol #6806) (Dunqing)BoundIdentifiermethods only take&TraverseCtx(refactor(traverse):BoundIdentifiermethods only take&TraverseCtx#6811) (overlookmotel)generate_uid_in_based_on_nodeto accept a generic type parameter as node type (refactor(traverse): changegenerate_uid_in_based_on_nodeto accept a generic type parameter as node type #6708) (Dunqing)Styling
Testing
Span::is_emptyunit tests (test(span): addSpan::is_emptyunit tests #6706) (Don Isaac)