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.40.0] - 2024-12-10
5d6fa25 traverse: [BREAKING] Remove
TraverseCtx::is_static
(refactor(traverse)!: removeTraverseCtx::is_static
#7760) (overlookmotel)5913200 transformer/class-properties: [BREAKING] Rename
ClassPropertiesOptions::loose
(refactor(transformer/class-properties)!: renameClassPropertiesOptions::loose
#7716) (overlookmotel)72eab6c parser: [BREAKING] Stage 3
import source
andimport defer
(feat(parser)!: stage 3import source
andimport defer
#7706) (Boshen)ebc80f6 ast: [BREAKING] Change 'raw' from &str to Option (refactor(ast)!: change 'raw' from &str to Option<Atom> #7547) (Song Gao)
Features
AstBuilder::use_strict_directive
method (feat(ast, transformer): addAstBuilder::use_strict_directive
method #7770) (overlookmotel)getUtf16ByteOffset
API; update README (feat(napi/parser): addgetUtf16ByteOffset
API; update README #7772) (Boshen)import.meta
(feat(napi/parser): expose span positions ofimport.meta
#7677) (Boshen)SymbolTable::symbol_is_mutated
method (feat(semantic): addSymbolTable::symbol_is_mutated
method #7755) (overlookmotel)ExportEntry::is_type
(feat(syntax): addExportEntry::is_type
#7676) (Boshen)private_fields_as_properties
assumption (feat(transformer/class-properties): supportprivate_fields_as_properties
assumption #7717) (overlookmotel)AssignmentTarget
(feat(transformer/class-properties): support for transformingAssignmentTarget
#7697) (Dunqing)ChainExpression
(feat(transformer/class-properties): transformChainExpression
#7575) (Dunqing)create_var*
methods (feat(transformer/var-declaration): add a series ofcreate_var*
methods #7665) (Dunqing)insert_var_with_init
method (feat(transformer/var-declarations): addinsert_var_with_init
method #7667) (Dunqing)TraverseCtx::generate_uid_in_current_hoist_scope_based_on_node
(feat(traverse): addTraverseCtx::generate_uid_in_current_hoist_scope_based_on_node
#7642) (Dunqing)Bug Fixes
delete 2e308
asdelete (0, Infinity)
(fix(codegen): printdelete 2e308
asdelete (0, Infinity)
#7761) (Boshen)in
infor in
loop init (fix(codegen): missing parens forin
infor in
loop init #7705) (Dunqing)in
in for loop init when it includes two binary expression (fix(codegen): missing parens forin
in for loop init when it includes two binary expression #7703) (Dunqing)BigIntLiteral::raw
prop in ESTree AST optional (fix(estree): make type ofBigIntLiteral::raw
prop in ESTree AST optional #7663) (overlookmotel)raw: null
in ESTree AST for generatedNullLiteral
s (fix(estree):raw: null
in ESTree AST for generatedNullLiteral
s #7662) (overlookmotel)raw: null
in ESTree AST for generatedBooleanLiteral
s (fix(estree):raw: null
in ESTree AST for generatedBooleanLiteral
s #7661) (overlookmotel)es2015
toes6
(fix(oxc_transformer): aliases2015
toes6
#7673) (Kevin Deng 三咲智子)for await
syntax (fix(parser): better diagnostic for invalidfor await
syntax #7649) (Boshen)SymbolFlags
for_super
function (fix(transformer/class-properties): fixSymbolFlags
for_super
function #7709) (overlookmotel)_super
function outside class strict mode (fix(transformer/class-properties): make_super
function outside class strict mode #7708) (overlookmotel)this
in computed key (fix(transformer/class-properties): create temp var forthis
in computed key #7686) (overlookmotel)delete
chain expression in static prop initializers (fix(transformer/class-properties): transformdelete
chain expression in static prop initializers #7656) (overlookmotel)IdentifierReference
s withReferenceId
(fix(transformer/logic-assignment-operator): always createIdentifierReference
s withReferenceId
#7745) (overlookmotel)Performance
parse_statement
match conditions (perf(parser): reorderparse_statement
match conditions #7645) (Boshen)enter_expression
visitor (perf(transformer/logic-assignment-operator): inlineenter_expression
visitor #7744) (overlookmotel)Documentation
Refactor
AstBuilder
extra methods useSPAN
(refactor(ast):AstBuilder
extra methods useSPAN
#7769) (overlookmotel)NONE
in AST builder calls (refactor(isolated_declarations): useNONE
in AST builder calls #7752) (overlookmotel)serde
features (refactor(linter): remove unusedserde
features #7738) (Boshen)ModuleRecord::has_module_syntax
for setting sourceType (refactor(parser): useModuleRecord::has_module_syntax
for setting sourceType #7646) (Boshen)duplicate_expression
do not produce temp var forsuper
(refactor(transformer):duplicate_expression
do not produce temp var forsuper
#7757) (overlookmotel)duplicate_expression
takemutated_symbol_needs_temp_var
param (refactor(transformer):duplicate_expression
takemutated_symbol_needs_temp_var
param #7756) (overlookmotel)TransformCtx::duplicate_expression
(refactor(transformer): introduceTransformCtx::duplicate_expression
#7754) (overlookmotel)NONE
in AST builder calls (refactor(transformer): useNONE
in AST builder calls #7751) (overlookmotel)VarDeclarationsStore
methods (refactor(transformer): renameVarDeclarationsStore
methods #7682) (overlookmotel)ctx.var_declarations.create_var*
methods (refactor(transformer): usectx.var_declarations.create_var*
methods #7666) (Dunqing)contains
tointersects
for bitflags (refactor(transformer/class-properties): prefercontains
tointersects
for bitflags #7747) (overlookmotel)_super
function (refactor(transformer/class-properties): shorten output when_super
function #7710) (overlookmotel)transform_assignment_target
(refactor(transformer/class-properties): move code out oftransform_assignment_target
#7701) (overlookmotel)duplicate_object_twice
method (refactor(transformer/class-properties):duplicate_object_twice
method #7685) (overlookmotel)duplicate_object
intransform_expression_to_wrap_nullish_check
(refactor(transformer/class-properties): useduplicate_object
intransform_expression_to_wrap_nullish_check
#7664) (Dunqing)delete
of chain expression intotransform_unary_expression
(refactor(transformer/class-properties): move logic for handlingdelete
of chain expression intotransform_unary_expression
#7655) (overlookmotel)init
parameter frominsert_var
(refactor(var-declarations): remove unnecessaryinit
parameter frominsert_var
#7668) (Dunqing)Styling
Atom
(style(ast): importAtom
#7657) (overlookmotel)Testing
expect
API instead ofassert
(test(napi/transform): use theexpect
API instead ofassert
#7739) (Boshen)