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.21.0] - 2024-07-18
Features
choose_quot
method (feat(codegen): add option for choosing quotes; remove slowchoose_quot
method #4219) (Boshen)&&
or||
(feat(minifier): dce conditional expression&&
or||
#4190) (Boshen)oxc_mangler
(Boshen)ScopeFlags::CatchClause
for use in CatchClause (feat(semantic): addScopeFlags::CatchClause
for use in CatchClause #4205) (Dunqing)&#xhhhh
and&#nnnn;
(feat(transformer): decode xml character entity&#xhhhh
and&#nnnn;
#4235) (Boshen)Bug Fixes
ryu-js
for f64 to string (Boshen)JSXAttributeValue::StringLiteral
directly (fix(codegen): printJSXAttributeValue::StringLiteral
directly #4231) (Boshen)BindingProperty
; handle var hoisting and export variables (fix(mangler): no shorthandBindingProperty
; handle var hoisting and export variables #4319) (Boshen)CatchClause
scope (fix(semantic): avoid var hosting insert the var variable to theCatchClause
scope #4337) (Dunqing)ExportSpecifier
(fix(semantic): incorrect resolve references forExportSpecifier
#4320) (Dunqing)TSInterfaceHeritage
(fix(semantic): incorrect resolve references forTSInterfaceHeritage
#4311) (Dunqing)TSTypeQuery
(fix(semantic): incorrect resolve references forTSTypeQuery
#4310) (Dunqing)FormalParameters
in TS type (fix(semantic): do not resolve references afterFormalParameters
in TS type #4241) (overlookmotel)- 1c117eb Avoid print extra semicolon after accessor property (fix: avoid print extra semicolon after accessor property #4199) (IWANABETHATGUY)Performance
_
separators (perf(parser): speed up parsing numbers with_
separators #4259) (overlookmotel)AstNodeId
tou32
(perf(semantic): reduceAstNodeId
tou32
#4264) (overlookmotel)Refactor
ScopeFlags
intovisit_function
(refactor(ast): pass finalScopeFlags
intovisit_function
#4283) (overlookmotel)enter_scope
aftervisit_binding_identifier
(refactor(ast): moveenter_scope
aftervisit_binding_identifier
#4246) (Dunqing)control_flow!
macro (refactor(semantic): alter syntax ofcontrol_flow!
macro #4275) (overlookmotel)current_node_id
when adding a scope (refactor(semantic): directly recordcurrent_node_id
when adding a scope #4265) (Dunqing)visit_function
andVisit
fields in the builder to be consistent (refactor(semantic): update the order ofvisit_function
andVisit
fields in the builder to be consistent #4248) (Dunqing)SymbolFlags::Export
(refactor(semantic): simplify addingSymbolFlags::Export
#4249) (Dunqing)current_scope_id
toscope_id
inenter_scope
(refactor(semantic): setcurrent_scope_id
toscope_id
inenter_scope
#4193) (Dunqing)AstNodeId::dummy
into a constant field. (refactor(syntax): turn theAstNodeId::dummy
into a constant field. #4308) (rzvxa)#[inline]
to empty functions (refactor(visit): add#[inline]
to empty functions #4330) (overlookmotel)