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
new
methods (refactor(ast)!: remove unusednew
methods #6789) (overlookmotel)4d2d214 ast, transformer: [BREAKING] Remove
StringLiteral::new
method (refactor(ast, transformer)!: removeStringLiteral::new
method #6788) (overlookmotel)a1ca964 ast, parser: [BREAKING] Remove
NumericLiteral::new
method (refactor(ast, parser)!: removeNumericLiteral::new
method #6787) (overlookmotel)aeaa27a ast, parser, transformer, traverse: [BREAKING] Remove
BindingIdentifier::new
methods (refactor(ast, parser, transformer, traverse)!: removeBindingIdentifier::new
methods #6786) (overlookmotel)ecc9151 ast, parser, transformer, traverse: [BREAKING] Remove
IdentifierReference::new
methods (refactor(ast, parser, transformer, traverse)!: removeIdentifierReference::new
methods #6785) (overlookmotel)c91ffbc ast, transformer: [BREAKING] Remove
IdentifierName::new
method (refactor(ast, transformer)!: removeIdentifierName::new
method #6784) (overlookmotel)2bee4e2 ast, transformer: [BREAKING] Remove
BlockStatement::new
methods (refactor(ast, transformer)!: removeBlockStatement::new
methods #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::ExpressionArrayElement
andAstKind::ClassHeritage
(fix(ast)!: removeAstKind::ExpressionArrayElement
andAstKind::ClassHeritage
#6740) (Boshen)e1c2d30 allocator: [BREAKING] Make
Vec
non-drop (fix(allocator)!: makeVec
non-drop #6623) (overlookmotel)Features
AstBuilder::*_with_scope_id
etc methods (feat(ast): addAstBuilder::*_with_scope_id
etc methods #6760) (overlookmotel)GetAddress
trait (feat(ast): addGetAddress
trait #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_binding
API inScopeTree
(feat(semantic): addmove_binding
API inScopeTree
#6808) (Dunqing)change_parent_id
API in ScopeTree (feat(semantic): addchange_parent_id
API in ScopeTree #6807) (Dunqing)StatementInjector
helper (feat(transformer): introduceStatementInjector
helper #6653) (Dunqing)generate_binding
andgenerate_binding_current_scope
APIs in context (feat(traverse): addgenerate_binding
andgenerate_binding_current_scope
APIs in context #6805) (Dunqing)BoundIdentifier::from_binding_ident
method (feat(traverse): addBoundIdentifier::from_binding_ident
method #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- -1n
correctly after constant folding (fix(codegen): print negative bigint1n- -1n
correctly after constant folding #6798) (Boshen)undefined
for destructuring patterns (fix(minifier): do not removeundefined
for destructuring patterns #6828) (Boshen)ArrayExpressionElement
andElision
(fix(wasm): remove type defs forArrayExpressionElement
andElision
#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)AstBuilder
doc comments (docs(ast): improve formatting ofAstBuilder
doc comments #6756) (overlookmotel)#![warn(missing_docs)]
tooxc_codegen
(docs(codegen): add#![warn(missing_docs)]
tooxc_codegen
#6711) (DonIsaac)Span
documentation (docs(span): enhanceSpan
documentation #6707) (DonIsaac)BoundIdentifier
(docs(traverse): correct doc comment forBoundIdentifier
#6810) (overlookmotel)Refactor
GetAddress
trait intooxc_allocator
(refactor(allocator): moveGetAddress
trait intooxc_allocator
#6738) (overlookmotel)impl GetAddress for Statement
(refactor(ast): moveimpl GetAddress for Statement
#6742) (overlookmotel)plain_function
to acceptFunctionBody
as a required parameter (refactor(ast): changeplain_function
to acceptFunctionBody
as a required parameter #6709) (Dunqing)ESTree
derive (refactor(ast_tools): add line breaks to generated code forESTree
derive #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)ref
in matches (refactor(ast_tools): shorten generated code by avoidingref
in matches #6675) (overlookmotel)SymbolId
as soon as possible (refactor(minifier): dereferenceSymbolId
as soon as possible #6823) (overlookmotel)ConstantEvaluation
(refactor(minifier): binary operations useConstantEvaluation
#6700) (Boshen)&TraverseCtx
where possible (refactor(transformer): methods only take&TraverseCtx
where possible #6812) (overlookmotel)OxcVec
toAVec
(refactor(transformer): renameOxcVec
toAVec
#6737) (overlookmotel)ScopeId
as soon as possible (refactor(transformer/react-refresh): dereferenceScopeId
as soon as possible #6820) (overlookmotel)BindingIdentifier::symbol_id
(refactor(transformer/react-refresh): unwrapBindingIdentifier::symbol_id
#6817) (overlookmotel)Atom
s (refactor(transformer/react-refresh): avoid re-creatingAtom
s #6816) (overlookmotel)BoundIdentifier
(refactor(transformer/react-refresh): shorten code by usingBoundIdentifier
#6815) (overlookmotel)TraverseCtx::generate_binding
to create a symbol (refactor(transformer/typescript): useTraverseCtx::generate_binding
to create a symbol #6806) (Dunqing)BoundIdentifier
methods only take&TraverseCtx
(refactor(traverse):BoundIdentifier
methods only take&TraverseCtx
#6811) (overlookmotel)generate_uid_in_based_on_node
to accept a generic type parameter as node type (refactor(traverse): changegenerate_uid_in_based_on_node
to accept a generic type parameter as node type #6708) (Dunqing)Styling
Testing
Span::is_empty
unit tests (test(span): addSpan::is_empty
unit tests #6706) (Don Isaac)