From 4b3dfdaa957ed3443b74cd0ef16e4c20b21416f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Tue, 17 Oct 2023 22:19:28 +0900 Subject: [PATCH] build: Update `swc_core` to `v0.86.1` (#56770) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### What? Update SWC crates, to apply bugfixes. ### Why? We adjusted the mangling option to make it identical with `swcMinify: false` with https://github.com/vercel/next.js/pull/56281, and it revealed some bugs of the name mangler of the SWC minifier. ### How? - Fixes #56550 - Fixes #56614 - Turbopack counterpart: https://github.com/vercel/turbo/pull/6171 ### Other Turbopack Changes * https://github.com/vercel/turbo/pull/6177 * https://github.com/vercel/turbo/pull/6180 * https://github.com/vercel/turbo/pull/6191 * https://github.com/vercel/turbo/pull/6171 Closes WEB-1775 --------- Co-authored-by: Tobias Koppers --- Cargo.lock | 610 +++++++++++++----- Cargo.toml | 10 +- packages/next-swc/crates/core/Cargo.toml | 4 +- .../next-swc/crates/core/src/cjs_optimizer.rs | 2 +- .../crates/core/src/optimize_server_react.rs | 6 +- .../next-swc/crates/core/src/page_config.rs | 6 +- packages/next/package.json | 2 +- pnpm-lock.yaml | 10 +- 8 files changed, 457 insertions(+), 193 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0133cf263a80f..179413cb52975 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -321,7 +321,7 @@ dependencies = [ [[package]] name = "auto-hash-map" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "serde", "smallvec", @@ -521,9 +521,9 @@ dependencies = [ [[package]] name = "binding_macros" -version = "0.57.26" +version = "0.60.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b6caf54b6448f05c25096a528c2a3b292e38fb59298c118edcf9da45ff05515" +checksum = "be6c12f02a22c583432408b7726ed405c693964dd4d13e212f06b829a80c6a17" dependencies = [ "anyhow", "console_error_panic_hook", @@ -1301,19 +1301,24 @@ dependencies = [ [[package]] name = "cssparser" -version = "0.29.6" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f93d03419cb5950ccfd3daf3ff1c7a36ace64609a1a8746d493df1ca0afde0fa" +checksum = "9be934d936a0fbed5bcdc01042b770de1398bf79d0e192f49fa7faea0e99281e" dependencies = [ "cssparser-macros", "dtoa-short", "itoa", - "matches", "phf", - "proc-macro2", - "quote", "smallvec", - "syn 1.0.109", +] + +[[package]] +name = "cssparser-color" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "556c099a61d85989d7af52b692e35a8d68a57e7df8c6d07563dc0778b3960c9f" +dependencies = [ + "cssparser", ] [[package]] @@ -1474,10 +1479,11 @@ dependencies = [ [[package]] name = "deranged" -version = "0.3.8" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2696e8a945f658fd14dc3b87242e6b80cd0f36ff04ea560fa39082368847946" +checksum = "0f32d04922c60427da6f9fef14d042d9edddef64cb9d4ce0d64d0685fbeb1fd3" dependencies = [ + "powerfmt", "serde", ] @@ -2847,14 +2853,15 @@ dependencies = [ [[package]] name = "lightningcss" -version = "1.0.0-alpha.46" +version = "1.0.0-alpha.49" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9dfe5176488bc25fda36d65ef3570d378a7c48d5ae22a63c030b443e9943b8eb" +checksum = "06476660ee1e593a2672e4a342a1289708fd9936dcdf3e74433ad078145e9e3d" dependencies = [ "ahash 0.7.6", "bitflags 2.4.0", "const-str", "cssparser", + "cssparser-color", "dashmap", "data-encoding", "itertools", @@ -2867,13 +2874,14 @@ dependencies = [ "rayon", "serde", "smallvec", + "static-self", ] [[package]] name = "lightningcss-derive" -version = "1.0.0-alpha.40" +version = "1.0.0-alpha.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fcce94c3a34f43e83e1f92a81eca61697c298149a56489bba1b02ebb93fa607" +checksum = "8f02a09f0b79d31f1ee13ea55e2f7021037c6b72e0a3ab6c1cb0e9bd7ac8a295" dependencies = [ "proc-macro2", "quote", @@ -3007,9 +3015,9 @@ dependencies = [ [[package]] name = "mdxjs" -version = "0.1.17" +version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c73de74452171e35ed9d82961e403b8b197dcf752b45a51072d83e4813d42d53" +checksum = "7572e57307a72a93fed80bf5aaa0a81cca3a47d7faaf65af4f0d3ac4d84a1715" dependencies = [ "markdown", "serde", @@ -3206,9 +3214,9 @@ dependencies = [ [[package]] name = "modularize_imports" -version = "0.48.0" +version = "0.50.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e1070d9027b5d1eb4e54d81c86dfd26fd1e1370916ce5881c498361799e9a14" +checksum = "1ab7951af2a437aeb38e89975f331f09dcb247c21bd923ef3e7039b1bae841e2" dependencies = [ "convert_case 0.5.0", "handlebars", @@ -3516,7 +3524,7 @@ dependencies = [ [[package]] name = "node-file-trace" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "anyhow", "serde", @@ -3799,9 +3807,9 @@ checksum = "c1b04fb49957986fdce4d6ee7a65027d55d4b6d2265e5848bbb507b58ccfdb6f" [[package]] name = "parcel_selectors" -version = "0.26.1" +version = "0.26.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b1aa68e6c4bf7a49302b9c711c880c1cc2a7dc5c5184042cc724e4124e0d95f" +checksum = "0f000cdd23df6cebe999cf2b02a3bf40d55758f74883d7fd43a33690565618c8" dependencies = [ "bitflags 2.4.0", "cssparser", @@ -3811,6 +3819,7 @@ dependencies = [ "phf_codegen", "precomputed-hash", "smallvec", + "static-self", ] [[package]] @@ -4105,6 +4114,12 @@ dependencies = [ "serde", ] +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + [[package]] name = "ppv-lite86" version = "0.2.17" @@ -4430,9 +4445,9 @@ dependencies = [ [[package]] name = "react_remove_properties" -version = "0.3.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9dc14dca06a6d0f4796dde331bf9ae17fcb93b9f2d8c8fca8bdc0bd28ff2bd07" +checksum = "438fc3e0d739395c34f7741aa7b8ff1e19b7c18139fb1b083600dd9e3a2a05df" dependencies = [ "serde", "swc_atoms", @@ -4573,9 +4588,9 @@ checksum = "c707298afce11da2efef2f600116fa93ffa7a032b5d7b628aa17711ec81383ca" [[package]] name = "remove_console" -version = "0.4.0" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61b0da70a7bee5f2d9cdb94977225dac1d64946ec65aa2b30386a0a1f5bc5006" +checksum = "77f2663c3a81f6d6d0cdb15c6505287f3baade5c36bcb324180e857e39e7d09d" dependencies = [ "serde", "swc_atoms", @@ -4809,9 +4824,9 @@ checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741" [[package]] name = "ryu-js" -version = "0.2.2" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6518fc26bced4d53678a22d6e423e9d8716377def84545fe328236e3af070e7f" +checksum = "4950d85bc52415f8432144c97c4791bd0c4f7954de32a7270ee9cccd3c22b12b" [[package]] name = "same-file" @@ -4995,16 +5010,16 @@ dependencies = [ "serde", "serde_json", "thiserror", - "time 0.3.26", + "time 0.3.30", "url", "uuid", ] [[package]] name = "serde" -version = "1.0.171" +version = "1.0.189" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30e27d1e4fd7659406c492fd6cfaf2066ba8773de45ca75e855590f856dc34a9" +checksum = "8e422a44e74ad4001bdc8eede9a4570ab52f71190e9c076d14369f38b9200537" dependencies = [ "serde_derive", ] @@ -5041,9 +5056,9 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.171" +version = "1.0.189" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "389894603bd18c46fa56231694f8d827779c0951a667087194cf9de94ed24682" +checksum = "1e48d1f918009ce3145511378cf68d613e3b3d9137d67272562080d68a2b32d5" dependencies = [ "proc-macro2", "quote", @@ -5126,7 +5141,7 @@ dependencies = [ "serde", "serde_json", "serde_with_macros", - "time 0.3.26", + "time 0.3.30", ] [[package]] @@ -5209,7 +5224,7 @@ checksum = "970538704756fd0bb4ec8cb89f80674afb661e7c0fe716f9ba5be57717742300" dependencies = [ "const_format", "is_debug", - "time 0.3.26", + "time 0.3.30", "tzdb", ] @@ -5455,6 +5470,27 @@ dependencies = [ "syn 2.0.32", ] +[[package]] +name = "static-self" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2978fa810a31711d7162d0bb843df1f36d84e393e335ce31ec2c485b2464c44" +dependencies = [ + "smallvec", + "static-self-derive", +] + +[[package]] +name = "static-self-derive" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc53c080b79432d9babd26457df68fb4b002cc7d2ce36a1a5195091cf9fecc14" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + [[package]] name = "static_assertions" version = "1.1.0" @@ -5563,9 +5599,9 @@ checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" [[package]] name = "styled_components" -version = "0.75.0" +version = "0.77.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d93b77bf37c113d7401b11d87ec48d264b6200c8167e647c9f2bf5f7368d2abf" +checksum = "2efe2ad3cd5fe8868b2fa9d7b2619110313c19c3c304733651cd90d11b6e201a" dependencies = [ "Inflector", "once_cell", @@ -5581,9 +5617,9 @@ dependencies = [ [[package]] name = "styled_jsx" -version = "0.52.0" +version = "0.54.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "786d784207110496555ca76ee3a29bfea8fd24c2e8a7669ae1796bddd7f50e2b" +checksum = "e77c71053b7d8f0334864053e883bc96a14fcbc97a97e8c10b3b4c1f0614762a" dependencies = [ "easy-error", "lightningcss", @@ -5641,9 +5677,9 @@ dependencies = [ [[package]] name = "swc" -version = "0.266.26" +version = "0.269.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "518128b65105b48a58bf81e718a915ad60daebb89ccdf966d11cc616bfd0fd28" +checksum = "129ee8c5cb4b521004a19943440b9431c153b49ee7f727a1e76b26fabbb5c679" dependencies = [ "anyhow", "base64 0.13.1", @@ -5665,6 +5701,7 @@ dependencies = [ "swc_atoms", "swc_cached", "swc_common", + "swc_compiler_base", "swc_config", "swc_ecma_ast", "swc_ecma_codegen", @@ -5692,9 +5729,9 @@ dependencies = [ [[package]] name = "swc_atoms" -version = "0.5.9" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f54563d7dcba626d4acfe14ed12def7ecc28e004debe3ecd2c3ee07cc47e449" +checksum = "ebf7a12229f0c0efb654a6a0f8cbfd94fbd320a57c764857a82d8abe9342b450" dependencies = [ "bytecheck", "once_cell", @@ -5708,9 +5745,9 @@ dependencies = [ [[package]] name = "swc_bundler" -version = "0.220.20" +version = "0.222.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c1ddf4d7fc3c4da744561ca2a984f537888fe65ce9e8d2d207372e054c351e2" +checksum = "1685da3c84410231f19d60cfedd273cdbe7bdfc306afb8c04445678577950530" dependencies = [ "anyhow", "crc", @@ -5754,9 +5791,9 @@ dependencies = [ [[package]] name = "swc_common" -version = "0.32.1" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c84742fc22df1c293da5354c1cc8a5b45a045e9dc941005c1fd9cb4e9bdabc1" +checksum = "490e199e25d2aa3fbef675524fa81408651f4e7178b51110470ddd1b3e3bbe75" dependencies = [ "ahash 0.8.3", "anyhow", @@ -5786,6 +5823,30 @@ dependencies = [ "url", ] +[[package]] +name = "swc_compiler_base" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0de0359c44fa960798a80815ce10f25302fa05a1d477ee9c2ab74baa926a754a" +dependencies = [ + "anyhow", + "base64 0.13.1", + "napi", + "napi-derive", + "pathdiff", + "serde", + "sourcemap", + "swc_atoms", + "swc_common", + "swc_config", + "swc_ecma_ast", + "swc_ecma_codegen", + "swc_ecma_minifier", + "swc_ecma_parser", + "swc_ecma_visit", + "swc_timer", +] + [[package]] name = "swc_config" version = "0.1.7" @@ -5813,9 +5874,9 @@ dependencies = [ [[package]] name = "swc_core" -version = "0.83.28" +version = "0.86.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e826020b0481212a0ba4f20d5c74bbe71b6cee6949583896788ca8d98039851" +checksum = "d40c049be93138bf3f521dd42500301762fdd5f5d326e11de012588dcd8135ca" dependencies = [ "binding_macros", "swc", @@ -5855,9 +5916,9 @@ dependencies = [ [[package]] name = "swc_css_ast" -version = "0.139.1" +version = "0.140.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fab824eff88884673de1d6b84cdb5d3d71c0b903fcef62a3ec1f44f40477433f" +checksum = "fa155c888b70f7a1bc1de995006bda7c4b2c501712d8a88a1d6d9406b04be359" dependencies = [ "is-macro", "serde", @@ -5868,9 +5929,9 @@ dependencies = [ [[package]] name = "swc_css_codegen" -version = "0.149.1" +version = "0.151.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aef989abd4b9ccf3caf6a4ab0ceb9f9e7d6a27c08585a20a7fc7b9db6c73a341" +checksum = "cd94d4f6b939a7643d29fd9322d87a0c6fd9488fd9a508472239e02abcfb3f29" dependencies = [ "auto_impl", "bitflags 2.4.0", @@ -5898,9 +5959,9 @@ dependencies = [ [[package]] name = "swc_css_compat" -version = "0.25.1" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1ee1b2b77e7daaf389237ca2656df01cf8c1a6f2d9b158459921b202a661f8a" +checksum = "b77d8336003883f2590b400bc103c735eaa32d0a16beb3bcc87bc93f9e28065a" dependencies = [ "bitflags 2.4.0", "once_cell", @@ -5915,9 +5976,9 @@ dependencies = [ [[package]] name = "swc_css_minifier" -version = "0.114.1" +version = "0.116.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21db6b6ef607d47d09a7e2fd0b8fd5ec29d05d1182f8d3d5eebef0f1b94c3f4d" +checksum = "5861fcaa5a392d38a5f21f013a16c4e6f4b0f1dd2a0db8351f33588974169e63" dependencies = [ "serde", "swc_atoms", @@ -5929,9 +5990,9 @@ dependencies = [ [[package]] name = "swc_css_modules" -version = "0.27.3" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac80e62e3221cb2abc0edd33886c74c7d2a64ca3756adce0047527026dff71ca" +checksum = "0c3c9990c49999331738343387696c6a8d7379af694c3bab4707d9b43f91921c" dependencies = [ "rustc-hash", "serde", @@ -5945,9 +6006,9 @@ dependencies = [ [[package]] name = "swc_css_parser" -version = "0.148.1" +version = "0.150.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b02a3c11508487249aa571a908e673c540191de97d5139bb78ab03188dd57e26" +checksum = "04bce69bb9c68681ea4467d7c02906fd01245e9838b70c92dad4512e7ad23b2d" dependencies = [ "lexical", "serde", @@ -5958,9 +6019,9 @@ dependencies = [ [[package]] name = "swc_css_prefixer" -version = "0.151.1" +version = "0.153.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "274da87a8f0117ef86382b132812aa6a1b700b31c37ef95ce3bbde7e05f8c098" +checksum = "440823e50ce60fb4ece4d7e241849f32344676726f66324adfd38e9762ca07fe" dependencies = [ "once_cell", "preset_env_base", @@ -5975,9 +6036,9 @@ dependencies = [ [[package]] name = "swc_css_utils" -version = "0.136.1" +version = "0.137.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3eead47672e3c832e2e3fc3e523490c4822d80a7fc8c50e87a66f9ab7003b517" +checksum = "dc71e4976bb516112b6d9d3da37989256e0fc6da84e3fe65c049ea1871515069" dependencies = [ "once_cell", "serde", @@ -5990,9 +6051,9 @@ dependencies = [ [[package]] name = "swc_css_visit" -version = "0.138.1" +version = "0.139.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83f01449a09b8a87ab4bd2ea6cbaaf74e39f9bfba3842a2918e998c5f9b428a4" +checksum = "c94eb9e33d88fa3315464660a89873ff021ab940f56902d9961a06f85bdd1886" dependencies = [ "serde", "swc_atoms", @@ -6003,9 +6064,9 @@ dependencies = [ [[package]] name = "swc_ecma_ast" -version = "0.109.1" +version = "0.110.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e063a1614daed3ea8be56e5dd8edb17003409088d2fc9ce4aca3378879812607" +checksum = "5cbbf9918976a7e7fbdb4f76fe659d08e291a8b56b524b424183fc67d1189679" dependencies = [ "bitflags 2.4.0", "bytecheck", @@ -6022,9 +6083,9 @@ dependencies = [ [[package]] name = "swc_ecma_codegen" -version = "0.145.5" +version = "0.146.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "547ed57b827ea4df3e2c27cea153482f8b2ce2d271ae30c456fbb2d5a5ecc19d" +checksum = "1fba119c76654599b71099a0150094f5790f00db63aab6cda1790e731f42c98f" dependencies = [ "memchr", "num-bigint", @@ -6052,11 +6113,204 @@ dependencies = [ "syn 2.0.32", ] +[[package]] +name = "swc_ecma_compat_bugfixes" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e86fbe39425c5135fbef3bd8ffbbb6d24f8d53942d21914cf765ff43d09be19" +dependencies = [ + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_compat_es2015", + "swc_ecma_transforms_base", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_trace_macro", + "tracing", +] + +[[package]] +name = "swc_ecma_compat_common" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ecceb5d816d6f416bff1c13aea1814e27f43a25551066c66c0fdbd834be67bf" +dependencies = [ + "swc_common", + "swc_ecma_ast", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_trace_macro", +] + +[[package]] +name = "swc_ecma_compat_es2015" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "000318f4ef8ad1b1e417120b630530a453165b9c6f85052010ce28d01e078e15" +dependencies = [ + "arrayvec", + "indexmap 1.9.3", + "is-macro", + "serde", + "serde_derive", + "smallvec", + "swc_atoms", + "swc_common", + "swc_config", + "swc_ecma_ast", + "swc_ecma_compat_common", + "swc_ecma_transforms_base", + "swc_ecma_transforms_classes", + "swc_ecma_transforms_macros", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_trace_macro", + "tracing", +] + +[[package]] +name = "swc_ecma_compat_es2016" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "145df6ac733548dae7f31aa21264e8609e5deb0f0a46019a3fc8e4a70c8cbf3a" +dependencies = [ + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_transforms_base", + "swc_ecma_transforms_macros", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_trace_macro", + "tracing", +] + +[[package]] +name = "swc_ecma_compat_es2017" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11b1d15155a9d1608e49a8d67e134d6d03e43eaa3f0e2b5eae465d84288c85f5" +dependencies = [ + "serde", + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_transforms_base", + "swc_ecma_transforms_macros", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_trace_macro", + "tracing", +] + +[[package]] +name = "swc_ecma_compat_es2018" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "047286ba45b3afb868452b947cef646ef66d410c269935f30d494d0489c2321c" +dependencies = [ + "serde", + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_compat_common", + "swc_ecma_transforms_base", + "swc_ecma_transforms_macros", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_trace_macro", + "tracing", +] + +[[package]] +name = "swc_ecma_compat_es2019" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1cbbafa9873cd396980b0dbb34304545191f630b822659e7de13eedaa4ec6e26" +dependencies = [ + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_transforms_base", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_trace_macro", + "tracing", +] + +[[package]] +name = "swc_ecma_compat_es2020" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a22db764b289d87676997d6a3c3c00e00fe965711940aedce93a09097b742c3" +dependencies = [ + "serde", + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_transforms_base", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_trace_macro", + "tracing", +] + +[[package]] +name = "swc_ecma_compat_es2021" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c7ded8f71201833cca75ff0eb490e5d9237e7e1808c9ca204e6e70da545829f" +dependencies = [ + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_transforms_base", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_trace_macro", + "tracing", +] + +[[package]] +name = "swc_ecma_compat_es2022" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e82e116ad390b63a72250b0624100f9f0052fa0a5053bb6cd78cd11ce1636575" +dependencies = [ + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_compat_common", + "swc_ecma_transforms_base", + "swc_ecma_transforms_classes", + "swc_ecma_transforms_macros", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_trace_macro", + "tracing", +] + +[[package]] +name = "swc_ecma_compat_es3" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2546a901da8f8570c1964961eb6d49962dcf1b3b95791e8c5899b4f53c46283a" +dependencies = [ + "swc_common", + "swc_ecma_ast", + "swc_ecma_transforms_base", + "swc_ecma_utils", + "swc_ecma_visit", + "swc_trace_macro", + "tracing", +] + [[package]] name = "swc_ecma_ext_transforms" -version = "0.109.0" +version = "0.110.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d995f94740b4cde4919e6e03d982230f755f49dac9dac52f0218254a1fd69f2b" +checksum = "1c47c85a90f01607fe136be5fb15cc5033e1eb0bbe16c89855bad5e0d0915159" dependencies = [ "phf", "swc_atoms", @@ -6068,9 +6322,9 @@ dependencies = [ [[package]] name = "swc_ecma_lints" -version = "0.88.6" +version = "0.89.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "300ae29c0fc98ed0364aa2fd4aa7702d6dc67d411dd4894e7e60d40e99c4ef19" +checksum = "f09ea9e797559ccdf30db36403d3a2097e3c750c86c576b001b2dfc24c244265" dependencies = [ "auto_impl", "dashmap", @@ -6088,9 +6342,9 @@ dependencies = [ [[package]] name = "swc_ecma_loader" -version = "0.44.4" +version = "0.45.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b2b3a3ec38fc9c691b787d32ac2aa5eb6871d1fe74ac4a10638fbd9b9bc407b" +checksum = "a7fe06d942fe20a5a81cc14f4a53e64a5efdc851fa895a869224b2d41df73276" dependencies = [ "anyhow", "dashmap", @@ -6109,9 +6363,9 @@ dependencies = [ [[package]] name = "swc_ecma_minifier" -version = "0.187.20" +version = "0.189.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8458b755f90a0152a8cbb48b299956ce388eb6d96aa333f9efe243776fefb9c9" +checksum = "57524e1f80b1facd4332aea354365a42772addc484a571130173f4512a18c902" dependencies = [ "arrayvec", "indexmap 1.9.3", @@ -6144,9 +6398,9 @@ dependencies = [ [[package]] name = "swc_ecma_parser" -version = "0.140.0" +version = "0.141.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c968599841fcecfdc2e490188ad93251897a1bb912882547e6889e14a368399" +checksum = "a26e535c623db7beb04ba8ebfa821c287b72a23f9fb523990b54db6c1355c990" dependencies = [ "either", "num-bigint", @@ -6164,9 +6418,9 @@ dependencies = [ [[package]] name = "swc_ecma_preset_env" -version = "0.201.21" +version = "0.203.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7aac45044af56b9be44aed5664238b6c1076c5a1c0bf4fd17ae83826f4b19ff1" +checksum = "bfc6a6b74e0136460cf3938a873d158e02ac226c22ee8c1c002c91672cfbaeda" dependencies = [ "anyhow", "dashmap", @@ -6189,9 +6443,9 @@ dependencies = [ [[package]] name = "swc_ecma_quote_macros" -version = "0.51.0" +version = "0.52.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b028b0675ad45b79b163c70e192f25b59d72366a2864c5d369dce707a38a1597" +checksum = "687e5944bd1ccf5729104c2ed11c182b1f679d18d620980da442bfe326391ddf" dependencies = [ "anyhow", "pmutil", @@ -6207,9 +6461,9 @@ dependencies = [ [[package]] name = "swc_ecma_testing" -version = "0.21.1" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b776795afd44c8df3977391e239a8dedbe2139c5eeb1ea053c1e29314b6d8a7" +checksum = "57c456e2c330c0049f77780cd412e61d9c9d0ae7ff9b6c0e4f8262270b7c718e" dependencies = [ "anyhow", "hex", @@ -6220,9 +6474,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms" -version = "0.224.19" +version = "0.226.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66f893871042dbe3eb3f9cb4fb878d24163fd0e568896d68f02a8952d2c9d9a5" +checksum = "f989184c2b223d1c0d00e0c4abe2e60ce04c7cbc3be80fc28ef403799d7d00ae" dependencies = [ "swc_atoms", "swc_common", @@ -6240,9 +6494,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_base" -version = "0.133.5" +version = "0.134.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "496e3957e19c22e61cd7ff020a87e1fe94c9334f4fa11267f08614fd5f85ba67" +checksum = "37d30c5aa540b6516875d507d3dc2ca7edf77a30fe9e070868ccd2d90b85a3a3" dependencies = [ "better_scoped_tls", "bitflags 2.4.0", @@ -6264,9 +6518,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_classes" -version = "0.122.5" +version = "0.123.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "519ffccc874b8bb39db0fceec06c172b1d7a6e812ac6f4b0a000e5d3c295e495" +checksum = "abc1dd56c4f76505604c081ff540b3137da6098f0055515af7150e2f0d265af2" dependencies = [ "swc_atoms", "swc_common", @@ -6278,9 +6532,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_compat" -version = "0.159.11" +version = "0.160.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "83bf11f8c486856ea9c8d24d84e5e8629afbd49919be519fddda67d3d440a9be" +checksum = "413a57c78f02d51af95100928ce62af0c832169ad38c73e46c77015cbe3785f9" dependencies = [ "arrayvec", "indexmap 1.9.3", @@ -6293,6 +6547,17 @@ dependencies = [ "swc_common", "swc_config", "swc_ecma_ast", + "swc_ecma_compat_bugfixes", + "swc_ecma_compat_common", + "swc_ecma_compat_es2015", + "swc_ecma_compat_es2016", + "swc_ecma_compat_es2017", + "swc_ecma_compat_es2018", + "swc_ecma_compat_es2019", + "swc_ecma_compat_es2020", + "swc_ecma_compat_es2021", + "swc_ecma_compat_es2022", + "swc_ecma_compat_es3", "swc_ecma_transforms_base", "swc_ecma_transforms_classes", "swc_ecma_transforms_macros", @@ -6317,9 +6582,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_module" -version = "0.176.14" +version = "0.177.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5239cdd86eb8a99d04473dfaceb778ec080be9644ae9d53bc92b6967a3eea60b" +checksum = "7551406c42c22444cec84d35a19bfdc3d3030262a736b5bec06c8fc6c2f4a7bb" dependencies = [ "Inflector", "anyhow", @@ -6344,9 +6609,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_optimization" -version = "0.193.19" +version = "0.195.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47028d59dbb4635f4881393f19644bc3f3808536c901551a73ed0a454160d077" +checksum = "3d6de1cd412b1bf59f1c71f61c6399a89faab1f2a99657cffcf889cde5cce09f" dependencies = [ "dashmap", "indexmap 1.9.3", @@ -6369,9 +6634,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_proposal" -version = "0.167.13" +version = "0.168.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e896e6d01b1618f4f2061c6ab4c5f74e98b47d93f80bd81731243e880aa721a" +checksum = "67728d832bdb7d7ff44f8bfb93830df7ec1e3fe516c3022525949b92f822d8c8" dependencies = [ "either", "rustc-hash", @@ -6389,9 +6654,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_react" -version = "0.179.14" +version = "0.180.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0eff59ce7151b51e5eaf0c961cf3a264258f179abe5ca1de6d0c5843020784d" +checksum = "417f343e75a3c0c0df0504651947c012b4f8de1519d14c9e7cc7fb847326ced8" dependencies = [ "base64 0.13.1", "dashmap", @@ -6414,9 +6679,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_testing" -version = "0.136.5" +version = "0.137.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef0636ec69f3de36ed0155a05e338b6ee294b115fafa15e13996f1ca7f2af6c3" +checksum = "06b02eb5f5972cc9000aedf436aefdd1723d6f7235fc829eb1a2f29fcff38f86" dependencies = [ "ansi_term", "anyhow", @@ -6440,9 +6705,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_typescript" -version = "0.183.18" +version = "0.185.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "705566ab5897223937008a759556d562044a195f2ee8597fa0d9b2af4ca32495" +checksum = "935b5d1dfe618b72c760edd5dfbb9f95d7e5dddfcf11f83a08e851682b0ab20f" dependencies = [ "ryu-js", "serde", @@ -6457,9 +6722,9 @@ dependencies = [ [[package]] name = "swc_ecma_usage_analyzer" -version = "0.19.0" +version = "0.20.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d71dc9b35f1f137c72badbadb705a2325d161ff603224ab0e07e6834774ea281" +checksum = "d71bbc022658f28e9455c6199069d48dc54b487bc883343f4b265b0f4c44966e" dependencies = [ "indexmap 1.9.3", "rustc-hash", @@ -6474,9 +6739,9 @@ dependencies = [ [[package]] name = "swc_ecma_utils" -version = "0.123.0" +version = "0.124.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b6d6b59ebd31b25fe2692ff705c806961e7856de8b7e91fd0942328886cd315" +checksum = "4d5dd053e9a21c433504664d7083869c9d02394eb5141b101c81067067536471" dependencies = [ "indexmap 1.9.3", "num_cpus", @@ -6493,9 +6758,9 @@ dependencies = [ [[package]] name = "swc_ecma_visit" -version = "0.95.1" +version = "0.96.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2774848b306e17fa280c598ecb192cc2c72a1163942b02d48606514336e9e7c5" +checksum = "47081acd84cdb2d49d6340ed3204e17738b444da10a3e1dd1eb3d7c8e4d47091" dependencies = [ "num-bigint", "serde", @@ -6508,9 +6773,9 @@ dependencies = [ [[package]] name = "swc_emotion" -version = "0.51.0" +version = "0.53.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d1a13c3241b2812f15e751687924b0458b55ca7c3576a752b939e954cb4b0ba" +checksum = "43150c60e1fbb43010427afe474246189bc426c5ee833cc413b558a41f0836cd" dependencies = [ "base64 0.13.1", "byteorder", @@ -6544,9 +6809,9 @@ dependencies = [ [[package]] name = "swc_error_reporters" -version = "0.16.1" +version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c76b479ad1a69bec65b261354b8e2dec8ed0f9ed43c7b54ab053dc4923e1c90e" +checksum = "015cbdf2b13ccc76eb12d1702a90fb9aae7b3cddacaf2c56a1b1a4a02f9fcd81" dependencies = [ "anyhow", "miette", @@ -6557,9 +6822,9 @@ dependencies = [ [[package]] name = "swc_fast_graph" -version = "0.20.1" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2f7297cdefdb54d8d09e0294c1aec3826825b1feefd0c25978365aa7f447a1c" +checksum = "b97e69e9617913611e39284cf724a412ab7fc6081708d0ef2820855774da5357" dependencies = [ "indexmap 1.9.3", "petgraph", @@ -6569,9 +6834,9 @@ dependencies = [ [[package]] name = "swc_graph_analyzer" -version = "0.21.1" +version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d20a18d45da54ba15698d5ce1f6a0a97684f4035922730393e98e47b44fc3573" +checksum = "0f59cccef405565b041a8fa1fc2e7059856149f7fc658544c4bafd1a001ea483" dependencies = [ "auto_impl", "petgraph", @@ -6594,9 +6859,9 @@ dependencies = [ [[package]] name = "swc_node_comments" -version = "0.19.1" +version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2b9597573f1ab8bae72329eef550d214ced0955c7a4f1b6b4ae5e216219e710" +checksum = "cf250afa389a40c4856a250d63f5b1f8d46b513446299b72166c870c7641c365" dependencies = [ "dashmap", "swc_atoms", @@ -6630,9 +6895,9 @@ dependencies = [ [[package]] name = "swc_plugin_proxy" -version = "0.38.1" +version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a76ccadcc63a459e096f332730b2d4e09548fc10e0be63df9f3bacecdf5332fe" +checksum = "55e32ea3aeb4930d0b6fcf1f052d33a4bb115a9d58e32bf3baade3316ef6bdd3" dependencies = [ "better_scoped_tls", "rkyv", @@ -6644,9 +6909,9 @@ dependencies = [ [[package]] name = "swc_plugin_runner" -version = "0.102.1" +version = "0.104.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a5626614e11d835b3e8631a7dde4da044d143dc20fd8da3d7ab8d05aaf3cd6b" +checksum = "86c58e6dfbcc59185e9c557d952f431c5140ed546cfebc053ad0b082c4a3e4e4" dependencies = [ "anyhow", "enumset", @@ -6668,9 +6933,9 @@ dependencies = [ [[package]] name = "swc_relay" -version = "0.23.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b74826cb88703713c9c081f5968324490eed925217813ffa1de22da711a80a9" +checksum = "5dfcf5ebeb56cf35ddfcab86338ee9a776ccde2e27b44a63a2b41271572d9f8c" dependencies = [ "once_cell", "regex", @@ -6686,9 +6951,9 @@ dependencies = [ [[package]] name = "swc_timer" -version = "0.20.1" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b740ce6b402ed04176bd28dc4f4f92c764fe0defe8437c2f3b6e1b5818b4e10c" +checksum = "77a6e150f91760ccaca6f6b797b95ffb00bbc245a71311c483b84a7bc700e9c4" dependencies = [ "tracing", ] @@ -6854,9 +7119,9 @@ dependencies = [ [[package]] name = "testing" -version = "0.34.1" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc31f7f4a7baef94495386462c2a55caa0f0885b61b28c120f783132d14938ed" +checksum = "e149694212e0152671c616dc21e4029a0f39710085f32705b2fb07fda89e437f" dependencies = [ "ansi_term", "cargo_metadata", @@ -6962,24 +7227,25 @@ dependencies = [ [[package]] name = "time" -version = "0.3.26" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a79d09ac6b08c1ab3906a2f7cc2e81a0e27c7ae89c63812df75e52bef0751e07" +checksum = "c4a34ab300f2dee6e562c10a046fc05e358b29f9bf92277f30c3c8d82275f6f5" dependencies = [ "deranged", "itoa", "libc", "num_threads", + "powerfmt", "serde", "time-core", - "time-macros 0.2.12", + "time-macros 0.2.15", ] [[package]] name = "time-core" -version = "0.1.1" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7300fbefb4dadc1af235a9cef3737cea692a9d97e1b9cbcd4ebdae6f8868e6fb" +checksum = "ef927ca75afb808a4d64dd374f00a2adf8d0fcff8e7b184af886c3c87ec4a3f3" [[package]] name = "time-macros" @@ -6993,9 +7259,9 @@ dependencies = [ [[package]] name = "time-macros" -version = "0.2.12" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75c65469ed6b3a4809d987a41eb1dc918e9bc1d92211cbad7ae82931846f7451" +checksum = "4ad70d68dba9e1f8aceda7aa6711965dfec1cac869f311a51bd08b3a2ccbce20" dependencies = [ "time-core", ] @@ -7369,7 +7635,7 @@ dependencies = [ [[package]] name = "turbo-tasks" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "anyhow", "async-trait", @@ -7401,7 +7667,7 @@ dependencies = [ [[package]] name = "turbo-tasks-build" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "anyhow", "cargo-lock", @@ -7413,7 +7679,7 @@ dependencies = [ [[package]] name = "turbo-tasks-bytes" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "anyhow", "bytes", @@ -7428,7 +7694,7 @@ dependencies = [ [[package]] name = "turbo-tasks-env" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "anyhow", "dotenvs", @@ -7442,7 +7708,7 @@ dependencies = [ [[package]] name = "turbo-tasks-fetch" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "anyhow", "indexmap 1.9.3", @@ -7459,7 +7725,7 @@ dependencies = [ [[package]] name = "turbo-tasks-fs" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "anyhow", "auto-hash-map", @@ -7489,7 +7755,7 @@ dependencies = [ [[package]] name = "turbo-tasks-hash" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "base16", "hex", @@ -7501,7 +7767,7 @@ dependencies = [ [[package]] name = "turbo-tasks-macros" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "anyhow", "convert_case 0.6.0", @@ -7515,7 +7781,7 @@ dependencies = [ [[package]] name = "turbo-tasks-macros-shared" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "proc-macro2", "quote", @@ -7525,7 +7791,7 @@ dependencies = [ [[package]] name = "turbo-tasks-malloc" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "mimalloc", ] @@ -7533,7 +7799,7 @@ dependencies = [ [[package]] name = "turbo-tasks-memory" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "anyhow", "auto-hash-map", @@ -7558,7 +7824,7 @@ dependencies = [ [[package]] name = "turbopack" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "anyhow", "async-recursion", @@ -7589,7 +7855,7 @@ dependencies = [ [[package]] name = "turbopack-binding" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "auto-hash-map", "mdxjs", @@ -7629,7 +7895,7 @@ dependencies = [ [[package]] name = "turbopack-build" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "anyhow", "indexmap 1.9.3", @@ -7651,7 +7917,7 @@ dependencies = [ [[package]] name = "turbopack-cli-utils" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "anyhow", "clap 4.4.2", @@ -7675,7 +7941,7 @@ dependencies = [ [[package]] name = "turbopack-core" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "anyhow", "async-recursion", @@ -7705,7 +7971,7 @@ dependencies = [ [[package]] name = "turbopack-css" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "anyhow", "async-trait", @@ -7727,7 +7993,7 @@ dependencies = [ [[package]] name = "turbopack-dev" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "anyhow", "indexmap 1.9.3", @@ -7751,7 +8017,7 @@ dependencies = [ [[package]] name = "turbopack-dev-server" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "anyhow", "async-compression", @@ -7788,7 +8054,7 @@ dependencies = [ [[package]] name = "turbopack-ecmascript" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "anyhow", "async-trait", @@ -7822,7 +8088,7 @@ dependencies = [ [[package]] name = "turbopack-ecmascript-hmr-protocol" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "serde", "serde_json", @@ -7833,7 +8099,7 @@ dependencies = [ [[package]] name = "turbopack-ecmascript-plugins" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "anyhow", "async-trait", @@ -7856,7 +8122,7 @@ dependencies = [ [[package]] name = "turbopack-ecmascript-runtime" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "anyhow", "indoc", @@ -7873,7 +8139,7 @@ dependencies = [ [[package]] name = "turbopack-env" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "anyhow", "indexmap 1.9.3", @@ -7889,7 +8155,7 @@ dependencies = [ [[package]] name = "turbopack-image" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "anyhow", "base64 0.21.4", @@ -7909,7 +8175,7 @@ dependencies = [ [[package]] name = "turbopack-json" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "anyhow", "serde", @@ -7924,7 +8190,7 @@ dependencies = [ [[package]] name = "turbopack-mdx" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "anyhow", "mdxjs", @@ -7939,7 +8205,7 @@ dependencies = [ [[package]] name = "turbopack-node" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "anyhow", "async-stream", @@ -7974,7 +8240,7 @@ dependencies = [ [[package]] name = "turbopack-static" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "anyhow", "serde", @@ -7990,7 +8256,7 @@ dependencies = [ [[package]] name = "turbopack-swc-utils" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "swc_core", "turbo-tasks", @@ -8001,7 +8267,7 @@ dependencies = [ [[package]] name = "turbopack-wasm" version = "0.1.0" -source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231013.3#1e7c4b84f11561db5c6c671480e55e6cc8d9f481" +source = "git+https://github.com/vercel/turbo.git?tag=turbopack-231017.3#6ffb2e9cb5e18301fca7ccdc0b909deb04cd9fc4" dependencies = [ "anyhow", "indexmap 1.9.3", @@ -8241,7 +8507,7 @@ dependencies = [ "getset", "rustversion", "thiserror", - "time 0.3.26", + "time 0.3.30", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index d8f5ed3050deb..eb41196d2c972 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,18 +33,18 @@ next-transform-dynamic = { path = "packages/next-swc/crates/next-transform-dynam next-transform-strip-page-exports = { path = "packages/next-swc/crates/next-transform-strip-page-exports" } # SWC crates -swc_core = { version = "0.83.28", features = [ +swc_core = { version = "0.86.1", features = [ "ecma_loader_lru", "ecma_loader_parking_lot", ] } -testing = { version = "0.34.1" } +testing = { version = "0.35.0" } # Turbo crates -turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-231013.3" } +turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-231017.3" } # [TODO]: need to refactor embed_directory! macro usages, as well as resolving turbo_tasks::function, macros.. -turbo-tasks = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-231013.3" } +turbo-tasks = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-231017.3" } # [TODO]: need to refactor embed_directory! macro usage in next-core -turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-231013.3" } +turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-231017.3" } # General Deps diff --git a/packages/next-swc/crates/core/Cargo.toml b/packages/next-swc/crates/core/Cargo.toml index de1f102f2115f..dd0e186e3032d 100644 --- a/packages/next-swc/crates/core/Cargo.toml +++ b/packages/next-swc/crates/core/Cargo.toml @@ -33,8 +33,8 @@ turbopack-binding = { workspace = true, features = [ "__swc_transform_modularize_imports", "__swc_transform_relay", ] } -react_remove_properties = "0.3.0" -remove_console = "0.4.0" +react_remove_properties = "0.5.0" +remove_console = "0.6.0" [dev-dependencies] turbopack-binding = { workspace = true, features = [ diff --git a/packages/next-swc/crates/core/src/cjs_optimizer.rs b/packages/next-swc/crates/core/src/cjs_optimizer.rs index 7139a63909545..53a0a1b3a5ca0 100644 --- a/packages/next-swc/crates/core/src/cjs_optimizer.rs +++ b/packages/next-swc/crates/core/src/cjs_optimizer.rs @@ -233,7 +233,7 @@ impl VisitMut for CjsOptimizer { self.data.imports.insert( key, ImportRecord { - module_specifier: v.value.clone().into(), + module_specifier: v.value.clone(), }, ); } diff --git a/packages/next-swc/crates/core/src/optimize_server_react.rs b/packages/next-swc/crates/core/src/optimize_server_react.rs index 1d1f662eef65b..df23b16b46cd6 100644 --- a/packages/next-swc/crates/core/src/optimize_server_react.rs +++ b/packages/next-swc/crates/core/src/optimize_server_react.rs @@ -68,7 +68,7 @@ impl Fold for OptimizeServerReact { new_items.push(item.clone().fold_with(self)); if let ModuleItem::ModuleDecl(ModuleDecl::Import(import_decl)) = &item { - if import_decl.src.value.to_string() != "react" { + if import_decl.src.value != "react" { continue; } for specifier in &import_decl.specifiers { @@ -119,9 +119,7 @@ impl Fold for OptimizeServerReact { if &f.to_id() == react_ident { if let MemberProp::Ident(i) = &member.prop { // Remove `React.useEffect` and `React.useLayoutEffect` calls - if i.sym.to_string() == "useEffect" - || i.sym.to_string() == "useLayoutEffect" - { + if i.sym == "useEffect" || i.sym == "useLayoutEffect" { return Expr::Lit(Lit::Null(Null { span: DUMMY_SP })); } } diff --git a/packages/next-swc/crates/core/src/page_config.rs b/packages/next-swc/crates/core/src/page_config.rs index 2cd97f79783bd..495eb0abaff31 100644 --- a/packages/next-swc/crates/core/src/page_config.rs +++ b/packages/next-swc/crates/core/src/page_config.rs @@ -77,7 +77,7 @@ impl Fold for PageConfig { for decl in &var_decl.decls { let mut is_config = false; if let Pat::Ident(ident) = &decl.name { - if &ident.id.sym == CONFIG_KEY { + if ident.id.sym == CONFIG_KEY { is_config = true; } } @@ -151,14 +151,14 @@ impl Fold for PageConfig { match &specifier.exported { Some(ident) => { if let ModuleExportName::Ident(ident) = ident { - if &ident.sym == CONFIG_KEY { + if ident.sym == CONFIG_KEY { self.handle_error("Config cannot be re-exported.", specifier.span) } } } None => { if let ModuleExportName::Ident(ident) = &specifier.orig { - if &ident.sym == CONFIG_KEY { + if ident.sym == CONFIG_KEY { self.handle_error("Config cannot be re-exported.", specifier.span) } } diff --git a/packages/next/package.json b/packages/next/package.json index 365dc642c07b1..c41227467914d 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -191,7 +191,7 @@ "@types/ws": "8.2.0", "@vercel/ncc": "0.34.0", "@vercel/nft": "0.22.6", - "@vercel/turbopack-ecmascript-runtime": "https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-231013.3", + "@vercel/turbopack-ecmascript-runtime": "https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-231017.3", "acorn": "8.5.0", "amphtml-validator": "1.0.35", "anser": "1.4.9", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d556b7b487bee..aa37599a43b62 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1061,8 +1061,8 @@ importers: specifier: 0.22.6 version: 0.22.6 '@vercel/turbopack-ecmascript-runtime': - specifier: https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-231013.3 - version: '@gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-231013.3(react-refresh@0.12.0)(webpack@5.86.0)' + specifier: https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-231017.3 + version: '@gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-231017.3(react-refresh@0.12.0)(webpack@5.86.0)' acorn: specifier: 8.5.0 version: 8.5.0 @@ -25109,9 +25109,9 @@ packages: /zwitch@2.0.4: resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} - '@gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-231013.3(react-refresh@0.12.0)(webpack@5.86.0)': - resolution: {registry: https://registry.npmjs.org/, tarball: https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-231013.3} - id: '@gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-231013.3' + '@gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-231017.3(react-refresh@0.12.0)(webpack@5.86.0)': + resolution: {tarball: https://gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-231017.3} + id: '@gitpkg-fork.vercel.sh/vercel/turbo/crates/turbopack-ecmascript-runtime/js?turbopack-231017.3' name: '@vercel/turbopack-ecmascript-runtime' version: 0.0.0 dependencies: