diff --git a/Cargo.lock b/Cargo.lock index ba7b38a07..550383bdf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -40,15 +40,16 @@ dependencies = [ [[package]] name = "ahash" -version = "0.8.3" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f" +checksum = "91429305e9f0a25f6205c5b8e0d2db09e0708a7a6df0f42212bb56c32c8ac97a" dependencies = [ "cfg-if", "getrandom", "once_cell", "serde", "version_check", + "zerocopy", ] [[package]] @@ -260,27 +261,23 @@ dependencies = [ [[package]] name = "browserslist-rs" -version = "0.12.4" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9bda9b4595376bf255f68dafb5dcc5b0e2842b38dc2a7b52c4e0bfe9fd1c651" +checksum = "e33066f72a558361eeb1077b0aff0f1dce1ac75bdc20b38a642f155f767b2824" dependencies = [ - "ahash 0.8.3", + "ahash 0.8.6", "anyhow", "chrono", "either", - "getrandom", "itertools", - "js-sys", "nom", "once_cell", "quote", "serde", - "serde-wasm-bindgen", "serde_json", "string_cache", "string_cache_codegen", "thiserror", - "wasm-bindgen", ] [[package]] @@ -386,9 +383,7 @@ checksum = "defd4e7873dbddba6c7c91e199c7fcb946abc4a6a4ac3195400bcfb01b5de877" dependencies = [ "android-tzdata", "iana-time-zone", - "js-sys", "num-traits", - "wasm-bindgen", "windows-targets", ] @@ -541,7 +536,7 @@ dependencies = [ "cssparser-macros", "dtoa-short", "itoa", - "phf", + "phf 0.10.1", "smallvec", ] @@ -766,10 +761,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427" dependencies = [ "cfg-if", - "js-sys", "libc", "wasi", - "wasm-bindgen", ] [[package]] @@ -852,6 +845,19 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" +[[package]] +name = "hstr" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de90d3db62411eb62eddabe402d706ac4970f7ac8d088c05f11069cad9be9857" +dependencies = [ + "new_debug_unreachable", + "once_cell", + "phf 0.11.2", + "rustc-hash", + "smallvec", +] + [[package]] name = "iana-time-zone" version = "0.1.57" @@ -1166,7 +1172,7 @@ dependencies = [ [[package]] name = "modularize_imports" -version = "0.55.0" +version = "0.56.0" dependencies = [ "convert_case", "handlebars", @@ -1292,7 +1298,7 @@ dependencies = [ "cssparser", "fxhash", "log", - "phf", + "phf 0.10.1", "phf_codegen", "precomputed-hash", "smallvec", @@ -1414,19 +1420,29 @@ version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fabbf1ead8a5bcbc20f5f8b939ee3f5b0f6f281b6ad3468b84656b658b455259" dependencies = [ - "phf_macros", - "phf_shared", + "phf_macros 0.10.0", + "phf_shared 0.10.0", "proc-macro-hack", ] +[[package]] +name = "phf" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc" +dependencies = [ + "phf_macros 0.11.2", + "phf_shared 0.11.2", +] + [[package]] name = "phf_codegen" version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4fb1c3a8bc4dd4e5cfce29b44ffc14bedd2ee294559a294e2a4d4c9e9a6a13cd" dependencies = [ - "phf_generator", - "phf_shared", + "phf_generator 0.10.0", + "phf_shared 0.10.0", ] [[package]] @@ -1435,7 +1451,17 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5d5285893bb5eb82e6aaf5d59ee909a06a16737a8970984dd7746ba9283498d6" dependencies = [ - "phf_shared", + "phf_shared 0.10.0", + "rand", +] + +[[package]] +name = "phf_generator" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48e4cc64c2ad9ebe670cb8fd69dd50ae301650392e81c05f9bfcb2d5bdbc24b0" +dependencies = [ + "phf_shared 0.11.2", "rand", ] @@ -1445,14 +1471,27 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "58fdf3184dd560f160dd73922bea2d5cd6e8f064bf4b13110abd81b03697b4e0" dependencies = [ - "phf_generator", - "phf_shared", + "phf_generator 0.10.0", + "phf_shared 0.10.0", "proc-macro-hack", "proc-macro2", "quote", "syn 1.0.109", ] +[[package]] +name = "phf_macros" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3444646e286606587e49f3bcf1679b8cef1dc2c5ecc29ddacaffc305180d464b" +dependencies = [ + "phf_generator 0.11.2", + "phf_shared 0.11.2", + "proc-macro2", + "quote", + "syn 2.0.32", +] + [[package]] name = "phf_shared" version = "0.10.0" @@ -1462,6 +1501,15 @@ dependencies = [ "siphasher", ] +[[package]] +name = "phf_shared" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90fcb95eef784c2ac79119d1dd819e162b5da872ce6f3c3abe1e8ca1c082f72b" +dependencies = [ + "siphasher", +] + [[package]] name = "pin-project-lite" version = "0.2.12" @@ -1499,11 +1547,11 @@ checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" [[package]] name = "preset_env_base" -version = "0.4.5" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae83c5857727636a1f2c7188632c8a57986d2f1d2e2cf45f2642f5856c5b8e85" +checksum = "3277c43d5ab99ddc71f4a301686c50a1a155339feb0cbe41492aabc211ef474f" dependencies = [ - "ahash 0.8.3", + "ahash 0.8.6", "anyhow", "browserslist-rs", "dashmap", @@ -1668,7 +1716,7 @@ dependencies = [ [[package]] name = "react_remove_properties" -version = "0.10.0" +version = "0.11.0" dependencies = [ "serde", "swc_atoms", @@ -1743,7 +1791,7 @@ checksum = "c707298afce11da2efef2f600116fa93ffa7a032b5d7b628aa17711ec81383ca" [[package]] name = "remove_console" -version = "0.11.0" +version = "0.12.0" dependencies = [ "serde", "swc_atoms", @@ -1897,17 +1945,6 @@ dependencies = [ "serde_derive", ] -[[package]] -name = "serde-wasm-bindgen" -version = "0.4.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3b4c031cd0d9014307d82b8abf653c0290fbdaeb4c02d00c63cf52f728628bf" -dependencies = [ - "js-sys", - "serde", - "wasm-bindgen", -] - [[package]] name = "serde_derive" version = "1.0.189" @@ -2031,12 +2068,6 @@ dependencies = [ "static-map-macro", ] -[[package]] -name = "stable_deref_trait" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" - [[package]] name = "stacker" version = "0.1.15" @@ -2098,7 +2129,7 @@ dependencies = [ "new_debug_unreachable", "once_cell", "parking_lot", - "phf_shared", + "phf_shared 0.10.0", "precomputed-hash", "serde", ] @@ -2109,8 +2140,8 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6bb30289b722be4ff74a408c3cc27edeaad656e06cb1fe8fa9231fa59c728988" dependencies = [ - "phf_generator", - "phf_shared", + "phf_generator 0.10.0", + "phf_shared 0.10.0", "proc-macro2", "quote", ] @@ -2136,7 +2167,7 @@ checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" [[package]] name = "styled_components" -version = "0.82.0" +version = "0.83.0" dependencies = [ "Inflector", "once_cell", @@ -2157,11 +2188,12 @@ dependencies = [ [[package]] name = "styled_jsx" -version = "0.59.0" +version = "0.60.0" dependencies = [ "easy-error", "lightningcss", "parcel_selectors", + "preset_env_base", "serde", "swc_common", "swc_css_ast", @@ -2212,27 +2244,25 @@ dependencies = [ [[package]] name = "swc_atoms" -version = "0.6.0" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebf7a12229f0c0efb654a6a0f8cbfd94fbd320a57c764857a82d8abe9342b450" +checksum = "b8a9e1b6d97f27b6abe5571f8fe3bdbd2fa987299fc2126450c7cde6214896ef" dependencies = [ "bytecheck", + "hstr", "once_cell", "rkyv", "rustc-hash", "serde", - "string_cache", - "string_cache_codegen", - "triomphe", ] [[package]] name = "swc_cached" -version = "0.3.17" +version = "0.3.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97b8051bbf1c23817f9f2912fce18d9a6efcaaf8f8e1a4c69dbaf72bcaf71136" +checksum = "68b357b80879f6c4f4f34879d02eeae63aafc7730293e6eda3686f990d160486" dependencies = [ - "ahash 0.8.3", + "ahash 0.8.6", "anyhow", "dashmap", "once_cell", @@ -2242,9 +2272,9 @@ dependencies = [ [[package]] name = "swc_common" -version = "0.33.1" +version = "0.33.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7c5aff4c50b1cb313487bb3dff99082779e1509a9d7e3b993790cb9ff72d14b" +checksum = "49fba1ce1d44f142b9e8212a6360fc7818e2c99c7f5ebe8b4fa4061c5764e48e" dependencies = [ "anyhow", "ast_node", @@ -2300,7 +2330,7 @@ dependencies = [ [[package]] name = "swc_constify" -version = "0.22.0" +version = "0.23.0" dependencies = [ "once_cell", "rustc-hash", @@ -2319,9 +2349,9 @@ dependencies = [ [[package]] name = "swc_core" -version = "0.86.16" +version = "0.86.55" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fc150980a536967131caf89ccedfbf425ba83fc08be3c8809dd310c73712853" +checksum = "59031d8691bb4e720f7ff5edfbe20c8e6c07a6dd3933d9da4323f308b6cbc475" dependencies = [ "once_cell", "swc_atoms", @@ -2339,9 +2369,9 @@ dependencies = [ [[package]] name = "swc_css_ast" -version = "0.140.0" +version = "0.140.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa155c888b70f7a1bc1de995006bda7c4b2c501712d8a88a1d6d9406b04be359" +checksum = "24e33aed6900a6478ec9bffa7cdf5249ea79b55fcc86b34872212800086504fa" dependencies = [ "is-macro", "string_enum", @@ -2351,9 +2381,9 @@ dependencies = [ [[package]] name = "swc_css_codegen" -version = "0.151.0" +version = "0.151.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd94d4f6b939a7643d29fd9322d87a0c6fd9488fd9a508472239e02abcfb3f29" +checksum = "71a04ac7b5672d740340ae09a6bcedad753d45ae9d4ec3b935617c20dce90094" dependencies = [ "auto_impl", "bitflags 2.4.0", @@ -2381,9 +2411,9 @@ dependencies = [ [[package]] name = "swc_css_minifier" -version = "0.116.0" +version = "0.116.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5861fcaa5a392d38a5f21f013a16c4e6f4b0f1dd2a0db8351f33588974169e63" +checksum = "f758a030c634a2dfd78c44ebefbb64c9155e086a72d15784ad3ee91c1fa66485" dependencies = [ "serde", "swc_atoms", @@ -2395,9 +2425,9 @@ dependencies = [ [[package]] name = "swc_css_parser" -version = "0.150.0" +version = "0.150.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04bce69bb9c68681ea4467d7c02906fd01245e9838b70c92dad4512e7ad23b2d" +checksum = "5a3a21dc7405cbb2f7c923e0759bc3ab4a561780b638e9e79c96675341fd89d0" dependencies = [ "lexical", "serde", @@ -2408,9 +2438,9 @@ dependencies = [ [[package]] name = "swc_css_prefixer" -version = "0.153.0" +version = "0.153.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "440823e50ce60fb4ece4d7e241849f32344676726f66324adfd38e9762ca07fe" +checksum = "18ee513d43dca0debd04de9f2df55292778f982ec27d02bc503203bb644e409d" dependencies = [ "once_cell", "preset_env_base", @@ -2425,9 +2455,9 @@ dependencies = [ [[package]] name = "swc_css_utils" -version = "0.137.0" +version = "0.137.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc71e4976bb516112b6d9d3da37989256e0fc6da84e3fe65c049ea1871515069" +checksum = "24fec9a00252d393ca43383109f38a68d64c326ca967b40ec35499ef0c57a7dc" dependencies = [ "once_cell", "serde", @@ -2440,9 +2470,9 @@ dependencies = [ [[package]] name = "swc_css_visit" -version = "0.139.0" +version = "0.139.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c94eb9e33d88fa3315464660a89873ff021ab940f56902d9961a06f85bdd1886" +checksum = "5f4827e116e4e417a5f7f995ef3e2ef83ddef034418667c5e1ed169f072053c2" dependencies = [ "serde", "swc_atoms", @@ -2453,14 +2483,15 @@ dependencies = [ [[package]] name = "swc_ecma_ast" -version = "0.110.1" +version = "0.110.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad53346adc2eb4f2accc5ff612ef6c5e0e4a687ce45c354816e628e5f7c8d876" +checksum = "4cefcc1c71bf00e48da7b65801d1fccf7eed2b7fa1fc5c4848ed09801bfe2403" dependencies = [ "bitflags 2.4.0", "bytecheck", "is-macro", "num-bigint", + "phf 0.11.2", "rkyv", "scoped-tls", "serde", @@ -2472,9 +2503,9 @@ dependencies = [ [[package]] name = "swc_ecma_codegen" -version = "0.146.4" +version = "0.146.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25072d4697d22370f48f9807a57cf81cabb257793834c839b229242d720191fa" +checksum = "4105aa856cf108c883d484e5f252bca16832f0a50c2b331a8326a86d5500474b" dependencies = [ "memchr", "num-bigint", @@ -2504,9 +2535,9 @@ dependencies = [ [[package]] name = "swc_ecma_minifier" -version = "0.189.1" +version = "0.189.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57524e1f80b1facd4332aea354365a42772addc484a571130173f4512a18c902" +checksum = "b72a1fab4acc13920a9fe8f8e936b29907bec9239dbbc1ced79ec12de841269d" dependencies = [ "arrayvec", "indexmap", @@ -2538,13 +2569,15 @@ dependencies = [ [[package]] name = "swc_ecma_parser" -version = "0.141.4" +version = "0.141.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cfdb522b9e8e2bdea5d4f0a7bf311acf38ba44d48e52b4cb9ab8dcb8814cb7ed" +checksum = "acfad502c2e0579e09e216da1c627d583fdbc6c8a08f2c8bd0160f9119d4246d" dependencies = [ "either", + "new_debug_unreachable", "num-bigint", "num-traits", + "phf 0.11.2", "serde", "smallvec", "smartstring", @@ -2558,9 +2591,9 @@ dependencies = [ [[package]] name = "swc_ecma_quote_macros" -version = "0.52.4" +version = "0.52.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7a3fa8831a60e0791c0c858273907c822c99ade76987fb276d6883adf27c557" +checksum = "51c6de18105523ee7c930178406cd324c272ae21bc549e53593105b345969e18" dependencies = [ "anyhow", "pmutil", @@ -2576,9 +2609,9 @@ dependencies = [ [[package]] name = "swc_ecma_testing" -version = "0.22.1" +version = "0.22.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc49bcb4c6db93972e12f965892dcfd9e1f06c3fc3a1d195972e4c9ade9e0b12" +checksum = "62dc3d273ef4f7fe39b670b7f1fdd2dd33518f5de987e7f7fe9d1b44e650e891" dependencies = [ "anyhow", "hex", @@ -2589,9 +2622,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms" -version = "0.226.1" +version = "0.226.39" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f989184c2b223d1c0d00e0c4abe2e60ce04c7cbc3be80fc28ef403799d7d00ae" +checksum = "9e530f1782f36eb6ba7ac09af888257c75679ad677f129bab439132157b8c41f" dependencies = [ "swc_atoms", "swc_common", @@ -2603,15 +2636,15 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_base" -version = "0.134.9" +version = "0.134.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c7692452ac60c89b570c1592e4a0723a201d8e3933c3838f44846f9d7aaa2b5" +checksum = "6b008a854b2429e01b5c810e415392fe18560fc868997d0cbd8587a6d8c37206" dependencies = [ "better_scoped_tls", "bitflags 2.4.0", "indexmap", "once_cell", - "phf", + "phf 0.10.1", "rustc-hash", "serde", "smallvec", @@ -2639,9 +2672,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_optimization" -version = "0.195.1" +version = "0.195.39" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d6de1cd412b1bf59f1c71f61c6399a89faab1f2a99657cffcf889cde5cce09f" +checksum = "ec62f44ddacecf926214682efa7ad8aa942b1654de1ebc7497c454effe8f76f6" dependencies = [ "dashmap", "indexmap", @@ -2663,9 +2696,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_react" -version = "0.180.5" +version = "0.180.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "417f343e75a3c0c0df0504651947c012b4f8de1519d14c9e7cc7fb847326ced8" +checksum = "6dac44af882b337afd9dabba1d949702c589157b338d686674a8758310225226" dependencies = [ "base64", "dashmap", @@ -2687,9 +2720,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_testing" -version = "0.137.9" +version = "0.137.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30b410ed8b663592843306d9b7c92492aa3a77446b7fb54431a5b3d5b4f1176f" +checksum = "5b585e3a54a8b2fc9cccba22ba5b3a3cd77a230a0e9032708d3de5386471c9fa" dependencies = [ "ansi_term", "anyhow", @@ -2713,9 +2746,9 @@ dependencies = [ [[package]] name = "swc_ecma_usage_analyzer" -version = "0.20.4" +version = "0.20.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d71bbc022658f28e9455c6199069d48dc54b487bc883343f4b265b0f4c44966e" +checksum = "6c4981e6638f22bef973fffa5c9cf70d2f2cd64d449fe72a0e05fe262a15ac7f" dependencies = [ "indexmap", "rustc-hash", @@ -2730,9 +2763,9 @@ dependencies = [ [[package]] name = "swc_ecma_utils" -version = "0.124.8" +version = "0.124.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b85d6043cc8f771d2b8dae78062931ce65ad4552198c6a4fdcc5c4888facf01a" +checksum = "d32413e3fe1aa7a375d8c57fad7321d51b8b8a7b30b403fe468a74ccfc8b71a5" dependencies = [ "indexmap", "num_cpus", @@ -2748,9 +2781,9 @@ dependencies = [ [[package]] name = "swc_ecma_visit" -version = "0.96.1" +version = "0.96.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "582559a61496786b159640b50e99320ca5cd7f3f4ea09afd5f48c02253ba579b" +checksum = "21305b130986e771206c9f447c8040f9b3be47c9fbbb1f659904e223b8e1c007" dependencies = [ "num-bigint", "swc_atoms", @@ -2762,7 +2795,7 @@ dependencies = [ [[package]] name = "swc_emotion" -version = "0.58.0" +version = "0.59.0" dependencies = [ "base64", "byteorder", @@ -2801,9 +2834,9 @@ dependencies = [ [[package]] name = "swc_error_reporters" -version = "0.17.1" +version = "0.17.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1318961e85f58032030e137e5e42b4a90b3a166e05acf340d0195ad5652b764" +checksum = "4a80f674bef7baf65c979f684bbe9fa8f4e275e3b61589b62d6dc260331a102b" dependencies = [ "anyhow", "miette", @@ -2814,9 +2847,9 @@ dependencies = [ [[package]] name = "swc_fast_graph" -version = "0.21.0" +version = "0.21.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b97e69e9617913611e39284cf724a412ab7fc6081708d0ef2820855774da5357" +checksum = "392047ce047ab6f9c02ef17e7e19627c0050fe6dbb0bccd2350a92664a859c62" dependencies = [ "indexmap", "petgraph", @@ -2838,7 +2871,7 @@ dependencies = [ [[package]] name = "swc_magic" -version = "0.5.0" +version = "0.6.0" dependencies = [ "serde", "swc_atoms", @@ -2895,7 +2928,7 @@ dependencies = [ name = "swc_plugin_jest" version = "0.25.3" dependencies = [ - "phf", + "phf 0.10.1", "serde", "swc_common", "swc_core", @@ -2950,9 +2983,9 @@ dependencies = [ [[package]] name = "swc_plugin_proxy" -version = "0.39.1" +version = "0.39.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6934fd5732f841f6aef392e492ee6936c8797cdfbc4baafe57b1c9ef1c6c944" +checksum = "e73aa3453e0026b009f35462b77f7dbc2e1b9a91cd92fae6f517802f3b6f4561" dependencies = [ "better_scoped_tls", "rkyv", @@ -3075,7 +3108,7 @@ dependencies = [ [[package]] name = "swc_relay" -version = "0.30.0" +version = "0.31.0" dependencies = [ "once_cell", "regex", @@ -3093,9 +3126,9 @@ dependencies = [ [[package]] name = "swc_timer" -version = "0.21.0" +version = "0.21.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77a6e150f91760ccaca6f6b797b95ffb00bbc245a71311c483b84a7bc700e9c4" +checksum = "388d9d8a67d907c9a5f69250a32134b80fa01c2c03b7fbfcdbb9e8d4ed18b3ed" dependencies = [ "tracing", ] @@ -3197,9 +3230,9 @@ dependencies = [ [[package]] name = "testing" -version = "0.35.1" +version = "0.35.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76f3d926524064129f7725899543b1724519dfc753df27236b30c21669e4b2a8" +checksum = "94fa85c2c4605cd16c3b358b125a23b36e01fe04a0ef687d22df97baa4b25fa8" dependencies = [ "ansi_term", "cargo_metadata 0.15.4", @@ -3207,6 +3240,7 @@ dependencies = [ "once_cell", "pretty_assertions", "regex", + "serde", "serde_json", "swc_common", "swc_error_reporters", @@ -3379,16 +3413,6 @@ dependencies = [ "tracing-log", ] -[[package]] -name = "triomphe" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0eee8098afad3fb0c54a9007aab6804558410503ad676d4633f9c2559a00ac0f" -dependencies = [ - "serde", - "stable_deref_trait", -] - [[package]] name = "typed-arena" version = "2.0.2" @@ -3691,3 +3715,23 @@ name = "yansi" version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09041cd90cf85f7f8b2df60c646f853b7f535ce68f85244eb6731cf89fa498ec" + +[[package]] +name = "zerocopy" +version = "0.7.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8cd369a67c0edfef15010f980c3cbe45d7f651deac2cd67ce097cd801de16557" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.7.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2f140bda219a26ccc0cdb03dba58af72590c53b22642577d88a927bc5c87d6b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.32", +] diff --git a/packages/constify/Cargo.toml b/packages/constify/Cargo.toml index 2715457ec..62fc855b6 100644 --- a/packages/constify/Cargo.toml +++ b/packages/constify/Cargo.toml @@ -13,10 +13,10 @@ version = "0.1.0" crate-type = ["cdylib", "rlib"] [dependencies] -swc_common = { version = "0.33.0", features = ["concurrent"] } +swc_common = { version = "0.33.8", features = ["concurrent"] } swc_constify = { path = "./transform" } tracing = { version = "0.1.37", features = ["release_max_level_off"] } -swc_ecma_visit = "0.96.0" -swc_ecma_utils = "0.124.4" -swc_ecma_ast = "0.110.0" +swc_ecma_visit = "0.96.9" +swc_ecma_utils = "0.124.27" +swc_ecma_ast = "0.110.9" swc_plugin_macro = "0.9.15" diff --git a/packages/constify/package.json b/packages/constify/package.json index 93fdc3e13..08a1796a7 100644 --- a/packages/constify/package.json +++ b/packages/constify/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-constify", - "version": "0.1.27", + "version": "0.1.28", "description": "SWC plugin for optimization", "main": "swc_plugin_constify.wasm", "scripts": { diff --git a/packages/constify/transform/Cargo.toml b/packages/constify/transform/Cargo.toml index 7afd1d468..755e42c5e 100644 --- a/packages/constify/transform/Cargo.toml +++ b/packages/constify/transform/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_constify" repository = "https://github.com/swc-project/plugins.git" -version = "0.22.0" +version = "0.23.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -13,17 +13,17 @@ version = "0.22.0" tracing = { version = "0.1.37" } rustc-hash = "1.1.0" -swc_common = "0.33.0" -swc_ecma_ast = "0.110.0" -swc_ecma_utils = "0.124.4" -swc_ecma_visit = "0.96.0" -swc_atoms = "0.6.0" +swc_common = "0.33.8" +swc_ecma_ast = "0.110.9" +swc_ecma_utils = "0.124.27" +swc_ecma_visit = "0.96.9" +swc_atoms = "0.6.4" once_cell = "1.18.0" [dev-dependencies] serde_json = "1" -swc_ecma_parser = "0.141.1" -swc_ecma_transforms_base = "0.134.4" -swc_ecma_transforms_testing = "0.137.4" -testing = "0.35.0" +swc_ecma_parser = "0.141.22" +swc_ecma_transforms_base = "0.134.31" +swc_ecma_transforms_testing = "0.137.33" +testing = "0.35.10" diff --git a/packages/emotion/Cargo.toml b/packages/emotion/Cargo.toml index 53349633f..e729aee3e 100644 --- a/packages/emotion/Cargo.toml +++ b/packages/emotion/Cargo.toml @@ -13,12 +13,12 @@ crate-type = ["cdylib", "rlib"] [dependencies] serde = "1" serde_json = "1.0.79" -swc_common = { version = "0.33.0", features = ["concurrent"] } -swc_core = { version = "0.86.1", features = ["ecma_plugin_transform"] } -swc_ecma_ast = "0.110.0" -swc_ecma_utils = "0.124.4" -swc_ecma_visit = "0.96.0" +swc_common = { version = "0.33.8", features = ["concurrent"] } +swc_core = { version = "0.86.55", features = ["ecma_plugin_transform"] } +swc_ecma_ast = "0.110.9" +swc_ecma_utils = "0.124.27" +swc_ecma_visit = "0.96.9" swc_emotion = { path = "./transform" } swc_plugin_macro = "0.9.15" -swc_plugin_proxy = "0.39.0" +swc_plugin_proxy = "0.39.9" tracing = { version = "0.1.37", features = ["release_max_level_off"] } diff --git a/packages/emotion/package.json b/packages/emotion/package.json index 49dae34ab..a2d024b3b 100644 --- a/packages/emotion/package.json +++ b/packages/emotion/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-emotion", - "version": "2.5.97", + "version": "2.5.98", "description": "SWC plugin for emotion css-in-js library", "main": "swc_plugin_emotion.wasm", "scripts": { diff --git a/packages/emotion/transform/Cargo.toml b/packages/emotion/transform/Cargo.toml index 9afc22bd5..c6e964116 100644 --- a/packages/emotion/transform/Cargo.toml +++ b/packages/emotion/transform/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_emotion" repository = "https://github.com/swc-project/plugins.git" -version = "0.58.0" +version = "0.59.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -18,18 +18,18 @@ radix_fmt = "1" regex = "1.5" serde = "1" sourcemap = "6.0.1" -swc_atoms = "0.6.0" -swc_common = "0.33.0" -swc_ecma_ast = "0.110.0" -swc_ecma_codegen = "0.146.1" -swc_ecma_utils = "0.124.4" -swc_ecma_visit = "0.96.0" +swc_atoms = "0.6.4" +swc_common = "0.33.8" +swc_ecma_ast = "0.110.9" +swc_ecma_codegen = "0.146.25" +swc_ecma_utils = "0.124.27" +swc_ecma_visit = "0.96.9" swc_trace_macro = "0.1.3" tracing = { version = "0.1.37" } [dev-dependencies] serde_json = "1" -swc_ecma_parser = "0.141.1" -swc_ecma_transforms_react = "0.180.5" -swc_ecma_transforms_testing = "0.137.4" -testing = "0.35.0" +swc_ecma_parser = "0.141.22" +swc_ecma_transforms_react = "0.180.40" +swc_ecma_transforms_testing = "0.137.33" +testing = "0.35.10" diff --git a/packages/jest/Cargo.toml b/packages/jest/Cargo.toml index 2a3ba6492..5a8ccb7d4 100644 --- a/packages/jest/Cargo.toml +++ b/packages/jest/Cargo.toml @@ -13,10 +13,10 @@ crate-type = ["cdylib", "rlib"] [dependencies] phf = { version = "0.10.0", features = ["macros"] } serde = { version = "1.0.130", features = ["derive"] } -swc_common = { version = "0.33.0", features = ["concurrent"] } -swc_core = { version = "0.86.1", features = ["ecma_plugin_transform"] } -swc_ecma_ast = "0.110.0" -swc_ecma_utils = "0.124.4" -swc_ecma_visit = "0.96.0" +swc_common = { version = "0.33.8", features = ["concurrent"] } +swc_core = { version = "0.86.55", features = ["ecma_plugin_transform"] } +swc_ecma_ast = "0.110.9" +swc_ecma_utils = "0.124.27" +swc_ecma_visit = "0.96.9" swc_plugin_macro = "0.9.15" tracing = { version = "0.1.37", features = ["release_max_level_off"] } diff --git a/packages/jest/package.json b/packages/jest/package.json index 23cf9452e..53be27026 100644 --- a/packages/jest/package.json +++ b/packages/jest/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-jest", - "version": "1.5.97", + "version": "1.5.98", "description": "SWC plugin for jest", "main": "swc_plugin_jest.wasm", "scripts": { diff --git a/packages/loadable-components/Cargo.toml b/packages/loadable-components/Cargo.toml index 5572ea367..fe90505de 100644 --- a/packages/loadable-components/Cargo.toml +++ b/packages/loadable-components/Cargo.toml @@ -14,14 +14,14 @@ crate-type = ["cdylib", "rlib"] once_cell = "1.13.1" regex = "1.6.0" serde_json = "1.0.79" -swc_common = { version = "0.33.0", features = ["concurrent"] } -swc_core = { version = "0.86.1", features = ["ecma_quote", "ecma_plugin_transform"] } -swc_ecma_ast = "0.110.0" -swc_ecma_utils = "0.124.4" -swc_ecma_visit = "0.96.0" +swc_common = { version = "0.33.8", features = ["concurrent"] } +swc_core = { version = "0.86.55", features = ["ecma_quote", "ecma_plugin_transform"] } +swc_ecma_ast = "0.110.9" +swc_ecma_utils = "0.124.27" +swc_ecma_visit = "0.96.9" swc_plugin_macro = "0.9.15" -swc_plugin_proxy = "0.39.0" +swc_plugin_proxy = "0.39.9" tracing = { version = "0.1.37", features = ["release_max_level_off"] } [dev-dependencies] -testing = "0.35.0" +testing = "0.35.10" diff --git a/packages/loadable-components/package.json b/packages/loadable-components/package.json index cd5ef9c6e..5b1fa1858 100644 --- a/packages/loadable-components/package.json +++ b/packages/loadable-components/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-loadable-components", - "version": "0.3.97", + "version": "0.3.98", "description": "SWC plugin for `@loadable/components`", "main": "swc_plugin_loadable_components.wasm", "scripts": { diff --git a/packages/loadable-components/tests/fixture/Magic comment/should remove only needed comments/output.js b/packages/loadable-components/tests/fixture/Magic comment/should remove only needed comments/output.js index 05c5f3102..47d5ccdea 100644 --- a/packages/loadable-components/tests/fixture/Magic comment/should remove only needed comments/output.js +++ b/packages/loadable-components/tests/fixture/Magic comment/should remove only needed comments/output.js @@ -3,23 +3,23 @@ const load = { chunkName () { return "moment"; }, - isReady (props1) { - const key1 = this.resolve(props1); - if (this.resolved[key1] !== true) { + isReady (props) { + const key = this.resolve(props); + if (this.resolved[key] !== true) { return false; } if (typeof __webpack_modules__ !== 'undefined') { - return !!__webpack_modules__[key1]; + return !!__webpack_modules__[key]; } return false; }, importAsync: /* IMPORTANT! */ ()=>import(/*webpackChunkName: "moment"*/ 'moment'), - requireAsync (props1) { - const key1 = this.resolve(props1); - this.resolved[key1] = false; - return this.importAsync(props1).then((resolved1)=>{ - this.resolved[key1] = true; - return resolved1; + requireAsync (props) { + const key = this.resolve(props); + this.resolved[key] = false; + return this.importAsync(props).then((resolved)=>{ + this.resolved[key] = true; + return resolved; }); }, requireSync (props) { diff --git a/packages/loadable-components/tests/fixture/Magic comment/should transpile arrow functions/output.js b/packages/loadable-components/tests/fixture/Magic comment/should transpile arrow functions/output.js index e16499e2a..a508f7928 100644 --- a/packages/loadable-components/tests/fixture/Magic comment/should transpile arrow functions/output.js +++ b/packages/loadable-components/tests/fixture/Magic comment/should transpile arrow functions/output.js @@ -3,23 +3,23 @@ const load = { chunkName () { return "moment"; }, - isReady (props1) { - const key1 = this.resolve(props1); - if (this.resolved[key1] !== true) { + isReady (props) { + const key = this.resolve(props); + if (this.resolved[key] !== true) { return false; } if (typeof __webpack_modules__ !== 'undefined') { - return !!__webpack_modules__[key1]; + return !!__webpack_modules__[key]; } return false; }, importAsync: ()=>import(/*webpackChunkName: "moment"*/ 'moment'), - requireAsync (props1) { - const key1 = this.resolve(props1); - this.resolved[key1] = false; - return this.importAsync(props1).then((resolved1)=>{ - this.resolved[key1] = true; - return resolved1; + requireAsync (props) { + const key = this.resolve(props); + this.resolved[key] = false; + return this.importAsync(props).then((resolved)=>{ + this.resolved[key] = true; + return resolved; }); }, requireSync (props) { diff --git a/packages/loadable-components/tests/fixture/Magic comment/should transpile function expression/output.js b/packages/loadable-components/tests/fixture/Magic comment/should transpile function expression/output.js index 42b30816b..237d32387 100644 --- a/packages/loadable-components/tests/fixture/Magic comment/should transpile function expression/output.js +++ b/packages/loadable-components/tests/fixture/Magic comment/should transpile function expression/output.js @@ -3,25 +3,25 @@ const load = { chunkName () { return "moment"; }, - isReady (props1) { - const key1 = this.resolve(props1); - if (this.resolved[key1] !== true) { + isReady (props) { + const key = this.resolve(props); + if (this.resolved[key] !== true) { return false; } if (typeof __webpack_modules__ !== 'undefined') { - return !!__webpack_modules__[key1]; + return !!__webpack_modules__[key]; } return false; }, importAsync: function() { return import(/*webpackChunkName: "moment"*/ 'moment'); }, - requireAsync (props1) { - const key1 = this.resolve(props1); - this.resolved[key1] = false; - return this.importAsync(props1).then((resolved1)=>{ - this.resolved[key1] = true; - return resolved1; + requireAsync (props) { + const key = this.resolve(props); + this.resolved[key] = false; + return this.importAsync(props).then((resolved)=>{ + this.resolved[key] = true; + return resolved; }); }, requireSync (props) { diff --git a/packages/loadable-components/tests/fixture/Magic comment/should transpile shortand properties/output.js b/packages/loadable-components/tests/fixture/Magic comment/should transpile shortand properties/output.js index 941f203a7..7f0ba48ff 100644 --- a/packages/loadable-components/tests/fixture/Magic comment/should transpile shortand properties/output.js +++ b/packages/loadable-components/tests/fixture/Magic comment/should transpile shortand properties/output.js @@ -4,25 +4,25 @@ const obj = { chunkName () { return "moment"; }, - isReady (props1) { - const key1 = this.resolve(props1); - if (this.resolved[key1] !== true) { + isReady (props) { + const key = this.resolve(props); + if (this.resolved[key] !== true) { return false; } if (typeof __webpack_modules__ !== 'undefined') { - return !!__webpack_modules__[key1]; + return !!__webpack_modules__[key]; } return false; }, importAsync: function() { return import(/*webpackChunkName: "moment"*/ 'moment'); }, - requireAsync (props1) { - const key1 = this.resolve(props1); - this.resolved[key1] = false; - return this.importAsync(props1).then((resolved1)=>{ - this.resolved[key1] = true; - return resolved1; + requireAsync (props) { + const key = this.resolve(props); + this.resolved[key] = false; + return this.importAsync(props).then((resolved)=>{ + this.resolved[key] = true; + return resolved; }); }, requireSync (props) { diff --git a/packages/loadable-components/tests/fixture/aggressive import/should work with destructuration/output.js b/packages/loadable-components/tests/fixture/aggressive import/should work with destructuration/output.js index c146ff922..ccc18964a 100644 --- a/packages/loadable-components/tests/fixture/aggressive import/should work with destructuration/output.js +++ b/packages/loadable-components/tests/fixture/aggressive import/should work with destructuration/output.js @@ -1,25 +1,25 @@ loadable({ resolved: {}, - chunkName ({ foo: foo1 }) { - return `${foo1}`.replace(/[^a-zA-Z0-9_!§$()=\\-^°]+/g, "-"); + chunkName ({ foo }) { + return `${foo}`.replace(/[^a-zA-Z0-9_!§$()=\\-^°]+/g, "-"); }, - isReady (props1) { - const key1 = this.resolve(props1); - if (this.resolved[key1] !== true) { + isReady (props) { + const key = this.resolve(props); + if (this.resolved[key] !== true) { return false; } if (typeof __webpack_modules__ !== 'undefined') { - return !!__webpack_modules__[key1]; + return !!__webpack_modules__[key]; } return false; }, - importAsync: ({ foo: foo1 })=>import(/*webpackChunkName: "[request]"*/ `./${foo1}`), - requireAsync (props1) { - const key1 = this.resolve(props1); - this.resolved[key1] = false; - return this.importAsync(props1).then((resolved1)=>{ - this.resolved[key1] = true; - return resolved1; + importAsync: ({ foo })=>import(/*webpackChunkName: "[request]"*/ `./${foo}`), + requireAsync (props) { + const key = this.resolve(props); + this.resolved[key] = false; + return this.importAsync(props).then((resolved)=>{ + this.resolved[key] = true; + return resolved; }); }, requireSync (props) { @@ -29,7 +29,7 @@ loadable({ } return eval('module.require')(id); }, - resolve ({ foo }) { + resolve ({ foo }) { if (require.resolveWeak) { return require.resolveWeak(`./${foo}`); } diff --git a/packages/loadable-components/tests/fixture/aggressive import/with webpackChunkName/should keep it/output.js b/packages/loadable-components/tests/fixture/aggressive import/with webpackChunkName/should keep it/output.js index 11d0a05f4..88c405e44 100644 --- a/packages/loadable-components/tests/fixture/aggressive import/with webpackChunkName/should keep it/output.js +++ b/packages/loadable-components/tests/fixture/aggressive import/with webpackChunkName/should keep it/output.js @@ -1,25 +1,25 @@ loadable({ resolved: {}, - chunkName (props1) { - return "pages/" + props1.path.replace(/[^a-zA-Z0-9_!§$()=\\-^°]+/g, "-"); + chunkName (props) { + return "pages/" + props.path.replace(/[^a-zA-Z0-9_!§$()=\\-^°]+/g, "-"); }, - isReady (props1) { - const key1 = this.resolve(props1); - if (this.resolved[key1] !== true) { + isReady (props) { + const key = this.resolve(props); + if (this.resolved[key] !== true) { return false; } if (typeof __webpack_modules__ !== 'undefined') { - return !!__webpack_modules__[key1]; + return !!__webpack_modules__[key]; } return false; }, - importAsync: (props1)=>import(/*webpackChunkName: "pages/[request]"*/ `./pages/${props1.path}`), - requireAsync (props1) { - const key1 = this.resolve(props1); - this.resolved[key1] = false; - return this.importAsync(props1).then((resolved1)=>{ - this.resolved[key1] = true; - return resolved1; + importAsync: (props)=>import(/*webpackChunkName: "pages/[request]"*/ `./pages/${props.path}`), + requireAsync (props) { + const key = this.resolve(props); + this.resolved[key] = false; + return this.importAsync(props).then((resolved)=>{ + this.resolved[key] = true; + return resolved; }); }, requireSync (props) { diff --git a/packages/loadable-components/tests/fixture/aggressive import/with webpackChunkName/should replace it/output.js b/packages/loadable-components/tests/fixture/aggressive import/with webpackChunkName/should replace it/output.js index 9e67f04fa..8c8713376 100644 --- a/packages/loadable-components/tests/fixture/aggressive import/with webpackChunkName/should replace it/output.js +++ b/packages/loadable-components/tests/fixture/aggressive import/with webpackChunkName/should replace it/output.js @@ -1,25 +1,25 @@ loadable({ resolved: {}, - chunkName (props1) { - return `${props1.foo}`.replace(/[^a-zA-Z0-9_!§$()=\\-^°]+/g, "-"); + chunkName (props) { + return `${props.foo}`.replace(/[^a-zA-Z0-9_!§$()=\\-^°]+/g, "-"); }, - isReady (props1) { - const key1 = this.resolve(props1); - if (this.resolved[key1] !== true) { + isReady (props) { + const key = this.resolve(props); + if (this.resolved[key] !== true) { return false; } if (typeof __webpack_modules__ !== 'undefined') { - return !!__webpack_modules__[key1]; + return !!__webpack_modules__[key]; } return false; }, - importAsync: (props1)=>import(/*webpackChunkName: "[request]"*/ `./${props1.foo}`), - requireAsync (props1) { - const key1 = this.resolve(props1); - this.resolved[key1] = false; - return this.importAsync(props1).then((resolved1)=>{ - this.resolved[key1] = true; - return resolved1; + importAsync: (props)=>import(/*webpackChunkName: "[request]"*/ `./${props.foo}`), + requireAsync (props) { + const key = this.resolve(props); + this.resolved[key] = false; + return this.importAsync(props).then((resolved)=>{ + this.resolved[key] = true; + return resolved; }); }, requireSync (props) { diff --git a/packages/loadable-components/tests/fixture/aggressive import/without webpackChunkName/should support complex request/output.js b/packages/loadable-components/tests/fixture/aggressive import/without webpackChunkName/should support complex request/output.js index 303462428..bbc95bbe1 100644 --- a/packages/loadable-components/tests/fixture/aggressive import/without webpackChunkName/should support complex request/output.js +++ b/packages/loadable-components/tests/fixture/aggressive import/without webpackChunkName/should support complex request/output.js @@ -1,25 +1,25 @@ loadable({ resolved: {}, - chunkName (props1) { - return `dir-${props1.foo}-test`.replace(/[^a-zA-Z0-9_!§$()=\\-^°]+/g, "-"); + chunkName (props) { + return `dir-${props.foo}-test`.replace(/[^a-zA-Z0-9_!§$()=\\-^°]+/g, "-"); }, - isReady (props1) { - const key1 = this.resolve(props1); - if (this.resolved[key1] !== true) { + isReady (props) { + const key = this.resolve(props); + if (this.resolved[key] !== true) { return false; } if (typeof __webpack_modules__ !== 'undefined') { - return !!__webpack_modules__[key1]; + return !!__webpack_modules__[key]; } return false; }, - importAsync: (props1)=>import(/*webpackChunkName: "dir-[request]"*/ `./dir/${props1.foo}/test`), - requireAsync (props1) { - const key1 = this.resolve(props1); - this.resolved[key1] = false; - return this.importAsync(props1).then((resolved1)=>{ - this.resolved[key1] = true; - return resolved1; + importAsync: (props)=>import(/*webpackChunkName: "dir-[request]"*/ `./dir/${props.foo}/test`), + requireAsync (props) { + const key = this.resolve(props); + this.resolved[key] = false; + return this.importAsync(props).then((resolved)=>{ + this.resolved[key] = true; + return resolved; }); }, requireSync (props) { diff --git a/packages/loadable-components/tests/fixture/aggressive import/without webpackChunkName/should support destructuring/output.js b/packages/loadable-components/tests/fixture/aggressive import/without webpackChunkName/should support destructuring/output.js index 82ad9730f..eba8f031e 100644 --- a/packages/loadable-components/tests/fixture/aggressive import/without webpackChunkName/should support destructuring/output.js +++ b/packages/loadable-components/tests/fixture/aggressive import/without webpackChunkName/should support destructuring/output.js @@ -1,25 +1,25 @@ loadable({ resolved: {}, - chunkName ({ foo: foo1 }) { - return `dir-${foo1}-test`.replace(/[^a-zA-Z0-9_!§$()=\\-^°]+/g, "-"); + chunkName ({ foo }) { + return `dir-${foo}-test`.replace(/[^a-zA-Z0-9_!§$()=\\-^°]+/g, "-"); }, - isReady (props1) { - const key1 = this.resolve(props1); - if (this.resolved[key1] !== true) { + isReady (props) { + const key = this.resolve(props); + if (this.resolved[key] !== true) { return false; } if (typeof __webpack_modules__ !== 'undefined') { - return !!__webpack_modules__[key1]; + return !!__webpack_modules__[key]; } return false; }, - importAsync: ({ foo: foo1 })=>import(/*webpackChunkName: "dir-[request]"*/ `./dir/${foo1}/test`), - requireAsync (props1) { - const key1 = this.resolve(props1); - this.resolved[key1] = false; - return this.importAsync(props1).then((resolved1)=>{ - this.resolved[key1] = true; - return resolved1; + importAsync: ({ foo })=>import(/*webpackChunkName: "dir-[request]"*/ `./dir/${foo}/test`), + requireAsync (props) { + const key = this.resolve(props); + this.resolved[key] = false; + return this.importAsync(props).then((resolved)=>{ + this.resolved[key] = true; + return resolved; }); }, requireSync (props) { @@ -29,7 +29,7 @@ loadable({ } return eval('module.require')(id); }, - resolve ({ foo }) { + resolve ({ foo }) { if (require.resolveWeak) { return require.resolveWeak(`./dir/${foo}/test`); } diff --git a/packages/loadable-components/tests/fixture/aggressive import/without webpackChunkName/should support simple request/output.js b/packages/loadable-components/tests/fixture/aggressive import/without webpackChunkName/should support simple request/output.js index 9e67f04fa..8c8713376 100644 --- a/packages/loadable-components/tests/fixture/aggressive import/without webpackChunkName/should support simple request/output.js +++ b/packages/loadable-components/tests/fixture/aggressive import/without webpackChunkName/should support simple request/output.js @@ -1,25 +1,25 @@ loadable({ resolved: {}, - chunkName (props1) { - return `${props1.foo}`.replace(/[^a-zA-Z0-9_!§$()=\\-^°]+/g, "-"); + chunkName (props) { + return `${props.foo}`.replace(/[^a-zA-Z0-9_!§$()=\\-^°]+/g, "-"); }, - isReady (props1) { - const key1 = this.resolve(props1); - if (this.resolved[key1] !== true) { + isReady (props) { + const key = this.resolve(props); + if (this.resolved[key] !== true) { return false; } if (typeof __webpack_modules__ !== 'undefined') { - return !!__webpack_modules__[key1]; + return !!__webpack_modules__[key]; } return false; }, - importAsync: (props1)=>import(/*webpackChunkName: "[request]"*/ `./${props1.foo}`), - requireAsync (props1) { - const key1 = this.resolve(props1); - this.resolved[key1] = false; - return this.importAsync(props1).then((resolved1)=>{ - this.resolved[key1] = true; - return resolved1; + importAsync: (props)=>import(/*webpackChunkName: "[request]"*/ `./${props.foo}`), + requireAsync (props) { + const key = this.resolve(props); + this.resolved[key] = false; + return this.importAsync(props).then((resolved)=>{ + this.resolved[key] = true; + return resolved; }); }, requireSync (props) { diff --git a/packages/loadable-components/tests/fixture/loadable.lib/should be transpiled too/output.js b/packages/loadable-components/tests/fixture/loadable.lib/should be transpiled too/output.js index 304bc5612..5d95fcbe4 100644 --- a/packages/loadable-components/tests/fixture/loadable.lib/should be transpiled too/output.js +++ b/packages/loadable-components/tests/fixture/loadable.lib/should be transpiled too/output.js @@ -3,23 +3,23 @@ loadable.lib({ chunkName () { return "moment"; }, - isReady (props1) { - const key1 = this.resolve(props1); - if (this.resolved[key1] !== true) { + isReady (props) { + const key = this.resolve(props); + if (this.resolved[key] !== true) { return false; } if (typeof __webpack_modules__ !== 'undefined') { - return !!__webpack_modules__[key1]; + return !!__webpack_modules__[key]; } return false; }, importAsync: ()=>import(/*webpackChunkName: "moment"*/ 'moment'), - requireAsync (props1) { - const key1 = this.resolve(props1); - this.resolved[key1] = false; - return this.importAsync(props1).then((resolved1)=>{ - this.resolved[key1] = true; - return resolved1; + requireAsync (props) { + const key = this.resolve(props); + this.resolved[key] = false; + return this.importAsync(props).then((resolved)=>{ + this.resolved[key] = true; + return resolved; }); }, requireSync (props) { diff --git a/packages/loadable-components/tests/fixture/simple import/in a complex promise/should work/output.js b/packages/loadable-components/tests/fixture/simple import/in a complex promise/should work/output.js index b04c6b2db..6985ad145 100644 --- a/packages/loadable-components/tests/fixture/simple import/in a complex promise/should work/output.js +++ b/packages/loadable-components/tests/fixture/simple import/in a complex promise/should work/output.js @@ -3,23 +3,23 @@ loadable({ chunkName () { return "ModA"; }, - isReady (props1) { - const key1 = this.resolve(props1); - if (this.resolved[key1] !== true) { + isReady (props) { + const key = this.resolve(props); + if (this.resolved[key] !== true) { return false; } if (typeof __webpack_modules__ !== 'undefined') { - return !!__webpack_modules__[key1]; + return !!__webpack_modules__[key]; } return false; }, importAsync: ()=>timeout(import(/*webpackChunkName: "ModA"*/ './ModA'), 2000), - requireAsync (props1) { - const key1 = this.resolve(props1); - this.resolved[key1] = false; - return this.importAsync(props1).then((resolved1)=>{ - this.resolved[key1] = true; - return resolved1; + requireAsync (props) { + const key = this.resolve(props); + this.resolved[key] = false; + return this.importAsync(props).then((resolved)=>{ + this.resolved[key] = true; + return resolved; }); }, requireSync (props) { diff --git a/packages/loadable-components/tests/fixture/simple import/should transform path into chunk-friendly name/output.js b/packages/loadable-components/tests/fixture/simple import/should transform path into chunk-friendly name/output.js index e97cf43dc..6c5c90aa5 100644 --- a/packages/loadable-components/tests/fixture/simple import/should transform path into chunk-friendly name/output.js +++ b/packages/loadable-components/tests/fixture/simple import/should transform path into chunk-friendly name/output.js @@ -3,23 +3,23 @@ loadable({ chunkName () { return "foo-bar"; }, - isReady (props1) { - const key1 = this.resolve(props1); - if (this.resolved[key1] !== true) { + isReady (props) { + const key = this.resolve(props); + if (this.resolved[key] !== true) { return false; } if (typeof __webpack_modules__ !== 'undefined') { - return !!__webpack_modules__[key1]; + return !!__webpack_modules__[key]; } return false; }, importAsync: ()=>import(/*webpackChunkName: "foo-bar"*/ '../foo/bar'), - requireAsync (props1) { - const key1 = this.resolve(props1); - this.resolved[key1] = false; - return this.importAsync(props1).then((resolved1)=>{ - this.resolved[key1] = true; - return resolved1; + requireAsync (props) { + const key = this.resolve(props); + this.resolved[key] = false; + return this.importAsync(props).then((resolved)=>{ + this.resolved[key] = true; + return resolved; }); }, requireSync (props) { diff --git a/packages/loadable-components/tests/fixture/simple import/should work with mul in name/output.js b/packages/loadable-components/tests/fixture/simple import/should work with mul in name/output.js index 154dd706e..a046e67e4 100644 --- a/packages/loadable-components/tests/fixture/simple import/should work with mul in name/output.js +++ b/packages/loadable-components/tests/fixture/simple import/should work with mul in name/output.js @@ -3,23 +3,23 @@ loadable({ chunkName () { return `foo`.replace(/[^a-zA-Z0-9_!§$()=\\-^°]+/g, "-"); }, - isReady (props1) { - const key1 = this.resolve(props1); - if (this.resolved[key1] !== true) { + isReady (props) { + const key = this.resolve(props); + if (this.resolved[key] !== true) { return false; } if (typeof __webpack_modules__ !== 'undefined') { - return !!__webpack_modules__[key1]; + return !!__webpack_modules__[key]; } return false; }, importAsync: ()=>import(/*webpackChunkName: "foo"*/ `./foo*`), - requireAsync (props1) { - const key1 = this.resolve(props1); - this.resolved[key1] = false; - return this.importAsync(props1).then((resolved1)=>{ - this.resolved[key1] = true; - return resolved1; + requireAsync (props) { + const key = this.resolve(props); + this.resolved[key] = false; + return this.importAsync(props).then((resolved)=>{ + this.resolved[key] = true; + return resolved; }); }, requireSync (props) { diff --git a/packages/loadable-components/tests/fixture/simple import/should work with plus concatenation/output.js b/packages/loadable-components/tests/fixture/simple import/should work with plus concatenation/output.js index 99c445b64..b42e052c8 100644 --- a/packages/loadable-components/tests/fixture/simple import/should work with plus concatenation/output.js +++ b/packages/loadable-components/tests/fixture/simple import/should work with plus concatenation/output.js @@ -3,23 +3,23 @@ loadable({ chunkName () { return ""; }, - isReady (props1) { - const key1 = this.resolve(props1); - if (this.resolved[key1] !== true) { + isReady (props) { + const key = this.resolve(props); + if (this.resolved[key] !== true) { return false; } if (typeof __webpack_modules__ !== 'undefined') { - return !!__webpack_modules__[key1]; + return !!__webpack_modules__[key]; } return false; }, importAsync: ()=>import(/*webpackChunkName: ""*/ './Mod' + 'A'), - requireAsync (props1) { - const key1 = this.resolve(props1); - this.resolved[key1] = false; - return this.importAsync(props1).then((resolved1)=>{ - this.resolved[key1] = true; - return resolved1; + requireAsync (props) { + const key = this.resolve(props); + this.resolved[key] = false; + return this.importAsync(props).then((resolved)=>{ + this.resolved[key] = true; + return resolved; }); }, requireSync (props) { diff --git a/packages/loadable-components/tests/fixture/simple import/should work with template literal/output.js b/packages/loadable-components/tests/fixture/simple import/should work with template literal/output.js index 0dc36d1b5..bca81ae28 100644 --- a/packages/loadable-components/tests/fixture/simple import/should work with template literal/output.js +++ b/packages/loadable-components/tests/fixture/simple import/should work with template literal/output.js @@ -3,23 +3,23 @@ loadable({ chunkName () { return `ModA`.replace(/[^a-zA-Z0-9_!§$()=\\-^°]+/g, "-"); }, - isReady (props1) { - const key1 = this.resolve(props1); - if (this.resolved[key1] !== true) { + isReady (props) { + const key = this.resolve(props); + if (this.resolved[key] !== true) { return false; } if (typeof __webpack_modules__ !== 'undefined') { - return !!__webpack_modules__[key1]; + return !!__webpack_modules__[key]; } return false; }, importAsync: ()=>import(/*webpackChunkName: "ModA"*/ `./ModA`), - requireAsync (props1) { - const key1 = this.resolve(props1); - this.resolved[key1] = false; - return this.importAsync(props1).then((resolved1)=>{ - this.resolved[key1] = true; - return resolved1; + requireAsync (props) { + const key = this.resolve(props); + this.resolved[key] = false; + return this.importAsync(props).then((resolved)=>{ + this.resolved[key] = true; + return resolved; }); }, requireSync (props) { diff --git a/packages/loadable-components/tests/fixture/simple import/with webpackChunkName comment/should add it/output.js b/packages/loadable-components/tests/fixture/simple import/with webpackChunkName comment/should add it/output.js index 005e8d9c6..675f94977 100644 --- a/packages/loadable-components/tests/fixture/simple import/with webpackChunkName comment/should add it/output.js +++ b/packages/loadable-components/tests/fixture/simple import/with webpackChunkName comment/should add it/output.js @@ -3,23 +3,23 @@ loadable({ chunkName () { return "ModA"; }, - isReady (props1) { - const key1 = this.resolve(props1); - if (this.resolved[key1] !== true) { + isReady (props) { + const key = this.resolve(props); + if (this.resolved[key] !== true) { return false; } if (typeof __webpack_modules__ !== 'undefined') { - return !!__webpack_modules__[key1]; + return !!__webpack_modules__[key]; } return false; }, importAsync: ()=>import(/*webpackChunkName: "ModA"*/ './ModA'), - requireAsync (props1) { - const key1 = this.resolve(props1); - this.resolved[key1] = false; - return this.importAsync(props1).then((resolved1)=>{ - this.resolved[key1] = true; - return resolved1; + requireAsync (props) { + const key = this.resolve(props); + this.resolved[key] = false; + return this.importAsync(props).then((resolved)=>{ + this.resolved[key] = true; + return resolved; }); }, requireSync (props) { diff --git a/packages/loadable-components/tests/fixture/simple import/with webpackChunkName comment/should use it even if comment is separated by ,/output.js b/packages/loadable-components/tests/fixture/simple import/with webpackChunkName comment/should use it even if comment is separated by ,/output.js index 92c3be1c4..bc2d71a3f 100644 --- a/packages/loadable-components/tests/fixture/simple import/with webpackChunkName comment/should use it even if comment is separated by ,/output.js +++ b/packages/loadable-components/tests/fixture/simple import/with webpackChunkName comment/should use it even if comment is separated by ,/output.js @@ -3,23 +3,23 @@ loadable({ chunkName () { return "ChunkA"; }, - isReady (props1) { - const key1 = this.resolve(props1); - if (this.resolved[key1] !== true) { + isReady (props) { + const key = this.resolve(props); + if (this.resolved[key] !== true) { return false; } if (typeof __webpack_modules__ !== 'undefined') { - return !!__webpack_modules__[key1]; + return !!__webpack_modules__[key]; } return false; }, importAsync: ()=>import(/*webpackChunkName: "ChunkA", webpackPrefetch: "true"*/ './ModA'), - requireAsync (props1) { - const key1 = this.resolve(props1); - this.resolved[key1] = false; - return this.importAsync(props1).then((resolved1)=>{ - this.resolved[key1] = true; - return resolved1; + requireAsync (props) { + const key = this.resolve(props); + this.resolved[key] = false; + return this.importAsync(props).then((resolved)=>{ + this.resolved[key] = true; + return resolved; }); }, requireSync (props) { diff --git a/packages/loadable-components/tests/fixture/simple import/with webpackChunkName comment/should use it/output.js b/packages/loadable-components/tests/fixture/simple import/with webpackChunkName comment/should use it/output.js index 3af6c338d..e0ece3fe7 100644 --- a/packages/loadable-components/tests/fixture/simple import/with webpackChunkName comment/should use it/output.js +++ b/packages/loadable-components/tests/fixture/simple import/with webpackChunkName comment/should use it/output.js @@ -3,23 +3,23 @@ loadable({ chunkName () { return "ChunkA"; }, - isReady (props1) { - const key1 = this.resolve(props1); - if (this.resolved[key1] !== true) { + isReady (props) { + const key = this.resolve(props); + if (this.resolved[key] !== true) { return false; } if (typeof __webpack_modules__ !== 'undefined') { - return !!__webpack_modules__[key1]; + return !!__webpack_modules__[key]; } return false; }, importAsync: ()=>import(/*webpackChunkName: "ChunkA"*/ './ModA'), - requireAsync (props1) { - const key1 = this.resolve(props1); - this.resolved[key1] = false; - return this.importAsync(props1).then((resolved1)=>{ - this.resolved[key1] = true; - return resolved1; + requireAsync (props) { + const key = this.resolve(props); + this.resolved[key] = false; + return this.importAsync(props).then((resolved)=>{ + this.resolved[key] = true; + return resolved; }); }, requireSync (props) { diff --git a/packages/noop/Cargo.toml b/packages/noop/Cargo.toml index c97af0da5..e4479b70a 100644 --- a/packages/noop/Cargo.toml +++ b/packages/noop/Cargo.toml @@ -11,10 +11,10 @@ version = "0.12.3" crate-type = ["cdylib", "rlib"] [dependencies] -swc_common = { version = "0.33.0", features = ["concurrent"] } -swc_core = { version = "0.86.1", features = ["ecma_plugin_transform"] } -swc_ecma_ast = "0.110.0" -swc_ecma_utils = "0.124.4" -swc_ecma_visit = "0.96.0" +swc_common = { version = "0.33.8", features = ["concurrent"] } +swc_core = { version = "0.86.55", features = ["ecma_plugin_transform"] } +swc_ecma_ast = "0.110.9" +swc_ecma_utils = "0.124.27" +swc_ecma_visit = "0.96.9" swc_plugin_macro = "0.9.15" tracing = { version = "0.1.37", features = ["release_max_level_off"] } diff --git a/packages/noop/package.json b/packages/noop/package.json index 7d11abc7a..18a3645e0 100644 --- a/packages/noop/package.json +++ b/packages/noop/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-noop", - "version": "1.5.95", + "version": "1.5.96", "description": "Noop SWC plugin, for debugging", "main": "swc_plugin_noop.wasm", "scripts": { diff --git a/packages/react-remove-properties/Cargo.toml b/packages/react-remove-properties/Cargo.toml index dcdc15681..dd25f3eb5 100644 --- a/packages/react-remove-properties/Cargo.toml +++ b/packages/react-remove-properties/Cargo.toml @@ -13,11 +13,11 @@ crate-type = ["cdylib", "rlib"] [dependencies] react_remove_properties = { path = "./transform" } serde_json = "1.0.79" -swc_cached = "0.3.17" -swc_common = { version = "0.33.0", features = ["concurrent"] } -swc_core = { version = "0.86.1", features = ["ecma_plugin_transform"] } -swc_ecma_ast = "0.110.0" -swc_ecma_utils = "0.124.4" -swc_ecma_visit = "0.96.0" +swc_cached = "0.3.18" +swc_common = { version = "0.33.8", features = ["concurrent"] } +swc_core = { version = "0.86.55", features = ["ecma_plugin_transform"] } +swc_ecma_ast = "0.110.9" +swc_ecma_utils = "0.124.27" +swc_ecma_visit = "0.96.9" swc_plugin_macro = "0.9.15" tracing = { version = "0.1.37", features = ["release_max_level_off"] } diff --git a/packages/react-remove-properties/package.json b/packages/react-remove-properties/package.json index 09cb87c22..f27cc58aa 100644 --- a/packages/react-remove-properties/package.json +++ b/packages/react-remove-properties/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-react-remove-properties", - "version": "1.5.97", + "version": "1.5.98", "description": "SWC plugin for https://www.npmjs.com/package/babel-plugin-react-remove-properties", "main": "swc_plugin_react_remove_properties.wasm", "scripts": { diff --git a/packages/react-remove-properties/transform/Cargo.toml b/packages/react-remove-properties/transform/Cargo.toml index 89e243737..d591d2bf0 100644 --- a/packages/react-remove-properties/transform/Cargo.toml +++ b/packages/react-remove-properties/transform/Cargo.toml @@ -5,20 +5,20 @@ edition = "2021" license = "Apache-2.0" name = "react_remove_properties" repository = "https://github.com/swc-project/plugins.git" -version = "0.10.0" +version = "0.11.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] serde = { version = "1", features = ["derive"] } -swc_atoms = "0.6.0" -swc_cached = "0.3.17" -swc_common = "0.33.0" -swc_ecma_ast = "0.110.0" -swc_ecma_visit = "0.96.0" +swc_atoms = "0.6.4" +swc_cached = "0.3.18" +swc_common = "0.33.8" +swc_ecma_ast = "0.110.9" +swc_ecma_visit = "0.96.9" [dev-dependencies] -swc_ecma_parser = "0.141.1" -swc_ecma_transforms_base = "0.134.4" -swc_ecma_transforms_testing = "0.137.4" -testing = "0.35.0" +swc_ecma_parser = "0.141.22" +swc_ecma_transforms_base = "0.134.31" +swc_ecma_transforms_testing = "0.137.33" +testing = "0.35.10" diff --git a/packages/relay/Cargo.toml b/packages/relay/Cargo.toml index 25a4f2424..dbd8a84d5 100644 --- a/packages/relay/Cargo.toml +++ b/packages/relay/Cargo.toml @@ -15,13 +15,13 @@ once_cell = "1.8.0" regex = "1.5" serde = "1" serde_json = "1" -swc_common = { version = "0.33.0", features = ["concurrent"] } +swc_common = { version = "0.33.8", features = ["concurrent"] } tracing = { version = "0.1.37", features = ["release_max_level_off"] } -swc_core = { version = "0.86.1", features = ["ecma_plugin_transform"] } +swc_core = { version = "0.86.55", features = ["ecma_plugin_transform"] } swc_relay = { path = "./transform" } -swc_ecma_ast = "0.110.0" -swc_ecma_utils = "0.124.4" -swc_ecma_visit = "0.96.0" +swc_ecma_ast = "0.110.9" +swc_ecma_utils = "0.124.27" +swc_ecma_visit = "0.96.9" swc_plugin_macro = "0.9.15" [dev-dependencies] diff --git a/packages/relay/package.json b/packages/relay/package.json index 8b46371be..b6dc446f4 100644 --- a/packages/relay/package.json +++ b/packages/relay/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-relay", - "version": "1.5.97", + "version": "1.5.98", "description": "SWC plugin for relay", "main": "swc_plugin_relay.wasm", "types": "./types.d.ts", diff --git a/packages/relay/transform/Cargo.toml b/packages/relay/transform/Cargo.toml index ace9c153e..4adbff82b 100644 --- a/packages/relay/transform/Cargo.toml +++ b/packages/relay/transform/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_relay" repository = "https://github.com/swc-project/plugins.git" -version = "0.30.0" +version = "0.31.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -14,13 +14,13 @@ once_cell = "1.8.0" regex = "1.5" serde = "1" serde_json = "1" -swc_atoms = "0.6.0" -swc_common = { version = "0.33.0", features = ["concurrent"] } -swc_ecma_ast = "0.110.0" -swc_ecma_utils = "0.124.4" -swc_ecma_visit = "0.96.0" +swc_atoms = "0.6.4" +swc_common = { version = "0.33.8", features = ["concurrent"] } +swc_ecma_ast = "0.110.9" +swc_ecma_utils = "0.124.27" +swc_ecma_visit = "0.96.9" tracing = { version = "0.1.37" } [dev-dependencies] -swc_ecma_transforms_testing = "0.137.4" -testing = "0.35.0" +swc_ecma_transforms_testing = "0.137.33" +testing = "0.35.10" diff --git a/packages/remove-console/Cargo.toml b/packages/remove-console/Cargo.toml index e76133bf8..cbf96362a 100644 --- a/packages/remove-console/Cargo.toml +++ b/packages/remove-console/Cargo.toml @@ -13,10 +13,10 @@ crate-type = ["cdylib", "rlib"] [dependencies] remove_console = { path = "./transform" } serde_json = "1.0.79" -swc_common = { version = "0.33.0", features = ["concurrent"] } -swc_core = { version = "0.86.1", features = ["ecma_plugin_transform"] } -swc_ecma_ast = "0.110.0" -swc_ecma_utils = "0.124.4" -swc_ecma_visit = "0.96.0" +swc_common = { version = "0.33.8", features = ["concurrent"] } +swc_core = { version = "0.86.55", features = ["ecma_plugin_transform"] } +swc_ecma_ast = "0.110.9" +swc_ecma_utils = "0.124.27" +swc_ecma_visit = "0.96.9" swc_plugin_macro = "0.9.15" tracing = { version = "0.1.37", features = ["release_max_level_off"] } diff --git a/packages/remove-console/package.json b/packages/remove-console/package.json index 52087195f..860c4dfe0 100644 --- a/packages/remove-console/package.json +++ b/packages/remove-console/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-remove-console", - "version": "1.5.97", + "version": "1.5.98", "description": "SWC plugin for https://www.npmjs.com/package/babel-plugin-remove-console", "main": "swc_plugin_remove_console.wasm", "scripts": { diff --git a/packages/remove-console/transform/Cargo.toml b/packages/remove-console/transform/Cargo.toml index b84b7837b..314fa9f1b 100644 --- a/packages/remove-console/transform/Cargo.toml +++ b/packages/remove-console/transform/Cargo.toml @@ -5,20 +5,20 @@ edition = "2021" license = "Apache-2.0" name = "remove_console" repository = "https://github.com/swc-project/plugins.git" -version = "0.11.0" +version = "0.12.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] serde = { version = "1", features = ["derive"] } -swc_atoms = "0.6.0" -swc_cached = "0.3.17" -swc_common = "0.33.0" -swc_ecma_ast = "0.110.0" -swc_ecma_visit = "0.96.0" +swc_atoms = "0.6.4" +swc_cached = "0.3.18" +swc_common = "0.33.8" +swc_ecma_ast = "0.110.9" +swc_ecma_visit = "0.96.9" [dev-dependencies] -swc_ecma_parser = "0.141.1" -swc_ecma_transforms_base = "0.134.4" -swc_ecma_transforms_testing = "0.137.4" -testing = "0.35.0" +swc_ecma_parser = "0.141.22" +swc_ecma_transforms_base = "0.134.31" +swc_ecma_transforms_testing = "0.137.33" +testing = "0.35.10" diff --git a/packages/styled-components/Cargo.toml b/packages/styled-components/Cargo.toml index 1ae2b3491..7bba85788 100644 --- a/packages/styled-components/Cargo.toml +++ b/packages/styled-components/Cargo.toml @@ -14,11 +14,11 @@ crate-type = ["cdylib", "rlib"] serde = { version = "1.0.136", features = ["derive"] } serde_json = "1.0.79" styled_components = { path = "./transform" } -swc_atoms = "0.6.0" -swc_common = { version = "0.33.0", features = ["concurrent"] } -swc_core = { version = "0.86.1", features = ["ecma_plugin_transform"] } -swc_ecma_ast = "0.110.0" -swc_ecma_utils = "0.124.4" -swc_ecma_visit = "0.96.0" +swc_atoms = "0.6.4" +swc_common = { version = "0.33.8", features = ["concurrent"] } +swc_core = { version = "0.86.55", features = ["ecma_plugin_transform"] } +swc_ecma_ast = "0.110.9" +swc_ecma_utils = "0.124.27" +swc_ecma_visit = "0.96.9" swc_plugin_macro = "0.9.15" tracing = { version = "0.1.37", features = ["release_max_level_off"] } diff --git a/packages/styled-components/package.json b/packages/styled-components/package.json index c0892033a..6ca5d7f56 100644 --- a/packages/styled-components/package.json +++ b/packages/styled-components/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-styled-components", - "version": "1.5.97", + "version": "1.5.98", "description": "SWC plugin for styled-components", "main": "swc_plugin_styled_components.wasm", "scripts": { diff --git a/packages/styled-components/transform/Cargo.toml b/packages/styled-components/transform/Cargo.toml index 784ff004e..8a30f1e73 100644 --- a/packages/styled-components/transform/Cargo.toml +++ b/packages/styled-components/transform/Cargo.toml @@ -6,7 +6,7 @@ include = ["Cargo.toml", "src/**/*.rs"] license = "Apache-2.0" name = "styled_components" repository = "https://github.com/swc-project/plugins.git" -version = "0.82.0" +version = "0.83.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -18,16 +18,16 @@ regex = { version = "1.5.4", features = [ "perf", ], default-features = false } serde = { version = "1.0.130", features = ["derive"] } -swc_atoms = "0.6.0" -swc_common = "0.33.0" -swc_ecma_ast = "0.110.0" -swc_ecma_utils = "0.124.4" -swc_ecma_visit = "0.96.0" +swc_atoms = "0.6.4" +swc_common = "0.33.8" +swc_ecma_ast = "0.110.9" +swc_ecma_utils = "0.124.27" +swc_ecma_visit = "0.96.9" tracing = "0.1.37" [dev-dependencies] serde_json = "1" -swc_ecma_parser = "0.141.1" -swc_ecma_transforms = "0.226.1" -swc_ecma_transforms_testing = "0.137.4" -testing = "0.35.0" +swc_ecma_parser = "0.141.22" +swc_ecma_transforms = "0.226.39" +swc_ecma_transforms_testing = "0.137.33" +testing = "0.35.10" diff --git a/packages/styled-jsx/Cargo.toml b/packages/styled-jsx/Cargo.toml index 19ed42d78..52d3dff87 100644 --- a/packages/styled-jsx/Cargo.toml +++ b/packages/styled-jsx/Cargo.toml @@ -18,16 +18,16 @@ easy-error = "1.0.0" styled_jsx = { path = "./transform" } tracing = { version = "0.1.37", features = ["release_max_level_off"] } serde_json = "1" -swc_common = "0.33.0" -swc_ecma_ast = "0.110.0" -swc_ecma_parser = "0.141.1" -swc_ecma_minifier = "0.189.1" -swc_ecma_utils = "0.124.4" -swc_ecma_visit = "0.96.0" +swc_common = "0.33.8" +swc_ecma_ast = "0.110.9" +swc_ecma_parser = "0.141.22" +swc_ecma_minifier = "0.189.44" +swc_ecma_utils = "0.124.27" +swc_ecma_visit = "0.96.9" swc_plugin_macro = "0.9.15" -swc_atoms = "0.6.0" -swc_core = { version = "0.86.1", features = ["ecma_plugin_transform"] } +swc_atoms = "0.6.4" +swc_core = { version = "0.86.55", features = ["ecma_plugin_transform"] } [dev-dependencies] -swc_ecma_transforms_testing = "0.137.4" -testing = "0.35.0" +swc_ecma_transforms_testing = "0.137.33" +testing = "0.35.10" diff --git a/packages/styled-jsx/package.json b/packages/styled-jsx/package.json index 0ab7caec1..289a92bcd 100644 --- a/packages/styled-jsx/package.json +++ b/packages/styled-jsx/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-styled-jsx", - "version": "1.5.97", + "version": "1.5.98", "description": "SWC plugin for styled-jsx", "main": "swc_plugin_styled_jsx.wasm", "scripts": { diff --git a/packages/styled-jsx/transform/Cargo.toml b/packages/styled-jsx/transform/Cargo.toml index 103af445d..d400cf673 100644 --- a/packages/styled-jsx/transform/Cargo.toml +++ b/packages/styled-jsx/transform/Cargo.toml @@ -4,7 +4,7 @@ description = "AST transforms visitor for styled-jsx" edition = "2021" license = "Apache-2.0" name = "styled_jsx" -version = "0.59.0" +version = "0.60.0" [features] custom_transform = ["swc_common/concurrent"] @@ -19,21 +19,22 @@ lightningcss = { version = "1.0.0-alpha.49", features = [ parcel_selectors = "0.26.3" serde = { version = "1", features = ["derive"] } -swc_common = "0.33.0" -swc_ecma_ast = "0.110.0" -swc_ecma_utils = "0.124.4" -swc_ecma_visit = "0.96.0" +swc_common = "0.33.8" +swc_ecma_ast = "0.110.9" +swc_ecma_utils = "0.124.27" +swc_ecma_visit = "0.96.9" swc_plugin_macro = "0.9.15" -swc_ecma_parser = "0.141.1" -swc_ecma_minifier = "0.189.1" -swc_css_ast = "0.140.0" -swc_css_codegen = "0.151.0" -swc_css_parser = "0.150.0" -swc_css_prefixer = "0.153.0" -swc_css_minifier = "0.116.0" -swc_css_visit = "0.139.0" +swc_ecma_parser = "0.141.22" +swc_ecma_minifier = "0.189.44" +swc_css_ast = "0.140.9" +swc_css_codegen = "0.151.15" +swc_css_parser = "0.150.15" +swc_css_prefixer = "0.153.17" +swc_css_minifier = "0.116.15" +swc_css_visit = "0.139.9" +preset_env_base = "0.4.7" [dev-dependencies] -testing = "0.35.0" -swc_ecma_transforms_testing = "0.137.4" -swc_ecma_transforms = "0.226.1" +testing = "0.35.10" +swc_ecma_transforms_testing = "0.137.33" +swc_ecma_transforms = "0.226.39" diff --git a/packages/styled-jsx/transform/src/transform_css_lightningcss.rs b/packages/styled-jsx/transform/src/transform_css_lightningcss.rs index bc3f55386..28c4daa93 100644 --- a/packages/styled-jsx/transform/src/transform_css_lightningcss.rs +++ b/packages/styled-jsx/transform/src/transform_css_lightningcss.rs @@ -12,12 +12,14 @@ use lightningcss::{ properties::custom::{TokenList, TokenOrValue}, selector::{Combinator, Component, PseudoClass, Selector}, stylesheet::{MinifyOptions, ParserFlags, ParserOptions, PrinterOptions, StyleSheet}, + targets::{Browsers, Targets}, traits::{IntoOwned, ParseWithOptions, ToCss}, values::ident::Ident, visit_types, visitor::{Visit, VisitTypes, Visitor}, }; use parcel_selectors::{parser::SelectorIter, SelectorImpl}; +use preset_env_base::{version::Version, Versions}; use swc_common::{ errors::{DiagnosticBuilder, Level, HANDLER}, BytePos, Loc, SourceMap, Span, DUMMY_SP, @@ -67,13 +69,14 @@ fn report( #[cfg_attr( debug_assertions, - tracing::instrument(skip(cm, style_info, class_name)) + tracing::instrument(skip(cm, style_info, class_name, browsers)) )] pub fn transform_css( cm: Arc, style_info: &LocalStyle, is_global: bool, class_name: &Option, + browsers: &Versions, ) -> Result { let mut file_lines_cache = None; @@ -150,8 +153,10 @@ pub fn transform_css( let res = ss .to_css(PrinterOptions { minify: true, - // TODO - // targets: (), + targets: Targets { + browsers: Some(convert_browsers(browsers)), + ..Default::default() + }, ..Default::default() }) .context("failed to print css")?; @@ -188,6 +193,24 @@ pub fn transform_css( })) } +fn convert_browsers(browsers: &Versions) -> Browsers { + fn convert(v: Option) -> Option { + v.map(|v| v.major << 16 | v.minor << 8 | v.patch) + } + + Browsers { + android: convert(browsers.android), + chrome: convert(browsers.chrome), + edge: convert(browsers.edge), + firefox: convert(browsers.firefox), + ie: convert(browsers.ie), + ios_saf: convert(browsers.ios), + opera: convert(browsers.opera), + safari: convert(browsers.safari), + samsung: convert(browsers.samsung), + } +} + fn strip_comments(s: &str) -> Cow { if !s.contains("//") { return Cow::Borrowed(s); diff --git a/packages/styled-jsx/transform/src/visitor.rs b/packages/styled-jsx/transform/src/visitor.rs index 2196a35a9..1bdc5a035 100644 --- a/packages/styled-jsx/transform/src/visitor.rs +++ b/packages/styled-jsx/transform/src/visitor.rs @@ -6,6 +6,7 @@ use std::{ }; use easy_error::{bail, Error}; +use preset_env_base::Versions; use serde::Deserialize; use swc_common::{collections::AHashSet, errors::HANDLER, FileName, SourceMap, Span, DUMMY_SP}; use swc_ecma_ast::*; @@ -25,11 +26,14 @@ use crate::{ }, }; -#[derive(Debug, Clone, Copy, Deserialize)] +#[derive(Debug, Clone, Copy, Default, Deserialize)] #[serde(rename_all = "camelCase")] pub struct Config { #[serde(default)] pub use_lightningcss: bool, + + #[serde(default)] + pub browsers: Versions, } pub fn styled_jsx(cm: Arc, file_name: FileName, config: Config) -> impl Fold { @@ -575,6 +579,7 @@ impl StyledJSXTransformer { style_info, is_global, &self.static_class_name, + &self.config.browsers, )? } else { crate::transform_css_swc::transform_css( @@ -639,6 +644,7 @@ impl StyledJSXTransformer { style, tag == "global", &static_class_name, + &self.config.browsers, )? } else { crate::transform_css_swc::transform_css( diff --git a/packages/styled-jsx/transform/tests/fixture-swc-only/next-55679/output.swc.js b/packages/styled-jsx/transform/tests/fixture-swc-only/next-55679/output.swc.js index 9fd9e39c9..e869987b5 100644 --- a/packages/styled-jsx/transform/tests/fixture-swc-only/next-55679/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture-swc-only/next-55679/output.swc.js @@ -4,9 +4,9 @@ const someVar = "--var-1"; export default function App({ Component, pageProps }) { return <> - <_JSXStyle id={"e26e4619775cb212"}>{`:root{${someVar}:red;background-color:var(${someVar})}`} + <_JSXStyle id={"caeea3e7c6bbdab1"}>{`:root{${someVar}:red;background-color:var(${someVar})}`} - + ; } diff --git a/packages/styled-jsx/transform/tests/fixture.rs b/packages/styled-jsx/transform/tests/fixture.rs index 0c2b9d13c..0b53b0202 100644 --- a/packages/styled-jsx/transform/tests/fixture.rs +++ b/packages/styled-jsx/transform/tests/fixture.rs @@ -29,7 +29,10 @@ fn run(input: PathBuf, use_lightningcss: bool) { styled_jsx( t.cm.clone(), FileName::Real(PathBuf::from("/some-project/src/some-file.js")), - styled_jsx::visitor::Config { use_lightningcss } + styled_jsx::visitor::Config { + use_lightningcss, + ..Default::default() + } ) ) }, @@ -55,7 +58,10 @@ fn run(input: PathBuf, use_lightningcss: bool) { styled_jsx( t.cm.clone(), FileName::Real(PathBuf::from("/some-project/src/some-file.js")), - styled_jsx::visitor::Config { use_lightningcss } + styled_jsx::visitor::Config { + use_lightningcss, + ..Default::default() + } ) ) }, @@ -100,6 +106,7 @@ fn styled_jsx_errors(input: PathBuf) { file_name.clone(), styled_jsx::visitor::Config { use_lightningcss: false, + ..Default::default() }, ) }, @@ -123,6 +130,7 @@ fn styled_jsx_errors(input: PathBuf) { file_name.clone(), styled_jsx::visitor::Config { use_lightningcss: true, + ..Default::default() }, ) }, diff --git a/packages/styled-jsx/transform/tests/fixture/attribute-generation-modes/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/attribute-generation-modes/output.lightningcss.js index 65eaff32e..d0affafae 100644 --- a/packages/styled-jsx/transform/tests/fixture/attribute-generation-modes/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/attribute-generation-modes/output.lightningcss.js @@ -24,7 +24,7 @@ export const Test2 = ()=>
external and dynamic

- <_JSXStyle id={"9c31b4e09db208f"} dynamic={[ + <_JSXStyle id={"9184bb6edf7bc64f"} dynamic={[ color ]}>{`p.__jsx-style-dynamic-selector{color:${color}}`} @@ -50,7 +50,7 @@ export const Test3 = ({ color })=>
{"p.jsx-ceba8c9ce34e3d0c{display:inline-block}"} - <_JSXStyle id={"1539cc167dc1aeca"} dynamic={[ + <_JSXStyle id={"6701811b6595fdea"} dynamic={[ color ]}>{`p.__jsx-style-dynamic-selector{color:${color}}`} @@ -88,7 +88,7 @@ export const Test5 = ()=>
// static and dynamic export const Test6 = ({ color })=>
{"p.jsx-ceba8c9ce34e3d0c{display:inline-block}"} - <_JSXStyle id={"1539cc167dc1aeca"} dynamic={[ + <_JSXStyle id={"6701811b6595fdea"} dynamic={[ color ]}>{`p.__jsx-style-dynamic-selector{color:${color}}`} @@ -114,7 +114,7 @@ export const Test6 = ({ color })=>
dynamic only

- <_JSXStyle id={"9c31b4e09db208f"} dynamic={[ + <_JSXStyle id={"9184bb6edf7bc64f"} dynamic={[ color ]}>{`p.__jsx-style-dynamic-selector{color:${color}}`} @@ -143,7 +143,7 @@ export const Test8 = ({ color })=>{ }; return
{

dynamic with scoped compound variable

- <_JSXStyle id={"ce96f6fd3314e56c"} dynamic={[ + <_JSXStyle id={"186c28ec802c19ff"} dynamic={[ innerProps.color ]}>{`p.__jsx-style-dynamic-selector{color:${innerProps.color}}`} @@ -173,7 +173,7 @@ export const Test9 = ({ color })=>{ }; return
{

dynamic with compound variable

- <_JSXStyle id={"af2545654d3cb2ee"} dynamic={[ + <_JSXStyle id={"fb3b9ef40ebae7d2"} dynamic={[ innerProps.color ]}>{`p.__jsx-style-dynamic-selector{color:${innerProps.color}}`} @@ -197,11 +197,11 @@ export const Test9 = ({ color })=>{ }; const foo = 'red'; // dynamic with constant variable -export const Test10 = ()=>
+export const Test10 = ()=>
-

dynamic with constant variable

+

dynamic with constant variable

- <_JSXStyle id={"cbdf2f44af4108bd"}>{`p.jsx-cbdf2f44af4108bd{color:${foo}}`} + <_JSXStyle id={"cad01dfd39875649"}>{`p.jsx-cad01dfd39875649{color:${foo}}`}
; // dynamic with complex scope @@ -210,14 +210,14 @@ export const Test11 = ({ color })=>{ length: 5 }).map((item, i)=>
  • - <_JSXStyle id={"4c662a3c1ebc397e"} dynamic={[ + <_JSXStyle id={"d69269f169655123"} dynamic={[ color ]}>{`.item.__jsx-style-dynamic-selector{color:${color}}`} diff --git a/packages/styled-jsx/transform/tests/fixture/attribute-generation-modes/output.swc.js b/packages/styled-jsx/transform/tests/fixture/attribute-generation-modes/output.swc.js index 65eaff32e..d0affafae 100644 --- a/packages/styled-jsx/transform/tests/fixture/attribute-generation-modes/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/attribute-generation-modes/output.swc.js @@ -24,7 +24,7 @@ export const Test2 = ()=>
    external and dynamic

    - <_JSXStyle id={"9c31b4e09db208f"} dynamic={[ + <_JSXStyle id={"9184bb6edf7bc64f"} dynamic={[ color ]}>{`p.__jsx-style-dynamic-selector{color:${color}}`} @@ -50,7 +50,7 @@ export const Test3 = ({ color })=>
    {"p.jsx-ceba8c9ce34e3d0c{display:inline-block}"} - <_JSXStyle id={"1539cc167dc1aeca"} dynamic={[ + <_JSXStyle id={"6701811b6595fdea"} dynamic={[ color ]}>{`p.__jsx-style-dynamic-selector{color:${color}}`} @@ -88,7 +88,7 @@ export const Test5 = ()=>
    // static and dynamic export const Test6 = ({ color })=>
    {"p.jsx-ceba8c9ce34e3d0c{display:inline-block}"} - <_JSXStyle id={"1539cc167dc1aeca"} dynamic={[ + <_JSXStyle id={"6701811b6595fdea"} dynamic={[ color ]}>{`p.__jsx-style-dynamic-selector{color:${color}}`} @@ -114,7 +114,7 @@ export const Test6 = ({ color })=>
    dynamic only

    - <_JSXStyle id={"9c31b4e09db208f"} dynamic={[ + <_JSXStyle id={"9184bb6edf7bc64f"} dynamic={[ color ]}>{`p.__jsx-style-dynamic-selector{color:${color}}`} @@ -143,7 +143,7 @@ export const Test8 = ({ color })=>{ }; return
    {

    dynamic with scoped compound variable

    - <_JSXStyle id={"ce96f6fd3314e56c"} dynamic={[ + <_JSXStyle id={"186c28ec802c19ff"} dynamic={[ innerProps.color ]}>{`p.__jsx-style-dynamic-selector{color:${innerProps.color}}`} @@ -173,7 +173,7 @@ export const Test9 = ({ color })=>{ }; return
    {

    dynamic with compound variable

    - <_JSXStyle id={"af2545654d3cb2ee"} dynamic={[ + <_JSXStyle id={"fb3b9ef40ebae7d2"} dynamic={[ innerProps.color ]}>{`p.__jsx-style-dynamic-selector{color:${innerProps.color}}`} @@ -197,11 +197,11 @@ export const Test9 = ({ color })=>{ }; const foo = 'red'; // dynamic with constant variable -export const Test10 = ()=>
    +export const Test10 = ()=>
    -

    dynamic with constant variable

    +

    dynamic with constant variable

    - <_JSXStyle id={"cbdf2f44af4108bd"}>{`p.jsx-cbdf2f44af4108bd{color:${foo}}`} + <_JSXStyle id={"cad01dfd39875649"}>{`p.jsx-cad01dfd39875649{color:${foo}}`}
    ; // dynamic with complex scope @@ -210,14 +210,14 @@ export const Test11 = ({ color })=>{ length: 5 }).map((item, i)=>
  • - <_JSXStyle id={"4c662a3c1ebc397e"} dynamic={[ + <_JSXStyle id={"d69269f169655123"} dynamic={[ color ]}>{`.item.__jsx-style-dynamic-selector{color:${color}}`} diff --git a/packages/styled-jsx/transform/tests/fixture/different-jsx-ids/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/different-jsx-ids/output.lightningcss.js index 21baa2130..a4c58edb8 100644 --- a/packages/styled-jsx/transform/tests/fixture/different-jsx-ids/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/different-jsx-ids/output.lightningcss.js @@ -1,18 +1,18 @@ import _JSXStyle from "styled-jsx/style"; const color = 'red'; const otherColor = 'green'; -const A = ()=>
    +const A = ()=>
    -

    test

    +

    test

    - <_JSXStyle id={"3f087c835a50190d"}>{`p.jsx-3f087c835a50190d{color:${color}}`} + <_JSXStyle id={"b013e9f16b874595"}>{`p.jsx-b013e9f16b874595{color:${color}}`}
    ; -const B = ()=>
    +const B = ()=>
    -

    test

    +

    test

    - <_JSXStyle id={"d051a1c8140076ed"}>{`p.jsx-d051a1c8140076ed{color:${otherColor}}`} + <_JSXStyle id={"60dc7908034d9fdd"}>{`p.jsx-60dc7908034d9fdd{color:${otherColor}}`}
    ; export default (()=>
    diff --git a/packages/styled-jsx/transform/tests/fixture/different-jsx-ids/output.swc.js b/packages/styled-jsx/transform/tests/fixture/different-jsx-ids/output.swc.js index 21baa2130..a4c58edb8 100644 --- a/packages/styled-jsx/transform/tests/fixture/different-jsx-ids/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/different-jsx-ids/output.swc.js @@ -1,18 +1,18 @@ import _JSXStyle from "styled-jsx/style"; const color = 'red'; const otherColor = 'green'; -const A = ()=>
    +const A = ()=>
    -

    test

    +

    test

    - <_JSXStyle id={"3f087c835a50190d"}>{`p.jsx-3f087c835a50190d{color:${color}}`} + <_JSXStyle id={"b013e9f16b874595"}>{`p.jsx-b013e9f16b874595{color:${color}}`}
    ; -const B = ()=>
    +const B = ()=>
    -

    test

    +

    test

    - <_JSXStyle id={"d051a1c8140076ed"}>{`p.jsx-d051a1c8140076ed{color:${otherColor}}`} + <_JSXStyle id={"60dc7908034d9fdd"}>{`p.jsx-60dc7908034d9fdd{color:${otherColor}}`}
    ; export default (()=>
    diff --git a/packages/styled-jsx/transform/tests/fixture/issue-30480/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/issue-30480/output.lightningcss.js index a99b5f258..58571012a 100644 --- a/packages/styled-jsx/transform/tests/fixture/issue-30480/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/issue-30480/output.lightningcss.js @@ -1,14 +1,14 @@ import _JSXStyle from "styled-jsx/style"; export default (({ breakPoint })=>
    - <_JSXStyle id={"8ab1d380e1497d05"} dynamic={[ + <_JSXStyle id={"9e957cc84fba462c"} dynamic={[ breakPoint ]}>{`@media (${breakPoint}){.test.__jsx-style-dynamic-selector{margin-bottom:1em}}`} diff --git a/packages/styled-jsx/transform/tests/fixture/issue-30480/output.swc.js b/packages/styled-jsx/transform/tests/fixture/issue-30480/output.swc.js index 5d9da2f1b..845b980a5 100644 --- a/packages/styled-jsx/transform/tests/fixture/issue-30480/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/issue-30480/output.swc.js @@ -1,14 +1,14 @@ import _JSXStyle from "styled-jsx/style"; export default (({ breakPoint })=>
    - <_JSXStyle id={"8ab1d380e1497d05"} dynamic={[ + <_JSXStyle id={"9e957cc84fba462c"} dynamic={[ breakPoint ]}>{`@media(${breakPoint}){.test.__jsx-style-dynamic-selector{margin-bottom:1em}}`} diff --git a/packages/styled-jsx/transform/tests/fixture/issue-31562-interpolation-in-mdea/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/issue-31562-interpolation-in-mdea/output.lightningcss.js index d7317357e..86a089763 100644 --- a/packages/styled-jsx/transform/tests/fixture/issue-31562-interpolation-in-mdea/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/issue-31562-interpolation-in-mdea/output.lightningcss.js @@ -3,7 +3,7 @@ export default class { render() { return
    test

    - <_JSXStyle id={"2660fd68f1ede1d4"} dynamic={[ + <_JSXStyle id={"327f1683fd154c9e"} dynamic={[ Typography.base.size.default, Typography.base.lineHeight, Target.mediumPlus, diff --git a/packages/styled-jsx/transform/tests/fixture/issue-31562-interpolation-in-mdea/output.swc.js b/packages/styled-jsx/transform/tests/fixture/issue-31562-interpolation-in-mdea/output.swc.js index d7317357e..86a089763 100644 --- a/packages/styled-jsx/transform/tests/fixture/issue-31562-interpolation-in-mdea/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/issue-31562-interpolation-in-mdea/output.swc.js @@ -3,7 +3,7 @@ export default class { render() { return
    test

    - <_JSXStyle id={"2660fd68f1ede1d4"} dynamic={[ + <_JSXStyle id={"327f1683fd154c9e"} dynamic={[ Typography.base.size.default, Typography.base.lineHeight, Target.mediumPlus, diff --git a/packages/styled-jsx/transform/tests/fixture/number-after-placeholder/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/number-after-placeholder/output.lightningcss.js index 3142a2720..98eeabf25 100644 --- a/packages/styled-jsx/transform/tests/fixture/number-after-placeholder/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/number-after-placeholder/output.lightningcss.js @@ -1,17 +1,17 @@ import _JSXStyle from "styled-jsx/style"; import Link from "next/link"; export default function IndexPage() { - return
    + return
    Hello World.{" "} - Abound + Abound - <_JSXStyle id={"2339e3d61ab4470c"}>{`a.jsx-2339e3d61ab4470c{color:${"#abcdef"}12}`} + <_JSXStyle id={"7cdf7f167f5e00c6"}>{`a.jsx-7cdf7f167f5e00c6{color:${"#abcdef"}12}`}
    ; } diff --git a/packages/styled-jsx/transform/tests/fixture/number-after-placeholder/output.swc.js b/packages/styled-jsx/transform/tests/fixture/number-after-placeholder/output.swc.js index 3142a2720..98eeabf25 100644 --- a/packages/styled-jsx/transform/tests/fixture/number-after-placeholder/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/number-after-placeholder/output.swc.js @@ -1,17 +1,17 @@ import _JSXStyle from "styled-jsx/style"; import Link from "next/link"; export default function IndexPage() { - return
    + return
    Hello World.{" "} - Abound + Abound - <_JSXStyle id={"2339e3d61ab4470c"}>{`a.jsx-2339e3d61ab4470c{color:${"#abcdef"}12}`} + <_JSXStyle id={"7cdf7f167f5e00c6"}>{`a.jsx-7cdf7f167f5e00c6{color:${"#abcdef"}12}`}
    ; } diff --git a/packages/styled-jsx/transform/tests/fixture/styles/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/styles/output.lightningcss.js index b4961faf5..cbcb698a1 100644 --- a/packages/styled-jsx/transform/tests/fixture/styles/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/styles/output.lightningcss.js @@ -6,26 +6,26 @@ bar.__hash = "aaed0341accea8f"; const baz = new String("div{font-size:3em}"); baz.__hash = "aaed0341accea8f"; const a = new String(`div{font-size:${size}em}`); -a.__hash = "c82345d11d3b02f5"; +a.__hash = "14b197463166f722"; export const uh = bar; -export const foo = new String(`div.jsx-611c1f2c95744b70{color:${color}}`); -foo.__hash = "611c1f2c95744b70"; +export const foo = new String(`div.jsx-f4f8570cd812466{color:${color}}`); +foo.__hash = "f4f8570cd812466"; ({ - styles: <_JSXStyle id={"141b18386ca7cbc5"}>{`div.jsx-141b18386ca7cbc5{color:${colors.green.light}}a.jsx-141b18386ca7cbc5{color:red}`}, - className: "jsx-141b18386ca7cbc5" + styles: <_JSXStyle id={"92e08135776a0568"}>{`div.jsx-92e08135776a0568{color:${colors.green.light}}a.jsx-92e08135776a0568{color:red}`}, + className: "jsx-92e08135776a0568" }); const b = { - styles: <_JSXStyle id={"141b18386ca7cbc5"}>{`div.jsx-141b18386ca7cbc5{color:${colors.green.light}}a.jsx-141b18386ca7cbc5{color:red}`}, - className: "jsx-141b18386ca7cbc5" + styles: <_JSXStyle id={"92e08135776a0568"}>{`div.jsx-92e08135776a0568{color:${colors.green.light}}a.jsx-92e08135776a0568{color:red}`}, + className: "jsx-92e08135776a0568" }; const dynamic = (colors)=>{ const b = { - styles: <_JSXStyle id={"a6aaef75eecc989e"} dynamic={[ + styles: <_JSXStyle id={"30f6e55b71d9bcb1"} dynamic={[ colors.green.light ]}>{`div.__jsx-style-dynamic-selector{color:${colors.green.light}}a.__jsx-style-dynamic-selector{color:red}`}, className: _JSXStyle.dynamic([ [ - "a6aaef75eecc989e", + "30f6e55b71d9bcb1", [ colors.green.light ] @@ -34,6 +34,6 @@ const dynamic = (colors)=>{ }; }; export default { - styles: <_JSXStyle id={"c1431f6a913dbbc9"}>{`div.jsx-c1431f6a913dbbc9{font-size:3em}p.jsx-c1431f6a913dbbc9{color:${color}}`}, - className: "jsx-c1431f6a913dbbc9" + styles: <_JSXStyle id={"5e2f288d77dfe5f7"}>{`div.jsx-5e2f288d77dfe5f7{font-size:3em}p.jsx-5e2f288d77dfe5f7{color:${color}}`}, + className: "jsx-5e2f288d77dfe5f7" }; diff --git a/packages/styled-jsx/transform/tests/fixture/styles/output.swc.js b/packages/styled-jsx/transform/tests/fixture/styles/output.swc.js index b4961faf5..cbcb698a1 100644 --- a/packages/styled-jsx/transform/tests/fixture/styles/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/styles/output.swc.js @@ -6,26 +6,26 @@ bar.__hash = "aaed0341accea8f"; const baz = new String("div{font-size:3em}"); baz.__hash = "aaed0341accea8f"; const a = new String(`div{font-size:${size}em}`); -a.__hash = "c82345d11d3b02f5"; +a.__hash = "14b197463166f722"; export const uh = bar; -export const foo = new String(`div.jsx-611c1f2c95744b70{color:${color}}`); -foo.__hash = "611c1f2c95744b70"; +export const foo = new String(`div.jsx-f4f8570cd812466{color:${color}}`); +foo.__hash = "f4f8570cd812466"; ({ - styles: <_JSXStyle id={"141b18386ca7cbc5"}>{`div.jsx-141b18386ca7cbc5{color:${colors.green.light}}a.jsx-141b18386ca7cbc5{color:red}`}, - className: "jsx-141b18386ca7cbc5" + styles: <_JSXStyle id={"92e08135776a0568"}>{`div.jsx-92e08135776a0568{color:${colors.green.light}}a.jsx-92e08135776a0568{color:red}`}, + className: "jsx-92e08135776a0568" }); const b = { - styles: <_JSXStyle id={"141b18386ca7cbc5"}>{`div.jsx-141b18386ca7cbc5{color:${colors.green.light}}a.jsx-141b18386ca7cbc5{color:red}`}, - className: "jsx-141b18386ca7cbc5" + styles: <_JSXStyle id={"92e08135776a0568"}>{`div.jsx-92e08135776a0568{color:${colors.green.light}}a.jsx-92e08135776a0568{color:red}`}, + className: "jsx-92e08135776a0568" }; const dynamic = (colors)=>{ const b = { - styles: <_JSXStyle id={"a6aaef75eecc989e"} dynamic={[ + styles: <_JSXStyle id={"30f6e55b71d9bcb1"} dynamic={[ colors.green.light ]}>{`div.__jsx-style-dynamic-selector{color:${colors.green.light}}a.__jsx-style-dynamic-selector{color:red}`}, className: _JSXStyle.dynamic([ [ - "a6aaef75eecc989e", + "30f6e55b71d9bcb1", [ colors.green.light ] @@ -34,6 +34,6 @@ const dynamic = (colors)=>{ }; }; export default { - styles: <_JSXStyle id={"c1431f6a913dbbc9"}>{`div.jsx-c1431f6a913dbbc9{font-size:3em}p.jsx-c1431f6a913dbbc9{color:${color}}`}, - className: "jsx-c1431f6a913dbbc9" + styles: <_JSXStyle id={"5e2f288d77dfe5f7"}>{`div.jsx-5e2f288d77dfe5f7{font-size:3em}p.jsx-5e2f288d77dfe5f7{color:${color}}`}, + className: "jsx-5e2f288d77dfe5f7" }; diff --git a/packages/styled-jsx/transform/tests/fixture/too-many/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/too-many/output.lightningcss.js index 55eaf26a9..e42c16bd7 100644 --- a/packages/styled-jsx/transform/tests/fixture/too-many/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/too-many/output.lightningcss.js @@ -2,7 +2,7 @@ import _JSXStyle from "styled-jsx/style"; export const Red = ({ Component = 'button' })=>{ return { {} - <_JSXStyle id={"6c7c8cee856673a7"} dynamic={[ + <_JSXStyle id={"a5a8b59d2ebf22fd"} dynamic={[ e1, e2, e3, diff --git a/packages/styled-jsx/transform/tests/fixture/too-many/output.swc.js b/packages/styled-jsx/transform/tests/fixture/too-many/output.swc.js index 55eaf26a9..e42c16bd7 100644 --- a/packages/styled-jsx/transform/tests/fixture/too-many/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/too-many/output.swc.js @@ -2,7 +2,7 @@ import _JSXStyle from "styled-jsx/style"; export const Red = ({ Component = 'button' })=>{ return { {} - <_JSXStyle id={"6c7c8cee856673a7"} dynamic={[ + <_JSXStyle id={"a5a8b59d2ebf22fd"} dynamic={[ e1, e2, e3, diff --git a/packages/styled-jsx/transform/tests/fixture/tpl-escape-2/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/tpl-escape-2/output.lightningcss.js index 0ec990032..df83b7c28 100644 --- a/packages/styled-jsx/transform/tests/fixture/tpl-escape-2/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/tpl-escape-2/output.lightningcss.js @@ -2,14 +2,14 @@ import _JSXStyle from "styled-jsx/style"; export default function Home({ fontFamily }) { return
    - <_JSXStyle id={"ae6b96ca586fe51a"} dynamic={[ + <_JSXStyle id={"662fca8faf8c1bea"} dynamic={[ fontFamily ]}>{`body{font-family:${fontFamily}}code:before,code:after{content:"\`"}`} diff --git a/packages/styled-jsx/transform/tests/fixture/tpl-escape-2/output.swc.js b/packages/styled-jsx/transform/tests/fixture/tpl-escape-2/output.swc.js index 0ec990032..df83b7c28 100644 --- a/packages/styled-jsx/transform/tests/fixture/tpl-escape-2/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/tpl-escape-2/output.swc.js @@ -2,14 +2,14 @@ import _JSXStyle from "styled-jsx/style"; export default function Home({ fontFamily }) { return
    - <_JSXStyle id={"ae6b96ca586fe51a"} dynamic={[ + <_JSXStyle id={"662fca8faf8c1bea"} dynamic={[ fontFamily ]}>{`body{font-family:${fontFamily}}code:before,code:after{content:"\`"}`} diff --git a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-1-as-property/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-1-as-property/output.lightningcss.js index ba51a1173..e4b5e14ff 100644 --- a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-1-as-property/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-1-as-property/output.lightningcss.js @@ -3,7 +3,7 @@ export default class { render() { return
    test

    - <_JSXStyle id={"e1b0d3df4c8dcbf0"} dynamic={[ + <_JSXStyle id={"b6e48dcf1a84e9d1"} dynamic={[ inputSize ? 'height: calc(2 * var(--a)) !important;' : '' ]}>{`@media only screen{a.__jsx-style-dynamic-selector{${inputSize ? 'height: calc(2 * var(--a)) !important;' : ''}}`} diff --git a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-1-as-property/output.swc.js b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-1-as-property/output.swc.js index a5d5f8093..8a667bb40 100644 --- a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-1-as-property/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-1-as-property/output.swc.js @@ -3,7 +3,7 @@ export default class { render() { return
    test

    - <_JSXStyle id={"e1b0d3df4c8dcbf0"} dynamic={[ + <_JSXStyle id={"b6e48dcf1a84e9d1"} dynamic={[ inputSize ? 'height: calc(2 * var(--a)) !important;' : '' ]}>{`@media only screen{a.__jsx-style-dynamic-selector{${inputSize ? 'height: calc(2 * var(--a)) !important;' : ''} }}`} diff --git a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-2-as-part-of-value/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-2-as-part-of-value/output.lightningcss.js index 5456f7793..043301a15 100644 --- a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-2-as-part-of-value/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-2-as-part-of-value/output.lightningcss.js @@ -3,7 +3,7 @@ export default class { render() { return
    test

    - <_JSXStyle id={"ad088d55a749d737"} dynamic={[ + <_JSXStyle id={"a4d2c40df4fde61a"} dynamic={[ a[b], -1 * (c || 0), d diff --git a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-2-as-part-of-value/output.swc.js b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-2-as-part-of-value/output.swc.js index 5456f7793..043301a15 100644 --- a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-2-as-part-of-value/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-2-as-part-of-value/output.swc.js @@ -3,7 +3,7 @@ export default class { render() { return
    test

    - <_JSXStyle id={"ad088d55a749d737"} dynamic={[ + <_JSXStyle id={"a4d2c40df4fde61a"} dynamic={[ a[b], -1 * (c || 0), d diff --git a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-3-as-value/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-3-as-value/output.lightningcss.js index 270224f53..a2632351d 100644 --- a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-3-as-value/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-3-as-value/output.lightningcss.js @@ -3,7 +3,7 @@ export default class { render() { return
    test

    - <_JSXStyle id={"1b41b940177cfe8f"} dynamic={[ + <_JSXStyle id={"2929d31a4c48e471"} dynamic={[ a ]}>{`@media only screen{a.__jsx-style-dynamic-selector{color:${a}}}`} diff --git a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-3-as-value/output.swc.js b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-3-as-value/output.swc.js index 270224f53..a2632351d 100644 --- a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-3-as-value/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-3-as-value/output.swc.js @@ -3,7 +3,7 @@ export default class { render() { return
    test

    - <_JSXStyle id={"1b41b940177cfe8f"} dynamic={[ + <_JSXStyle id={"2929d31a4c48e471"} dynamic={[ a ]}>{`@media only screen{a.__jsx-style-dynamic-selector{color:${a}}}`} diff --git a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-4-as-part-of-value-in-multiple/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-4-as-part-of-value-in-multiple/output.lightningcss.js index 0d9962df6..0a08fe39c 100644 --- a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-4-as-part-of-value-in-multiple/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-4-as-part-of-value-in-multiple/output.lightningcss.js @@ -3,7 +3,7 @@ export default class { render() { return
    test

    - <_JSXStyle id={"293094c41b76e3ed"} dynamic={[ + <_JSXStyle id={"c3f532c8e0ad76db"} dynamic={[ a || 'var(--c)', b || 'inherit' ]}>{`.a:hover .b.__jsx-style-dynamic-selector{padding:0 ${a || 'var(--c)'};color:${b || 'inherit'};display:inline-block}`} diff --git a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-4-as-part-of-value-in-multiple/output.swc.js b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-4-as-part-of-value-in-multiple/output.swc.js index a1786d8b2..8e57eb901 100644 --- a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-4-as-part-of-value-in-multiple/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-4-as-part-of-value-in-multiple/output.swc.js @@ -3,7 +3,7 @@ export default class { render() { return
    test

    - <_JSXStyle id={"293094c41b76e3ed"} dynamic={[ + <_JSXStyle id={"c3f532c8e0ad76db"} dynamic={[ a || 'var(--c)', b || 'inherit' ]}>{`.a:hover .b.__jsx-style-dynamic-selector{display:inline-block;padding:0 ${a || 'var(--c)'};color:${b || 'inherit'}}`} diff --git a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-5-values-of-multiple-properties/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-5-values-of-multiple-properties/output.lightningcss.js index e2d82056d..5b4e78489 100644 --- a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-5-values-of-multiple-properties/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-5-values-of-multiple-properties/output.lightningcss.js @@ -3,7 +3,7 @@ export default class { render() { return
    test

    - <_JSXStyle id={"d1d694613dfced19"} dynamic={[ + <_JSXStyle id={"247a54f8be580912"} dynamic={[ a ? '100%' : '200px', b ? '0' : '8px 20px' ]}>{`.item.__jsx-style-dynamic-selector{max-width:${a ? '100%' : '200px'};padding:${b ? '0' : '8px 20px'}}`} diff --git a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-5-values-of-multiple-properties/output.swc.js b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-5-values-of-multiple-properties/output.swc.js index e2d82056d..5b4e78489 100644 --- a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-5-values-of-multiple-properties/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-5-values-of-multiple-properties/output.swc.js @@ -3,7 +3,7 @@ export default class { render() { return
    test

    - <_JSXStyle id={"d1d694613dfced19"} dynamic={[ + <_JSXStyle id={"247a54f8be580912"} dynamic={[ a ? '100%' : '200px', b ? '0' : '8px 20px' ]}>{`.item.__jsx-style-dynamic-selector{max-width:${a ? '100%' : '200px'};padding:${b ? '0' : '8px 20px'}}`} diff --git a/packages/swc-magic/Cargo.toml b/packages/swc-magic/Cargo.toml index ffd44fec6..341795640 100644 --- a/packages/swc-magic/Cargo.toml +++ b/packages/swc-magic/Cargo.toml @@ -12,7 +12,7 @@ crate-type = ["cdylib", "rlib"] [dependencies] serde_json = "1.0.107" -swc_core = { version = "0.86.16", features = ["ecma_plugin_transform"] } +swc_core = { version = "0.86.55", features = ["ecma_plugin_transform"] } swc_magic = { path = "./transform" } diff --git a/packages/swc-magic/package.json b/packages/swc-magic/package.json index 45c883e97..025da3707 100644 --- a/packages/swc-magic/package.json +++ b/packages/swc-magic/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-swc-magic", - "version": "1.5.97", + "version": "1.5.98", "description": "SWC plugin for swc-magic", "main": "swc_plugin_swc_magic.wasm", "scripts": { diff --git a/packages/swc-magic/transform/Cargo.toml b/packages/swc-magic/transform/Cargo.toml index 72ffb5656..91845a276 100644 --- a/packages/swc-magic/transform/Cargo.toml +++ b/packages/swc-magic/transform/Cargo.toml @@ -4,18 +4,18 @@ description = "AST transforms visitor for swc-magic" edition = "2021" license = "Apache-2.0" name = "swc_magic" -version = "0.5.0" +version = "0.6.0" [dependencies] serde = { version = "1.0.189", features = ["derive"] } -swc_atoms = "0.6.0" -swc_common = "0.33.1" -swc_ecma_ast = "0.110.1" -swc_ecma_utils = "0.124.8" -swc_ecma_visit = "0.96.1" +swc_atoms = "0.6.4" +swc_common = "0.33.8" +swc_ecma_ast = "0.110.9" +swc_ecma_utils = "0.124.27" +swc_ecma_visit = "0.96.9" [dev-dependencies] -swc_ecma_parser = "0.141.4" -swc_ecma_transforms_base = "0.134.9" -swc_ecma_transforms_testing = "0.137.9" -testing = "0.35.1" +swc_ecma_parser = "0.141.22" +swc_ecma_transforms_base = "0.134.31" +swc_ecma_transforms_testing = "0.137.33" +testing = "0.35.10" diff --git a/packages/transform-imports/Cargo.toml b/packages/transform-imports/Cargo.toml index bd442b02b..bb583fbe4 100644 --- a/packages/transform-imports/Cargo.toml +++ b/packages/transform-imports/Cargo.toml @@ -13,10 +13,10 @@ crate-type = ["cdylib", "rlib"] [dependencies] modularize_imports = { path = "./transform" } serde_json = "1.0.79" -swc_common = { version = "0.33.0", features = ["concurrent"] } -swc_core = { version = "0.86.1", features = ["ecma_plugin_transform"] } -swc_ecma_ast = "0.110.0" -swc_ecma_utils = "0.124.4" -swc_ecma_visit = "0.96.0" +swc_common = { version = "0.33.8", features = ["concurrent"] } +swc_core = { version = "0.86.55", features = ["ecma_plugin_transform"] } +swc_ecma_ast = "0.110.9" +swc_ecma_utils = "0.124.27" +swc_ecma_visit = "0.96.9" swc_plugin_macro = "0.9.15" tracing = { version = "0.1.37", features = ["release_max_level_off"] } diff --git a/packages/transform-imports/package.json b/packages/transform-imports/package.json index 2c73efe49..b64c68fe5 100644 --- a/packages/transform-imports/package.json +++ b/packages/transform-imports/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-transform-imports", - "version": "1.5.97", + "version": "1.5.98", "description": "SWC plugin for https://www.npmjs.com/package/babel-plugin-transform-imports", "main": "swc_plugin_transform_imports.wasm", "scripts": { diff --git a/packages/transform-imports/transform/Cargo.toml b/packages/transform-imports/transform/Cargo.toml index b009db714..2e04d4377 100644 --- a/packages/transform-imports/transform/Cargo.toml +++ b/packages/transform-imports/transform/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" license = "Apache-2.0" name = "modularize_imports" repository = "https://github.com/swc-project/plugins.git" -version = "0.55.0" +version = "0.56.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -15,12 +15,12 @@ handlebars = "4.2.1" once_cell = "1.13.0" regex = "1.5" serde = "1" -swc_cached = "0.3.17" -swc_common = "0.33.0" -swc_ecma_ast = "0.110.0" -swc_ecma_visit = "0.96.0" +swc_cached = "0.3.18" +swc_common = "0.33.8" +swc_ecma_ast = "0.110.9" +swc_ecma_visit = "0.96.9" [dev-dependencies] -swc_ecma_parser = "0.141.1" -swc_ecma_transforms_testing = "0.137.4" -testing = "0.35.0" +swc_ecma_parser = "0.141.22" +swc_ecma_transforms_testing = "0.137.33" +testing = "0.35.10"