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.22.0] - 2024-07-23
85a7cea semantic: [BREAKING] Remove name from
reference
(refactor(semantic)!: remove name fromreference
#4329) (Dunqing)f68b659 ast: [BREAKING] Reorder fields of
ArrowFunctionExpression
(refactor(ast)!: reorder fields ofArrowFunctionExpression
#4364) (Dunqing)Features
#[ast]
attribute to non-visited AST types. (feat(ast): add#[ast]
attribute to non-visited AST types. #4309) (rzvxa)if (xxx) else if (false) { REMOVE }
(feat(minfier): dceif (xxx) else if (false) { REMOVE }
#4407) (Boshen)typeof foo == "undefined"
intotypeof foo > "u"
(feat(minifier): compresstypeof foo == "undefined"
intotypeof foo > "u"
#4412) (Boshen)- 6068e6b Add error codes to OxcDiagnostic (feat: add error codes to OxcDiagnostic #4334) (DonIsaac)Bug Fixes
Program
shashbang
field first (fix(ast): visitProgram
shashbang
field first #4368) (overlookmotel)({x: (x)})
->({ x })
(fix(codegen): object shorthand with parens({x: (x)})
->({ x })
#4391) (Boshen){ x }
variants (fix(codegen): print shorthand for all{ x }
variants #4374) (Boshen)ObjectProperty
(fix(codegen,mangler): do not print shorthand forObjectProperty
#4350) (Boshen)Object.defineProperty(exports, ...)
forcjs-module-lexer
(fix(minifier): skipObject.defineProperty(exports, ...)
forcjs-module-lexer
#4409) (Boshen)visit_arrow_function_expression
field visit order with ast (fix(semantic): alignvisit_arrow_function_expression
field visit order with ast #4366) (Dunqing)Performance
Atom
instead ofCompactStr
forUnresolvedReferencesStack
(perf(semantic): useAtom
instead ofCompactStr
forUnresolvedReferencesStack
#4401) (Dunqing)add_scope
(perf(semantic): remove a branch fromadd_scope
#4384) (overlookmotel)enter_scope
+leave_scope
(perf(semantic): simplify logic inenter_scope
+leave_scope
#4383) (overlookmotel)Nodes::add_node
(perf(semantic): remove branch fromNodes::add_node
#4361) (overlookmotel)Refactor
Box::new_in
(refactor(allocator): rename fn params forBox::new_in
#4431) (overlookmotel)#[cfg_attr]
boilerplate in AST type defs (refactor(ast): reduce#[cfg_attr]
boilerplate in AST type defs #4375) (overlookmotel)visited_node
marker toast
. (refactor(ast): rename thevisited_node
marker toast
. #4289) (rzvxa)visit_program
visithashbang
field (fix(semantic):visit_program
visithashbang
field #4370) (overlookmotel)Program
visitor leave scope before node (refactor(semantic):Program
visitor leave scope before node #4369) (overlookmotel)