63 KiB
Changelog
[unreleased]
Bug Fixes
-
(cli) Exclude non-files from get_files_list (#9560) (85cc2bd)
-
(es/minifier) Avoid decl name when mangle with eval (#9546) (e2242c4)
-
(plugin) Don't panic when ast byte not match (#9562) (c36871a)
Miscellaneous Tasks
Testing
[1.7.25] - 2024-09-11
Bug Fixes
Features
Miscellaneous Tasks
- (bindings/node) Fix type definition (64ec111)
[1.7.24] - 2024-09-08
Bug Fixes
-
(es/compat) Handle label block in constructor (#9528) (c43dbad)
-
(es/decorator) Add support for private access expressions in legacy decorators (#9535) (62ed065)
-
(es/minifier)
typeof
class should befunction
(#9522) (c7fdd6b) -
(es/minifier) Prevent removing side effects from accessing getter (#9530) (8513816)
-
(es/typescript) Handle enum in single statement (#9532) (84b0043)
[1.7.23] - 2024-09-02
Bug Fixes
Performance
[1.7.22] - 2024-08-30
Bug Fixes
- (es/minifier) Iterate object properties in reverse direction while inlining property access (#9507) (f584ef7)
[1.7.21] - 2024-08-28
Bug Fixes
[1.7.19] - 2024-08-28
Bug Fixes
Features
Miscellaneous Tasks
Refactor
[1.7.17] - 2024-08-23
Bug Fixes
-
(ci) FIx pattern for
actions/download-artifact
(ac7bd31) -
(es/minifier) Force rename synthesized identifiers (#9473) (c72b5f8)
-
(es/minifier) Mark LHS of for-in/of as update (#9474) (ac432c4)
-
(es/typescript) Correctly handle deep import chains (#9487) (50d70d3)
-
(es/typescript) Correctly handle ESM context (#9490) (fc0483c)
-
(html) Fix html binding (eefae1c)
Features
-
(bindings/html) Allow using
lightningcss
as minfiier (#9462) (74d6478) -
(es/minifier) Drop more patterns with
PURE
marker (#9478) (ede1a52)
Miscellaneous Tasks
Performance
Refactor
[1.7.14] - 2024-08-19
Bug Fixes
Features
Refactor
[1.7.12] - 2024-08-19
Bug Fixes
-
(common) Do not use
adjust_mappings
fromsourcemap
crate (#9437) (563c162) -
(es) Mark TypeScript nodes as reachable from
Evaluator
(#9440) (308e5ec) -
(es/compat) Init this in sub class constructor for async (#9446) (bfaf31b)
-
(es/decorators) Fix metadata for accessors (#9444) (99738ef)
Miscellaneous Tasks
[1.7.11] - 2024-08-14
Bug Fixes
Features
-
(es/typescript) Add
native_class_properties
to skip reordering of class properties inits (#9421) (d2929d1) -
(estree/compat) Remove dependency on
rayon
(#9393) (34d1b27) -
(html/minifier) Support using custom css minifier (#9425) (970cc81)
Miscellaneous Tasks
-
(es/preset-env) Update core js compat data (#9407) (ce761cf)
-
(es/typescript) Remove the workaround for wasm-bindgen (#9428) (55f7268)
[1.7.10] - 2024-08-09
Bug Fixes
-
(es/typescript) Strip optional mark and definite mark (#9411) (8c161a0)
-
(es/typescript) Strip exported default overload function declaration (#9412) (b395f48)
-
(es/typescript) Strip
this
param in getter/setter (#9414) (442fb7b) -
(es/typescript) Update ts-strip type definition (#9415) (165c8fa)
[1.7.9] - 2024-08-09
Bug Fixes
[1.7.8] - 2024-08-09
Bug Fixes
-
(common) Do not generate invalid source map (#9050) (9d65c77)
-
(common) Require newer version of allocator (#9386) (4e854c7)
-
(es/module) Drop the level of a few tracing events (#9380) (95af253)
-
(es/typescript) Enable Injector to process JSX (#9395) (e24e2ff)
-
(es/typescript) Strip declaration of exported function overloads (#9397) (5c8aa52)
Features
Miscellaneous Tasks
Testing
[1.7.6] - 2024-08-04
Bug Fixes
-
(es/codegen) Print the missing
abstract
in class expression (#9372) (c2e3021) -
(es/decorators) Use correct class name reference (#9375) (badd6a9)
-
(es/typescript) Strip declare export in strip-only mode (#9374) (c53cce4)
[1.7.5] - 2024-08-02
Bug Fixes
-
(es/parser) Fix span for unterminated block comments (#9361) (dc1b87e)
-
(es/parser) Make
UnterminatedBlockComment
stick to the EOF (#9366) (4f0fc6e) -
(es/typescript) Handle single type statement in if/for/while (#9364) (2217730)
-
(es/typescript) Handle backtick in ASI issue (#9367) (6f1716c)
Miscellaneous Tasks
[1.7.4] - 2024-07-31
Bug Fixes
-
(es/codegen) Emit question token for class methods (#9342) (636585b)
-
(es/minifier) Preserve flags while dropping elements of
SeqExpr
(#8907) (24e8798) -
(es/typescript) Fix ASI in expression for fast strip (#9358) (3ee82e2)
Documentation
Miscellaneous Tasks
[1.7.3] - 2024-07-27
Bug Fixes
[1.7.2] - 2024-07-25
Bug Fixes
-
(es/ast) Accept any case of EsVersion during deserialization (#9329) (56da6be)
-
(es/typescrupt) Fix ASI issue in fast ts strip (#9332) (57146cf)
Documentation
[1.7.1] - 2024-07-24
Bug Fixes
-
(bindings/types) Add missing mangle options (#9298) (567f40d)
-
(es/ast) Make span of binding ident include type ann (#9293) (2b32481)
Features
-
(allocator) Feature gate
nightly
via macros (#9274) (a31fb58) -
(es/typescript) Add esm build for fast ts strip (#9286) (d10cb9f)
Miscellaneous Tasks
Performance
-
(allocator) Use
std
instead ofallocator-api2
(#9281) (88723db) -
(es/codegen) Use
Vec<T>
fromswc_allocator
(#9280) (c1cd0b9) -
(es/helpers) Use
bool
instead ofAtomicBool
(#9321) (8107e98)
Refactor
Build
[1.7.0] - 2024-07-18
Bug Fixes
-
(allocator) Remove wrong assertions and add tests (#9252) (d8e8b04)
-
(es/codegen) Fix codegen of large numeric literals (#9226) (fba79e6)
-
(es/compat) Consider only the variables used in the closure (#9151) (1357531)
-
(es/compat) Add support for destructuring with BigInts (#9215) (2cc7028)
-
(es/minifier) Fix variable declaration in default branch (#9220) (a7c82bd)
-
(es/minifier) Check
this
in function params (#9229) (da4866d) -
(es/minifier) Remove optimization for array pattern (#9241) (521161e)
-
(es/minifier) Fix panic in bitwise logic and incorrect values (#9258) (baeb9e2)
-
(es/minifier) Collect raw str values for new Tpl element (#9261) (6ddbfa0)
-
(es/typescript) Handle unicode for fast ts strip (#9202) (096bfe3)
Documentation
Features
-
(es/typescript) Add
transform
mode back to fast TS strip (#9237) (8231e3c) -
(es/utils) Support for arrays using
cast_to_number
(#9212) (2aef14d)
Miscellaneous Tasks
Performance
-
(bindings/wasm) Shrink the size of the wasm file (#9191) (3a23b3d)
-
(es/typescript) Add a benchmark for fast TS strip (#9205) (7d9364c)
-
(es/visit) Introduce
standard_only_*
macros (#9207) (92879b1)
Refactor
-
(allocator) Use
&
instead of a thread-local (#9235) (8d5670e) -
(allocator) Use RAII guard instead of
scope
(#9254) (6e098ae) -
(common) Drop
SyntaxContext
from AST nodes (#9175) (b2491e5) -
(es) Use
Into
andFrom
for AST construction (#9201) (0960b23)
Testing
Pers
[1.6.13] - 2024-07-06
Bug Fixes
Features
Testing
[1.6.12] - 2024-07-06
Bug Fixes
-
(es/decorators) Fix bugs of
2022-03
implementation (#9145) (8a3ae44) -
(es/loader) Exclude
.json
from default extension list (#9134) (e94e5e7) -
(es/renamer) Fix renaming of default-exported declarations (#9135) (45f671d)
-
(es/typescript) Fix tricky cases in TS fast strip (#9159) (2bc51b8)
-
(es/typescript) Fix replacement logic of fast TS strip (#9163) (c5acafe)
Features
-
(bindings/ts) Add transform/strip-only mode (#9138) (a08bb46)
-
(es/testing) Improve comment testing story (#9150) (3638e97)
Performance
Refactor
[1.6.7] - 2024-07-03
Bug Fixes
Documentation
- Use
@swc/counter
for 3rd-party download count (026ff7e)
Features
-
(binding) Create Wasm package for stripping only TypeScript (#9124) (6b3c0da)
-
(es/minifier) Handle more indexing expression (#8750) (570c47a)
Performance
Refactor
Testing
Build
[1.6.6] - 2024-06-29
Bug Fixes
Performance
[1.6.4] - 2024-06-22
Features
-
(common) Add fallible methods to
swc_common::SourceMap
(#9090) (e423d1b) -
(es/transform) Add experimental
.d.ts
generation (#9093) (51a2702) -
(typescript) Implement Isolated Declaration (#9086) (a855159)
Miscellaneous Tasks
Performance
Refactor
[1.6.3] - 2024-06-19
Bug Fixes
Performance
-
(es/lexer) Make lexing of string literals faster (#9077) (373bac5)
-
(es/lexer) Reduce allocation while lexing identifiers (#9076) (69f00b8)
-
(es/lexer) Add a fast-path to template literal lexer (#9080) (238f1c5)
Refactor
[1.6.1] - 2024-06-16
Bug Fixes
Performance
[1.6.0] - 2024-06-15
Features
Performance
-
(es/lints) Avoid needless allocations in
no-dupe-args
(#9041) (e560198) -
(es/parser) Reduce allocations for
raw
while lexing numbers (#9056) (bc8ec62)
Refactor
Testing
[1.5.29] - 2024-06-13
Bug Fixes
-
(ci) Make publish action upload cli artifacts (#9040) (3337bb2)
-
(es/codegen) Emit named type in mapped types (#9038) (91e92ec)
-
(es/minifier) Visit RHS while hoisting properties (#9032) (cb16994)
Performance
-
(es/minifier) Do not visit var init multiple times (#9039) (675916c)
-
(es/parser) Optimize lexing of template literals (#9036) (6ab19a1)
-
(es/parser) Optimize lexing of template literals, again (#9037) (5bffd0f)
[1.5.28] - 2024-06-11
Bug Fixes
[1.5.26] - 2024-06-10
Bug Fixes
Features
-
(es/transforms) Add experimental output API for transforms (#9000) (6fa79be)
-
(es/transforms) Add an API for returning metadata to JS (#9022) (6ce112c)
[1.5.25] - 2024-06-05
Bug Fixes
-
(es/es2015) Fix injection location of
this
for getter/setter properties (#8993) (09121a6) -
(es/minifier) Preserve unused special properties (#9005) (e764ff6)
-
(es/minifier) Do not index a string with a surrogate pair (#9013) (2879a4d)
-
(es/minifier) Fix evaluation of
-0
as a string (#9011) (9f8e24a) -
(es/resolver) Fix hoisting of
const
andlet
(#8987) (0d9ecf3)
Features
Performance
[1.5.23] - 2024-05-30
Bug Fixes
[1.5.9] - 2024-05-28
Bug Fixes
-
(es/codegen) Accept
&impl Node
instead ofimpl Node
(#8969) (a456799) -
(es/es2015) Fix
typeof
comparions with"object"
(#8976) (51e0639) -
(es/minifier) Fix comparison of
-0.0
and0
(#8973) (2a43df4) -
(es/minifier) Mark usage in
TaggedTpl
as ref (#8975) (a753c8d)
Features
Testing
-
(es/decorators) Add tests written by evanw (#8967) (95472e4)
-
(es/minifier) Update the passing terser test list (#8984) (c0dc5e4)
[1.5.8] - 2024-05-20
Bug Fixes
-
(es/minifier) Abort array property inliner if the array is used as a ref (#8956) (255485e)
-
(es/minifier) Abort property hoisting on
eval
(#8957) (02729f2)
Refactor
[1.5.7] - 2024-05-14
Documentation
[1.5.6] - 2024-05-14
Bug Fixes
-
(es) Allow input source map file to be omitted (#8951) (606cb67)
-
(es/compat) Avoid reserved name for private method (#8949) (7053bb1)
-
(es/minifier) Abort inliner on mutation via property (#8938) (257afc9)
-
(es/minifier) Don't invoke IIFE containing reserved words (#8939) (5a3456c)
-
(es/minifier) Fix evaluation of
String.charCodeAt
(#8946) (772c50f)
[1.5.5] - 2024-05-08
Bug Fixes
-
(css/modules) Fix
:global
selectors without preceding whitespace (#8926) (2405dc6) -
(es/fixer) Wrap class expressions in callee (#8928) (6b60bdb)
-
(es/minifier) Consider side effects of operands of binary expressions (#8929) (4d4a7a9)
Refactor
[1.5.4] - 2024-05-06
Bug Fixes
-
(es/decorators) Handle ref of decorated class (#8905) (af96e39)
-
(es/minifier) Increment
ref_count
while invoking IIFE (#8904) (86e2bb0) -
(es/proposal) Fix scoping of explicit resource management pass (#8903) (762b0d4)