From d2a8d4fa2d7f2db8111c9925f5316d1227316069 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Sun, 20 Aug 2023 19:55:41 +0900 Subject: [PATCH] Update `swc_core` to `v0.79.69` (#54190) ### What? Update swc crates to https://github.com/swc-project/swc/commit/becea47a2dba1000791fecb13f93bebcdb0a5cf7 ### Why? x-ref: https://vercel.slack.com/archives/C02HY34AKME/p1692293544442219 ### How? Closes WEB-1410 --- Cargo.lock | 190 +++++++++++++++++++++++++---------------------------- Cargo.toml | 4 +- 2 files changed, 91 insertions(+), 103 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 088b829e5c413..6ce45677af462 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -539,9 +539,9 @@ dependencies = [ [[package]] name = "binding_macros" -version = "0.53.56" +version = "0.53.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d16516c112c97b4f00605b3668a4a59be3c7b530af894eaa20f2213a5753869b" +checksum = "4636d8aba8f471c2f95f208bdb5a5dea4b3c476d2980dd711f52e5a0a0b24341" dependencies = [ "anyhow", "console_error_panic_hook", @@ -5623,11 +5623,10 @@ dependencies = [ [[package]] name = "swc" -version = "0.264.56" +version = "0.264.63" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3640a381deb436cd4663b42cbfb4acacbdbbad243372b18004c784d96f8fc1d9" +checksum = "1c2a586ee2ff113b7d564acf26b13b4f333073465b218010451affba51c948c7" dependencies = [ - "ahash 0.8.3", "anyhow", "base64 0.13.1", "dashmap", @@ -5691,11 +5690,10 @@ dependencies = [ [[package]] name = "swc_bundler" -version = "0.217.47" +version = "0.217.54" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d75d8e72f484e658f426b883ee26e44d37f35194b633819354964a10bc99099c" +checksum = "1730d212483887c52c6697030518c2bb3416bf357da61a7b5216c0a035e64fad" dependencies = [ - "ahash 0.8.3", "anyhow", "crc", "dashmap", @@ -5738,9 +5736,9 @@ dependencies = [ [[package]] name = "swc_common" -version = "0.31.18" +version = "0.31.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e30cd01afa791b15263fcfe8f77ecbbd020ddef659f0f58d3c7b794ad65c1738" +checksum = "de5823ef063f116ad281cde9700f5be6dfb182e543ce3f62c42cee1c03ffbc6b" dependencies = [ "ahash 0.8.3", "anyhow", @@ -5797,9 +5795,9 @@ dependencies = [ [[package]] name = "swc_core" -version = "0.79.59" +version = "0.79.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "478993899f8721fb3d4ea171baf06ac934fbfadc61e6dbc6c66d3f62b01ce8d2" +checksum = "95ea29439951e901830abe7130593c1ae24cde7b3853baccff08d8e55d0b2002" dependencies = [ "binding_macros", "swc", @@ -5841,9 +5839,9 @@ dependencies = [ [[package]] name = "swc_css_ast" -version = "0.137.18" +version = "0.137.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec2e1600c87a641d34dc6b344f8353fa20ffedd78dc5680e1546889579cfa2c1" +checksum = "3c2a453b258363999f37e77ad58f6e8c6158d5f15bd7239d2a9d95e018020037" dependencies = [ "is-macro", "serde", @@ -5854,9 +5852,9 @@ dependencies = [ [[package]] name = "swc_css_codegen" -version = "0.147.21" +version = "0.147.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00994c102c6b34b9ca5c92fd4e28ab8acabc4c8821872575e07ddc8be1a3defb" +checksum = "8aeab66ab91e3315f080cf8d88ad9e78ba603e856f566939c8ddfff80950cf84" dependencies = [ "auto_impl", "bitflags 2.3.3", @@ -5884,9 +5882,9 @@ dependencies = [ [[package]] name = "swc_css_compat" -version = "0.23.21" +version = "0.23.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13cc75a6f80f1e8992faf160a7af5a2dfcb0fc0b4b8c8db003919756f39e28ea" +checksum = "c25d7c3063ce3e1c5968482c15fafb1485bf4c1abab068f13e4042465c026977" dependencies = [ "bitflags 2.3.3", "once_cell", @@ -5901,9 +5899,9 @@ dependencies = [ [[package]] name = "swc_css_modules" -version = "0.25.24" +version = "0.25.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abb1f7a6cd156b8d4c75a9d88dd5b072ea5a58a8e572d58524fcce0eb4dbb99c" +checksum = "c3680e550fa17a4f51e82f33e44485a95637867fb5f95033a138ae8d8d0e20a3" dependencies = [ "rustc-hash", "serde", @@ -5917,9 +5915,9 @@ dependencies = [ [[package]] name = "swc_css_parser" -version = "0.146.21" +version = "0.146.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5179657ebe3bae23c626f2a176bc2d5e8253eb61ddefee471d7a94640f330f7" +checksum = "9b0e2040634316eaf0a8c383c31eb3fb2e72ad0209aa3d1c09db424e29cef838" dependencies = [ "lexical", "serde", @@ -5930,9 +5928,9 @@ dependencies = [ [[package]] name = "swc_css_prefixer" -version = "0.149.23" +version = "0.149.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79e204c2947181ac66d32024ba33f35fe2864559274ccf789aa0c6d01d601097" +checksum = "246bd085111255b2deb090f04faeb3a1d3b9d5656b58d2d651019121f651c7b4" dependencies = [ "once_cell", "preset_env_base", @@ -5947,9 +5945,9 @@ dependencies = [ [[package]] name = "swc_css_utils" -version = "0.134.18" +version = "0.134.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f822c1606aff1942dd79e2e09abe7fe5f0a003ac2f1439cc0eb050705706bdf" +checksum = "fed1c92974c6544e93f1b510a6666d8c507e4bbeb2d9ca53c2827eb304336b57" dependencies = [ "once_cell", "serde", @@ -5962,9 +5960,9 @@ dependencies = [ [[package]] name = "swc_css_visit" -version = "0.136.18" +version = "0.136.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "221dce6ef17ff0408a1a40240fb8e6909240ff1ac622c235db8c59a4b7ca399e" +checksum = "a77e6528e4be03574d827a017b28b071cd3c1b63ecc0a9594d937eb372815889" dependencies = [ "serde", "swc_atoms", @@ -5975,9 +5973,9 @@ dependencies = [ [[package]] name = "swc_ecma_ast" -version = "0.107.4" +version = "0.107.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae06f8db55b8920aa5b5362216ee8319a1edb131412fe06090892bbc99cc1237" +checksum = "b7191c8c57af059b75a2aadc927a2608c3962d19e4d09ce8f9c3f03739ddf833" dependencies = [ "bitflags 2.3.3", "bytecheck", @@ -5994,9 +5992,9 @@ dependencies = [ [[package]] name = "swc_ecma_codegen" -version = "0.142.12" +version = "0.142.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "464b5760b58ae12de4859802efb3ead96a740c06a96b2bf9659367790f2374fd" +checksum = "1e4e3ee8a1f0bfaf630febbe0f6a03f2c28d66d373a9bbdb3f500f6bfb536b43" dependencies = [ "memchr", "num-bigint", @@ -6026,9 +6024,9 @@ dependencies = [ [[package]] name = "swc_ecma_ext_transforms" -version = "0.106.15" +version = "0.106.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39ab8f980ccc923b9c17ddae8080b1d962bf66e5920dcbe6d439f572f96e797b" +checksum = "4435157855883619607b99b2d357db22b215d5e8cee8ccace7580f264f328511" dependencies = [ "phf", "swc_atoms", @@ -6040,11 +6038,10 @@ dependencies = [ [[package]] name = "swc_ecma_lints" -version = "0.85.19" +version = "0.85.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd923958e5478225b810bf9e5c70abd67c3d88f164f43eb85b2b3fd2d81d9cc4" +checksum = "f9e8e9f5f74d32a90c1b6fd734f8bf65603f1033a9a8f3354611f7e813174f56" dependencies = [ - "ahash 0.8.3", "auto_impl", "dashmap", "parking_lot", @@ -6061,11 +6058,10 @@ dependencies = [ [[package]] name = "swc_ecma_loader" -version = "0.43.20" +version = "0.43.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1e8a916c6f7bc749ba37d3e594c6ac38c7d8583bebd5d42bdf2324234eec872" +checksum = "82f47bb1ab686f603da93a8b6e559d69b42369ab47d5dee6bdda38ae5902dc2a" dependencies = [ - "ahash 0.8.3", "anyhow", "dashmap", "lru", @@ -6083,11 +6079,10 @@ dependencies = [ [[package]] name = "swc_ecma_minifier" -version = "0.184.47" +version = "0.184.54" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "733d3780f23f746895960efcc78d6648b8d0d599c442fbc893c6cc12668b0b1b" +checksum = "6f0b465a78424031c883250908bc5815c0dea15c13bcafbfeb6a1fbd00053bdc" dependencies = [ - "ahash 0.8.3", "arrayvec", "indexmap 1.9.3", "num-bigint", @@ -6119,9 +6114,9 @@ dependencies = [ [[package]] name = "swc_ecma_parser" -version = "0.137.11" +version = "0.137.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1f80d1df900264b5187fcf03aa56ccf11924e428421f559e818d2639b087d09" +checksum = "29c0d554865a63bfa58cf1c433fa91d7d4adf40030fa8e4530e8065d0578166a" dependencies = [ "either", "num-bigint", @@ -6139,11 +6134,10 @@ dependencies = [ [[package]] name = "swc_ecma_preset_env" -version = "0.198.35" +version = "0.198.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e2b73b05ea9dfbbbc8231a8c16a25f9a6b73d4e2c69afb21bda5a35e1d269e4" +checksum = "87c7cfdde97447631b8ef1b29c5c813227ac7bf384dce6ed595b638c11e50150" dependencies = [ - "ahash 0.8.3", "anyhow", "dashmap", "indexmap 1.9.3", @@ -6165,9 +6159,9 @@ dependencies = [ [[package]] name = "swc_ecma_quote_macros" -version = "0.48.11" +version = "0.48.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac667a84c4a88002f9e7c06566d1f846561b27891c82b0486d068752860da155" +checksum = "eb0d3b9da49069d40ec5b421b2310e468499a4fb50294c4b76c312a316485d54" dependencies = [ "anyhow", "pmutil", @@ -6183,9 +6177,9 @@ dependencies = [ [[package]] name = "swc_ecma_testing" -version = "0.20.15" +version = "0.20.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35902aefa048253d193d7b0a4500f2bc98ed24f6607597ef967f612a2c4e45a2" +checksum = "1dca9c1d807ef714f763e17ebe1d5bc487c6ebd0f81e64ee897c2e655f250cef" dependencies = [ "anyhow", "hex", @@ -6196,9 +6190,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms" -version = "0.221.33" +version = "0.221.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2e33b7da6d3f98189b567c9b94b0626fed228fca7176a30134d12da4cabeda1" +checksum = "498af08c18e13caec88608751d90b18634c4f2098a98e1e510b0beec6728c379" dependencies = [ "swc_atoms", "swc_common", @@ -6216,9 +6210,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_base" -version = "0.130.19" +version = "0.130.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43664f6ba532c7e41b552c878ecd7d28735904f24ca64f06abf6e20380821f9c" +checksum = "d8d8ca5dd849cea79e6a9792d725f4082ad3ade7a9541fba960c42d55ae778f2" dependencies = [ "better_scoped_tls", "bitflags 2.3.3", @@ -6240,9 +6234,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_classes" -version = "0.119.19" +version = "0.119.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "587685226834c8fe16a390d06e67ee2a6d5fc798a412416482b805b75887695d" +checksum = "a09d0e350963d4fb14bf9dc31c85eb28e58a88614e779c75f49296710f9cb381" dependencies = [ "swc_atoms", "swc_common", @@ -6254,11 +6248,10 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_compat" -version = "0.156.27" +version = "0.156.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5082d4d782cb3336c6a1b7478b9db046a38863fe8084d75ccef6deda05ef2152" +checksum = "7be167db5790599e1edef7ca4005403831873fcc70199bb46d58950f282ec3f9" dependencies = [ - "ahash 0.8.3", "arrayvec", "indexmap 1.9.3", "is-macro", @@ -6294,12 +6287,11 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_module" -version = "0.173.31" +version = "0.173.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9209f82a9b171a106de5c8a372bf7a0f39e7be8208f345322d755530d8b78762" +checksum = "ce5f36a6616e14474d8137b11bfa082d9688bf27ff347cfe9d6e1080fa1c8644" dependencies = [ "Inflector", - "ahash 0.8.3", "anyhow", "bitflags 2.3.3", "indexmap 1.9.3", @@ -6322,11 +6314,10 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_optimization" -version = "0.190.33" +version = "0.190.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e0731c1ea271f436f311167c98a600a86e60e814df21bdb830d0a0ee6545962" +checksum = "6fcb2182550f13f7ade93640fccd3f12a942ab3d645822ebf7cdf6fa72e8b5d0" dependencies = [ - "ahash 0.8.3", "dashmap", "indexmap 1.9.3", "once_cell", @@ -6348,9 +6339,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_proposal" -version = "0.164.27" +version = "0.164.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f8ac16e9c0e6d23d948946f06e1ce4e323ad8d10fc92c061414e785a55ac079" +checksum = "70e1af71a161b36ad9d99cf0803714765bf7bb3ae2166704f061d8220e4417a2" dependencies = [ "either", "rustc-hash", @@ -6368,11 +6359,10 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_react" -version = "0.176.31" +version = "0.176.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99406fef0faa742319e8ca6779d1163857b4c04826bdba98840428b5627261c3" +checksum = "617f1f51e9ebd8a9e641a657ed033c063e2c922cf7c7ea91ddb25f1f43560035" dependencies = [ - "ahash 0.8.3", "base64 0.13.1", "dashmap", "indexmap 1.9.3", @@ -6394,9 +6384,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_testing" -version = "0.133.19" +version = "0.133.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0117f13ae2a39c704385429fc53bd14f535caa9311416be2a619de807d8a24c" +checksum = "b9136a4fcd0d49ddfdc19f6f761a8858b7d6446a61021426ce83c62660ef2187" dependencies = [ "ansi_term", "anyhow", @@ -6420,9 +6410,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_typescript" -version = "0.180.32" +version = "0.180.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56f835b69cef35ef88afe5cb296e911f252cf0a5b8df4abb7de09eb30acd6664" +checksum = "24f5517491b43112f1560e1acd9fbf28ababc0e551ea395f05efaeee7dff1ece" dependencies = [ "serde", "swc_atoms", @@ -6436,11 +6426,10 @@ dependencies = [ [[package]] name = "swc_ecma_usage_analyzer" -version = "0.16.19" +version = "0.16.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1148f22869265abb7d492aa11829b7d240170b2c0d387db1feba72d8e61e5128" +checksum = "e04b6ad4c6de9b306553334575083b66d05916fa251cd0fdc489328ccb25ac4d" dependencies = [ - "ahash 0.8.3", "indexmap 1.9.3", "rustc-hash", "swc_atoms", @@ -6454,9 +6443,9 @@ dependencies = [ [[package]] name = "swc_ecma_utils" -version = "0.120.15" +version = "0.120.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43549d81f9dda15afce48d81a0b2c3191fe462da00560abdfa72e004e261f903" +checksum = "2cb60e20e1eb9e9f7c88d99ac8659fd0561d70abd27853f550fbd907a448c878" dependencies = [ "indexmap 1.9.3", "num_cpus", @@ -6473,9 +6462,9 @@ dependencies = [ [[package]] name = "swc_ecma_visit" -version = "0.93.4" +version = "0.93.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fb77e49a630356fe2ba77db102294fc0bbe1050e85c962f5b4aa3de06c4d51a" +checksum = "bb23a48abd9f5731b6275dbf4ea89f6e03dc60b7c8e3e1e383bb4a6c39fd7e25" dependencies = [ "num-bigint", "serde", @@ -6518,9 +6507,9 @@ dependencies = [ [[package]] name = "swc_error_reporters" -version = "0.15.18" +version = "0.15.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b42b190cdaf440a894db49d50bc497fcc14fdf0f013fdaf7be2e69874cd1b5d0" +checksum = "5333927fababb2955e42e283afde9f3a733e7e07f03fc46f9aaea7bb94a628e9" dependencies = [ "anyhow", "miette", @@ -6531,9 +6520,9 @@ dependencies = [ [[package]] name = "swc_fast_graph" -version = "0.19.18" +version = "0.19.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11cc84ef676e0901c5a7a01394b98f5219beee0e22f746fbe2c90ee998ceda15" +checksum = "b07b6c9a4d1659b7e6826fb384b3994b47c5ac35cb76a98a15ca483dd0a5d7b7" dependencies = [ "indexmap 1.9.3", "petgraph", @@ -6543,13 +6532,13 @@ dependencies = [ [[package]] name = "swc_graph_analyzer" -version = "0.20.21" +version = "0.20.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "798e25d397d7af26ba28ddc7f266955a4364a84ca8b1ce8a601d8e3c9c7dfbe9" +checksum = "2126bce41c5c755f649bc5fc74fbd5e1ea01306acbf26b49f8aab2bd53f8025f" dependencies = [ - "ahash 0.8.3", "auto_impl", "petgraph", + "swc_common", "swc_fast_graph", "tracing", ] @@ -6568,11 +6557,10 @@ dependencies = [ [[package]] name = "swc_node_comments" -version = "0.18.18" +version = "0.18.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3621bf1b1ace854fbd88e6a025450acfce1e059880c21bd22db463485abd4911" +checksum = "e6e782ba4f7cf9b6d3552cfa95adb5311b5f6b3f94c1e33a323343990c2d86af" dependencies = [ - "ahash 0.8.3", "dashmap", "swc_atoms", "swc_common", @@ -6594,9 +6582,9 @@ dependencies = [ [[package]] name = "swc_plugin_proxy" -version = "0.36.4" +version = "0.36.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "995382d2e4a75e813e6c023d94cc70ef36e1cfe8a8dc3330c295550a439b52e4" +checksum = "046236165b2cd5e09ef071e998fe2773bd679fbff667f37631c3f53a530313ba" dependencies = [ "better_scoped_tls", "rkyv", @@ -6608,9 +6596,9 @@ dependencies = [ [[package]] name = "swc_plugin_runner" -version = "0.98.13" +version = "0.98.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a00b66dfba569b1b7b7124e2efbac723dcf82a98997985d3aa54117ff543f2cb" +checksum = "67a6eed4a31d6f11698321a7f48573fb5f31a1de5dc54b720c5ff00607e72274" dependencies = [ "anyhow", "enumset", @@ -6647,9 +6635,9 @@ dependencies = [ [[package]] name = "swc_timer" -version = "0.19.21" +version = "0.19.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4560c944a65d817fba2fbfd39a914d04b446da9bb1f1c5d74b42a28259d733df" +checksum = "35779bbbe7acd3911020257a2d76127082494ed55c196a7eeeec679d05da5f81" dependencies = [ "tracing", ] @@ -6803,9 +6791,9 @@ dependencies = [ [[package]] name = "testing" -version = "0.33.21" +version = "0.33.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df186694fbd668f4c7c8071c5e442b0c8781c5282202724ac44dad6092f74802" +checksum = "dc33e50baf35e6fd2f5423d8a3c8c6ba45732182adab09bfce514f9bd4609ac4" dependencies = [ "ansi_term", "cargo_metadata", diff --git a/Cargo.toml b/Cargo.toml index de738097e8f4a..c81b53297767d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,8 +42,8 @@ next-transform-strip-page-exports = { path = "packages/next-swc/crates/next-tran # SWC crates # Keep consistent with preset_env_base through swc_core -swc_core = { version = "0.79.59" } -testing = { version = "0.33.21" } +swc_core = { version = "0.79.69" } +testing = { version = "0.33.24" } # Turbo crates turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230816.1" }