From 5f9344b75f9f50b4a74ec859f9deadf74c0fb92c Mon Sep 17 00:00:00 2001 From: GiveMe-A-Name Date: Wed, 8 Jan 2025 14:08:29 +0800 Subject: [PATCH] feat(core): bump swc_core to 10.0.1 --- Cargo.lock | 165 +++++++++++++++++++++++++++++------------------------ Cargo.toml | 10 ++-- 2 files changed, 97 insertions(+), 78 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 221e01ede45..acdde0eb5eb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -573,6 +573,12 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" +[[package]] +name = "chili" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e72f874459a658df39dd1d99f7f62a9c421792efc26eaae8d497ae5d2e816a62" + [[package]] name = "chrono" version = "0.4.39" @@ -1897,9 +1903,9 @@ dependencies = [ [[package]] name = "hstr" -version = "0.2.12" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dae404c0c5d4e95d4858876ab02eecd6a196bb8caa42050dfa809938833fc412" +checksum = "63d6824358c0fd9a68bb23999ed2ef76c84f79408a26ef7ae53d5f370c94ad36" dependencies = [ "hashbrown 0.14.5", "new_debug_unreachable", @@ -5560,9 +5566,9 @@ checksum = "b7401a30af6cb5818bb64852270bb722533397edcfc7344954a38f420819ece2" [[package]] name = "swc" -version = "9.0.1" +version = "10.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e84d3cfacddf7ecfcc5929a4656966da4ba65870321566c56503993c45cc059b" +checksum = "a8ade39563c1ad642548eb5f43cc1fab61053c382490423fc653cd87e1e60b06" dependencies = [ "anyhow", "base64 0.21.7", @@ -5626,9 +5632,9 @@ dependencies = [ [[package]] name = "swc_atoms" -version = "3.0.0" +version = "3.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "151a6feb82b989a087433baca7f6a6eb4fcf83f828c479eecd039c9312d60e10" +checksum = "a640bf2e4430a149c87b5eaf377477ce8615ca7cb808054dd20e79e42da5d6ba" dependencies = [ "bytecheck 0.8.0", "hstr", @@ -5688,9 +5694,9 @@ dependencies = [ [[package]] name = "swc_compiler_base" -version = "7.0.0" +version = "8.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91e6b81e3504db35cb4931ac448cc88a80e89d04de00412b74102b9dc86ba131" +checksum = "bac05e842e05893583b4152485bf8d001540d3825e3eb33bad690776f60d0ba7" dependencies = [ "anyhow", "base64 0.21.7", @@ -5741,9 +5747,9 @@ dependencies = [ [[package]] name = "swc_core" -version = "9.0.2" +version = "10.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "256edfa73cbfe2a560e74b63f9bd8a674bed913d8934dd0d78fbea92c15e8433" +checksum = "859def2fe912fe5db391cae719574bfe7e7f03ab88ae2ed3c850e16852257353" dependencies = [ "swc", "swc_allocator", @@ -5769,9 +5775,9 @@ dependencies = [ [[package]] name = "swc_ecma_ast" -version = "5.0.0" +version = "5.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94cf86f17358b93fcfe2876a9f0f7a7ebbff94cd6eaab4c809c7a0da1f4b892e" +checksum = "82f448db2d1c52ffd2bd3788d89cafd8b5a75b97f0dc8aae00874dda2647f6b6" dependencies = [ "bitflags 2.6.0", "bytecheck 0.8.0", @@ -5791,9 +5797,9 @@ dependencies = [ [[package]] name = "swc_ecma_codegen" -version = "5.0.0" +version = "5.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb17e77270860f2a975c546c4609e9fa7ae8dbcf85260497e31af19890645800" +checksum = "7f93692de35a77d920ce8d96a46217735e5f86bf42f76cc8f1a60628c347c4c8" dependencies = [ "memchr", "num-bigint", @@ -5823,9 +5829,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_bugfixes" -version = "6.0.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "448864548ea7c1866d140e36829196e5d7b35a55b4a1563945a8ce39322b8e7a" +checksum = "748636a889a7bf082ca4547fdb89176cdac40418427b47421a48db47b7443492" dependencies = [ "swc_atoms", "swc_common", @@ -5840,9 +5846,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_common" -version = "6.0.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a04016559d293d2ac507d931e46ecfd92eb5e96ccf5452bc81c18c47806b858" +checksum = "373e66d36d26f1b202955c7062a902f54ca5f69918253d98efdc7a3e6ecad45a" dependencies = [ "swc_common", "swc_ecma_ast", @@ -5853,9 +5859,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2015" -version = "6.0.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aceb1b432819541aa1dd129b4a226f41cf881a53040efc711a625ee5f23e9afd" +checksum = "47bf8a8f3348a810b865622fdc5f9198e432d0ab49c074f861229441dfcf3a22" dependencies = [ "arrayvec", "indexmap 2.7.0", @@ -5880,9 +5886,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2016" -version = "6.0.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fdc0d69f6541b781e4e95c1954e8ab916095b7369cdf69e14bf83be17b2dd943" +checksum = "0ddd488f29abb9faf192f15d907a0fdba9b01d502ea1eab1afe25e484ec6e4c9" dependencies = [ "swc_atoms", "swc_common", @@ -5897,9 +5903,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2017" -version = "6.0.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ac80866f541899e4c59a954c0a37a4fd21ea1455dc44400c088b72299c1d2cc" +checksum = "874ebcd6417b029ee719fbab9cb3c8b16f7d922a6bb45f07913292c101fa85d9" dependencies = [ "serde", "swc_atoms", @@ -5915,9 +5921,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2018" -version = "6.0.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cdc28efd763ad5fea7acc2f1fc73ade5b334201369b88aff472053b64b304a76" +checksum = "2f7a742b37dd913674db4e53e0d645d1ba606d413432adf17afd9575ffc69790" dependencies = [ "serde", "swc_atoms", @@ -5934,9 +5940,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2019" -version = "6.0.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2439138f8b8c7cf1401395e0bbb6d3e35d20277268f8e8aa41fa64841af992e" +checksum = "d2e114e2ad0248529d9f211a6c8f411773b1468d9b17180829999f71ea5d853d" dependencies = [ "swc_atoms", "swc_common", @@ -5950,9 +5956,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2020" -version = "7.0.0" +version = "8.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7a37218dcb1ad82943b9ebfbfbc283ba1ba542ed3c60aacea0b3a06e7f38809" +checksum = "cb6cc14fac0ac8728259b913a6bd27d6e6a8b589004f94bbac29d0e1d51ab73e" dependencies = [ "serde", "swc_atoms", @@ -5968,9 +5974,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2021" -version = "6.0.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c4c9d40dcf5094e863ceac27c92053ef970991e46f190ddad678b8e3ca3ecde" +checksum = "c332af5dbcda1f6378e3248c542fbe54faff7e5a45d91eb11896e6e89232529c" dependencies = [ "swc_atoms", "swc_common", @@ -5984,9 +5990,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2022" -version = "7.0.0" +version = "8.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93edab9540513a7622addbf2494fa61f487daf98d2c1ed819958b2a3d271835e" +checksum = "d8cac23712e95dc29f9cdd249b68c6b6c2da44dd7a6415bb201ee9a4c57cf41d" dependencies = [ "swc_atoms", "swc_common", @@ -6003,9 +6009,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es3" -version = "6.0.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f158dcb284c676bfb425c42adf307a3259d71c999c0970370ed3e09886d83c9" +checksum = "e08d1848b9677ca3bda15d2f890aee0c7a096010d2dd27b6aac8fbeb4556e4a9" dependencies = [ "swc_common", "swc_ecma_ast", @@ -6018,9 +6024,9 @@ dependencies = [ [[package]] name = "swc_ecma_ext_transforms" -version = "6.0.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3cecd84290edc5c27d0cb6df79fcd82fe500772cd2526642955227e50359675" +checksum = "5ebd8afc6cdb0b421cb52345991f7e20d254b459191197237b6a8d3002e9a42e" dependencies = [ "phf", "swc_atoms", @@ -6032,14 +6038,13 @@ dependencies = [ [[package]] name = "swc_ecma_lints" -version = "6.0.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "808120ab5d77e0c9484f4e1b248d5f9dfecb103160340eab5710f068d69964b1" +checksum = "ee3096a92157b745be83fb2d606ee64905ec1f05789e6973b2cf890450b358df" dependencies = [ "auto_impl", "dashmap 5.5.3", "parking_lot", - "rayon", "regex", "serde", "swc_atoms", @@ -6048,6 +6053,7 @@ dependencies = [ "swc_ecma_ast", "swc_ecma_utils", "swc_ecma_visit", + "swc_parallel", ] [[package]] @@ -6074,9 +6080,9 @@ dependencies = [ [[package]] name = "swc_ecma_minifier" -version = "6.0.1" +version = "7.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5368ebcf923fb8e94c94f5fe0caa230c7920b72e5d79ed4cc32592c03213b43d" +checksum = "164291b068cca947462d87ede1baf276f69da137db1a0c66059a8aed81b785b2" dependencies = [ "arrayvec", "indexmap 2.7.0", @@ -6104,6 +6110,7 @@ dependencies = [ "swc_ecma_usage_analyzer", "swc_ecma_utils", "swc_ecma_visit", + "swc_parallel", "swc_timer", "tracing", ] @@ -6132,9 +6139,9 @@ dependencies = [ [[package]] name = "swc_ecma_preset_env" -version = "8.0.0" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39ac4bd1620798c38f767417f9b364b87fd2505a9e748d6b1d7549f155a0aa96" +checksum = "f61f42ee34bce3d543285abb4731ba033d18258a89cf119268ed5ffd8e74e89f" dependencies = [ "anyhow", "dashmap 5.5.3", @@ -6174,9 +6181,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms" -version = "8.0.0" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dccedb5a1e52795e132615a3ca01e2adb8fc9214ee75c258f8a3124a9b42c47e" +checksum = "06ee0a6cd6af77166b5c9e295c72140768abc408477ea98006eb60daf8d568aa" dependencies = [ "swc_atoms", "swc_common", @@ -6194,9 +6201,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_base" -version = "6.0.2" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f31557485025a2fd1f833d63601c53010857e45633f44bcc87510f3578bde0c5" +checksum = "09fdc36d220bcd51f70b1d78bdd8c1e1a172b4e594c385bdd9614b84a7c0e112" dependencies = [ "better_scoped_tls", "bitflags 2.6.0", @@ -6213,14 +6220,15 @@ dependencies = [ "swc_ecma_parser", "swc_ecma_utils", "swc_ecma_visit", + "swc_parallel", "tracing", ] [[package]] name = "swc_ecma_transforms_classes" -version = "6.0.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3cd3a9eacaf2aa2ec7a8139e3c3883ddf4f8e948a08ee378725a4ad658beb3d9" +checksum = "331bfc8add971c9ed71a2febfdd133d9f62cc36ed8f329f3d9602315a22fbeb5" dependencies = [ "swc_atoms", "swc_common", @@ -6232,9 +6240,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_compat" -version = "7.0.0" +version = "8.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e245e2cb96ff093c0c3170dbe4c063a0b937ce4527d37f52f467529d4977634b" +checksum = "d537411c909aca11ccf6e5ff5cdd4eb246958b4b6eb9ae16fb5ffd6d93291f3a" dependencies = [ "arrayvec", "indexmap 2.7.0", @@ -6280,9 +6288,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_module" -version = "7.0.0" +version = "8.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5480053dfa9b7ae34c6d5cdaa33bee3d7dfd33a259cabe9122806f36625912c1" +checksum = "ae1f1172c488c9fd224fa31b0c620cb37cfc124292d091cbae0fb4d2f403e415" dependencies = [ "Inflector", "anyhow", @@ -6307,9 +6315,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_optimization" -version = "6.0.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "350a4965abfada7d5b23b3140896652acc11e110ac042a160bcea5bf8b08d367" +checksum = "e8872f4c8893e507beb5f379d83d001b050323499367e410702ca8e79e081226" dependencies = [ "dashmap 5.5.3", "indexmap 2.7.0", @@ -6332,9 +6340,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_proposal" -version = "6.0.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cba55188e66696c43333d19492f69a6f4a7785f9486ebc1b3cf7c5f743927505" +checksum = "9e323bdc2a76b7ecaee380913f6509d8f175fbfa1a25c3bda74f4a2dd2e5976d" dependencies = [ "either", "rustc-hash 1.1.0", @@ -6352,9 +6360,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_react" -version = "6.0.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cabf9375cfb71fc0e3d98e07e6fca39a18daa23d4878d8d2daa4c2b6c07b379" +checksum = "aebcf8a522005fc12c79d34e3643b9ac143118a395ff7d48070751a1aafc2c3d" dependencies = [ "base64 0.21.7", "dashmap 5.5.3", @@ -6377,9 +6385,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_typescript" -version = "6.0.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77346c37397fb238f991d6dccc027881caca539628e9a6c629299c7b94bdb08a" +checksum = "0ed09e052cf5392e3883e4fa6727346983650cd81b24dbba68e5e9dd129d75bb" dependencies = [ "ryu-js", "serde", @@ -6394,9 +6402,9 @@ dependencies = [ [[package]] name = "swc_ecma_usage_analyzer" -version = "6.0.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f58c91cfddea5723e22dbb8b1738642714d0acd1463d26d3bc7518b83468414" +checksum = "15eb86aaa82d7ec4c1a6c3a8a824b1fdbbaace73c3ed81035a1fbbac49f8e0bd" dependencies = [ "indexmap 2.7.0", "rustc-hash 1.1.0", @@ -6411,9 +6419,9 @@ dependencies = [ [[package]] name = "swc_ecma_utils" -version = "6.0.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "527fad9bdb16883782d55291fd3330925b3572f512ef89b3d92a29e2f713fe4f" +checksum = "1c9d22b4883dc6d6c21a8216bbf5aacedd7f104230b1557367ae126a2ec3a2b5" dependencies = [ "indexmap 2.7.0", "num_cpus", @@ -6425,6 +6433,7 @@ dependencies = [ "swc_common", "swc_ecma_ast", "swc_ecma_visit", + "swc_parallel", "tracing", "unicode-id", ] @@ -6482,9 +6491,9 @@ dependencies = [ [[package]] name = "swc_html" -version = "6.0.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a10f59e28db34858e76b91c93e87de74b026489d30707056f392ea09743a540" +checksum = "1b8c91d778f7b8db5514f7c7f285cd4f238382a42099e1316b9d66c26f2d3e8f" dependencies = [ "swc_html_ast", "swc_html_codegen", @@ -6534,9 +6543,9 @@ dependencies = [ [[package]] name = "swc_html_minifier" -version = "6.0.0" +version = "7.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3579afb6380e18ca076d9cb145deeae4b5f526573e49b3db74aa2f902b0c33e7" +checksum = "bfe2543bf1d546771e5cc81a6175a09a3e830dc8544f2cb74b8777f7b84be552" dependencies = [ "once_cell", "serde", @@ -6617,6 +6626,16 @@ dependencies = [ "swc_common", ] +[[package]] +name = "swc_parallel" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7cde1a0f344924be62d01de0c8a98e840feae271b77dc8c1d9d2e340687225c" +dependencies = [ + "chili", + "once_cell", +] + [[package]] name = "swc_plugin_proxy" version = "5.0.0" @@ -6694,9 +6713,9 @@ dependencies = [ [[package]] name = "swc_typescript" -version = "5.0.0" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe778782270111e7152a99af340bf763f12cdc60df775cd0ce51eaa74dcc0249" +checksum = "020251a0fb56ac2e439fdf3eccadc2df4a2e889e4d6d77e3650c967d085a95fb" dependencies = [ "petgraph", "rustc-hash 1.1.0", diff --git a/Cargo.toml b/Cargo.toml index 9527dd12a1f..5d9ff5f7de3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -93,13 +93,13 @@ inventory = { version = "=0.1" } rkyv = { version = "=0.8.8" } # Must be pinned with the same swc versions -swc = { version = "=9.0.1" } +swc = { version = "=10.0.0" } swc_config = { version = "=1.0.0" } -swc_core = { version = "=9.0.2", default-features = false } -swc_ecma_minifier = { version = "=6.0.1", default-features = false } +swc_core = { version = "=10.0.1", default-features = false } +swc_ecma_minifier = { version = "=7.0.1", default-features = false } swc_error_reporters = { version = "=6.0.0" } -swc_html = { version = "=6.0.0" } -swc_html_minifier = { version = "=6.0.0", default-features = false } +swc_html = { version = "=7.0.0" } +swc_html_minifier = { version = "=7.0.0", default-features = false } swc_node_comments = { version = "=5.0.0" }