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.32.0] - 2024-10-19
c0e9d7e codegen: [BREAKING]
Codegen::into_source_text
consumeCodegen
(refactor(codegen)!:Codegen::into_source_text
consumeCodegen
#6539) (overlookmotel)782f0a7 codegen: [BREAKING] Rename
print_char
method toprint_ascii_byte
(refactor(codegen)!: renameprint_char
method toprint_ascii_byte
#6512) (overlookmotel)91c87dd codegen: [BREAKING] Remove
Codegen::enableSourceMap
API (refactor(codegen)!: removeCodegen::enableSourceMap
API #6452) (Boshen)7645e5c codegen: [BREAKING] Remove CommentOptions API (refactor(codegen)!: remove CommentOptions API #6451) (Boshen)
5200960 oxc: [BREAKING] Remove passing
Trivias
around (refactor(oxc)!: remove passingTrivias
around #6446) (Boshen)2808973 ast: [BREAKING] Add
Program::comments
(feat(ast)!: addProgram::comments
#6445) (Boshen)Features
Vec::into_boxed_slice
(feat(allocator): addVec::into_boxed_slice
#6195) (DonIsaac)#[scope(exit_before)]
(feat(ast_tools): support#[scope(exit_before)]
#6350) (DonIsaac)StringToNumber
(feat(ecmascript): addStringToNumber
#6576) (Boshen)ConstantEvaluation
(feat(ecmascript): addConstantEvaluation
#6549) (Boshen)ToBigInt
andStringToBigInt
(feat(ecmascript): addToBigInt
andStringToBigInt
#6508) (Boshen)ToBoolean
,ToNumber
,ToString
(feat(ecmascript): addToBoolean
,ToNumber
,ToString
#6502) (Boshen)Default
for options (feat(isolated-declarations): implDefault
for options #6372) (DonIsaac)collapse-variable-declarations
(feat(minifier): implementcollapse-variable-declarations
#6464) (dalaoshu)charAt
string fns (feat(minifier): implement foldingcharAt
string fns #6436) (camc314)Boolean
) (feat(minifier): implement folding of simple function calls (Boolean
) #6484) (camc314)String
) (feat(minifier): implement folding of simple function calls (String
) #6483) (camc314)indexOf
andlastIndexOf
string fns (feat(minifier): implement foldingindexOf
andlastIndexOf
string fns #6435) (camc314)StatementFusion
(feat(minifier): implement block stmt support forStatementFusion
#6422) (camc314)Serialize
impls in ast_tools (feat(parser): GenerateSerialize
impls in ast_tools #6404) (ottomated)async-to-generator
plugin. (feat(transformer):async-to-generator
plugin. #5590) (Ethan Goh)DefaultImport
inModuleImports
(feat(transformer): supportDefaultImport
inModuleImports
#6434) (Dunqing)Bug Fixes
ChainExpression
(fix(codegen): preserve parenthesis forChainExpression
#6430) (Dunqing)in
inside bin expr in or loop (fix(codegen): invalid codegen whenin
inside bin expr in or loop #6431) (camc314)in
in sequence expr in for loops (fix(codegen): fixin
in sequence expr in for loops #6428) (camc314)ZWSP
tois_irregular_whitespace
(fix(identifier): addZWSP
tois_irregular_whitespace
#6662) (Boshen)~~
operator should only work on numbers (fix(minifier):~~
operator should only work on numbers #6598) (Boshen)to_js_string()
instead offs64::to_string
(fix(minifier): useto_js_string()
instead offs64::to_string
#6597) (Boshen)for
statements during DCE (fix(minifier): Preserve init variable declarations when removingfor
statements during DCE #6551) (magic-akari)(
as leading comments of next token (fix(parser): should be treated comments where after(
as leading comments of next token #6588) (Dunqing)as
andsatisfies
expression in javascript (fix(parser): do not parseas
andsatisfies
expression in javascript #6442) (Boshen)TSConditionalType
scope enter/exit locations (fix(semantic):TSConditionalType
scope enter/exit locations #6351) (DonIsaac)HelperLoader
common transform: do not assumebabelHelpers
is global (fix(transformer):HelperLoader
common transform: do not assumebabelHelpers
is global #6569) (overlookmotel)this
in class accessor properties (fix(transformer): arrow function transform: correctly resolvethis
in class accessor properties #6386) (overlookmotel)Performance
CodeBuffer::print_ascii_byte
(perf(codegen): optimizeCodeBuffer::print_ascii_byte
#6516) (overlookmotel)is_typescript
(perf(parser): precomputeis_typescript
#6443) (Boshen)Display
impls (perf(regex): reduce string allocations inDisplay
impls #6528) (DonIsaac)Object
binding if not needed (perf(transformer): object spread transform: do not lookupObject
binding if not needed #6570) (overlookmotel)TraverseScoping::generate_uid_name
(perf(traverse): optimizeTraverseScoping::generate_uid_name
#6663) (overlookmotel)Documentation
Box
(docs(allocator): clarify docs forBox
#6625) (overlookmotel)CodeBuffer::print_ascii_bytes
(docs(codegen): fix example forCodeBuffer::print_ascii_bytes
#6535) (overlookmotel)CodeBuffer
(docs(codegen): improve doc comments forCodeBuffer
#6511) (overlookmotel)CodeBuffer
(docs(codegen): correct and reformat doc comments forCodeBuffer
#6504) (overlookmotel)CodeBuffer
examples (docs(codegen): fix and reformatCodeBuffer
examples #6499) (overlookmotel)ModuleKind::Unambiguous
(docs(span): document validity ofModuleKind::Unambiguous
#6423) (Boshen)Refactor
AstBuilder
methods (refactor(ast_tools): consistent comments onAstBuilder
methods #6664) (overlookmotel)CodeBuffer::print_bytes_unchecked
method (refactor(codegen): renameCodeBuffer::print_bytes_unchecked
method #6517) (overlookmotel)Cargo.toml
(refactor(codegen): reorder dependencies inCargo.toml
#6514) (overlookmotel)CodeBuffer
(refactor(codegen): rename var inCodeBuffer
#6510) (overlookmotel)CodeBuffer::print_ascii_bytes
method (refactor(codegen): renameCodeBuffer::print_ascii_bytes
method #6507) (overlookmotel)CodeBuffer
methods (refactor(codegen): rename vars inCodeBuffer
methods #6506) (overlookmotel)CodeBuffer
methods (refactor(codegen): inlineCodeBuffer
methods #6501) (overlookmotel)CodeBuffer::as_bytes
method (refactor(codegen): addCodeBuffer::as_bytes
method #6498) (overlookmotel)CodeBuffer::print_byte_unchecked
method (refactor(codegen): renameCodeBuffer::print_byte_unchecked
method #6496) (overlookmotel)CodeBuffer::take_source_text
(refactor(codegen): shortenCodeBuffer::take_source_text
#6495) (overlookmotel)CodeBuffer
(refactor(codegen): clarify safety comments inCodeBuffer
#6494) (overlookmotel)CodeBuffer
(refactor(codegen): rename vars inCodeBuffer
#6493) (overlookmotel)CodeBuffer
to fix soundness hole (refactor(codegen): addCodeBuffer
to fix soundness hole #6148) (DonIsaac)NumberValue
(refactor(ecmascript): removeNumberValue
#6519) (Boshen)oxc_syntax
tooxc_ecmascript
(refactor(ecmascript): move ToInt32 fromoxc_syntax
tooxc_ecmascript
#6471) (Boshen)HasProto
which is not part of the spec (refactor(ecmascript): removeHasProto
which is not part of the spec #6470) (Boshen)oxc_ecmascript
(refactor(minifier): use constant folding unary expression fromoxc_ecmascript
#6647) (Boshen)ValueType
(refactor(minifier): unifyValueType
#6545) (Boshen)oxc_ecmascript
(refactor(minifier): move string methods tooxc_ecmascript
#6472) (Boshen)clippy::unused_self
(refactor(minifier): remove allowclippy::unused_self
#6441) (Boshen)allocator.alloc(program)
calls (refactor(oxc): remove uselessallocator.alloc(program)
calls #6571) (Boshen)ContentHash::content_hash_slice
(refactor(span): remove unusedContentHash::content_hash_slice
#6609) (DonIsaac)HelperLoader
: add import immediately (refactor(transformer):HelperLoader
: add import immediately #6601) (overlookmotel)HelperLoader
common transform: comments (refactor(transformer):HelperLoader
common transform: comments #6599) (overlookmotel)HelperLoader
common transform: construct string directly in arena (refactor(transformer):HelperLoader
common transform: construct string directly in arena #6596) (overlookmotel)HelperLoader
common transform:Helper
enum (refactor(transformer):HelperLoader
common transform:Helper
enum #6595) (overlookmotel)#![warn]
attr (refactor(transformer): remove unnecessary#![warn]
attr #6585) (overlookmotel)HelperLoader
common transform:Helper
struct (refactor(transformer):HelperLoader
common transform:Helper
struct #6568) (overlookmotel)HelperLoader
common transform: use hashmapEntry
API (refactor(transformer):HelperLoader
common transform: use hashmapEntry
API #6567) (overlookmotel)HelperLoader
common transform: re-order fields (refactor(transformer):HelperLoader
common transform: re-order fields #6565) (overlookmotel)HelperLoader
common transform: removeRc
s (refactor(transformer):HelperLoader
common transform: removeRc
s #6564) (overlookmotel)HelperLoader
common transform: reorder methods (refactor(transformer):HelperLoader
common transform: reorder methods #6563) (overlookmotel)ImportKind
toImport
(refactor(transformer): renameImportKind
toImport
#6561) (overlookmotel)ModuleImportsStore
(refactor(transformer): add more specific methods toModuleImportsStore
#6560) (overlookmotel)ImportKind
useBoundIdentifier
(refactor(transformer):ImportKind
useBoundIdentifier
#6559) (overlookmotel)Common
andTransformCtx
(refactor(transformer): re-order fields ofCommon
andTransformCtx
#6562) (overlookmotel)helper_call_expr
(refactor(transformer/async-to-generator): usehelper_call_expr
#6634) (Dunqing)Styling
Cargo.toml
(style(regular_expression): re-order dependencies inCargo.toml
#6672) (overlookmotel)Testing
CodeBuffer::print_byte_unchecked
(test(codegen): add test forCodeBuffer::print_byte_unchecked
#6497) (overlookmotel)collapse_variable_declarations
(test(minifier): add all test cases forcollapse_variable_declarations
#6421) (dalaoshu)