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_quotmethod (feat(codegen): add option for choosing quotes; remove slowchoose_quotmethod #4219) (Boshen)&&or||(feat(minifier): dce conditional expression&&or||#4190) (Boshen)oxc_mangler(Boshen)ScopeFlags::CatchClausefor use in CatchClause (feat(semantic): addScopeFlags::CatchClausefor use in CatchClause #4205) (Dunqing)&#xhhhhand&#nnnn;(feat(transformer): decode xml character entity&#xhhhhand&#nnnn;#4235) (Boshen)Bug Fixes
ryu-jsfor f64 to string (Boshen)JSXAttributeValue::StringLiteraldirectly (fix(codegen): printJSXAttributeValue::StringLiteraldirectly #4231) (Boshen)BindingProperty; handle var hoisting and export variables (fix(mangler): no shorthandBindingProperty; handle var hoisting and export variables #4319) (Boshen)CatchClausescope (fix(semantic): avoid var hosting insert the var variable to theCatchClausescope #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)FormalParametersin TS type (fix(semantic): do not resolve references afterFormalParametersin 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)AstNodeIdtou32(perf(semantic): reduceAstNodeIdtou32#4264) (overlookmotel)Refactor
ScopeFlagsintovisit_function(refactor(ast): pass finalScopeFlagsintovisit_function#4283) (overlookmotel)enter_scopeaftervisit_binding_identifier(refactor(ast): moveenter_scopeaftervisit_binding_identifier#4246) (Dunqing)control_flow!macro (refactor(semantic): alter syntax ofcontrol_flow!macro #4275) (overlookmotel)current_node_idwhen adding a scope (refactor(semantic): directly recordcurrent_node_idwhen adding a scope #4265) (Dunqing)visit_functionandVisitfields in the builder to be consistent (refactor(semantic): update the order ofvisit_functionandVisitfields in the builder to be consistent #4248) (Dunqing)SymbolFlags::Export(refactor(semantic): simplify addingSymbolFlags::Export#4249) (Dunqing)current_scope_idtoscope_idinenter_scope(refactor(semantic): setcurrent_scope_idtoscope_idinenter_scope#4193) (Dunqing)AstNodeId::dummyinto a constant field. (refactor(syntax): turn theAstNodeId::dummyinto a constant field. #4308) (rzvxa)#[inline]to empty functions (refactor(visit): add#[inline]to empty functions #4330) (overlookmotel)