diff --git a/Cargo.lock b/Cargo.lock index 4765669e1ffd..d3ee74a6ddfa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -378,6 +378,24 @@ dependencies = [ "thiserror", ] +[[package]] +name = "browserslist-rs" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdf0ca73de70c3da94e4194e4a01fe732378f55d47cf4c0588caab22a0dbfa14" +dependencies = [ + "ahash 0.8.11", + "chrono", + "either", + "indexmap 2.2.6", + "itertools 0.13.0", + "nom", + "once_cell", + "serde", + "serde_json", + "thiserror", +] + [[package]] name = "bumpalo" version = "3.13.0" @@ -1019,9 +1037,9 @@ checksum = "0d6ef0072f8a535281e4876be788938b528e9a1d43900b82c2569af7da799125" [[package]] name = "either" -version = "1.11.0" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a47c1c47d2f5964e29c61246e81db715514cd532db6b5116a25ea3c03d6780a2" +checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" [[package]] name = "encode_unicode" @@ -1674,6 +1692,15 @@ dependencies = [ "either", ] +[[package]] +name = "itertools" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" +dependencies = [ + "either", +] + [[package]] name = "itoa" version = "1.0.8" @@ -1837,7 +1864,7 @@ checksum = "10bc10261f46b8df263b80e7779d1748b1880488cd951fbb9e096430cead10e6" dependencies = [ "ahash 0.8.11", "bitflags 2.5.0", - "browserslist-rs", + "browserslist-rs 0.15.0", "const-str", "cssparser", "cssparser-color", @@ -1992,61 +2019,55 @@ dependencies = [ [[package]] name = "miette" -version = "4.7.1" +version = "5.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c90329e44f9208b55f45711f9558cec15d7ef8295cc65ecd6d4188ae8edc58c" +checksum = "59bb584eaeeab6bd0226ccf3509a69d7936d148cf3d036ad350abe35e8c6856e" dependencies = [ - "atty", "backtrace", - "miette-derive 4.7.1", + "backtrace-ext", + "is-terminal", + "miette-derive 5.10.0", "once_cell", - "owo-colors", - "supports-color 1.3.1", - "supports-hyperlinks 1.2.0", - "supports-unicode 1.0.2", + "owo-colors 3.5.0", + "supports-color", + "supports-hyperlinks", + "supports-unicode", "terminal_size", - "textwrap", + "textwrap 0.15.2", "thiserror", "unicode-width", ] [[package]] name = "miette" -version = "5.10.0" +version = "7.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59bb584eaeeab6bd0226ccf3509a69d7936d148cf3d036ad350abe35e8c6856e" +checksum = "4edc8853320c2a0dab800fbda86253c8938f6ea88510dc92c5f1ed20e794afc1" dependencies = [ - "backtrace", - "backtrace-ext", - "is-terminal", - "miette-derive 5.10.0", - "once_cell", - "owo-colors", - "supports-color 2.1.0", - "supports-hyperlinks 2.1.0", - "supports-unicode 2.0.0", - "terminal_size", - "textwrap", + "cfg-if", + "miette-derive 7.2.0", + "owo-colors 4.0.0", + "textwrap 0.16.1", "thiserror", "unicode-width", ] [[package]] name = "miette-derive" -version = "4.7.1" +version = "5.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b5bc45b761bcf1b5e6e6c4128cd93b84c218721a8d9b894aa0aff4ed180174c" +checksum = "49e7bc1560b95a3c4a25d03de42fe76ca718ab92d1a22a55b9b4cf67b3ae635c" dependencies = [ "proc-macro2", "quote", - "syn 1.0.109", + "syn 2.0.63", ] [[package]] name = "miette-derive" -version = "5.10.0" +version = "7.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49e7bc1560b95a3c4a25d03de42fe76ca718ab92d1a22a55b9b4cf67b3ae635c" +checksum = "dcf09caffaac8068c346b6df2a7fc27a177fd20b39421a39ce0a211bde679a6c" dependencies = [ "proc-macro2", "quote", @@ -2185,9 +2206,9 @@ dependencies = [ [[package]] name = "new_debug_unreachable" -version = "1.0.4" +version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4a24736216ec316047a1fc4252e27dabb04218aa4a3f37c6e7ddbf1f9782b54" +checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" [[package]] name = "nom" @@ -2338,6 +2359,12 @@ version = "3.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c1b04fb49957986fdce4d6ee7a65027d55d4b6d2265e5848bbb507b58ccfdb6f" +[[package]] +name = "owo-colors" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "caff54706df99d2a78a5a4e3455ff45448d81ef1bb63c22cd14052ca0e993a3f" + [[package]] name = "oxc_resolver" version = "1.8.1" @@ -2650,13 +2677,13 @@ checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" [[package]] name = "preset_env_base" -version = "0.4.13" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08ccd15679953ae0d5fa716af78b58c0bfdc69a0534bfe9ea423abd1eaaf527b" +checksum = "1b30eab18be480c194938e433e269d5298a279f6410f02fbc73f3576a325c110" dependencies = [ "ahash 0.8.11", "anyhow", - "browserslist-rs", + "browserslist-rs 0.16.0", "dashmap", "from_variant", "once_cell", @@ -3183,11 +3210,11 @@ dependencies = [ "futures", "miette 5.10.0", "once_cell", - "owo-colors", + "owo-colors 3.5.0", "rspack_identifier", "swc_core", "termcolor", - "textwrap", + "textwrap 0.15.2", "thiserror", "unicode-width", ] @@ -4249,10 +4276,10 @@ dependencies = [ ] [[package]] -name = "sha-1" -version = "0.10.0" +name = "sha1" +version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "028f48d513f9678cda28f6e4064755b3fbb2af6acd672f2c209b62323f7aea0f" +checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" dependencies = [ "cfg-if", "cpufeatures", @@ -4494,9 +4521,9 @@ checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" [[package]] name = "styled_components" -version = "0.96.16" +version = "0.96.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b661b68dbffeb5e9186523957c3586f609c99df3ee36fa6da0e12377101f54a1" +checksum = "dd42d48e5ec761a8cea4562a336a74f8606fca5c50ec03cbc1650c3931d19d51" dependencies = [ "Inflector", "once_cell", @@ -4525,16 +4552,6 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8230d5b8a65a6d4d4a7e5ee8dbdd9312ba447a8b8329689a390a0945d69b57ce" -[[package]] -name = "supports-color" -version = "1.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ba6faf2ca7ee42fdd458f4347ae0a9bd6bcc445ad7cb57ad82b383f18870d6f" -dependencies = [ - "atty", - "is_ci", -] - [[package]] name = "supports-color" version = "2.1.0" @@ -4545,15 +4562,6 @@ dependencies = [ "is_ci", ] -[[package]] -name = "supports-hyperlinks" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "590b34f7c5f01ecc9d78dba4b3f445f31df750a67621cf31626f3b7441ce6406" -dependencies = [ - "atty", -] - [[package]] name = "supports-hyperlinks" version = "2.1.0" @@ -4563,15 +4571,6 @@ dependencies = [ "is-terminal", ] -[[package]] -name = "supports-unicode" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8b945e45b417b125a8ec51f1b7df2f8df7920367700d1f98aedd21e5735f8b2" -dependencies = [ - "atty", -] - [[package]] name = "supports-unicode" version = "2.0.0" @@ -4583,9 +4582,9 @@ dependencies = [ [[package]] name = "swc" -version = "0.276.0" +version = "0.279.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fecebc2d47ba1e6a0b125ea6e55d111014c78ea5bbf519f9b378dfd54f19020" +checksum = "e360f7055c05d58acf732bac714094f46556ee0d271f58fcd9f3683853d05e1a" dependencies = [ "anyhow", "base64 0.21.7", @@ -4627,6 +4626,7 @@ dependencies = [ "swc_plugin_runner", "swc_timer", "swc_transform_common", + "swc_typescript", "swc_visit", "tokio", "tracing", @@ -4663,9 +4663,9 @@ dependencies = [ [[package]] name = "swc_common" -version = "0.33.26" +version = "0.34.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2f9706038906e66f3919028f9f7a37f3ed552f1b85578e93f4468742e2da438" +checksum = "9087befec6b63911f9d2f239e4f91c9b21589c169b86ed2d616944d23cf4a243" dependencies = [ "ahash 0.8.11", "anyhow", @@ -4696,9 +4696,9 @@ dependencies = [ [[package]] name = "swc_compiler_base" -version = "0.10.1" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95ef85116a4d22dd66ebc8d1d1c7634565569fa4b80bf6728686b38e407f00f1" +checksum = "e37fcb78ee79d792ba97b63f58869b9995b7248b46676503e0d0328d19dba2c5" dependencies = [ "anyhow", "base64 0.21.7", @@ -4748,9 +4748,9 @@ dependencies = [ [[package]] name = "swc_core" -version = "0.93.4" +version = "0.96.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f331506bd57c03b006b5585797c23bf10077bc8ef949d80efce3ef4b9ee8a664" +checksum = "de60918c09a10e55b659b4e70029d283da815e3107b22f79ec9fac280d4d8843" dependencies = [ "swc", "swc_atoms", @@ -4786,9 +4786,9 @@ dependencies = [ [[package]] name = "swc_css_ast" -version = "0.140.23" +version = "0.141.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be69b267990e9727881125d39b3a2b8204bb2f85b9ece2ad3e212a1fe5c79bea" +checksum = "89a5f28ff625a89de2a269bde3ed3b99be74bb9d3dc78dea6f3b071991b2cbf4" dependencies = [ "is-macro", "string_enum", @@ -4798,9 +4798,9 @@ dependencies = [ [[package]] name = "swc_css_codegen" -version = "0.151.35" +version = "0.152.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc65d732bd6fd1757a14dc4636b762d9224fc83f1f978b6a5840b843a3964bde" +checksum = "894275a04a693db249903c29b31dfc71fae0bde68c49d4c4a935243f9eeba691" dependencies = [ "auto_impl", "bitflags 2.5.0", @@ -4827,9 +4827,9 @@ dependencies = [ [[package]] name = "swc_css_compat" -version = "0.27.35" +version = "0.28.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3973cc69eb96e64798f506fe57c5ad1d9a24fd7cf870250144e110d000ce045" +checksum = "5c87f674685c3ad0c94a1ad85cd605352f97ae92ad4a3993745578d6fe0d4c54" dependencies = [ "bitflags 2.5.0", "once_cell", @@ -4844,9 +4844,9 @@ dependencies = [ [[package]] name = "swc_css_minifier" -version = "0.116.34" +version = "0.117.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bee9bb889f46af0e7426ace32cc2150d4e56f1a3376377d9ed51101bea29d35" +checksum = "ca3018ef38941e9b5681af7651047cd42af8bcb1635ba1d99eee182aafd84bb3" dependencies = [ "serde", "swc_atoms", @@ -4858,9 +4858,9 @@ dependencies = [ [[package]] name = "swc_css_modules" -version = "0.29.35" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33a367c7ec6afd24bb3fcc2df95a2adf5d7462367d5b13afd8e43a7beba44358" +checksum = "02cf9cf88016e0445fafa1335b7727d4c17ff7a3a7f43da4a81657c517f71720" dependencies = [ "rustc-hash", "serde", @@ -4874,9 +4874,9 @@ dependencies = [ [[package]] name = "swc_css_parser" -version = "0.150.33" +version = "0.151.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "174995d62f066e4a4091c03ce9d35233cf8a2e23d729c2041cd5c2b3e2af2d1e" +checksum = "0ee5dbaaea0df38195d137bcfc68149906bba9c9dffebf5e846234e286f82992" dependencies = [ "lexical", "serde", @@ -4887,9 +4887,9 @@ dependencies = [ [[package]] name = "swc_css_utils" -version = "0.137.23" +version = "0.138.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a890e543134dc78ac46d0ffce3028d37b639f8854f25aaef67178111459ba021" +checksum = "b135df778449825f38d54664bb179c839b3285f9a553ec10dd3cc3eafb751599" dependencies = [ "once_cell", "serde", @@ -4902,9 +4902,9 @@ dependencies = [ [[package]] name = "swc_css_visit" -version = "0.139.22" +version = "0.140.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5f0f267339cff49928e87b68ba453e85808eb11d660c720b3eb9c1c8510ad7a" +checksum = "c97dceaa18c8ae7f5a4c991e15efc5c333e5880b58ee6d61e42fd1365748ff05" dependencies = [ "serde", "swc_atoms", @@ -4915,9 +4915,9 @@ dependencies = [ [[package]] name = "swc_ecma_ast" -version = "0.113.7" +version = "0.115.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98a534a8360a076a030989f6d121ba6044345594bdf0457c4629f432742026b8" +checksum = "7be1306930c235435a892104c00c2b5e16231043c085d5a10bd3e7537b15659b" dependencies = [ "bitflags 2.5.0", "bytecheck", @@ -4935,9 +4935,9 @@ dependencies = [ [[package]] name = "swc_ecma_codegen" -version = "0.149.3" +version = "0.151.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "efb2bef3f4998865b2d466fb2ef9410a03449d255d199f3eb807fb19acc3862b" +checksum = "f5141a8cb4eb69e090e6aea5d49061b46919be5210f3d084f9d9ad63d30f5cff" dependencies = [ "memchr", "num-bigint", @@ -4966,9 +4966,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_bugfixes" -version = "0.5.1" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47dad0d8b1c4ca3264a8c5ac59a10127e4f1c3ec5ed271692c8897228f306d05" +checksum = "04182e17ec1343e355c4150b51226627d0160b8c0fb612bfcf3faa3d030a3866" dependencies = [ "swc_atoms", "swc_common", @@ -4983,9 +4983,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_common" -version = "0.5.1" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d888bcaea9c3b8178ea4abf65adf64457a95a5dd3a3c109a69e02c3c38878e96" +checksum = "0d2f791e974b5dd20a72c50aaf5507a07c6b7c2778711a4b8f62b881b92035b1" dependencies = [ "swc_common", "swc_ecma_ast", @@ -4996,9 +4996,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2015" -version = "0.5.1" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "248532f9ae603be6bf4763f66f74ad0dfd82d6307be876ccf4c5d081826a1161" +checksum = "d23a9a192078d1d074113d77d8ad811f2a81a4447ae967739824da5d391616bf" dependencies = [ "arrayvec", "indexmap 2.2.6", @@ -5022,9 +5022,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2016" -version = "0.5.1" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d7222c8114ae47fb2e46a65f426b125edab523192e835aecbe3136541f96500" +checksum = "a166a024e6415bb6e6e326ed6ebe2fadcea093408f0de3cf1308b4f971c171b0" dependencies = [ "swc_atoms", "swc_common", @@ -5039,9 +5039,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2017" -version = "0.5.1" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ccdc725616ef5a558fb905b991cf328a3a36a4d1b8423173708a02568077a14" +checksum = "65f84891ddbc61b105222e64f7f33cf8a27d4020cbae2e7381899eacb69c540a" dependencies = [ "serde", "swc_atoms", @@ -5057,9 +5057,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2018" -version = "0.5.1" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a6c329c3980fb20c6c3f7f2afc94975bfe640d53dbb90b74a4707a514f16882" +checksum = "fe11cda413787f46bef9a66752933fb8f6f2e509cb938758ad67d27710619ee6" dependencies = [ "serde", "swc_atoms", @@ -5076,9 +5076,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2019" -version = "0.5.1" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1934f5021e80f6b76e5e0bd06e331d719eb9541c13cb5c128a2b994931952a4" +checksum = "ce2888fa110ff41e36bd824fa8636f876f812e64c8b12d721df90a133c28ee86" dependencies = [ "swc_atoms", "swc_common", @@ -5092,9 +5092,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2020" -version = "0.5.1" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0aeddeba198fef2e0ed2bc4a5a0b412a04063f062dc47f93e191b492fc07db4f" +checksum = "3baf93ce04ee5a888e41265280dcb12d4e6a7bcf907ef2526b69d2aed9187607" dependencies = [ "serde", "swc_atoms", @@ -5110,9 +5110,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2021" -version = "0.5.1" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "288ad7b2cc410dc4fb08687915c1f588f6a714d737e0a4d4128657124902bcae" +checksum = "529b0368f8ada330a928ecf82c6c480eefd51cacd2d6e9f3bdedf9187782f0da" dependencies = [ "swc_atoms", "swc_common", @@ -5126,9 +5126,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2022" -version = "0.5.1" +version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5fb9ab1987e7f9959e31f4a5f9c617ad640a01d8c3c6f02293ad2835adac7790" +checksum = "0fb64c1ee316e05823b6b698d44017848241626f1e11eaf394a642bc99d4d4cd" dependencies = [ "swc_atoms", "swc_common", @@ -5145,9 +5145,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es3" -version = "0.5.1" +version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc88d41bf1d86c163997a48b10ad47a40d2d0c8b9c6ee03ead151d0022975789" +checksum = "d2d6a9792a2f534232b98a1564e3982d9135d86f6948a55e8f944ab3b960e602" dependencies = [ "swc_common", "swc_ecma_ast", @@ -5160,9 +5160,9 @@ dependencies = [ [[package]] name = "swc_ecma_ext_transforms" -version = "0.114.1" +version = "0.116.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "259b7b69630aafde63c6304eeacb93fd54619cbdb199c978549acc76cd512d76" +checksum = "87c7c0f88d732d335c8886eff6ae41b1ae217247349453853c9f0b5f0226376b" dependencies = [ "phf 0.11.2", "swc_atoms", @@ -5174,9 +5174,9 @@ dependencies = [ [[package]] name = "swc_ecma_lints" -version = "0.93.1" +version = "0.95.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e66af960e41704f081a2e5dd012c304f9e74bacf8846d70f5c653b32b7f7845a" +checksum = "b58d31115dae5a96bf15fcae9958711b14e9cf9944d045c91796d039d2879dbc" dependencies = [ "auto_impl", "dashmap", @@ -5194,9 +5194,9 @@ dependencies = [ [[package]] name = "swc_ecma_loader" -version = "0.45.28" +version = "0.46.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92c68f934bd2c51f29c4ad0bcae09924e9dc30d7ce0680367d45b42d40338a67" +checksum = "5a9febebf047d1286e7b723fa2758f3229da2c103834f3eaee69833f46692612" dependencies = [ "anyhow", "dashmap", @@ -5216,9 +5216,9 @@ dependencies = [ [[package]] name = "swc_ecma_minifier" -version = "0.195.2" +version = "0.197.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94ed053fe91ab7c1ea79a577a49fdc3da895df802bcf9df04de4ccb51a075ff7" +checksum = "adde00302d7ddb37f312ee6d07078c7f3c7ede36c0f81c5050bae1d4c3fe501c" dependencies = [ "arrayvec", "indexmap 2.2.6", @@ -5226,6 +5226,7 @@ dependencies = [ "num_cpus", "once_cell", "parking_lot", + "phf 0.11.2", "radix_fmt", "rayon", "regex", @@ -5250,9 +5251,9 @@ dependencies = [ [[package]] name = "swc_ecma_parser" -version = "0.144.1" +version = "0.146.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0499e69683ae5d67a20ff0279b94bc90f29df7922a46331b54d5dd367bf89570" +checksum = "0a4e0c2e85f12c63b85c805e923079b04d1fb3e25edd069d638eed5f2098de74" dependencies = [ "either", "new_debug_unreachable", @@ -5272,9 +5273,9 @@ dependencies = [ [[package]] name = "swc_ecma_preset_env" -version = "0.207.1" +version = "0.210.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5969314bf66a4cca45b0401689dd0c74e568c69243ce46f2342d59219e1283c" +checksum = "9cd4847a3356a01bb9a73ccdd1c462dfdaed66d27d7ea6d6785ee1b54c9556ce" dependencies = [ "anyhow", "dashmap", @@ -5297,9 +5298,9 @@ dependencies = [ [[package]] name = "swc_ecma_quote_macros" -version = "0.55.1" +version = "0.57.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cfc3a759d2885a78cd2a6ac1c1865eb6be02cafe35fbb6c5abd3720d0fca559a" +checksum = "9537bc1a7daca42be1922137f4e59458bd72dd330cf9c96877e191e632bc2a8a" dependencies = [ "anyhow", "proc-macro2", @@ -5314,9 +5315,9 @@ dependencies = [ [[package]] name = "swc_ecma_testing" -version = "0.22.23" +version = "0.23.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbe778ce5eae6a7e620e1f6b5326e78f00203c4548e0c659fd22da8be0538fd1" +checksum = "7f495dae76f1ef3f5be46993b050c3c7f9bf534bcdacf1e40789d32255040776" dependencies = [ "anyhow", "hex", @@ -5327,9 +5328,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms" -version = "0.230.1" +version = "0.232.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b37b4301415b83165109b94c99f9ac62b38fd1da625bfc830883d65d29a473f9" +checksum = "6845e7a7001aa2793225568e0661b55f57352a2103fa28934dd9cbc0d41cd933" dependencies = [ "swc_atoms", "swc_common", @@ -5347,9 +5348,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_base" -version = "0.138.1" +version = "0.140.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6511cbe8c60eced9a8e77b66aadbda26424f14a1662c68c17aeb73ac78ad83c2" +checksum = "d37dc505c92af56d0f77cf6f31a6ccd37ac40cad1e01ff77277e0b1c70e8f8ff" dependencies = [ "better_scoped_tls", "bitflags 2.5.0", @@ -5371,9 +5372,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_classes" -version = "0.127.1" +version = "0.129.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53043d81678f3c693604eeb1d1f0fe6ba10f303104a31b954dbeebed9cadf530" +checksum = "a3eab5f8179e5b0aedf385eacc2c033691c6d211a7babd1bbbff12cf794a824e" dependencies = [ "swc_atoms", "swc_common", @@ -5385,9 +5386,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_compat" -version = "0.164.1" +version = "0.166.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d4e2942c5d8b7afdf81b8d1eec2f4a961aa9fc89ab05ebe5cbd0f6066b60afc" +checksum = "626198f214d4c09adc98ab14565c19d72b6df9630f7e806ef9b2ef05a5fd17a5" dependencies = [ "arrayvec", "indexmap 2.2.6", @@ -5433,9 +5434,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_module" -version = "0.181.1" +version = "0.183.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92496bb7806b5c6602bcb08a9c09c61b12232a44da605f9e50e27ecffb603822" +checksum = "d7dc1df5996d98d1a27995e8b8a13f805a801d9286cb9ed29103662c767c747e" dependencies = [ "Inflector", "anyhow", @@ -5460,9 +5461,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_optimization" -version = "0.199.1" +version = "0.201.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32ea30b3df748236c619409f222f0ba68ebeebc08dfff109d2195664a15689f9" +checksum = "724a8306e98c1b1f9640fc44c1acc0c971f6daa17651919e06b64f905d4a4564" dependencies = [ "dashmap", "indexmap 2.2.6", @@ -5485,9 +5486,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_proposal" -version = "0.172.3" +version = "0.174.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fbc414d6a9c5479cfb4c6e92fcdac504582bd7bc89a0ed7f8808b72dc8bd1f0" +checksum = "6df8aa6752cc2fcf3d78ac67827542fb666e52283f2b26802aa058906bb750d3" dependencies = [ "either", "rustc-hash", @@ -5505,16 +5506,16 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_react" -version = "0.184.1" +version = "0.186.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "565a76c4ca47ce31d78301c0beab878e4c2cb4f624691254d834ec8c0e236755" +checksum = "446da32cac8299973aaf1d37496562bfd0c1e4f3c3ab5d0af6f07f42e8184102" dependencies = [ "base64 0.21.7", "dashmap", "indexmap 2.2.6", "once_cell", "serde", - "sha-1", + "sha1", "string_enum", "swc_atoms", "swc_common", @@ -5529,9 +5530,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_testing" -version = "0.141.1" +version = "0.143.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "686445efd086ca6dd52874b4d1935663914e2fb76514c0ad7b0105cec7859451" +checksum = "20932deae5f94d2c2d722ed2ed70a140e1e9f19d105414c02572bd49e83fb29a" dependencies = [ "ansi_term", "anyhow", @@ -5555,9 +5556,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_typescript" -version = "0.189.1" +version = "0.191.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e209026c1d3c577cafac257d87e7c0d23119282fbdc8ed03d7f56077e95beb90" +checksum = "f1ce8af2865449e714ae56dacb6b54b3f6dc4cc25074da4e39b878bd93c5e39c" dependencies = [ "ryu-js", "serde", @@ -5572,9 +5573,9 @@ dependencies = [ [[package]] name = "swc_ecma_usage_analyzer" -version = "0.24.1" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98a693898bd44782a234d9a4122d52b93accf447282d08c2364eb739ae864154" +checksum = "146562ac3515c8de0fa9d479c43ae673cf9df9ece814f8b8130686080a7251ac" dependencies = [ "indexmap 2.2.6", "rustc-hash", @@ -5589,9 +5590,9 @@ dependencies = [ [[package]] name = "swc_ecma_utils" -version = "0.128.3" +version = "0.130.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02f470d8cc31adf6189b228636201ee3cdd268c0b5a2d0407f83093dfa96ff91" +checksum = "13e62b199454a576c5fdbd7e1bef8ab88a395427456d8a713d994b7d469833aa" dependencies = [ "indexmap 2.2.6", "num_cpus", @@ -5609,9 +5610,9 @@ dependencies = [ [[package]] name = "swc_ecma_visit" -version = "0.99.1" +version = "0.101.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28a6ce28ad8e591f8d627f1f9cb26b25e5d83052a9bc1b674d95fc28040cfa98" +checksum = "ce0d997f0c9b4e181225f603d161f6757c2a97022258170982cfe005ec69ec92" dependencies = [ "num-bigint", "swc_atoms", @@ -5623,9 +5624,9 @@ dependencies = [ [[package]] name = "swc_emotion" -version = "0.72.14" +version = "0.72.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "038b284022103a111078a012760423d6e88ba48fabe1a9fcb9229e661e6300c3" +checksum = "5c77a41e3908561af55baec3d0a7911270822a17f173bab8fb2d3e30ed241128" dependencies = [ "base64 0.22.1", "byteorder", @@ -5658,12 +5659,12 @@ dependencies = [ [[package]] name = "swc_error_reporters" -version = "0.17.20" +version = "0.18.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72100a5f7b0c178adf7bcc5e7c8ad9d4180f499a5f5bae9faf3f417c7cbc4915" +checksum = "4689d9bb6092b5e6a0b79c0152336a8bd7f0acaf70dcf4133f86deb01775baa0" dependencies = [ "anyhow", - "miette 4.7.1", + "miette 7.2.0", "once_cell", "parking_lot", "swc_common", @@ -5671,9 +5672,9 @@ dependencies = [ [[package]] name = "swc_fast_graph" -version = "0.21.22" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3fdd64bc3d161d6c1ea9a8ae5779e4ba132afc67e7b8ece5420bfc9c6e1275d" +checksum = "c00cf5c1687e9858fb9de1ffa90a3e21369095406e97ace870a389320d105b0a" dependencies = [ "indexmap 2.2.6", "petgraph", @@ -5683,9 +5684,9 @@ dependencies = [ [[package]] name = "swc_html" -version = "0.140.0" +version = "0.142.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0a644e6780c18c20c5c2b45755fb107f756decf004cdb8908177d4f543bab33" +checksum = "b72ce6c7173d31cb31c99d8bea7c053e17ec4d2a87fd22a4129fb2663a76158f" dependencies = [ "swc_html_ast", "swc_html_codegen", @@ -5695,9 +5696,9 @@ dependencies = [ [[package]] name = "swc_html_ast" -version = "0.33.21" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59957df8048be691db04e6e358b29c6ff1274cd60ee2b4c2141e1d90b598d24e" +checksum = "b909aca7c9cbd630a461d4a0a1d476ac13704dc515d2a79264c93d3280b02d23" dependencies = [ "is-macro", "string_enum", @@ -5707,9 +5708,9 @@ dependencies = [ [[package]] name = "swc_html_codegen" -version = "0.42.28" +version = "0.43.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4c28899c6d01596124686dae5d139412488f4066d013a6c5691e497f5e9a98f" +checksum = "2a0c66d0bd8beac55009066d2a721ed0ef02541774c9efba13225fbe7bbdf224" dependencies = [ "auto_impl", "bitflags 2.5.0", @@ -5735,9 +5736,9 @@ dependencies = [ [[package]] name = "swc_html_minifier" -version = "0.137.0" +version = "0.139.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "354291a5d91c37448d2d56a3ccfce4f030534dd126d872b62bbba3b255670040" +checksum = "4123894a8afd7b8d160d1b45c74fc33edb4259d76d06b6c67ff2d9d0f6aea3a8" dependencies = [ "once_cell", "serde", @@ -5764,9 +5765,9 @@ dependencies = [ [[package]] name = "swc_html_parser" -version = "0.39.27" +version = "0.40.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a06cda5fcfd7c979a473be215cb7263e13bb7707bec46d0b6fbf364d203eea2d" +checksum = "c0558d837b555f0b964d8a3ec94fef3fab31f89a685154cb208bfc968d29b437" dependencies = [ "swc_atoms", "swc_common", @@ -5776,9 +5777,9 @@ dependencies = [ [[package]] name = "swc_html_utils" -version = "0.18.21" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "406d1fcf69915a6726065060a9e85e7f36d66239708901d9bd0ad4d4b4e935a8" +checksum = "fcffb3ca55f7cf634247930aa1c4d8368bdf37140622d62af91a02e9dfa867a0" dependencies = [ "once_cell", "serde", @@ -5789,9 +5790,9 @@ dependencies = [ [[package]] name = "swc_html_visit" -version = "0.33.20" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cffd11c6331e830a6f954597edd612d9393b6a4edb6e88004e5d7e84ee73b570" +checksum = "37918caedd27d784ebd0a0b6f2489a01f7cff4a1a2fba58fd90d8912e0938159" dependencies = [ "serde", "swc_atoms", @@ -5813,9 +5814,9 @@ dependencies = [ [[package]] name = "swc_node_comments" -version = "0.20.20" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d39218bffecf32538d94a22791a12ff6f65e618edcc632d42e065a4e9c773065" +checksum = "f4490f809a96678451c796dc2af02c368f2d79de6b161b72388115fbae0a86ab" dependencies = [ "dashmap", "swc_atoms", @@ -5845,9 +5846,9 @@ dependencies = [ [[package]] name = "swc_plugin_proxy" -version = "0.42.1" +version = "0.44.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98974702046356b67da841a8de561480fd75f963f5d406eee40d690e014e4b55" +checksum = "3d5460f8f89905a6d698d8d9a965f6c99888c8ebcbb5a0266556d06ad39f09f7" dependencies = [ "better_scoped_tls", "rkyv", @@ -5859,9 +5860,9 @@ dependencies = [ [[package]] name = "swc_plugin_runner" -version = "0.107.1" +version = "0.109.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73640537e0967a88a537c853de4a41ba6cdf77bfff1999f7c6c449e5bc550eed" +checksum = "633742a4ee0d51337b7b29771e94f93badd6944919eaff0515c4a14e7993fc4d" dependencies = [ "anyhow", "enumset", @@ -5884,9 +5885,9 @@ dependencies = [ [[package]] name = "swc_timer" -version = "0.21.22" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c05c13aecc7a128f86273004f57b5964a6e8828a90e542f362deaed7985504f" +checksum = "0f2460de9f00f2af53f65b787c771a6ba90c719d600adb3c71cbb87219646ab4" dependencies = [ "tracing", ] @@ -5915,6 +5916,18 @@ dependencies = [ "serde_json", ] +[[package]] +name = "swc_typescript" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cbe6ad7122e2d9070da178c0c752b529a3ad9b9e1c931fce0aed8233eacad9e3" +dependencies = [ + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "thiserror", +] + [[package]] name = "swc_visit" version = "0.5.14" @@ -6036,9 +6049,9 @@ dependencies = [ [[package]] name = "testing" -version = "0.35.25" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15028f8ec7f95006f4e00e6c5ab6620f322bc6dc208a6cba09afa36375981cec" +checksum = "27d395aa823f3ad1ad845ed74b96188f493b469794cfbe9ef82f03196064086f" dependencies = [ "ansi_term", "cargo_metadata", @@ -6082,6 +6095,17 @@ dependencies = [ "unicode-width", ] +[[package]] +name = "textwrap" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23d434d3f8967a09480fb04132ebe0a3e088c173e6d0ee7897abbdf4eab0f8b9" +dependencies = [ + "smawk", + "unicode-linebreak", + "unicode-width", +] + [[package]] name = "thiserror" version = "1.0.60" diff --git a/Cargo.toml b/Cargo.toml index 6135c88dd340..30a115e12802 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -57,15 +57,15 @@ tikv-jemallocator = { version = "=0.5.4", features = ["disable_initial_exec_tls" # Must be pinned with the same swc versions #rkyv = { version = "=0.7.44" } # synced with swc wasm plugin -styled_components = { version = "=0.96.16" } -swc_config = { version = "=0.1.14" } -swc_core = { version = "0.93.0", default-features = false } -swc_ecma_minifier = { version = "0.195.0", default-features = false } -swc_emotion = { version = "=0.72.14" } -swc_error_reporters = { version = "=0.17.20" } -swc_html = { version = "=0.140.0" } -swc_html_minifier = { version = "=0.137.0" } -swc_node_comments = { version = "=0.20.20" } +styled_components = { version = "0.96.18" } +swc_config = { version = "0.1.13" } +swc_core = { version = "0.96.9", default-features = false } +swc_ecma_minifier = { version = "0.197.3", default-features = false } +swc_emotion = { version = "0.72.16" } +swc_error_reporters = { version = "=0.18.1" } +swc_html = { version = "=0.142.0" } +swc_html_minifier = { version = "=0.139.1" } +swc_node_comments = { version = "=0.21.0" } [profile.dev] codegen-units = 16