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.54.0] - 2025-03-03
355a4db napi/parser: [BREAKING] Remove
parse_without_returnAPI (feat(napi/parser)!: removeparse_without_returnAPI #9455) (Boshen)a5cde10 visit_ast: [BREAKING] Add
oxc_visit_astcrate (feat(visit_ast)!: addoxc_visit_astcrate #9428) (Boshen)abb15e0 ast: [BREAKING] Add
purefield toFunction,CallExpression, andNewExpression(feat(ast)!: addpurefield toFunction,CallExpression, andNewExpression#9207) (overlookmotel)Features
/* @__PURE__ */in may_have_side_effects (feat(ecmascript): support/* @__PURE__ */in may_have_side_effects #9409) (sapphi-red)remove_unused_expressionintry_fold_sequence_expressioninremove_dead_code(feat(minifier): useremove_unused_expressionintry_fold_sequence_expressioninremove_dead_code#9467) (sapphi-red)remove_unused_expression(feat(minifier): inline simple IIFEs inremove_unused_expression#9465) (sapphi-red)remove_unused_expression(feat(minifier): support extracting arguments in pure calls inremove_unused_expression#9463) (sapphi-red)a != null && a.b()toa?.b()inremove_unused_expression(feat(minifier): compressa != null && a.b()toa?.b()inremove_unused_expression#9459) (sapphi-red)remove_unused_expression(feat(minifier): support binary expression inremove_unused_expression#9456) (sapphi-red)remove_unused_expression(feat(minifier): support conditional expression inremove_unused_expression#9432) (sapphi-red)remove_unused_expression(feat(minifier): support object expression inremove_unused_expression#9430) (sapphi-red)remove_unused_expression(feat(minifier): improve array expression handling inremove_unused_expression#9427) (sapphi-red)remove_unused_expression(feat(minifier): support template literals inremove_unused_expression#9426) (sapphi-red)/* @__PURE__ */ a() ? b : btob(feat(minifier): compress/* @__PURE__ */ a() ? b : btob#9410) (sapphi-red)ModuleRunnerTransform(feat(transformer): supportModuleRunnerTransform#9371) (Dunqing)Bug Fixes
${a() === b}(fix(ecmascript): fix may_have_side_effects for${a() === b}#9478) (sapphi-red)typeAnnotationfield (fix(estree/ast): camel-casetypeAnnotationfield #9420) (overlookmotel)try_fold_stmt_in_boolean_contextonExpressionStatement(fix(minifier): skiptry_fold_stmt_in_boolean_contextonExpressionStatement#9458) (sapphi-red)Performance
Vec(perf(isolated_declarations): reserve sufficient capacity in statementsVec#9394) (overlookmotel)Refactor
ArenaBox/ArenaVec(refactor(isolated_declarations): use aliasesArenaBox/ArenaVec#9389) (overlookmotel)a != null && b->a ?? bcompression toremove_unused_expression(refactor(minifier): movea != null && b->a ?? bcompression toremove_unused_expression#9468) (sapphi-red)try_fold_iifetoremove_unused_expression(refactor(minifier): movetry_fold_iifetoremove_unused_expression#9464) (sapphi-red)may_have_side_effectsinremove_unused_expression(refactor(minifier): usemay_have_side_effectsinremove_unused_expression#9413) (sapphi-red)Testing
ToPropertyKeythrows an error (test(ecmascript): add comments and tests for cases whereToPropertyKeythrows an error #9429) (sapphi-red)hashbangfield (test(napi): add tests forhashbangfield #9386) (overlookmotel)