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.48.0] - 2025-01-24
PartialEq
impl for&Atom
(refactor(span)!: removePartialEq
impl for&Atom
#8642) (overlookmotel)Features
Allocator::capacity
andused_bytes
methods (feat(allocator): addAllocator::capacity
andused_bytes
methods #8621) (overlookmotel)Allocator::new
andwith_capacity
methods (feat(allocator): addAllocator::new
andwith_capacity
methods #8620) (overlookmotel)TSTypeLiteral
(feat(codegen): print comments inTSTypeLiteral
#8679) (Boshen)Number.*_SAFE_INTEGER
/Number.EPSILON
(feat(minifier): replaceNumber.*_SAFE_INTEGER
/Number.EPSILON
#8682) (sapphi-red)Number.POSITIVE_INFINITY
/Number.NEGATIVE_INFINITY
/Number.NaN
(feat(minifier): replaceNumber.POSITIVE_INFINITY
/Number.NEGATIVE_INFINITY
/Number.NaN
#8681) (sapphi-red)typeof foo === 'object' && foo !== null
totypeof foo == 'object' && !!foo
(feat(minifier): compresstypeof foo === 'object' && foo !== null
totypeof foo == 'object' && !!foo
#8638) (sapphi-red)(a = b) === null || a === undefined
to(a = b) == null
(feat(minifier): compress(a = b) === null || a === undefined
to(a = b) == null
#8637) (sapphi-red)Bug Fixes
endColumn
output (fix(linter): fix githubendColumn
output #8647) (Alexander S.)void 0
equals toundefined
(fix(minifier):void 0
equals toundefined
#8673) (Boshen)String(a)
into"" + a
for symbols (fix(minifier): avoid minifingString(a)
into"" + a
for symbols #8612) (翠 / green)void 0
(fix(minifier): remove expression statementvoid 0
#8602) (Boshen)intrinsic
TS keyword (fix(parser): parseintrinsic
TS keyword #8627) (Kevin Deng 三咲智子)true
asTSLiteralType
(fix(parser): parsetrue
asTSLiteralType
#8626) (Kevin Deng 三咲智子)UnresolvedReferencesStack
(fix(semantic): fix const assertions inUnresolvedReferencesStack
#8653) (overlookmotel)Performance
String
non-drop (perf(allocator): makeString
non-drop #8617) (overlookmotel)!
(perf(lexer): peak 2 bytes after!
#8662) (Boshen)LatePeepholeOptimizations
(perf(minifier): addLatePeepholeOptimizations
#8651) (Boshen)Documentation
Allocator
(docs(allocator): improve docs forAllocator
#8623) (overlookmotel)HashMap
(docs(allocator): improve docs forHashMap
#8616) (overlookmotel)Refactor
Allocator
into own module (refactor(allocator): moveAllocator
into own module #8656) (overlookmotel)Drop
types in arena (refactor(allocator): reduce repeat code to preventDrop
types in arena #8655) (overlookmotel)Box
methods (refactor(allocator): reorderBox
methods #8654) (overlookmotel)#[estree(via)]
behavior (refactor(ast): align#[estree(via)]
behavior #8599) (sapphi-red)Stack
forbinary_expr_stack
(refactor(codegen): useStack
forbinary_expr_stack
#8663) (Boshen)match_member_expression
(refactor(codegen): removematch_member_expression
#8597) (Boshen)ref
/ref mut
syntax (refactor(isolated_declarations, linter, minifier, prettier, semantic, transformer): remove unnecessaryref
/ref mut
syntax #8643) (overlookmotel)cow_to_ascii_lowercase
insteadcow_to_lowercase
(refactor(linter): usecow_to_ascii_lowercase
insteadcow_to_lowercase
#8678) (Boshen)wrap_to_avoid_ambiguous_else
(refactor(minifier): removewrap_to_avoid_ambiguous_else
#8676) (Boshen)has_no_side_effect_for_evaluation_same_target
(refactor(minifier): clean uphas_no_side_effect_for_evaluation_same_target
#8675) (Boshen)minimize_conditions
local loop (refactor(minifier): move more code intominimize_conditions
local loop #8671) (Boshen)minimize_conditions
(refactor(minifier): move conditional assignment tominimize_conditions
#8669) (Boshen)NonEmptyStack
for function stack (refactor(minifier): useNonEmptyStack
for function stack #8661) (Boshen)try_minimize_conditional
(refactor(minifier): clean uptry_minimize_conditional
#8660) (Boshen)ast_passes
topeephole
(refactor(minifier): renameast_passes
topeephole
#8635) (Boshen)Atom
s (refactor(span): deal only in ownedAtom
s #8641) (overlookmotel)Atom
impls (refactor(span): remove unnecessary lifetimes onAtom
impls #8639) (overlookmotel)Copy
onAtom
(refactor(span): deriveCopy
onAtom
#8596) (branchseer)create_prototype_member
to utils module (refactor(transformer): movecreate_prototype_member
to utils module #8657) (Dunqing)Testing