diff --git a/Cargo.lock b/Cargo.lock index 1587fbdefb19a..a3e79a4e9ff7d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -715,9 +715,9 @@ dependencies = [ [[package]] name = "binding_macros" -version = "0.66.0" +version = "0.67.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee3f426fc63b42e1c6e6e0974d3fa3fe08513c5b441d80fd24d0c0a54b661dfa" +checksum = "4cb67bba3eb7ac48982404ebec9fabdb26b8263fcabe23b99d8c0e6f5b97cc81" dependencies = [ "anyhow", "console_error_panic_hook", @@ -3496,7 +3496,7 @@ dependencies = [ "httpdate", "itoa", "pin-project-lite", - "socket2 0.4.9", + "socket2 0.5.4", "tokio", "tower-service", "tracing", @@ -4479,9 +4479,9 @@ dependencies = [ [[package]] name = "mdxjs" -version = "0.2.2" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5860860bfc09972a5d99bfb866dde39485fe397210f8a9ccf68a6c6740d687b" +checksum = "08b14a30b8511133accf39b86da3d07ebbead12aa98a220accf43a99300d9620" dependencies = [ "markdown", "serde", @@ -4696,9 +4696,9 @@ dependencies = [ [[package]] name = "modularize_imports" -version = "0.68.14" +version = "0.68.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "440dfda6d4b4cfa76c0b12b564c9b8d643b5c2bc8a63ed5dfc2a46cf1c68ac61" +checksum = "3d1ed4453f3dcc7ed01304aadd254f804a915e4725243e92822e18774593dea3" dependencies = [ "convert_case 0.6.0", "handlebars", @@ -7598,9 +7598,9 @@ dependencies = [ [[package]] name = "styled_components" -version = "0.96.15" +version = "0.96.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d7e14a22b6bf299ed8c2072e719c27324be5060a39b2bd70e62ad2a9505fe71" +checksum = "b661b68dbffeb5e9186523957c3586f609c99df3ee36fa6da0e12377101f54a1" dependencies = [ "Inflector", "once_cell", @@ -7616,9 +7616,9 @@ dependencies = [ [[package]] name = "styled_jsx" -version = "0.73.21" +version = "0.73.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17e38b2334f6613c9e811cc776bc9d2329c288f4dc125df68615fe6cf19b48ae" +checksum = "598108b5402971bd12dd8936ad1b3165b44505d34e5dd7ec4afa413190453a34" dependencies = [ "anyhow", "lightningcss", @@ -7719,9 +7719,9 @@ dependencies = [ [[package]] name = "swc" -version = "0.275.1" +version = "0.276.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ac38cd938ce20693b58b26a5d1926a46074db09cf90a251d83cf17cdaea6031" +checksum = "0fecebc2d47ba1e6a0b125ea6e55d111014c78ea5bbf519f9b378dfd54f19020" dependencies = [ "anyhow", "base64 0.21.4", @@ -7764,6 +7764,7 @@ dependencies = [ "swc_plugin_proxy", "swc_plugin_runner", "swc_timer", + "swc_transform_common", "swc_visit", "tokio", "tracing", @@ -7797,9 +7798,9 @@ dependencies = [ [[package]] name = "swc_bundler" -version = "0.227.0" +version = "0.228.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1a212bd08b1121c7204a04407ea055779fc00cf80024fc666dd97b00749cf87" +checksum = "43e4698d94115ea10fe3c6fdde2d1e736c6ba6601abab0a61d95e1015d13359f" dependencies = [ "anyhow", "crc", @@ -7876,9 +7877,9 @@ dependencies = [ [[package]] name = "swc_compiler_base" -version = "0.9.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "754058388d4f51df61f9aced73dfca96d81fed1c0a46583dc7b3da07688af80d" +checksum = "fdff81d2ae11503b2cb34b37cd481c3400d19c7c05445dd5daad5cd29692ee69" dependencies = [ "anyhow", "base64 0.21.4", @@ -7886,7 +7887,9 @@ dependencies = [ "napi-derive", "once_cell", "pathdiff", + "rustc-hash", "serde", + "serde_json", "sourcemap", "swc_atoms", "swc_common", @@ -7901,9 +7904,9 @@ dependencies = [ [[package]] name = "swc_config" -version = "0.1.13" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7be1a689e146be1eae53139482cb061dcf0fa01dff296bbe7b96fff92d8e2936" +checksum = "84b67e115ab136fe0eb03558bb0508ca7782eeb446a96d165508c48617e3fd94" dependencies = [ "anyhow", "indexmap 2.2.6", @@ -7928,9 +7931,9 @@ dependencies = [ [[package]] name = "swc_core" -version = "0.92.5" +version = "0.93.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e317f6f8b15019358d1e48631c0e6d098d9a3d00d666ea99650201661abea855" +checksum = "57f2da78bdc49a5bd2edc80213f2b95300b11a15068e18ab9a9dd943a8660d59" dependencies = [ "binding_macros", "swc", @@ -8117,9 +8120,9 @@ dependencies = [ [[package]] name = "swc_ecma_ast" -version = "0.113.4" +version = "0.113.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc1690cc0c9ab60b44ac0225ba1e231ac532f7ba1d754df761c6ee607561afae" +checksum = "98a534a8360a076a030989f6d121ba6044345594bdf0457c4629f432742026b8" dependencies = [ "bitflags 2.5.0", "bytecheck", @@ -8137,9 +8140,9 @@ dependencies = [ [[package]] name = "swc_ecma_codegen" -version = "0.149.1" +version = "0.149.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fef147127a2926ca26171c7afcbf028ff86dc543ced87d316713f25620a15b9" +checksum = "6ab6d5e7bbd9208f980b5dad2a4a6ae798c97569f809a48c3f92e6ae7e183c6c" dependencies = [ "memchr", "num-bigint", @@ -8198,9 +8201,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2015" -version = "0.5.1" +version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "248532f9ae603be6bf4763f66f74ad0dfd82d6307be876ccf4c5d081826a1161" +checksum = "d5f902caf95f4475a8963a3f7c0d645c1d7fcd81464cfb8165b78d5aeb0bcff2" dependencies = [ "arrayvec 0.7.4", "indexmap 2.2.6", @@ -8362,9 +8365,9 @@ dependencies = [ [[package]] name = "swc_ecma_ext_transforms" -version = "0.114.1" +version = "0.114.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "259b7b69630aafde63c6304eeacb93fd54619cbdb199c978549acc76cd512d76" +checksum = "91b55ddf8b600f07d0086a9a782d55aa048d3c1ac5eabaa27733d9f45d960e52" dependencies = [ "phf 0.11.2", "swc_atoms", @@ -8418,9 +8421,9 @@ dependencies = [ [[package]] name = "swc_ecma_minifier" -version = "0.194.5" +version = "0.195.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "535bbb8adbdf730302f477948557a26e5cd73854d4543c0630e05132ffa16d8a" +checksum = "2822aa712eba5cdbf4bb60d24724d790ff77d0f4cf15501241b02db466a34ac9" dependencies = [ "arrayvec 0.7.4", "indexmap 2.2.6", @@ -8452,9 +8455,9 @@ dependencies = [ [[package]] name = "swc_ecma_parser" -version = "0.144.1" +version = "0.144.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0499e69683ae5d67a20ff0279b94bc90f29df7922a46331b54d5dd367bf89570" +checksum = "31adf4599e8de70f3b754dfc34ec2ab09fa6841d79a9f4a888250a404eae7030" dependencies = [ "either", "new_debug_unreachable", @@ -8549,9 +8552,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_base" -version = "0.138.2" +version = "0.138.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eddb95c2bdad1c9c29edf35712e1e0f9b9ddc1cdb5ba2d582fd93468cb075a03" +checksum = "f7b76d09313cdd8f99bc1519fb04f8a93427c7a6f4bfbc64b39fcc5a378ab1b7" dependencies = [ "better_scoped_tls", "bitflags 2.5.0", @@ -8663,9 +8666,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_optimization" -version = "0.199.1" +version = "0.199.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32ea30b3df748236c619409f222f0ba68ebeebc08dfff109d2195664a15689f9" +checksum = "25982d69c91cd64cbfae714d9e953810b3f2835486d08108967cbd15016e7720" dependencies = [ "dashmap", "indexmap 2.2.6", @@ -8776,9 +8779,9 @@ dependencies = [ [[package]] name = "swc_ecma_usage_analyzer" -version = "0.24.2" +version = "0.24.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d140be135c1af1726ee02406ad210c6598b3399303974d884b1b681563602c9" +checksum = "6d7d7109b3794756cc51e842dbb874d2da44293b06a9e3837b477300b0ccef8e" dependencies = [ "indexmap 2.2.6", "rustc-hash", @@ -8793,15 +8796,16 @@ dependencies = [ [[package]] name = "swc_ecma_utils" -version = "0.128.1" +version = "0.128.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe5242670bc74e0a0b64b9d4912b37be36944517ce0881314162aeb4381272c3" +checksum = "02f470d8cc31adf6189b228636201ee3cdd268c0b5a2d0407f83093dfa96ff91" dependencies = [ "indexmap 2.2.6", "num_cpus", "once_cell", "rayon", "rustc-hash", + "ryu-js", "swc_atoms", "swc_common", "swc_ecma_ast", @@ -8827,9 +8831,9 @@ dependencies = [ [[package]] name = "swc_emotion" -version = "0.72.13" +version = "0.72.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b454c1b99da4da9aab3731ab34d7582d2eab96e47670d0c62711053886ef7e2" +checksum = "038b284022103a111078a012760423d6e88ba48fabe1a9fcb9229e661e6300c3" dependencies = [ "base64 0.22.1", "byteorder", @@ -8971,9 +8975,9 @@ dependencies = [ [[package]] name = "swc_plugin_runner" -version = "0.107.1" +version = "0.107.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73640537e0967a88a537c853de4a41ba6cdf77bfff1999f7c6c449e5bc550eed" +checksum = "0cc31ec32964d3ebaebfd5a2466a2aaa909aa00722d677f89994b2b6c27d105c" dependencies = [ "anyhow", "enumset", @@ -8996,9 +9000,9 @@ dependencies = [ [[package]] name = "swc_relay" -version = "0.44.14" +version = "0.44.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14a596e01319abf55b8a8c7e36a82aa0d1ac01a18a99ce9b07a7fbcbfd544466" +checksum = "89b9cc7f85e3bd8fdd8a81a96d34e1a589c2b4deb7b5a08cd59918f612b1b3c0" dependencies = [ "once_cell", "regex", @@ -9032,6 +9036,19 @@ dependencies = [ "syn 2.0.58", ] +[[package]] +name = "swc_transform_common" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eda3e80e1ad638d3575bc07745a914af13dcb02215098659f864731078271f2c" +dependencies = [ + "better_scoped_tls", + "once_cell", + "rustc-hash", + "serde", + "serde_json", +] + [[package]] name = "swc_visit" version = "0.5.14" @@ -11512,7 +11529,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675" dependencies = [ "cfg-if", - "rand 0.8.5", + "rand 0.4.6", "static_assertions", ] diff --git a/Cargo.toml b/Cargo.toml index 11fbe191c3c35..742884687501e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -110,16 +110,16 @@ async-recursion = "1.0.2" # Keep consistent with preset_env_base through swc_core browserslist-rs = { version = "0.15.0" } miette = { version = "5.10.0", features = ["fancy"] } -mdxjs = "0.2.2" -modularize_imports = { version = "0.68.14" } -styled_components = { version = "0.96.15" } -styled_jsx = { version = "0.73.21" } -swc_core = { version = "0.92.5", features = [ +mdxjs = "0.2.3" +modularize_imports = { version = "0.68.15" } +styled_components = { version = "0.96.16" } +styled_jsx = { version = "0.73.23" } +swc_core = { version = "0.93.2", features = [ "ecma_loader_lru", "ecma_loader_parking_lot", ] } -swc_emotion = { version = "0.72.13" } -swc_relay = { version = "0.44.14" } +swc_emotion = { version = "0.72.14" } +swc_relay = { version = "0.44.15" } testing = { version = "0.35.25" } # Temporary: Reference the latest git minor version of pathfinder_simd until it's published. pathfinder_simd = "0.5.3"