chore(deps): update dependency @swc/core to v1.15.3 #7
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Athemis/ds4!7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "renovate/swc-monorepo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
1.10.18->1.15.3Release Notes
swc-project/swc (@swc/core)
v1.15.3Compare Source
Bug Fixes
(es/codegen) Restore missing top-level comments (#11302) (0998c93)
(es/codegen) Emit comments of all nodes (#11314) (387ee0f)
(es/minifier) Prevent compress.comparisons from transforming expressions with side effects (#11256) (58a9d81)
(es/minifier) Remove unused arrow functions in dead code elimination (#11319) (88c6ac7)
(es/parser) Make the span of Program start at input start (#11199) (b56e008)
(es/plugin) Use
#[cfg]to avoid compilation error (#11316) (f615cdb)(es/quote) Replace usage of
swc_atomswithswc_core::atoms(#11299) (c1e32fa)Miscellaneous Tasks
Performance
(es/compat) Merge
regexppass intoTransformer(#11307) (440b391)(es/compat) Merge
export_namespace_fromtoTransformer(#11309) (7a528ce)Refactor
v1.15.2Compare Source
Bug Fixes
filenameoption fromprint()(#11264) (0d4d2d9)Features
(es/minifier) Drop empty constructors during minification (#11250) (2cea7dd)
(es/visit) Add context parameter to VisitMutHook trait (#11254) (8645d0d)
Performance
(es/parser) Inline
skip_space(afb824a)(es/parser) Eliminate the outer loop of
skip_block_comment(#11261) (e41c0ac)(es/plugin) Use shared tokio runtime to avoid creation overhead (#11267) (707026b)
v1.15.1Compare Source
Bug Fixes
(cli) Print filename to stderr when compiling (#11249) (d66dab5)
(es/minifier) Prevent array destructuring optimization in assignment contexts (#11221) (99d8b0a)
Features
(es/compiler) Determine module structure (#11238) (415019c)
(ts/fast-strip) Add a binding crate for nodejs/amaro (#11236) (f0829af)
(visit) Add hook APIs for visitors (#11242) (3a141ed)
Miscellaneous Tasks
syntax_extand prepare AI-based porting (#11239) (15639c0)Performance
(common) Improve
StringInput#bump_bytes(#11230) (6a9fa49)(es/parser) Optimize
skip_space(#11225) (541d252)Refactor
v1.15.0Compare Source
Bug Fixes
(cli) Update plugin template to use VisitMut API (#11218) (6a87e41)
(hstr) Skip only
\ufor unicode (#11216) (eda01e5)Features
from_bytesfor Wtf8Buf and Wtf8 (#11211) (1430489)Performance
(atoms) Remove temporary allocations in rkyv serialize and deserialize (#11202) (85e6e8a)
(es/parser) Remove
startinState(#11201) (b9aeaa3)(plugin) Avoid data copy when transformation finished (#11223) (af134fa)
Refactor
(ast) Introduce flexible serialization encoding for AST (#11100) (8ad3647)
(plugin) Switch plugin abi to flexible serialization (#11198) (e5feaf1)
Flatten cargo workspaces (#11213) (6223100)
Testing
v1.14.0Compare Source
Bug Fixes
(atoms) Fix broken quote macro (#11195) (3485179)
(es/ast) Fix unicode unpaired surrogates handling (#11144) (845512c)
(hstr) Fix unsoundness of
wtf8's transmutation (#11194) (f27e65b)Features
nullish_coalescingintoCompiler(#11157) (dd6f71b)Miscellaneous Tasks
default-features = false(#11193) (85d855f)Performance
had_line_break_before_last(#11200) (7b5bcd7)Refactor
(bindings) Adjust compile options (#11190) (4c6df95)
(bindings) Add
opt-level = sto more crates (#11191) (ed63413)(es/ast) Cherry-pick #10763 (#11182) (e93ffde)
(es/parser) Detach
swc_ecma_parserfromswc_ecma_lexer(#11148) (94f175d)v1.13.21Compare Source
Bug Fixes
(bindings) Improve ARM64 and Alpine Linux (musl) binary loading and validation (#11173) (f9be4d7)
(es/codegen) Encode non-ASCII chars in regex with ascii_only option (#11155) (b6f4d1f)
(es/compat) Apply
Array.prototype.slicetoargumentsin loose spread (#11122) (66428a2)(es/compat) Handle sparse arrays correctly in generator transforms (#11131) (9cd4334)
(es/compat) Preserve AutoAccessor to prevent panic (#11150) (101c3b7)
(es/decorators) Emit correct metadata for enum parameters (#11154) (630484f)
(es/helpers) Fix SuppressedError argument order in explicit resource management (#11172) (7693fb9)
(es/minifier) Fix inlining of hoisted functions (#11159) (bd55d30)
(es/minifier) Fix inlining of hoisted functions in param (#11161) (5a4088d)
(es/parser) Handle JSX attributes with keyword prefixes correctly (#11136) (d3cd97f)
(es/parser) Support literal computed property names in enums (#11163) (146c77c)
(es/react) Use correct span for
@jsxFragas null literal (#11139) (9353763)(es/transforms) Check errors::HANDLER.is_set() before failing (#11130) (1c9ab27)
Features
(bindings) Introduce AST Viewer to improve debugging experience (#10963) (fa3aacc)
(es/minifier) Add merge_imports optimization pass to reduce bundle size (#11151) (a01dee1)
(es/parser) Add an error for empty type args for generic (#11164) (9a1fa84)
Miscellaneous Tasks
(claude) Use Sonnet 4.5 instead of Opus (c79e1e5)
(deps) Update lru crate from 0.10.1 to 0.16.1 (#11145) (e347c5b)
Refactor
non_exhaustive(#11115) (f328e4a)v1.13.20Compare Source
Bug Fixes
(es/minifier) Preserve
__proto__shorthand property behavior (#11123) (63dbd1d)(es/parser) Parse
(void)correctly as arrow function return type (#11125) (d3e5dd3)Performance
v1.13.19Compare Source
Bug Fixes
(es/compat) Preserve comment when transform template with no expr (#11109) (80e8408)
(es/minifier) Inline block stmt into expr (#11107) (72a53a0)
(es/minifier) Allow MultiReplacer to inline multiple times (#11106) (fe8e981)
Features
(es/minifier) Optimize (a | 0) ^ b (#11110) (7af1474)
(hstr) Introduce
Wtf8Atom(#11104) (8cfd47b)Testing
v1.13.5Compare Source
Bug Fixes
(es/minifier) Preserve
array.joinwith nullable values (#10937) (e495403)(es/preset-env) Update polyfill data (#11013) (934d8a5)
Features
Refactor
preservesupports (#11025) (bc83875)v1.13.4Compare Source
Bug Fixes
(es/lexer) Use error when handling '\0' (#10964) (53c22d1)
(es/minifier) Skip serde of
pure_funcsin options (#10969) (862e70d)(es/minifier) Fix compile error with
debugfeature (#10999) (831eed5)(es/minifier) Don't eliminate class expr if some side effects contain
this(#11003) (18aeac6)(es/module) Support optional chaining in
import.meta(#10985) (758d8ec)(es/parser) Allow TS type args to start with LSHIFT (
<<) to parseT<<S>() => void>(#10996) (4911ec7)(ts/isolated-dts) Correct optional marker for class fields generated from constructor parameter (#10992) (0d680fd)
Expose GlobalPassOption.build (#10968) (c8a2668)
Features
(bindings/html) Add
keep-head-and-bodyfortagOmissionin binding (#11014) (1e1ebeb)(html/minifier) Support
keep_head_and_body(#11008) (86186db)(plugin/runner) Introduce
wasmtimebackend (#10958) (9fa8330)Miscellaneous Tasks
Performance
(es/ast) Remove alloc in leftmost api (#11005) (f59f233)
(es/minifier) Use bitflags for context of the
Purepass (#10953) (8cd5c58)(es/minifier) Reduce alloc (#10961) (6475070)
(es/minifier) Remove useless clone (#10970) (8873f65)
(es/minifier) Reduce clone (#10982) (4f2ed0d)
(es/minifier) Use
bitflagsforDropOpts(#10990) (79206f1)(es/parser) Remove EOF check (#10976) (a10dada)
(es/parser) Introduce checkpoint to reduce clone (#11001) (cda08d1)
(es/parser) Remove useless
Rc<RefCell<T>>(#11002) (39f5784)(es/parser) Remove
OneDirectionalListand reduce allocation ofVec(#11000) (0088ab8)Refactor
(common) Remove
SyntaxContextData#opaque(#10983) (d5be248)(es/minifier) Remove useless branch (#10966) (e400de3)
(es/minifier) Remove duplicate report assign (#11009) (9590e1d)
(es/parser) Remove useless methods (#10980) (91c6039)
(hstr) Use default inline strategy (#10954) (d160f7f)
(hstr) Remove needlesss unwrap (#10959) (953f75f)
(plugin/runner) Introduce abstract runtime (#10943) (a445156)
(plugin/runner) Switch
wasmtime-wasitowasi-common(#10979) (c4114d5)Add
#[deny(unused)](#10997) (1bb3716)v1.13.3Compare Source
Bug Fixes
(es/minifier) Check exported when optimize last expr (#10939) (f6f15f3)
(es/minifier) Disallow types (#10945) (63172ef)
(es/minifier) Don't optimize Number properties when Number is shadowed (#10947) (40a1e2e)
(es/minifier) Fix cycle detection (#10950) (212d8bc)
(es/parser) Correctly handle EOF position (#10934) (dd70fbd)
Performance
(es/minifier) Remove visitor of CharFreqAnalyzer (#10928) (65534ff)
(es/minifier) Remove pre-compress pass (#10932) (c7f0e4d)
(es/minifier) Use bitflag for var kind (#10940) (4317988)
(es/minifier) Remove needless clone (#10949) (b5e5e8c)
(es/parser) Reduce comparison (#10933) (e44fbd4)
(es/parser) Reduce comparison (#10941) (a262eeb)
v1.13.2Compare Source
Bug Fixes
(bindings) Improve ARM64 and Alpine Linux (musl) binary loading and validation (#11173) (f9be4d7)
(es/codegen) Encode non-ASCII chars in regex with ascii_only option (#11155) (b6f4d1f)
(es/compat) Apply
Array.prototype.slicetoargumentsin loose spread (#11122) (66428a2)(es/compat) Handle sparse arrays correctly in generator transforms (#11131) (9cd4334)
(es/compat) Preserve AutoAccessor to prevent panic (#11150) (101c3b7)
(es/decorators) Emit correct metadata for enum parameters (#11154) (630484f)
(es/helpers) Fix SuppressedError argument order in explicit resource management (#11172) (7693fb9)
(es/minifier) Fix inlining of hoisted functions (#11159) (bd55d30)
(es/minifier) Fix inlining of hoisted functions in param (#11161) (5a4088d)
(es/parser) Handle JSX attributes with keyword prefixes correctly (#11136) (d3cd97f)
(es/parser) Support literal computed property names in enums (#11163) (146c77c)
(es/react) Use correct span for
@jsxFragas null literal (#11139) (9353763)(es/transforms) Check errors::HANDLER.is_set() before failing (#11130) (1c9ab27)
Features
(bindings) Introduce AST Viewer to improve debugging experience (#10963) (fa3aacc)
(es/minifier) Add merge_imports optimization pass to reduce bundle size (#11151) (a01dee1)
(es/parser) Add an error for empty type args for generic (#11164) (9a1fa84)
Miscellaneous Tasks
(claude) Use Sonnet 4.5 instead of Opus (c79e1e5)
(deps) Update lru crate from 0.10.1 to 0.16.1 (#11145) (e347c5b)
Refactor
non_exhaustive(#11115) (f328e4a)v1.13.1Compare Source
Bug Fixes
(es/compat) Preserve comment when transform template with no expr (#11109) (80e8408)
(es/minifier) Inline block stmt into expr (#11107) (72a53a0)
(es/minifier) Allow MultiReplacer to inline multiple times (#11106) (fe8e981)
Features
(es/minifier) Optimize (a | 0) ^ b (#11110) (7af1474)
(hstr) Introduce
Wtf8Atom(#11104) (8cfd47b)Testing
v1.13.0Compare Source
Bug Fixes
(es/lexer) Disallow legacy octal literals as BigInt (#10867) (430fbf4)
(es/minifier) Restrict IIFE inlining in class contexts (#10879) (a01b54a)
(es/parser) Mark
staticas reserved in strict mode (#10861) (5bdddd7)Features
(es/minifier) Drop unused rest paramters (#10857) (5305486)
(es/minifier) Enhance IIFE invoker for arrow functions (#10860) (2b1ce3d)
(plugin/runner) Use wasmer-wasix sys-minimal feature to reduce binary size (#10638) (b5f704a)
Performance
(es/lexer) Reduce comparison while reading numbers (#10864) (c6ba5c2)
(es/lexer) Remove unnecessary check when reading keywords (#10866) (4aefe0e)
(es/parser) Reduce comparisons (#10862) (3bd9aad)
(es/parser) Remove useless alloc (#10865) (3ebf088)
(es/parser) Reduce token query (#10869) (d93ef64)
(es/parser) Remove duplicate check (#10872) (fe76460)
(es/parser) Remove duplicate check (#10874) (064123b)
(swc_error_reporters) Avoid creating miette handler when no diagnostics (#10852) (93b318f)
Refactor
(es/lexer) Avoid passing
convert(#10868) (77393f8)(es/minifier) Cleanup (#10882) (2595cb1)
(es/parser) Remove duplicate check for reservedness (#10850) (4897bfd)
(es/parser) Remove span swap operation in parser (#10854) (32f4bb8)
v1.12.14Compare Source
Bug Fixes
(es/minifier) Don't inline arrow when it contain
this(#10825) (8b43bb3)(es/parser) Make
exportin NS to not affect file type (#10799) (ae22033)(es/parser) Correctly check ambient context (#10802) (f97ea03)
Features
(es/parser) Enable support for dynamic import with
deferphase (#10845) (097d29d)(plugin) Remove
bytecheckto make Wasm plugins backward compatible (#10842) (30ad808)Miscellaneous Tasks
(bindings) Fix dependency issues (7c57fbb)
(deps) Update
class-validatorto avoid comments (#10819) (bacfa4b)(ide) Enable
--workspacefor rust-analyzer check (#10809) (92647ff)Performance
(es/minifier) Use
u8forremaining_depth(#10833) (ed6956a)(hstr) Inline one more byte (#10817) (3886c97)
(hstr) Remove static tag (#10832) (66ae1e8)
Refactor
(es/helpers) Make inline helpers optional at compile time (#10808) (53f3881)
(es/lexer) Don't store buffer in lexer (#10830) (cac40f1)
(es/lints) Remove warnings without features (#10794) (41d507f)
(es/parser) Reduce token query (#10834) (5cd5185)
(es/parser) Reduce call to
parse_decorators(#10846) (356d3a0)(es/parser) Remove duplicate check (#10847) (2b04efd)
(es/preset-env) Use strpool,phf for corejs2 data (#10803) (1652fd8)
(es/react) Remove redundant
replacecalls (#10795) (a670b37)(es/react) Remove
count_children(#10818) (2116ab2)(hstr) Cleanup duplicate header (#10812) (630dde9)
(hstr) Make the deallocation of
Atoms explicit (#10813) (406433d)(hstr) Remove
is_global(#10820) (afda0f9)Testing
v1.12.11Compare Source
Bug Fixes
(ci) Fix CI (#10790) (b3f9760)
(es) Use
default-features = falseforswccrate usages (#10776) (50b2eac)(es) Make
swc_typescriptoptional (#10792) (c32569d)(preset-env) Fix
defaultvalue forcaniuse(#10754) (aa4cd5b)(preset-env) Revert
defaultvalue (#10778) (7af5824)Features
(es/minifeir) Inline lazily initialized literals (#10752) (fd5d2e2)
(es/minifier) Evaluate
Number.XXXconstants (#10756) (c47dab5)(es/minifier) Implement partial evaluation of array join (#10758) (bdf3a98)
(swc_core) Expose
swc_ecma_parser/unstable(#10744) (db0679e)Miscellaneous Tasks
(common) Remove
clone()in proc macro (#10762) (12e3180)(deps) Update
browserslist-rsto0.19(#10750) (f8bf21c)(deps) Remove unused deps with cargo-shear (#10765) (f4e4974)
(es/module) Drop
nodefeature ofswc_ecma_loader(#10761) (44471b5)(plugin/runner) Remove unused feature and dependency (#10764) (a7d8a0a)
Performance
(es/lexer) Use
bitflagsforSyntax(#10676) (bf8c722)(es/lexer) Do not scan number if there's no underscore (#10788) (f5d92ee)
(es/lints) Make rules not parallel (#10772) (4e6001c)
(es/lints) Merge critical rules (#10773) (816e75a)
(es/parser) Reduce the number of context set ops (#10742) (08b4e8b)
(es/parser) Reduce value set operations for context (#10751) (4976b12)
(es/parser) Reduce query ops of current token (#10766) (4304f91)
(es/parser) Remove useless call in
parse_ident(#10770) (4ca12c9)(es/renamer) Reduce time complexity in case of conflict (#10749) (0279914)
(hstr) Do not compare string during creating atoms (#10791) (43a4f11)
Replace
rayonwithpar-iter(#10774) (a6e6ebe)Refactor
(es) Make
swc_ecma_lintoptional forswccrate (#10767) (f80415b)(es/lexer) Use const fn in
SyntaxFlags(#10737) (b9eb23a)(es/parser) Cleanup
parse_setter_param(#10745) (70734f4)(es/parser) Cleanup
typed-arena(#10769) (ce5138d)(es/parser) Cleanup for ctx (#10777) (d60a611)
(es/parser) Delete
with_ctx(#10779) (ce057c5)(es/parser) Cleanup (#10781) (176ce36)
(es/preset) Remove deprecated
preset_envfunction andfeaturemodule (#10759) (fa0e0ab)(es/preset-env) Use phf for corejs3 entry (#10712) (658b26d)
Testing
(es/minifier) Update the terser test list (#10748) (1eace01)
(es/minifier) Update the passing test list (#10782) (8aa888b)
(es/parser) Add a test for duplicate labels (#10784) (28fc643)
Pref
v1.12.9Compare Source
Bug Fixes
(es/lexer) Parse uppercase hex numbers correctly (#10728) (ead6256)
(es/lexer) Allow keywords as jsx attribute names (#10730) (04ef20a)
(es/minifier) Fix top level option (#10227) (485fced)
(es/minifier) Do not drop self-referential class expressions (#10710) (39e6c2e)
(es/minifier) Mark
consandaltofCondExprasref(#10740) (9649cc8)(es/minifier) Fix termination detection (#10741) (87bc698)
(es/parser) Allow non-prop operand in delete (#10733) (38132e0)
Features
(es/minifier) Hoist more properties (#10707) (0f2c8d5)
(es/transforms) Expose
tsEnumIsMutableto JS (#10716) (6b3ae00)Performance
(es/minifier) Make
CharFreq::scanin mangler table-based (#10679) (04d39aa)(ts/fast-strip) Use
swc_ecma_parser::Lexer(#10677) (ffe0292)Optimize
Input::reset_to(#10719) (8084066)Refactor
(es/lexer) Useless reset (#10714) (c9eee0b)
(es/lexer) Cleanup
read_int(#10727) (c5fb4b1)(es/parser) Remove
read_number_no_dot(#10703) (fa8607f)(es/parser) Remove needless branching (#10717) (b0c23b2)
Testing
(es/preset-env) Add entry import bench (#10722) (9868b4d)
Make codspeed concurrent on main branch (#10711) (4392ce3)
v1.12.7Compare Source
Bug Fixes
(es/minifier) Fix condition for preserving properties (#10694) (5c57a05)
(es/minifier) Drop pure tagged string call expr (#10702) (85cd9a7)
(es/parser) Improve error message for template literals (#10690) (a066b76)
(es/parser) Rescan
>=for JSX closing tag (#10693) (fe82c4c)(es/parser) Support keywords as JSX member expression properties (#10701) (643253d)
Features
(es/parser) Add
overrideandoutkeyword (#10695) (636d7a3)(es/parser) Enable import attributes unconditionally (#10706) (5ecc3ca)
(es/parser) Expose Token API with unstable feature flag (#10699) (750c7d4)
Performance
Testing
v1.12.6Compare Source
Bug Fixes
(es/parser) Throw error if JSX does not end with
>(#10687) (cb3d6db)(es/react-compiler) Use tsx syntax for parser (#10682) (a355e37)
(hstr) Support MSRV =
1.86(#10673) (de19d1e)(ts/isolated-dts) Skip parameters without accessibility modifiers in private constructors (#10675) (1976d8e)
Features
Miscellaneous Tasks
react-leaflet(cfbb1f9)Performance
(es/lexer) Optimize number literal parsing with fast path (#10655) (15d0828)
(es/lexer) Reduce allocations while lexing numbers (#10667) (115d228)
(es/lexer) Introduce
byte_searchto reduce comparison operations (#10668) (3806ffd)(es/lexer) Compare
\nfirst (#10669) (9c41e2f)(es/lexer) Optimize lexing of numbers with separators (#10665) (cac651b)
(es/minifier) Remove needless clones (#10661) (5f4f7dd)
(ts/fast-strip) Prealloc buf for codegen (#10680) (a8347fe)
Refactor
Build
v1.12.5Compare Source
Bug Fixes
(es/parser) Parse jsx entity (#10652) (bfd3bc5)
(es/parser) Consider reseved ident in jsx name (#10647) (9262a59)
Performance
next_token(#10654) (1be2ca0)Refactor
\t(#10650) (d6ac3b7)v1.12.4Compare Source
Bug Fixes
(es/minifier) Fix
Bufferhandling ofminify()API (#10643) (cdf068e)(es/minifier) Fix arrow inlining (#10642) (7232c10)
(es/parser) Don't be greedy in the end of jsx open el (#10637) (8a2c656)
Update
par-coreandpar-iter(#10629) (38f7d51)Fix CI (#10641) (9df98f7)
Refactor
v1.12.3Compare Source
Bug Fixes
v1.12.2Compare Source
Bug Fixes
(ci) Fix build of
@swc/minifier(0dc5244)(es/codegen) Fix
.mappath when usingoutput_path(01e5bd1)(es/parser) Allow type ann in jsx expr child (#10626) (48f576c)
(swc) Fix wrong caching of resolvers regarding file exts (#10615) (68aacd1)
(ts/isolated-dts) Fix usage dependency (#10621) (b3677d3)
(ts/isolated-dts) Emit properties in overloaded constructor params (#10623) (6634ef1)
Features
Noneintry_lookup_source_file(#10625) (d8e2405)Performance
(atoms) Improve
atom!for inlinable strings (#10612) (5113121)(es/minifier) Avoid calling some costly function when optimizing deep nested binary expr (#10611) (1434571)
(es/minifier) Remove needless JSON conversion (#10628) (4a58dca)
(es/parser) Reduce cmp in jsx spread child (#10606) (fb33c13)
Refactor
(es/parser) Cleanup - deduplicate some code (#10608) (5f9af96)
(es/parser) Remove token contexts (#10547) (7ffe9d2)
v1.12.1Compare Source
Bug Fixes
(es/minifier) Don't inline arrow when it contain
this(#10825) (8b43bb3)(es/parser) Make
exportin NS to not affect file type (#10799) (ae22033)(es/parser) Correctly check ambient context (#10802) (f97ea03)
Features
(es/parser) Enable support for dynamic import with
deferphase (#10845) (097d29d)(plugin) Remove
bytecheckto make Wasm plugins backward compatible (#10842) (30ad808)Miscellaneous Tasks
(bindings) Fix dependency issues (7c57fbb)
(deps) Update
class-validatorto avoid comments (#10819) (bacfa4b)(ide) Enable
--workspacefor rust-analyzer check (#10809) (92647ff)Performance
(es/minifier) Use
u8forremaining_depth(#10833) (ed6956a)(hstr) Inline one more byte (#10817) (3886c97)
(hstr) Remove static tag (#10832) (66ae1e8)
Refactor
(es/helpers) Make inline helpers optional at compile time (#10808) (53f3881)
(es/lexer) Don't store buffer in lexer (#10830) (cac40f1)
(es/lints) Remove warnings without features (#10794) (41d507f)
(es/parser) Reduce token query (#10834) (5cd5185)
(es/parser) Reduce call to
parse_decorators(#10846) (356d3a0)(es/parser) Remove duplicate check (#10847) (2b04efd)
(es/preset-env) Use strpool,phf for corejs2 data (#10803) (1652fd8)
(es/react) Remove redundant
replacecalls (#10795) (a670b37)(es/react) Remove
count_children(#10818) (2116ab2)(hstr) Cleanup duplicate header (#10812) (630dde9)
(hstr) Make the deallocation of
Atoms explicit (#10813) (406433d)(hstr) Remove
is_global(#10820) (afda0f9)Testing
v1.12.0Compare Source
Bug Fixes
(@swc/types) Add
jsc.output.charset(#10567) (26b41e8)(es/codegen) Don't call
cmt.get_leadingfor dummy span (#10568) (16e204d)(es/parser) Disallow spread operator(
...) in JSX attribute values (#10587) (8deba78)(es/typescript) Pass
native_class_properties(#10561) (7e4cd9a)(es/typescript) Handle
export declare varin namespace (#10579) (2daa17f)(ts/isolated-dts) Add edges
SymbolFlags::ValueandSymbolFlags::Typein exports (#10577) (e6d4da2)Fix bindings (0f858fd)
Documentation
Features
(es/minifier) Regex support for
format.comments(#10571) (e441df5)(es/module) Add support for
import.meta.mainin AMD and CJS (#10596) (759de2e)Miscellaneous Tasks
virtual-fsto dedupe dependencies (#10594) (de667bb)Refactor
(es/lexer) Remove unnecessary result wrap (#10578) (49d15df)
(es/parser) Extract
parse_jsx_attrs(#10569) (6492786)(es/parser) Remove
cur!(false)macro (#10583) (c96fa23)(swc_common) Remove
Input::find(#10542) (494cef9)(swc_common) Use
BytesStrinstead ofLrc<String>(#10580) (6f00973)(swc_common) Use
swc_sourcemapinstead (#10593) (8a9f609)Testing
v1.11.31Compare Source
Bug Fixes
(es/codegen) Improve comments handling (#10534) (d9ba838)
(es/codegen) Exclude
constructorfrom source map names (#10551) (ef85640)(es/fixer) Fix a bug with awaited arrow fn expression (#10555) (9dfdfa6)
(es/minifier) Fix missing variable (#10478) (6de3ef6)
(es/minifier) Inline object of member if prop is an ident (#10548) (e554381)
(es/minifier) Add side effect check for test expr when compressing IfStmt (#10550) (3e9728e)
(es/minifier) Fix typo in an option name (#10554) (a303941)
(es/parser) Emit syntax errors for strict mode in non-module or scripts (#10545) (1291b4a)
(es/react-compiler) Fix usefulness detection (#10506) (41075a1)
(es/utils) Fix
extract_var_ids(#10511) (5644372)(react-compiler) Fix fast check (#10538) (9403ce2)
(swc_common) Fix build (#10544) (2ed934d)
(swc_common) Fix skip condition for sourcemap (#10562) (cbee0df)
(swc_common) Fix skip condition for sourcemap, really (#10563) (14feedb)
(swc_common) Revert skip condition patch (#10564) (2a2b284)
(ts/fast-dts) Correctly emit Symbol-keyed accessors in declarations (#10508) (1298e76)
(ts/fast-dts) Ensure correct emission of template literals and symbol-keyed properties (#10530) (8dbdbef)
Features
(es/regexp) Add crates for RegExp (#10525) (4b3f924)
(swc_common) Add
Globals::clone_data(#10543) (39f30b0)(swc_common) Add
map_raw_postoFiles(#10560) (71224c3)Miscellaneous Tasks
(bindings) Use published versions of crates (#10513) (f65f028)
(ecosystem-ci) Exclude
ts-node(2b284e1)Performance
(es/minifier) Merge
PropertyCollectorinto usage analyzer (#10514) (505bf54)(es/minifier) Remove needless clone (#10523) (1c02ef6)
(es/parser) Reduce comparison while reading logical (#10526) (2bc551c)
(es/renamer) Merge analyze/collect (#10509) (7b47f66)
(swc_common) Remove
char_indicescalls (#10541) (51507bc)Refactor
(es/codegen) Migrate to
ryu-jsfor numeric literal codegen (#10503) (4bc4244)(es/lexer) Cleanup code for reading tokens (#10533) (a72092c)
(es/lexer) Share
skip_block_comment(#10549) (b101a87)(es/parser) Share code for parsing strings (#10522) (931a2d6)
(es/parser) Cleanup (#10559) (963ac9e)
(ts/fast-dts) Derive computed flags from source code (#10510) (a2d5664)
v1.11.29Compare Source
Bug Fixes
(@swc/types) Add
transform.nativeClassProperties(#10418) (f3af44c)(@swc/types) Add
resolveFullytoBaseModuleConfig(#10426) (164cbaa)(ci) Remove wasmer override (425eeb9)
(es/compat) Properly handle rest assignment in for-in/of head (#10489) (b9c0446)
(es/jest) Hoisting vars with names starting with mock (#10410) (a29eb29)
(es/jest) Revert #10410 (#10452) (bc756f8)
(es/minifier) Properly handle object shorthand syntax during compression (#10467) (bae4940)
(es/module) Handle
__proto__export name (#10420) (1b94c7a)(es/optimization) Support decimal numbers in
jsonify(#10424) (affdec2)(es/react-compiler) Mark function components declared as a var interesting (#10437) (5eac076)
(es/renamer) Fix (broken) identifier preserving API (#10474) (06c64cf)
(ts/fast-dts) Emit
readonlyfor Object getter prop (#10492) (6c03e20)(ts/fast-dts) Align object getter/setter emit behavior with TypeScript (#10502) (78c754e)
Features
(common) Allow using
build_sourcemapwith multipleSourceMap(#10438) (2a07c8a)(common) Add
ignoreListsupport for sourcemap (#10442) (6750459)(config) Allow using glob in some places (#10445) (f7a6359)
(config) Use
globsetinstead (#10446) (7bbaef8)(es/module) Add support for stripping "node:" prefix in imports and exports (#10461) (ae2ff62)
(es/react-compiler) Initialize support crate (#10422) (1e88e6b)
Initialize
@swc/react-compiler(#10475) (883b24c)Miscellaneous Tasks
Performance
(common) Accept owned instance of
sourcemap::SourceMap(#10463) (6ee439a)(es/minifier) Use fxhash for DCE (#10440) (c0ddd96)
(es/minifier) Remove needless
collect_declscall (#10450) (8e4b6ce)(es/minifier) Clear graph eagerly in DCE (#10455) (31e21d7)
(es/minifier) Perform full analysis only once for DCE (#10454) (61baf84)
(es/minifier) Use
bitflagsfor var info (#10459) (36f8385)(es/optimization) Rely on
resolverfrominline_globals(#10449) (1978809)(es/renamer) Merge Id/Def collector (#10487) (73377f0)
(es/utils) Make
IdentUsageFinderparallel (#10444) (d074bca)(es/utils) Stop visiting once found in
EvalFinder(#10483) (3402270)Refactor
(common) Remove useless
&mut(#10405) (edbeb49)(common) Remove unused methods (#10469) (b77311a)
(ecma/transform) Cleanup rename analyzer (#10500) (de51be1)
(es) Remove unused code (#10460) (d344133)
(es) Deduplicate
EvalFinder(#10472) (9f104af)(es/minifier) Remove unused file (#10465) (7d49097)
(es/minifier) Merge label/private name renamer (#10480) (5add84d)
(es/parser) Split parser into also-lex/parse-only (#10399) (26289ab)
(es/parser) Parse shebang and cleanup (#10481) (619873a)
(es/parser) Cleanup usage of
is!andbump!(#10490) (b695b68)(es/renamer) Inline
get_unresolved(#10493) (0f5d9c1)(es/transforms) Unify
preset_envandes_versiontransform (#10451) (6546c27)Build
(plugin) Update
wasmertov6.0.0(#10439) (b9eff3c)Update
rustctonightly-2025-05-06(#10443) (a7cbde7)v1.11.24Compare Source
v1.11.22Compare Source
Bug Fixes
(es/parser) Parse
export default from;withexportDefaultFrom: trueoption (#10373) (a270cb0)(es/proposal) Fix exported class for
explicit-resource-management(#10393) (6b5dbc6)(swc_core) Fix downstream doc builds (#10401) (df511ba)
Upgrade browserslist-rs version (#10389) (f802892)
Features
(bindings/core) Enhance existing parse function to accept both string and buffer types(#10371) (c9a2afc)
(css/prefixer) Fix default implementation (#10351) (34f4e41)
Miscellaneous Tasks
(bindings/node) Add
README.md(#10402) (a0e89f0)(es/parser) Remove useless check (#10386) (d1770ac)
(es/utils) Mark Symbol members as literal (#10400) (3935b60)
Performance
(common) Use
nextinstead ofnth(#10403) (12c2807)(es/minifier) Use bigflags to reduce context size of analyzer (#10380) (773d19c)
(es/minifier) Use
bitflagsto reduce context size ofInfectionCollector(#10387) (126d432)(es/minifier) Use
bitflagsto reduce compress context size (#10381) (99495bd)(es/parser) Move
found_module_itemtoParser(#10388) (fd52c5c)Refactor
(es/compat) Simplify
async_to_generator(#10341) (e9eeba1)(es/lexer) Split lexer (#10377) (3ef2bd1)
Testing
v1.11.21Compare Source
Bug Fixes
(es/helpers) Sync tslib
_ts_generatorimplementation (#10366) (d3fb992)(es/proposal) Fix scope of declarations for
explicit-resource-management(#10362) (eb7f7e9)(ts/fast-strip) Increase Wasm stack size (#10359) (6d444a5)
Miscellaneous Tasks
Performance
(es/parser) Reduce string comparison (#10355) (21789c4)
(es/parser) Add initial capacitity for some vectors (#10361) (7b7b50e)
(es/parser) Reduce clone of token contexts (#10364) (3ab47b2)
(es/parser) Use
bitflagsto reduce parser context size (#10367) (a2d3596)(es/parser) Replace byte arguments with generics (#10370) (68f7667)
(es/parser) Use
arrayvecand unsafepushto optimize escaped string parsing (#10369) (e12ae1c)v1.11.20Compare Source
Bug Fixes
(error_reporters) Removing unused code to fix clippy check (#10338) (5970f93)
(es/minifier) Preserve block with block scoped declaration (#10335) (a4ac3b7)
(es/parser) Allow abstract method named
accessor(#10327) (3f71776)(es/preset-env) Consider
browserslistconfig ifenv.targetis not configured (#8921) (a2dc372)(es/resolver) Handle using declarations (#10354) (dad815c)
fix(es/compat): Remove one promise tick in yield* (tc39/ecma262#2819) (#10317)
Related issue:
Features
(errors) Integrate
miettefor enhanced diagnostic reporting (#10241) (156c3b1)(es/codegen) Support
sourceMap.urloption ofterser(#10346) (566bc7c)(plugin/runner) Support
pluginEnvVars(#10318) (795fedc)Miscellaneous Tasks
(es/helpers) Update peer dependency version for
@swc/helpersto>=0.5.17(#10321) (ddbf3e1)(ide) Disable RA diagnostics (#10324) (fcf280f)
Performance
(es/ast) Reduce redundant string comparison for
Atoms (#10323) (3ce9d81)(es/jsx) Cache FileName for JSX pass (#9951) (#10322) (9852940)
(es/parser) Remove redundant
is_asciicalls (#10334) (e66b4d6)(es/parser) Remove ascii check for no-ascii (#10350) (4279b96)
Testing
20in exec tests (#10348) (eee73ce)v1.11.18Compare Source
Bug Fixes
(errors) Disable wrapping of text lines (#10314) (f6840ea)
(es/codegen) Ensure proper Unicode escape handling for ES5 and below #10028 (#10309) (7f76fa3)
(node) Fix
worker_threadsissue on glibc platform (#10306) (1d1ff9e)Features
(es/minifier) Optimize number to int (#10294) (6dcfa70)
(es/minifier) Remove useless to number (#10308) (898f170)
(ts/isolated-dts) Distinguish js value and ts type (#10316) (c480604)
Refactor
(es/codegen) Split
lib.rsinto multiple files (#10304) (5a07a5d)(es/codegen) Refactor macro to inverse order (#10297) (78f907f)
Testing
v1.11.16Compare Source
Miscellaneous Tasks
v1.11.15Compare Source
Bug Fixes
(bindings/node) Fix build on platforms without plugin (#10301) (3faae55)
(es/analysis) Support comments (#10299) (2919d16)
Features
(es) Add analysis API and refactor output API (#10288) (a53c60d)
(ts/fast-strip) Improve error message format (#10298) (29c4afb)
Miscellaneous Tasks
v1.11.13Compare Source
v1.11.12Compare Source
v1.11.11Compare Source
v1.11.10Compare Source
v1.11.9Compare Source
v1.11.8Compare Source
v1.11.7Compare Source
v1.11.6Compare Source
v1.11.5Compare Source
v1.11.4Compare Source
v1.11.1Compare Source
Bug Fixes
(errors) Disable wrapping of text lines (#10314) (f6840ea)
(es/codegen) Ensure proper Unicode escape handling for ES5 and below #10028 (#10309) (7f76fa3)
(node) Fix
worker_threadsissue on glibc platform (#10306) (1d1ff9e)Features
(es/minifier) Optimize number to int (#10294) (6dcfa70)
(es/minifier) Remove useless to number (#10308) (898f170)
(ts/isolated-dts) Distinguish js value and ts type (#10316) (c480604)
Refactor
(es/codegen) Split
lib.rsinto multiple files (#10304) (5a07a5d)(es/codegen) Refactor macro to inverse order (#10297) (78f907f)
Testing
Configuration
📅 Schedule: Branch creation - "before 6am on monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.
39ed26610aa73c67c439a73c67c43922be8569be22be8569be02c0463da302c0463da39dc539f8cd