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.31.0] - 2024-10-08
01b878e parser: [BREAKING] Use
BindingIdentifier
fornamespace
declaration names (feat(parser)!: useBindingIdentifier
fornamespace
declaration names #6003) (DonIsaac)95ca01c cfg: [BREAKING] Make BasicBlock::unreachable private (refactor(cfg)!: make BasicBlock::unreachable private #6321) (DonIsaac)
020bb80 codegen: [BREAKING] Change to
CodegenReturn::code
andCodegenReturn::map
(refactor(codegen)!: change toCodegenReturn::code
andCodegenReturn::map
#6310) (Boshen)409dffc traverse: [BREAKING]
generate_uid
return aBoundIdentifier
(refactor(traverse)!:generate_uid
return aBoundIdentifier
#6294) (overlookmotel)5a73a66 regular_expression: [BREAKING] Simplify public APIs (refactor(regular_expression)!: Simplify public APIs #6262) (leaysgur)
32d972e parser: [BREAKING] Treat unambiguous files containing TS export assignments as modules (refactor(parser)!: treat unambiguous files containing TS export assignments as modules #6253) (overlookmotel)
4f6bc79 transformer: [BREAKING] Remove
source_type
param fromTransformer::new
(refactor(transformer)!: removesource_type
param fromTransformer::new
#6251) (overlookmotel)afc3ccb napi/transform: [BREAKING] Rename
TransformOptions::react
tojsx
. (feat(napi/transform)!: renameTransformOptions::react
tojsx
. #6211) (Boshen)82ab689 transformer,minifier: [BREAKING] Move define and inject plugin from minifier to transformer (feat(transformer,minifier)!: move define and inject plugin from minifier to transformer #6199) (Boshen)
Features
as_slice
+as_mut_slice
methods to stacks (feat(data_structures): addas_slice
+as_mut_slice
methods to stacks #6216) (overlookmotel)oxc_data_structures
crate; add stack (feat(data_structures): addoxc_data_structures
crate; add stack #6206) (Boshen)NaN
andInfinity
. (feat(minifier): handle positiveNaN
andInfinity
. #6207) (7086cmd)lang
option to change source type (feat(napi/transform): addlang
option to change source type #6309) (Boshen)define
option (feat(napi/transform): adddefine
option #6212) (Boshen)Binding
(feat(napi/transform): rename all mention of React to Jsx; remove mention ofBinding
#6198) (Boshen)oxc_syntax_operations
(feat(syntax_operations): add crateoxc_syntax_operations
#6202) (Boshen)Bug Fixes
PURE
comment (fix(codegen): converts line comment to block comment if it is aPURE
comment #6356) (Dunqing)import.meta
andimport.meta.*
(fix(oxc_transformer): defineimport.meta
andimport.meta.*
#6277) (IWANABETHATGUY)ImportSpecifier
s for type imports (fix(parser): stringImportSpecifier
s for type imports #6352) (DonIsaac)=
as leading comments of next token (fix(parser): should regard comments where after=
as leading comments of next token #6355) (Dunqing)Math
is not a local var (fix(transformer): exponentiation transform: do not assumeMath
is not a local var #6302) (overlookmotel)ReplaceGlobalDefines
(fix(transformer): fix memory leak inReplaceGlobalDefines
#6224) (overlookmotel)require
withfront
option (fix(transformer): fix insertingrequire
withfront
option #6188) (overlookmotel)NonEmptyStack::push
write value before updating cursor (fix(transformer):NonEmptyStack::push
write value before updating cursor #6169) (overlookmotel)Performance
SymbolId
forrequire
only once (perf(transformer): look upSymbolId
forrequire
only once #6192) (overlookmotel)Documentation
Refactor
Vec
impl (refactor(allocator): remove unnecessaryVec
impl #6213) (overlookmotel)NonEmptyStack::len
hint thatlen
is never 0 (refactor(data_structures):NonEmptyStack::len
hint thatlen
is never 0 #6220) (overlookmotel)is_empty
methods for non-empty stacks (refactor(data_structures): removeis_empty
methods for non-empty stacks #6219) (overlookmotel)SparseStack
(refactor(data_structures): add debug assertion toSparseStack
#6218) (overlookmotel)len
method toStackCommon
trait (refactor(data_structures): addlen
method toStackCommon
trait #6215) (overlookmotel)TransformOptions::clone
(refactor(napi/transform): remove a call onTransformOptions::clone
#6210) (Boshen)napi
feature, change napi parser to useoxc
crate (refactor(oxc): addnapi
feature, change napi parser to useoxc
crate #6265) (Boshen)const
modifiers on class elements (refactor(parser): provide better error messages forconst
modifiers on class elements #6353) (DonIsaac)ast_node_id
tonode_id
(refactor(semantic): rename vars fromast_node_id
tonode_id
#6304) (overlookmotel)SequenceExpression
if not needed (refactor(transformer): exponentiation transform: do not wrap inSequenceExpression
if not needed #6343) (overlookmotel)Option::get_or_insert_with
(refactor(transformer): useOption::get_or_insert_with
#6299) (overlookmotel)BoundIdentifier
intooxc_traverse
crate (refactor(transformer): moveBoundIdentifier
intooxc_traverse
crate #6293) (overlookmotel)create_bound_reference_id
tocreate_reference_id
(refactor(transformer): prefercreate_bound_reference_id
tocreate_reference_id
#6282) (overlookmotel)VarDeclarations
common transform (refactor(transformer): rename var inVarDeclarations
common transform #6242) (overlookmotel)VarDeclarations
common transform: check if at top level withctx.parent()
(refactor(transformer):VarDeclarations
common transform: check if at top level withctx.parent()
#6231) (overlookmotel)import
statement orrequire
depending on source type (refactor(transformer): insertimport
statement orrequire
depending on source type #6191) (overlookmotel)ModuleImports
into common transform (refactor(transformer): convertModuleImports
into common transform #6186) (overlookmotel)TopLevelStatements
common transform (refactor(transformer): introduceTopLevelStatements
common transform #6185) (overlookmotel)VarDeclarationsStore
methods (refactor(transformer): renameVarDeclarationsStore
methods #6184) (overlookmotel)var_declarations
module fromcommon
module (refactor(transformer): exportvar_declarations
module fromcommon
module #6183) (overlookmotel)VarDeclarations
(refactor(transformer): sharedVarDeclarations
#6170) (overlookmotel)BoundIdentifier
(refactor(traverse): add helper methods toBoundIdentifier
#6341) (overlookmotel)TraverseAncestry
useNonEmptyStack
(refactor(traverse):TraverseAncestry
useNonEmptyStack
#6217) (overlookmotel)Testing