diff --git a/Cargo.lock b/Cargo.lock index 0f213cb1af56f..0a97d599da47a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -277,9 +277,9 @@ dependencies = [ [[package]] name = "ast_node" -version = "0.9.9" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9184f2b369b3e8625712493c89b785881f27eedc6cde480a81883cef78868b2" +checksum = "f4d23a6d1d5f18bdbc06d9aa908880e5f49205156ba804751af731c51f5cf81a" dependencies = [ "proc-macro2", "quote", @@ -733,9 +733,9 @@ dependencies = [ [[package]] name = "binding_macros" -version = "0.78.0" +version = "0.81.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "756c55bc0b00cbbc506502836f6721b5a30684b47a15cd1625d1bb243a5eaf96" +checksum = "727bd2ca2dd7b00062ddc0f3589c99873a53d1e36c97b2e7e4e3b09415cc2a6c" dependencies = [ "anyhow", "console_error_panic_hook", @@ -1140,7 +1140,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57663b653d948a338bfb3eeba9bb2fd5fcfaecb9e199e87e1eda4d9e8b240fd9" dependencies = [ "ciborium-io", - "half 2.4.1", + "half", ] [[package]] @@ -1863,6 +1863,20 @@ dependencies = [ "parking_lot_core", ] +[[package]] +name = "dashmap" +version = "6.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5041cc499144891f3790297212f32a74fb938e5136a14943f338ef9e0ae276cf" +dependencies = [ + "cfg-if", + "crossbeam-utils", + "hashbrown 0.14.5", + "lock_api", + "once_cell", + "parking_lot_core", +] + [[package]] name = "data-encoding" version = "2.4.0" @@ -2308,9 +2322,9 @@ dependencies = [ [[package]] name = "from_variant" -version = "0.1.9" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32016f1242eb82af5474752d00fd8ebcd9004bd69b462b1c91de833972d08ed4" +checksum = "e8d8947525c49c73130b5a7187b55b027b6b78fe60268d9f4c283ed690698cb1" dependencies = [ "proc-macro2", "swc_macros_common", @@ -2625,12 +2639,6 @@ dependencies = [ "tracing", ] -[[package]] -name = "half" -version = "1.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eabb4a44450da02c90444cf74558da904edde8fb4e9035a9a6a4e15445af0bd7" - [[package]] name = "half" version = "2.4.1" @@ -3532,7 +3540,7 @@ dependencies = [ "const-str", "cssparser", "cssparser-color", - "dashmap", + "dashmap 5.5.3", "data-encoding", "getrandom", "itertools 0.10.5", @@ -3743,9 +3751,9 @@ checksum = "0ca88d725a0a943b096803bd34e73a4437208b6077654cc4ecb2947a5f91618d" [[package]] name = "markdown" -version = "1.0.0-alpha.18" +version = "1.0.0-alpha.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e61c5c85b392273c4d4ea546e6399ace3e3db172ab01b6de8f3d398d1dbd2ec" +checksum = "a6491e6c702bf7e3b24e769d800746d5f2c06a6c6a2db7992612e0f429029e81" dependencies = [ "unicode-id", ] @@ -3783,9 +3791,9 @@ dependencies = [ [[package]] name = "mdxjs" -version = "0.2.9" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec5cf50756dfb3eaf8f72979c94a3c2e281f3ba6e35280fa4b73eaac2cd23b6f" +checksum = "e39e24b73b8d26c1971f9cab737891aa0f7ca372360cc7a9c23c47eab7cdbc8d" dependencies = [ "markdown", "serde", @@ -3924,9 +3932,9 @@ dependencies = [ [[package]] name = "modularize_imports" -version = "0.68.25" +version = "0.68.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "219262dc484b7aef289a44ff30bf99f5990e2bec78f318d6e76bc32ea91b74ab" +checksum = "1d4c30e3a7eebfd453a92f2a1a85907cbd5c0212b6420b7ed65ed48d27d9d78b" dependencies = [ "convert_case", "handlebars", @@ -5017,12 +5025,12 @@ dependencies = [ [[package]] name = "pot" -version = "3.0.0" +version = "3.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df842bdb3b0553a411589e64aaa1a7d0c0259f72fabcedfaa841683ae3019d80" +checksum = "bf741fa415952eb20f27fbc210dc85f31cc7cdc80aa3ce81d5e27d28a6f45dc2" dependencies = [ "byteorder", - "half 2.4.1", + "half", "serde", ] @@ -5046,14 +5054,14 @@ checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" [[package]] name = "preset_env_base" -version = "0.5.1" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b30eab18be480c194938e433e269d5298a279f6410f02fbc73f3576a325c110" +checksum = "1aaeaf4147a07c6615d43fce02d8139e1f835e6ee53e69db2a4810823c138c26" dependencies = [ "ahash 0.8.11", "anyhow", "browserslist-rs", - "dashmap", + "dashmap 5.5.3", "from_variant", "once_cell", "semver 1.0.23", @@ -5345,9 +5353,9 @@ dependencies = [ [[package]] name = "react_remove_properties" -version = "0.24.20" +version = "0.24.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "189a7950fd2e52383edfe712c5285aa4b2970debe83b24a461306da2f0c310e9" +checksum = "eec538845e2554946e51541477d3bedb646802e63b8060dac1a5fa35c64ffa3a" dependencies = [ "serde", "swc_atoms", @@ -5462,9 +5470,9 @@ checksum = "c707298afce11da2efef2f600116fa93ffa7a032b5d7b628aa17711ec81383ca" [[package]] name = "remove_console" -version = "0.25.20" +version = "0.25.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93907dba3314cc751c1a189dbf494176642afd478471bade04b31b9c97bace8f" +checksum = "a786c8679c7eba9055e01813253285707fd9dba57ce6177946dd9d91ca2df367" dependencies = [ "serde", "swc_atoms", @@ -5557,9 +5565,9 @@ dependencies = [ [[package]] name = "rkyv" -version = "0.7.44" +version = "0.7.45" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cba464629b3394fc4dbc6f940ff8f5b4ff5c7aef40f29166fd4ad12acbc99c0" +checksum = "9008cd6385b9e161d8229e1f6549dd23c3d022f132a2ea37ac3a10ac4935779b" dependencies = [ "bitvec", "bytecheck", @@ -5576,9 +5584,9 @@ dependencies = [ [[package]] name = "rkyv_derive" -version = "0.7.44" +version = "0.7.45" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7dddfff8de25e6f62b9d64e6e432bf1c6736c57d20323e15ee10435fbda7c65" +checksum = "503d1d27590a2b0a3a4ca4c94755aa2875657196ecbf401a42eff41d7de532c0" dependencies = [ "proc-macro2", "quote", @@ -5931,16 +5939,6 @@ dependencies = [ "serde", ] -[[package]] -name = "serde_cbor" -version = "0.11.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bef2ebfde456fb76bbcf9f59315333decc4fda0b2b44b420243c11e0f5ec1f5" -dependencies = [ - "half 1.8.2", - "serde", -] - [[package]] name = "serde_derive" version = "1.0.208" @@ -6112,9 +6110,9 @@ dependencies = [ [[package]] name = "shadow-rs" -version = "0.35.0" +version = "0.35.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fca0e9bdc073d7173ba993fb7886477af5df75588b57afcb4b96f21911ab0bfa" +checksum = "2311e39772c00391875f40e34d43efef247b23930143a70ca5fbec9505937420" dependencies = [ "const_format", "is_debug", @@ -6424,9 +6422,9 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" [[package]] name = "styled_components" -version = "0.96.23" +version = "0.96.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8dbced3b41cbf56b7a8fffe941a504b38c3ae2c183e926737dbab2bd73f223c0" +checksum = "52e7408e528d648921d029cf7cf263dd4e22b32be4365e7f291dd31f1da2591a" dependencies = [ "Inflector", "once_cell", @@ -6442,9 +6440,9 @@ dependencies = [ [[package]] name = "styled_jsx" -version = "0.73.34" +version = "0.73.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a62ac47cfa03c8c78fa89f5169cbe4c26faaaf4c9d721df2fc9c0d09070c4311" +checksum = "c59ca1c9d7b4eb85bc3f58f0118901b81c2b04138c039d7c75a6d5455370bad3" dependencies = [ "anyhow", "lightningcss", @@ -6476,13 +6474,13 @@ checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" [[package]] name = "swc" -version = "0.286.0" +version = "0.289.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea937e3c8e089531ee1c31d15d11c3111798e95eaf68a325efd2fceefc0d1535" +checksum = "65d51f69ac919b22a08e8654f63def43578a174132bda87309dea8fddd41a5d9" dependencies = [ "anyhow", "base64 0.21.4", - "dashmap", + "dashmap 5.5.3", "either", "indexmap 2.2.6", "jsonc-parser", @@ -6542,9 +6540,9 @@ dependencies = [ [[package]] name = "swc_allocator" -version = "0.1.8" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adc8bd3075d1c6964010333fae9ddcd91ad422a4f8eb8b3206a9b2b6afb4209e" +checksum = "7016ee7a5186d6a80e381aa1926e0f3c7b06eaf444745ff7af3632e978eb8dc5" dependencies = [ "bumpalo", "hashbrown 0.14.5", @@ -6555,9 +6553,9 @@ dependencies = [ [[package]] name = "swc_atoms" -version = "0.6.7" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb6567e4e67485b3e7662b486f1565bdae54bd5b9d6b16b2ba1a9babb1e42125" +checksum = "26cbf6019321add3a50377aaa4e06767a97a115084895289e10be000db207faf" dependencies = [ "bytecheck", "hstr", @@ -6569,13 +6567,13 @@ dependencies = [ [[package]] name = "swc_bundler" -version = "0.238.0" +version = "0.241.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bf5f02e367064a474cf4e47692ab7baf8e9ceca9ddfbb2805f0135b20061d76" +checksum = "50233225c6c4ac8df4c3aa69104137830ce85c8e7bf05d2b85524708a5598a32" dependencies = [ "anyhow", "crc", - "dashmap", + "dashmap 5.5.3", "indexmap 2.2.6", "is-macro", "once_cell", @@ -6607,7 +6605,7 @@ checksum = "83406221c501860fce9c27444f44125eafe9e598b8b81be7563d7036784cd05c" dependencies = [ "ahash 0.8.11", "anyhow", - "dashmap", + "dashmap 5.5.3", "once_cell", "regex", "serde", @@ -6615,9 +6613,9 @@ dependencies = [ [[package]] name = "swc_common" -version = "0.37.5" +version = "0.40.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12d0a8eaaf1606c9207077d75828008cb2dfb51b095a766bd2b72ef893576e31" +checksum = "f355465eaed1104244ce918b7ffb77ceb109aabeb74b04b98acae85683b0215b" dependencies = [ "ahash 0.8.11", "anyhow", @@ -6648,9 +6646,9 @@ dependencies = [ [[package]] name = "swc_compiler_base" -version = "0.20.0" +version = "0.23.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af379b9aba510f1e82f3294d41ab42b57fadbdc677313b534c75e23702d4f5ef" +checksum = "20b82e7c3cc5954a5b2e9c545920232a1d37a70215719f5021f090eda9fcf88a" dependencies = [ "anyhow", "base64 0.21.4", @@ -6703,9 +6701,9 @@ dependencies = [ [[package]] name = "swc_core" -version = "0.103.1" +version = "0.106.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b522497b5185baff8c02c0b5b40e7eb7f3e44bf8213b01b00d6816a09a5d35a" +checksum = "4cb4ab0f1863e48f5923f0cdc50e677d43d99f99b93df3185a76d27c01bbd881" dependencies = [ "binding_macros", "swc", @@ -6746,9 +6744,9 @@ dependencies = [ [[package]] name = "swc_css_ast" -version = "0.144.0" +version = "0.147.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "931a3c25a6bae42537783eab131b34d8fd2913d14f975106ceb3287716072ee0" +checksum = "d1ae9a520c25198d262a8fed0957321ab3c7e9e5959f75ca16b36fa4d5f355fc" dependencies = [ "is-macro", "string_enum", @@ -6758,9 +6756,9 @@ dependencies = [ [[package]] name = "swc_css_codegen" -version = "0.155.0" +version = "0.158.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09080a69fd9c07d76141f02c9d2826e46f08ffab5fdb8942cd8a95f38712f038" +checksum = "060428f43c8dc70d2cd9db7577fd674690fcd4f5d0421903004b5d6b2a2d223c" dependencies = [ "auto_impl", "bitflags 2.5.0", @@ -6787,9 +6785,9 @@ dependencies = [ [[package]] name = "swc_css_compat" -version = "0.31.0" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a46554269c0dcf34f3a414b3b43ed7dcd5e777e6cfa270a476101e522650ec58" +checksum = "e8fd47833ce23489bfc01d215556df3636820295c32f91cd11f4d13eae4afb74" dependencies = [ "bitflags 2.5.0", "once_cell", @@ -6804,9 +6802,9 @@ dependencies = [ [[package]] name = "swc_css_minifier" -version = "0.120.0" +version = "0.123.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3db2730dce248bf3ebab2d39885e7494b14a74279f93afcef4054c19aca61d17" +checksum = "bbcd85b181e2dea8d339dbc89468833d5b44b8b8be70104af1294f692e0e96cf" dependencies = [ "serde", "swc_atoms", @@ -6818,9 +6816,9 @@ dependencies = [ [[package]] name = "swc_css_modules" -version = "0.33.0" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "754fa55c23bcfaca640182d7812bc2104f8b20a488e7d29975e890618b6dc71c" +checksum = "cb5e7d2c8bddc5f2c4063b7f535cf144db262e44a3436949830517d9e863fa16" dependencies = [ "rustc-hash", "serde", @@ -6834,9 +6832,9 @@ dependencies = [ [[package]] name = "swc_css_parser" -version = "0.154.0" +version = "0.157.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02babeae8d3a1dad9858e6ade577b27cc463f8eb60139df0d05d58605e6c0554" +checksum = "f3f8211306cab33a9296d8ab435139be962d5f24ced8cf42d3259203590888f9" dependencies = [ "lexical", "serde", @@ -6847,9 +6845,9 @@ dependencies = [ [[package]] name = "swc_css_prefixer" -version = "0.158.0" +version = "0.161.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b883a7be6ae276f2085b72585a790394939f89b65dbb562ed53df7e97af93884" +checksum = "7eec3b6fc9742f21a61a3e628c75b2d2434f5a09500b47d8d75eba51d2d70947" dependencies = [ "once_cell", "preset_env_base", @@ -6864,9 +6862,9 @@ dependencies = [ [[package]] name = "swc_css_utils" -version = "0.141.0" +version = "0.144.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28e930b27b85b95329f29b1fa36be032fb9bd04f20b0a7180c9c0fc19a368979" +checksum = "50872344e03c60694589e83afac62b7f30806b9b2e783595522ff1660aef50d6" dependencies = [ "once_cell", "serde", @@ -6879,9 +6877,9 @@ dependencies = [ [[package]] name = "swc_css_visit" -version = "0.143.7" +version = "0.146.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c603fa9af0a4adc536a901ab728384c7da4fa0187b64d6aa25eb75ea61f1482b" +checksum = "7dfd7289d66619bee7a26159ed22359c1d49ea2649cc7bb0aba654863383ae34" dependencies = [ "serde", "swc_atoms", @@ -6892,9 +6890,9 @@ dependencies = [ [[package]] name = "swc_ecma_ast" -version = "0.118.2" +version = "0.121.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6f866d12e4d519052b92a0a86d1ac7ff17570da1272ca0c89b3d6f802cd79df" +checksum = "db7e1b73c85ff968404867505646b3c6f26e4661e4fc831593b9e182fa59ddd4" dependencies = [ "bitflags 2.5.0", "bytecheck", @@ -6912,13 +6910,14 @@ dependencies = [ [[package]] name = "swc_ecma_codegen" -version = "0.155.1" +version = "0.158.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc7641608ef117cfbef9581a99d02059b522fcca75e5244fa0cbbd8606689c6f" +checksum = "25aef555943803034f0e0fd98ddfe72f1c3454f2c68a897075eb29bc63d4e930" dependencies = [ "memchr", "num-bigint", "once_cell", + "regex", "serde", "sourcemap", "swc_allocator", @@ -6943,9 +6942,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_bugfixes" -version = "0.13.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e8f902d5111b5ab976256ef92f423454d739df76b8bd0bcf98bf5fc9782c7e8" +checksum = "fff0f4ede38d4110f8c639a4c07c8d2b677d3eac968ab33da312bbaf6ad5adf0" dependencies = [ "swc_atoms", "swc_common", @@ -6960,9 +6959,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_common" -version = "0.11.0" +version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9acdf402b36f8e83084b10e119d7ba9d07e5229ef39e1343f147db816c7b73e" +checksum = "66a479b2061a3b2c939a9abd34cfd3e9a6983a8bf12f7d3da89ac7ad6a64d9a4" dependencies = [ "swc_common", "swc_ecma_ast", @@ -6973,9 +6972,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2015" -version = "0.13.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36f6b54cf040a9a07d272af4c77c59a06aacf5d9523db91bc17fc26d3385d905" +checksum = "129fa363e3ea01f9e2d2dbd06675bfd515689b261c28b30296d89c91b549916a" dependencies = [ "arrayvec 0.7.4", "indexmap 2.2.6", @@ -7000,9 +6999,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2016" -version = "0.13.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa085dfb209a9c882acc3a3756f361acb16686dde157f27dfc83274e9d36f3c5" +checksum = "2a0f1dd466100cd41e85be398d1f4d973f8d5760ec52376294918def88e620ad" dependencies = [ "swc_atoms", "swc_common", @@ -7017,9 +7016,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2017" -version = "0.13.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74d1b2be58c297df26c45ee4f0f2927e724120c1b857bf1d4d6e92624900cd8e" +checksum = "33a3fcc3ae30628fc752d04b44c885ea6202ecfb187311d8827cc851ba7d906d" dependencies = [ "serde", "swc_atoms", @@ -7035,9 +7034,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2018" -version = "0.13.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f0a377b323e2ca37fc846fb99a52ed9971c22a57f3d12127c28bdd465d9ed20" +checksum = "31160d66339dda14faefd3a2816a0436f0a1e4f33a2057d8f3663a1a567eaf2e" dependencies = [ "serde", "swc_atoms", @@ -7054,9 +7053,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2019" -version = "0.13.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff664dbb0f7f7985621a1876550435b798948cdb04c4afce00b4fc0c612ba2ea" +checksum = "7f0164ad462c81c421de2af75f408ca3a96324a3c5e81d999a90a58e6e40dbef" dependencies = [ "swc_atoms", "swc_common", @@ -7070,9 +7069,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2020" -version = "0.13.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "838fecf793a16ed19f78b190fc74eb06a4d96c21d081b4c6427904ce6d041091" +checksum = "da49ae2565352c179657b47e87b4879b8c1128b5447e8fbfaaa020702f740636" dependencies = [ "serde", "swc_atoms", @@ -7088,9 +7087,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2021" -version = "0.13.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "658fba1c2d60b0ea04a7d492a192a2002294a3fde3825e6302d5fdc8f70837ec" +checksum = "6d9fed665a9f5b2b3c55fc04f36b12c8d2148fd25fb216a4d9ae9fac331a5374" dependencies = [ "swc_atoms", "swc_common", @@ -7104,9 +7103,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2022" -version = "0.13.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e6774dc174fc96c6c64b8405d6290aa513a6b1a08f7f3f50104f7f621acc3ff" +checksum = "241bf311a26447690bbfc36ec76886dac04343f82e3fe638fc0e0cdbaeae534b" dependencies = [ "swc_atoms", "swc_common", @@ -7123,9 +7122,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es3" -version = "0.13.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f70a7f88bd33d29b64d597e1e0d80f305f91b914a8c1bd06ed25dd0221a12663" +checksum = "2a0c7867bba0129c8844cf274c9a0e3f1926d7225d6dce36343a4b1626399992" dependencies = [ "swc_common", "swc_ecma_ast", @@ -7138,9 +7137,9 @@ dependencies = [ [[package]] name = "swc_ecma_ext_transforms" -version = "0.120.0" +version = "0.123.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad03ee53c734eb74757d03c07ec71b1a982261830c9253ef3e2e4a089f9af25d" +checksum = "55ea0bdb96b8d24305cf23614db4c734425c44329bd6e1734e6ebd068a88b536" dependencies = [ "phf 0.11.2", "swc_atoms", @@ -7152,12 +7151,12 @@ dependencies = [ [[package]] name = "swc_ecma_lints" -version = "0.101.0" +version = "0.104.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2bb459a91a6afc5053cc7ec1d675ca81588625468299d4683c85ad7ae3a160a3" +checksum = "4afb24beda205684867ba555f59e4a470afbe67d9deaacc29b1a5e3a4a1fd58d" dependencies = [ "auto_impl", - "dashmap", + "dashmap 5.5.3", "parking_lot", "rayon", "regex", @@ -7172,12 +7171,12 @@ dependencies = [ [[package]] name = "swc_ecma_loader" -version = "0.49.1" +version = "0.52.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55fa3d55045b97894bfb04d38aff6d6302ac8a6a38e3bb3dfb0d20475c4974a9" +checksum = "f521eea3476abc7ae7adcbfa3479881087e5ae8fe358d46376d761e83fdb3120" dependencies = [ "anyhow", - "dashmap", + "dashmap 5.5.3", "lru", "normpath", "once_cell", @@ -7194,9 +7193,9 @@ dependencies = [ [[package]] name = "swc_ecma_minifier" -version = "0.205.1" +version = "0.208.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ede5cd56c326fd1ace94ba2b7e897b74fea4174f695d3e11aa1d66ebae2c77bf" +checksum = "67d0fec4e2a4a00c1605f6baa2845cc05b4059c1bf9a6e45377c8ae67f04207d" dependencies = [ "arrayvec 0.7.4", "indexmap 2.2.6", @@ -7230,9 +7229,9 @@ dependencies = [ [[package]] name = "swc_ecma_parser" -version = "0.149.1" +version = "0.152.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "683dada14722714588b56481399c699378b35b2ba4deb5c4db2fb627a97fb54b" +checksum = "a4cfd7930abe18c6829d4adedb5249e1b9fa68e8e786c6636250637992ba0466" dependencies = [ "either", "new_debug_unreachable", @@ -7252,12 +7251,12 @@ dependencies = [ [[package]] name = "swc_ecma_preset_env" -version = "0.218.0" +version = "0.221.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6d9f94d9991a2a889abffa0d1d3b11ed708790b6ba15ba60f13757e9cac58c3" +checksum = "6b6b5a7222fe85be1732faa7a2c9812fc516d934ba320662c90c066264cd9eec" dependencies = [ "anyhow", - "dashmap", + "dashmap 5.5.3", "indexmap 2.2.6", "once_cell", "preset_env_base", @@ -7277,9 +7276,9 @@ dependencies = [ [[package]] name = "swc_ecma_quote_macros" -version = "0.60.0" +version = "0.63.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9781802c95d3bb1b248ae2641fab85012782bb5236e32600e6e4a00adf90a2dc" +checksum = "b6782774ce045d06682408be632ea2899e807a61fd9a307126d0a2407228de1b" dependencies = [ "anyhow", "proc-macro2", @@ -7294,9 +7293,9 @@ dependencies = [ [[package]] name = "swc_ecma_testing" -version = "0.26.0" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "945faa325af9833b2541d3b0b4e614812677480c2b763c6c6e8c2a42a133b906" +checksum = "d88a64496b73a0e9c9d8333d14d39904e8d87dbcefe7baaa161803a7f5bae110" dependencies = [ "anyhow", "hex", @@ -7307,9 +7306,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms" -version = "0.240.0" +version = "0.243.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66d4e6797fe278908709e6b87b501bf0c5a8d0ab6eb8ef236bfd5ac3839ced39" +checksum = "0b22f584075dfbd349c107def9c52de654979f0a1e8cdc4255dd4e7ec5b39800" dependencies = [ "swc_atoms", "swc_common", @@ -7327,9 +7326,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_base" -version = "0.146.0" +version = "0.149.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b5a7c0a6c4cc7d0ba65549e7db52443bc0eb104563aeaae727ad87c176a1bbe" +checksum = "f2194d20416a03ae02058934f8387691809f86466a2f2e7a65c56dcb001bd46b" dependencies = [ "better_scoped_tls", "bitflags 2.5.0", @@ -7351,9 +7350,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_classes" -version = "0.135.0" +version = "0.138.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b44b5f142c13f060f3b1e759fcbfd2667beed580ab808e07a15752654ee78e6" +checksum = "50e93ef88e45587864ef645e29c33f04f75360e47194c084f931855af3aac246" dependencies = [ "swc_atoms", "swc_common", @@ -7365,9 +7364,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_compat" -version = "0.172.0" +version = "0.175.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28dacfbdb1e7b8c984c4717dc48b7605e9d9d7a85c732a58a4bc17b9b63d7322" +checksum = "35dd174f6c954a4fe1bff88a64de777ef65041411f96b60daf4a78864ad47789" dependencies = [ "arrayvec 0.7.4", "indexmap 2.2.6", @@ -7414,9 +7413,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_module" -version = "0.191.0" +version = "0.194.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66a8bc46d821b459ed9593dfbdaf4b6cf760e62da9b1953560265bfd2d83f2b7" +checksum = "2b9adad7fabecb58e786d245087bd09f7c07693927a87d15e13aecfe4c4f13ee" dependencies = [ "Inflector", "anyhow", @@ -7441,11 +7440,11 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_optimization" -version = "0.209.0" +version = "0.212.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea84a268dcb68c19c8a47f610ca726c027ab1cebcd1f46182b4584039b72710d" +checksum = "0b2722095aef7b6de79b170c8c4e3c885576c5394e7a20328fdc51e880d6257b" dependencies = [ - "dashmap", + "dashmap 5.5.3", "indexmap 2.2.6", "once_cell", "petgraph", @@ -7466,9 +7465,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_proposal" -version = "0.180.0" +version = "0.183.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f07c0b5dbaeabfd40067068d2967aa8b7333c10c563fa605ffe06cb1942f451f" +checksum = "718f1e24dd96cfb0b7ba8f8a4e61c98338cdac7a3f5f9f4a83951d776ac398bf" dependencies = [ "either", "rustc-hash", @@ -7486,12 +7485,12 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_react" -version = "0.192.0" +version = "0.195.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b04782783439ffbceed4a58d00790603acf3bf99799dfb3a886c27e74ccfc96" +checksum = "06ddcb8943976319a4f8b899862f094f6984511490e4bfa9b4c8fbd334539b62" dependencies = [ "base64 0.21.4", - "dashmap", + "dashmap 5.5.3", "indexmap 2.2.6", "once_cell", "rayon", @@ -7512,9 +7511,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_testing" -version = "0.149.0" +version = "0.152.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ea574b501787bb705d7ebf9e003c235375196449fe91360b799e289ffab7861" +checksum = "b0cd337a171f362abb45841429b75c8fa78750fefa4896c8b1900ba16e4a2e71" dependencies = [ "ansi_term", "anyhow", @@ -7538,9 +7537,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_typescript" -version = "0.199.0" +version = "0.202.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b5c5e04d12bd134b67632121ef1184aa2d22f528ef4dd2ecb1e920cb039819f" +checksum = "2bfb758c4335038fd27668c17fb174ee18cd96c305a43fe38cc890f57cc6d395" dependencies = [ "ryu-js", "serde", @@ -7555,9 +7554,9 @@ dependencies = [ [[package]] name = "swc_ecma_usage_analyzer" -version = "0.30.3" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c7689421c6a892642c5907fd608c56d982fdef0d6456f9dba3cc418c6ea7e07" +checksum = "55a1d8b627b6adc706ccd2a4a30a5413e9df91a9cff6569cb9d3b9f41c1bc8de" dependencies = [ "indexmap 2.2.6", "rustc-hash", @@ -7572,9 +7571,9 @@ dependencies = [ [[package]] name = "swc_ecma_utils" -version = "0.134.3" +version = "0.137.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54f4e07d0d4987f8f27933549498acce5f89451ebe09b7d65f4d4ed4fc731200" +checksum = "939f21c75eff61ad3e485fc54d38988f2f9744ceda24a3feb8228dd072171d94" dependencies = [ "indexmap 2.2.6", "num_cpus", @@ -7592,9 +7591,9 @@ dependencies = [ [[package]] name = "swc_ecma_visit" -version = "0.104.8" +version = "0.107.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b1c6802e68e51f336e8bc9644e9ff9da75d7da9c1a6247d532f2e908aa33e81" +checksum = "15bd17e03251272ee04d1155036be5288055ab43d40ab2d9fd63ff815d326dad" dependencies = [ "new_debug_unreachable", "num-bigint", @@ -7608,9 +7607,9 @@ dependencies = [ [[package]] name = "swc_emotion" -version = "0.72.22" +version = "0.72.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4f4ea59296e236f2e66efb2a004fb2aecb1894dc7affd2747f83fe77939dadc" +checksum = "c941af8cbe19e6795ed1aa49f56212020453b2e51a868406b3c16ebab0d3dcb8" dependencies = [ "base64 0.22.1", "byteorder", @@ -7643,9 +7642,9 @@ dependencies = [ [[package]] name = "swc_error_reporters" -version = "0.21.0" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d049e9256abf29d9fc66d3db3ea44b6815a64ad565ce31e117a74ee96478bb3" +checksum = "83f9286183c9be40aafcbbe8c397403fb32af812a3dffe93eee9067aee4fbedb" dependencies = [ "anyhow", "miette", @@ -7656,9 +7655,9 @@ dependencies = [ [[package]] name = "swc_fast_graph" -version = "0.25.0" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "357e2c97bb51431d65080f25b436bc4e2fc1a7f64a643bc21a8353e478dc799f" +checksum = "3daff8d4379be2a99ab4b146e4dd631ef2415965dc4f1d33e988a737c5ccc39a" dependencies = [ "indexmap 2.2.6", "petgraph", @@ -7668,9 +7667,9 @@ dependencies = [ [[package]] name = "swc_graph_analyzer" -version = "0.26.0" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f84e1d24a0d6e4066b42cfc00ab9b3109e314465aa199dd3e16849ed9566dce7" +checksum = "34b37556e6a251940036010d2474881df76f05e1241655eb85795a68262b1371" dependencies = [ "auto_impl", "petgraph", @@ -7692,11 +7691,11 @@ dependencies = [ [[package]] name = "swc_node_comments" -version = "0.24.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d016ab18b432523b2a3c104ce3aaf7d869db46c0a41477dbfb6201ddc86c1eb0" +checksum = "31c325461f5e78e7749241f917945164adccfadcc2138a9a2e5ac9d186e1c459" dependencies = [ - "dashmap", + "dashmap 5.5.3", "swc_atoms", "swc_common", ] @@ -7728,9 +7727,9 @@ dependencies = [ [[package]] name = "swc_plugin_proxy" -version = "0.47.0" +version = "0.50.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07548e19126fbc58b16237e2c8b0075f037774dfdd691fe4c558ba898cfe784b" +checksum = "62a0c7f6098cb0ea5d0191bc02c5b3705000f2dd94c6da31f3ac47adf77ae419" dependencies = [ "better_scoped_tls", "rkyv", @@ -7742,9 +7741,9 @@ dependencies = [ [[package]] name = "swc_plugin_runner" -version = "0.112.2" +version = "0.115.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4144a890cd2d54068f2a3a3cd867c879c1d727dda38c6294184f29d788aeee7d" +checksum = "1f80055db238f44ab2741e5ee7a65aa54d8c1c3b1f9138fbd6b361eb8466a9c5" dependencies = [ "anyhow", "enumset", @@ -7759,7 +7758,7 @@ dependencies = [ "tokio", "tracing", "vergen 9.0.0", - "virtual-fs 0.11.4", + "virtual-fs", "wasmer", "wasmer-cache", "wasmer-compiler-cranelift", @@ -7768,9 +7767,9 @@ dependencies = [ [[package]] name = "swc_relay" -version = "0.44.25" +version = "0.44.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfae3f632283fb610ba656325e69a5e8ffa15c7f94536718f8fb302060c5d9ec" +checksum = "30bd3d261e9f5aa67b043362c96e9245419cbb310282643e16a1996b54b53948" dependencies = [ "once_cell", "regex", @@ -7786,18 +7785,18 @@ dependencies = [ [[package]] name = "swc_timer" -version = "0.25.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b5fb6f8b8b85512aacbb3d7140a828666e0e0b1bcc69bf84000a0cd36306bab" +checksum = "f53899e4ab3f9ce3db83b4c845f8a27f37bf700b233febbc9a6da749651c2fbb" dependencies = [ "tracing", ] [[package]] name = "swc_trace_macro" -version = "0.1.3" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff9719b6085dd2824fd61938a881937be14b08f95e2d27c64c825a9f65e052ba" +checksum = "69aa25f667e4d74ab10a17a266edeb8b354273817b20b91e60471f1c860a221b" dependencies = [ "proc-macro2", "quote", @@ -7819,9 +7818,9 @@ dependencies = [ [[package]] name = "swc_typescript" -version = "0.5.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5d043347b109a8aebfe01aaeada4af322304ea0f54ae8e5721df9afcb9305ca" +checksum = "b61f86dce2eeabd85d934a89cd481709918c751c44dfe433b5e4f1f40075fb5a" dependencies = [ "swc_atoms", "swc_common", @@ -7981,9 +7980,9 @@ dependencies = [ [[package]] name = "testing" -version = "0.39.0" +version = "0.42.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3105e9569b7f674d1107d19494c993aafd19ea51f7a558b96b267b49c9b5f2bf" +checksum = "cb07036f78601d34da9ba6855e8694ee5f420b915b59c2e44283be0606ae304f" dependencies = [ "ansi_term", "cargo_metadata", @@ -8586,7 +8585,7 @@ dependencies = [ "async-trait", "auto-hash-map", "concurrent-queue", - "dashmap", + "dashmap 5.5.3", "erased-serde", "event-listener 2.5.3", "futures", @@ -8621,7 +8620,7 @@ dependencies = [ "async-trait", "auto-hash-map", "byteorder", - "dashmap", + "dashmap 5.5.3", "either", "hashbrown 0.14.5", "indexmap 1.9.3", @@ -8712,7 +8711,7 @@ dependencies = [ "bytes", "concurrent-queue", "criterion", - "dashmap", + "dashmap 5.5.3", "dunce", "futures", "futures-retry", @@ -8799,7 +8798,7 @@ dependencies = [ "auto-hash-map", "concurrent-queue", "criterion", - "dashmap", + "dashmap 5.5.3", "either", "indexmap 1.9.3", "loom", @@ -9708,35 +9707,14 @@ checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" [[package]] name = "virtual-fs" -version = "0.11.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2188aeb68d3f631caab9253650fc9e5ac8b4f9e223a3f8726e8b3317eac5f9c7" -dependencies = [ - "async-trait", - "bytes", - "derivative", - "futures", - "getrandom", - "indexmap 1.9.3", - "lazy_static", - "pin-project-lite", - "replace_with", - "shared-buffer", - "slab", - "thiserror", - "tokio", - "tracing", -] - -[[package]] -name = "virtual-fs" -version = "0.15.0" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab78d839de346a6805017924bb424560c5bf77c4cd7d6f7754b492a4c2ec003f" +checksum = "e60ef133d8336b201a1618252518d81f9e9d30fbe27449dab706699a549216bc" dependencies = [ "anyhow", "async-trait", "bytes", + "dashmap 6.1.0", "derivative", "dunce", "filetime", @@ -9775,9 +9753,9 @@ dependencies = [ [[package]] name = "virtual-net" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e9f12f5b9ddecfc1bf03e91fba7e12ddf7c93c6ccf5e76a7683c89a26a34989" +checksum = "05d9551aa47efdb28093f79845d40858baf5075e4b4a09c7d9c8a0edd42f942b" dependencies = [ "anyhow", "async-trait", @@ -10017,9 +9995,9 @@ dependencies = [ [[package]] name = "wasmer" -version = "4.3.5" +version = "4.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3a6e0f73e5ae361fe64db607eaf4ab2381d88ad2c1b0bb8cf254cf35d894687" +checksum = "4b28d4251f96ece14460328c56ee0525edcf4bbb08748cfd87fef3580ae4d403" dependencies = [ "bytes", "cfg-if", @@ -10042,14 +10020,14 @@ dependencies = [ "wasmer-vm", "wasmparser 0.121.2", "wat", - "winapi", + "windows-sys 0.59.0", ] [[package]] name = "wasmer-cache" -version = "4.3.5" +version = "4.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79fd0889f8844b7c70b8ee8fbf1d1f6ccff99399c6f3d3627048cde04b1ac493" +checksum = "c3b1f3ef1d5a81b101513a125b3aede723a6f0991cb1c85d1fcc252aa4ced011" dependencies = [ "blake3", "hex", @@ -10059,9 +10037,9 @@ dependencies = [ [[package]] name = "wasmer-compiler" -version = "4.3.5" +version = "4.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb1e7c79507f5d55f1afd99984717e8380440cd98e13d542e4d00661f986f2d4" +checksum = "009b8417d51dbca8ac9a640ea999cc924fc59040a81245ecd0e092cb7c45dc10" dependencies = [ "backtrace", "bytes", @@ -10082,15 +10060,15 @@ dependencies = [ "wasmer-types", "wasmer-vm", "wasmparser 0.121.2", - "winapi", + "windows-sys 0.59.0", "xxhash-rust", ] [[package]] name = "wasmer-compiler-cranelift" -version = "4.3.5" +version = "4.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f3352014573750327646a690d32774312b0e8b7920e7e8ba00c0449eac18390" +checksum = "2445c6fb03824979448293e91d8a6daf0cdf66e8d996f31ef270e0d2cc3ea1f3" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -10107,41 +10085,19 @@ dependencies = [ [[package]] name = "wasmer-config" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b4a632496950fde9ad821e195ef1a301440076f7c7d80de55239a140359bcbd" -dependencies = [ - "anyhow", - "bytesize", - "derive_builder 0.12.0", - "hex", - "indexmap 2.2.6", - "schemars", - "semver 1.0.23", - "serde", - "serde_cbor", - "serde_json", - "serde_yaml", - "thiserror", - "toml 0.8.19", - "url", -] - -[[package]] -name = "wasmer-config" -version = "0.5.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d35974065bb02340d7b448f8a4c5a3156b524e3a6b29d59201b940cf4c2c384f" +checksum = "644b7e3547bd7e796d92220f60bf57734914254c6cee56607e80177a3e8a28da" dependencies = [ "anyhow", "bytesize", + "ciborium", "derive_builder 0.12.0", "hex", "indexmap 2.2.6", "schemars", "semver 1.0.23", "serde", - "serde_cbor", "serde_json", "serde_yaml", "thiserror", @@ -10151,9 +10107,9 @@ dependencies = [ [[package]] name = "wasmer-derive" -version = "4.3.5" +version = "4.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac6b0b0580cfa1fc7ad58cca3626a742f2b2e5ccd51cfc5de43e8edb0d1daa4c" +checksum = "02592d86ac19fb09c972e72edeb3e57ac5c569eac7e77b919b165da014e8c139" dependencies = [ "proc-macro-error", "proc-macro2", @@ -10163,9 +10119,9 @@ dependencies = [ [[package]] name = "wasmer-journal" -version = "0.7.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "577b4a0876dc31138bb8df5cc6c6f622dcd893d5a81552583f107abcbb6eda50" +checksum = "3045807a8a70da47eb06cb55aad673d5774f87f26ee11b7758d63c54b67bc5f4" dependencies = [ "anyhow", "async-trait", @@ -10181,7 +10137,7 @@ dependencies = [ "serde_json", "thiserror", "tracing", - "virtual-fs 0.15.0", + "virtual-fs", "virtual-net", "wasmer", "wasmer-wasix-types", @@ -10189,9 +10145,9 @@ dependencies = [ [[package]] name = "wasmer-types" -version = "4.3.5" +version = "4.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "576442cc3d302ca215fd40aa7826a078571dca7eaa773d8cdedca14a2ec7c9a1" +checksum = "3d22a00f1a90e9e66d5427853f41e76d8ab89e03eb3034debd11933607fef56a" dependencies = [ "bytecheck", "enum-iterator 0.7.0", @@ -10205,22 +10161,21 @@ dependencies = [ "sha2", "target-lexicon", "thiserror", - "webc", "xxhash-rust", ] [[package]] name = "wasmer-vm" -version = "4.3.5" +version = "4.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6483035d1df84a978cd6c6a35878e913dc8ec6311f8712548a922a75e87957ba" +checksum = "87d88e8355157cd730fb81e33c3b4d6849fd44c26d32bf78820638e1d935967b" dependencies = [ "backtrace", "cc", "cfg-if", "corosensei", "crossbeam-queue", - "dashmap", + "dashmap 6.1.0", "derivative", "enum-iterator 0.7.0", "fnv", @@ -10234,14 +10189,14 @@ dependencies = [ "scopeguard", "thiserror", "wasmer-types", - "winapi", + "windows-sys 0.59.0", ] [[package]] name = "wasmer-wasix" -version = "0.25.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24badb9cbb62a67df4eee4d6d690ba81b5b49e43ac49d2c0d4a97276fc3aacb5" +checksum = "dbfe427dbe359e037e1e33ff13b3a5473706e5679df2dbb0e71b5b46c9bb6ce3" dependencies = [ "ahash 0.8.11", "anyhow", @@ -10254,7 +10209,7 @@ dependencies = [ "cfg-if", "chrono", "cooked-waker", - "dashmap", + "dashmap 6.1.0", "derivative", "futures", "getrandom", @@ -10270,12 +10225,12 @@ dependencies = [ "once_cell", "petgraph", "pin-project", + "pin-utils", "rand", "rkyv", "rusty_pool", "semver 1.0.23", "serde", - "serde_cbor", "serde_derive", "serde_json", "serde_yaml", @@ -10287,32 +10242,33 @@ dependencies = [ "thiserror", "tokio", "tokio-stream", + "toml 0.8.19", "tracing", "url", "urlencoding", - "virtual-fs 0.15.0", + "virtual-fs", "virtual-mio", "virtual-net", "waker-fn", "wasm-bindgen", "wasm-bindgen-futures", "wasmer", - "wasmer-config 0.5.0", + "wasmer-config", "wasmer-journal", "wasmer-types", "wasmer-wasix-types", "web-sys", "webc", "weezl", - "winapi", + "windows-sys 0.59.0", "xxhash-rust", ] [[package]] name = "wasmer-wasix-types" -version = "0.25.0" +version = "0.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c8b03288ec41769e99915a2b17611a74ba0680e8806d0710d892f52b4f15d6f" +checksum = "9b9304c02de27468ea4154a31f8758343717d03a29d2a620bc652e8217baab75" dependencies = [ "anyhow", "bitflags 1.3.2", @@ -10403,14 +10359,15 @@ dependencies = [ [[package]] name = "webc" -version = "6.0.0-rc2" +version = "6.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb3e2ccb43d303c5bd48f31db7a129481a9aaa5343d623f92951751df190df81" +checksum = "c48441419be082f8d2537c84d8b1f502624d77bc08fbbd09ab17cadfe7f0ac53" dependencies = [ "anyhow", "base64 0.22.1", "bytes", "cfg-if", + "ciborium", "document-features", "flate2", "ignore", @@ -10423,7 +10380,6 @@ dependencies = [ "rand", "semver 1.0.23", "serde", - "serde_cbor", "serde_json", "sha2", "shared-buffer", @@ -10432,7 +10388,7 @@ dependencies = [ "thiserror", "toml 0.8.19", "url", - "wasmer-config 0.4.0", + "wasmer-config", ] [[package]] @@ -10631,6 +10587,15 @@ dependencies = [ "windows-targets 0.52.6", ] +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets 0.52.6", +] + [[package]] name = "windows-targets" version = "0.42.2" diff --git a/Cargo.toml b/Cargo.toml index f32f3c4484826..45c5e6ba9e284 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -86,21 +86,21 @@ turbopack-trace-utils = { path = "turbopack/crates/turbopack-trace-utils" } turbopack-wasm = { path = "turbopack/crates/turbopack-wasm" } # SWC crates -swc_core = { version = "0.103.1", features = [ +swc_core = { version = "0.106.3", features = [ "ecma_loader_lru", "ecma_loader_parking_lot", ] } -testing = { version = "0.39.0" } +testing = { version = "0.42.0" } # Keep consistent with preset_env_base through swc_core browserslist-rs = { version = "0.16.0" } miette = { version = "5.10.0", features = ["fancy"] } -mdxjs = "0.2.9" -modularize_imports = { version = "0.68.25" } -styled_components = { version = "0.96.23" } -styled_jsx = { version = "0.73.34" } -swc_emotion = { version = "0.72.22" } -swc_relay = { version = "0.44.25" } +mdxjs = "0.2.10" +modularize_imports = { version = "0.68.26" } +styled_components = { version = "0.96.24" } +styled_jsx = { version = "0.73.35" } +swc_emotion = { version = "0.72.23" } +swc_relay = { version = "0.44.26" } # General Deps diff --git a/crates/next-api/src/project.rs b/crates/next-api/src/project.rs index 0a91d003814ac..efb87c07160ec 100644 --- a/crates/next-api/src/project.rs +++ b/crates/next-api/src/project.rs @@ -223,7 +223,9 @@ impl ProjectContainer { let project = self.project(); let project_fs = project.project_fs().strongly_consistent().await?; if watch.enable { - project_fs.start_watching_with_invalidation_reason(watch.poll_interval)?; + project_fs + .start_watching_with_invalidation_reason(watch.poll_interval) + .await?; } else { project_fs.invalidate_with_reason(); } @@ -304,7 +306,9 @@ impl ProjectContainer { if !ReadRef::ptr_eq(&prev_project_fs, &project_fs) { if watch.enable { // TODO stop watching: prev_project_fs.stop_watching()?; - project_fs.start_watching_with_invalidation_reason(watch.poll_interval)?; + project_fs + .start_watching_with_invalidation_reason(watch.poll_interval) + .await?; } else { project_fs.invalidate_with_reason(); } @@ -1281,7 +1285,7 @@ impl Project { } None => match *self.next_mode().await? { NextMode::Development => Ok(Vc::upcast(DevModuleIdStrategy::new())), - NextMode::Build => Ok(Vc::upcast(GlobalModuleIdStrategyBuilder::build(self))), + NextMode::Build => Ok(Vc::upcast(DevModuleIdStrategy::new())), }, } } diff --git a/crates/next-core/Cargo.toml b/crates/next-core/Cargo.toml index 0214dd42589d4..5fea357457fea 100644 --- a/crates/next-core/Cargo.toml +++ b/crates/next-core/Cargo.toml @@ -31,8 +31,8 @@ lazy_static = { workspace = true } thiserror = { workspace = true } tracing = { workspace = true } rustc-hash = { workspace = true } -react_remove_properties = "0.24.20" -remove_console = "0.25.20" +react_remove_properties = "0.24.21" +remove_console = "0.25.21" auto-hash-map = { workspace = true } diff --git a/crates/next-core/src/next_config.rs b/crates/next-core/src/next_config.rs index cdf1ca3d47ff8..c2f9ef7cf8187 100644 --- a/crates/next-core/src/next_config.rs +++ b/crates/next-core/src/next_config.rs @@ -1140,15 +1140,25 @@ impl NextConfig { } #[turbo_tasks::function] - pub fn tree_shaking_mode_for_user_code( - self: Vc, - is_development: bool, - ) -> Vc { - Vc::cell(Some(if is_development { - TreeShakingMode::ReexportsOnly - } else { - TreeShakingMode::ModuleFragments - })) + pub fn tree_shaking_mode_for_user_code(&self, is_development: bool) -> Vc { + let tree_shaking = self + .experimental + .turbo + .as_ref() + .and_then(|v| v.tree_shaking); + + OptionTreeShaking(match tree_shaking { + Some(false) => Some(TreeShakingMode::ReexportsOnly), + Some(true) => Some(TreeShakingMode::ModuleFragments), + None => { + if is_development { + Some(TreeShakingMode::ReexportsOnly) + } else { + Some(TreeShakingMode::ModuleFragments) + } + } + }) + .cell() } #[turbo_tasks::function] diff --git a/crates/next-core/src/next_server/context.rs b/crates/next-core/src/next_server/context.rs index 2aa23c032e32c..123b0fb277767 100644 --- a/crates/next-core/src/next_server/context.rs +++ b/crates/next-core/src/next_server/context.rs @@ -23,7 +23,7 @@ use turbopack_core::{ environment::{Environment, ExecutionEnvironment, NodeJsEnvironment, RuntimeVersions}, free_var_references, }; -use turbopack_ecmascript::{references::esm::UrlRewriteBehavior, TreeShakingMode}; +use turbopack_ecmascript::references::esm::UrlRewriteBehavior; use turbopack_ecmascript_plugins::transform::directives::{ client::ClientDirectiveTransformer, client_disallowed::ClientDisallowedDirectiveTransformer, }; @@ -898,20 +898,6 @@ pub async fn get_server_module_options_context( Ok(module_options_context) } -#[turbo_tasks::function] -pub fn get_build_module_options_context() -> Vc { - ModuleOptionsContext { - ecmascript: EcmascriptOptionsContext { - enable_typescript_transform: Some(Default::default()), - esm_url_rewrite_behavior: Some(UrlRewriteBehavior::Full), - ..Default::default() - }, - tree_shaking_mode: Some(TreeShakingMode::ModuleFragments), - ..Default::default() - } - .cell() -} - #[turbo_tasks::function] pub fn get_server_runtime_entries( _ty: Value, diff --git a/crates/next-custom-transforms/Cargo.toml b/crates/next-custom-transforms/Cargo.toml index 5338a7ce473c3..6ef722156e3b3 100644 --- a/crates/next-custom-transforms/Cargo.toml +++ b/crates/next-custom-transforms/Cargo.toml @@ -56,9 +56,9 @@ swc_emotion = { workspace = true } swc_relay = { workspace = true } turbopack-ecmascript-plugins = { workspace = true, optional = true } -react_remove_properties = "0.24.20" -remove_console = "0.25.20" -preset_env_base = "0.5.1" +react_remove_properties = "0.24.21" +remove_console = "0.25.21" +preset_env_base = "0.6.0" [dev-dependencies] swc_core = { workspace = true, features = ["testing_transform"]} diff --git a/crates/next-custom-transforms/src/transforms/server_actions.rs b/crates/next-custom-transforms/src/transforms/server_actions.rs index 57557f430f875..0de00076a9e4f 100644 --- a/crates/next-custom-transforms/src/transforms/server_actions.rs +++ b/crates/next-custom-transforms/src/transforms/server_actions.rs @@ -819,7 +819,7 @@ impl VisitMut for ServerActions { if (is_action_fn || cache_type.is_some()) && !f.function.is_async { HANDLER.with(|handler| { handler - .struct_span_err(f.function.span, "Server actions must be async functions") + .struct_span_err(f.function.span, "Server Actions must be async functions") .emit(); }); } @@ -968,15 +968,13 @@ impl VisitMut for ServerActions { }], ..Default::default() }); - - return; } if is_action_fn { if !f.function.is_async { HANDLER.with(|handler| { handler - .struct_span_err(f.ident.span, "Server actions must be async functions") + .struct_span_err(f.ident.span, "Server Actions must be async functions") .emit(); }); } @@ -1388,7 +1386,9 @@ impl VisitMut for ServerActions { self.rewrite_default_fn_expr_to_proxy_expr = None; } - if self.config.is_react_server_layer || !self.in_action_file { + if self.config.is_react_server_layer + || (!self.in_action_file && self.in_cache_file.is_none()) + { new.append(&mut self.hoisted_extra_items); new.push(new_stmt); new.extend(self.annotations.drain(..).map(ModuleItem::Stmt)); @@ -1396,55 +1396,57 @@ impl VisitMut for ServerActions { } } - // If it's a "use server" file, all exports need to be annotated as actions. - if self.in_action_file { - // If it's compiled in the client layer, each export field needs to be - // wrapped by a reference creation call. - let create_ref_ident = private_ident!("createServerReference"); - let call_server_ident = private_ident!("callServer"); - let find_source_map_url_ident = private_ident!("findSourceMapURL"); - - if !self.config.is_react_server_layer { - // import { - // createServerReference, - // callServer, - // findSourceMapURL - // } from 'private-next-rsc-action-client-wrapper' - // createServerReference("action_id") - new.push(ModuleItem::ModuleDecl(ModuleDecl::Import(ImportDecl { - span: DUMMY_SP, - specifiers: vec![ - ImportSpecifier::Named(ImportNamedSpecifier { - span: DUMMY_SP, - local: create_ref_ident.clone(), - imported: None, - is_type_only: false, - }), - ImportSpecifier::Named(ImportNamedSpecifier { - span: DUMMY_SP, - local: call_server_ident.clone(), - imported: None, - is_type_only: false, - }), - ImportSpecifier::Named(ImportNamedSpecifier { - span: DUMMY_SP, - local: find_source_map_url_ident.clone(), - imported: None, - is_type_only: false, - }), - ], - src: Box::new(Str { + // If it's compiled in the client layer, each export field needs to be + // wrapped by a reference creation call. + let create_ref_ident = private_ident!("createServerReference"); + let call_server_ident = private_ident!("callServer"); + let find_source_map_url_ident = private_ident!("findSourceMapURL"); + + if (self.in_action_file || self.in_cache_file.is_some()) + && !self.config.is_react_server_layer + { + // import { + // createServerReference, + // callServer, + // findSourceMapURL + // } from 'private-next-rsc-action-client-wrapper' + // createServerReference("action_id") + new.push(ModuleItem::ModuleDecl(ModuleDecl::Import(ImportDecl { + span: DUMMY_SP, + specifiers: vec![ + ImportSpecifier::Named(ImportNamedSpecifier { span: DUMMY_SP, - value: "private-next-rsc-action-client-wrapper".into(), - raw: None, + local: create_ref_ident.clone(), + imported: None, + is_type_only: false, }), - type_only: false, - with: None, - phase: Default::default(), - }))); - new.rotate_right(1); - } + ImportSpecifier::Named(ImportNamedSpecifier { + span: DUMMY_SP, + local: call_server_ident.clone(), + imported: None, + is_type_only: false, + }), + ImportSpecifier::Named(ImportNamedSpecifier { + span: DUMMY_SP, + local: find_source_map_url_ident.clone(), + imported: None, + is_type_only: false, + }), + ], + src: Box::new(Str { + span: DUMMY_SP, + value: "private-next-rsc-action-client-wrapper".into(), + raw: None, + }), + type_only: false, + with: None, + phase: Default::default(), + }))); + new.rotate_right(1); + } + // If it's a "use server" file, all exports need to be annotated as actions. + if self.in_action_file || self.in_cache_file.is_some() { for (ident, export_name) in self.exported_idents.iter() { if !self.config.is_react_server_layer { let action_id = @@ -1507,7 +1509,7 @@ impl VisitMut for ServerActions { })); new.push(export_expr); } - } else { + } else if self.in_cache_file.is_none() { self.annotations.push(Stmt::Expr(ExprStmt { span: DUMMY_SP, expr: Box::new(annotate_ident_as_server_reference( @@ -1526,51 +1528,54 @@ impl VisitMut for ServerActions { if self.config.is_react_server_layer { new.append(&mut self.extra_items); - // Ensure that the exports are valid by appending a check - // import { ensureServerEntryExports } from 'private-next-rsc-action-validate' - // ensureServerEntryExports([action1, action2, ...]) - let ensure_ident = private_ident!("ensureServerEntryExports"); - new.push(ModuleItem::ModuleDecl(ModuleDecl::Import(ImportDecl { - span: DUMMY_SP, - specifiers: vec![ImportSpecifier::Named(ImportNamedSpecifier { + // For "use cache" files, there's no need to do extra annotations. + if self.in_cache_file.is_none() && !self.exported_idents.is_empty() { + // Ensure that the exports are valid by appending a check + // import { ensureServerEntryExports } from 'private-next-rsc-action-validate' + // ensureServerEntryExports([action1, action2, ...]) + let ensure_ident = private_ident!("ensureServerEntryExports"); + new.push(ModuleItem::ModuleDecl(ModuleDecl::Import(ImportDecl { span: DUMMY_SP, - local: ensure_ident.clone(), - imported: None, - is_type_only: false, - })], - src: Box::new(Str { - span: DUMMY_SP, - value: "private-next-rsc-action-validate".into(), - raw: None, - }), - type_only: false, - with: None, - phase: Default::default(), - }))); - new.push(ModuleItem::Stmt(Stmt::Expr(ExprStmt { - span: DUMMY_SP, - expr: Box::new(Expr::Call(CallExpr { + specifiers: vec![ImportSpecifier::Named(ImportNamedSpecifier { + span: DUMMY_SP, + local: ensure_ident.clone(), + imported: None, + is_type_only: false, + })], + src: Box::new(Str { + span: DUMMY_SP, + value: "private-next-rsc-action-validate".into(), + raw: None, + }), + type_only: false, + with: None, + phase: Default::default(), + }))); + new.push(ModuleItem::Stmt(Stmt::Expr(ExprStmt { span: DUMMY_SP, - callee: Callee::Expr(Box::new(Expr::Ident(ensure_ident))), - args: vec![ExprOrSpread { - spread: None, - expr: Box::new(Expr::Array(ArrayLit { - span: DUMMY_SP, - elems: self - .exported_idents - .iter() - .map(|(ident, _span)| { - Some(ExprOrSpread { - spread: None, - expr: Box::new(Expr::Ident(ident.clone())), + expr: Box::new(Expr::Call(CallExpr { + span: DUMMY_SP, + callee: Callee::Expr(Box::new(Expr::Ident(ensure_ident))), + args: vec![ExprOrSpread { + spread: None, + expr: Box::new(Expr::Array(ArrayLit { + span: DUMMY_SP, + elems: self + .exported_idents + .iter() + .map(|(ident, _span)| { + Some(ExprOrSpread { + spread: None, + expr: Box::new(Expr::Ident(ident.clone())), + }) }) - }) - .collect(), - })), - }], - ..Default::default() - })), - }))); + .collect(), + })), + }], + ..Default::default() + })), + }))); + } // Append annotations to the end of the file. new.extend(self.annotations.drain(..).map(ModuleItem::Stmt)); @@ -1606,7 +1611,7 @@ impl VisitMut for ServerActions { } // import { cache as $cache } from "private-next-rsc-cache-wrapper"; - if self.has_cache { + if self.has_cache && self.config.is_react_server_layer { new.push(ModuleItem::ModuleDecl(ModuleDecl::Import(ImportDecl { span: DUMMY_SP, specifiers: vec![ImportSpecifier::Named(ImportNamedSpecifier { diff --git a/crates/next-custom-transforms/tests/errors/server-actions/server-graph/1/output.stderr b/crates/next-custom-transforms/tests/errors/server-actions/server-graph/1/output.stderr index 4607062ac9bc4..e99101f672c56 100644 --- a/crates/next-custom-transforms/tests/errors/server-actions/server-graph/1/output.stderr +++ b/crates/next-custom-transforms/tests/errors/server-actions/server-graph/1/output.stderr @@ -1,4 +1,4 @@ - x Server actions must be async functions + x Server Actions must be async functions ,-[input.js:3:1] 2 | 3 | export function foo() {} diff --git a/crates/next-custom-transforms/tests/errors/server-actions/server-graph/12/output.js b/crates/next-custom-transforms/tests/errors/server-actions/server-graph/12/output.js index ae3ef5cf2d891..8d62fb0b34829 100644 --- a/crates/next-custom-transforms/tests/errors/server-actions/server-graph/12/output.js +++ b/crates/next-custom-transforms/tests/errors/server-actions/server-graph/12/output.js @@ -1,2 +1,2 @@ -/* __next_internal_client_entry_do_not_use__ foo auto */ const { createProxy } = require("private-next-rsc-mod-ref-proxy"); +/* __next_internal_client_entry_do_not_use__ foo auto */ const { createProxy } = require("private-next-rsc-mod-ref-proxy"); module.exports = createProxy("/app/item.js"); diff --git a/crates/next-custom-transforms/tests/errors/server-actions/server-graph/13/output.js b/crates/next-custom-transforms/tests/errors/server-actions/server-graph/13/output.js index ae3ef5cf2d891..8d62fb0b34829 100644 --- a/crates/next-custom-transforms/tests/errors/server-actions/server-graph/13/output.js +++ b/crates/next-custom-transforms/tests/errors/server-actions/server-graph/13/output.js @@ -1,2 +1,2 @@ -/* __next_internal_client_entry_do_not_use__ foo auto */ const { createProxy } = require("private-next-rsc-mod-ref-proxy"); +/* __next_internal_client_entry_do_not_use__ foo auto */ const { createProxy } = require("private-next-rsc-mod-ref-proxy"); module.exports = createProxy("/app/item.js"); diff --git a/crates/next-custom-transforms/tests/errors/server-actions/server-graph/2/output.stderr b/crates/next-custom-transforms/tests/errors/server-actions/server-graph/2/output.stderr index ae7be1a235273..f5df4b1b84188 100644 --- a/crates/next-custom-transforms/tests/errors/server-actions/server-graph/2/output.stderr +++ b/crates/next-custom-transforms/tests/errors/server-actions/server-graph/2/output.stderr @@ -1,4 +1,4 @@ - x Server actions must be async functions + x Server Actions must be async functions ,-[input.js:7:1] 6 | 7 | export function bar() {} diff --git a/crates/next-custom-transforms/tests/errors/server-actions/server-graph/4/output.js b/crates/next-custom-transforms/tests/errors/server-actions/server-graph/4/output.js index 1e4e2d5ded6f3..3fcb6a481c21e 100644 --- a/crates/next-custom-transforms/tests/errors/server-actions/server-graph/4/output.js +++ b/crates/next-custom-transforms/tests/errors/server-actions/server-graph/4/output.js @@ -5,5 +5,3 @@ export default class Component { return null; } } -import { ensureServerEntryExports } from "private-next-rsc-action-validate"; -ensureServerEntryExports([]); diff --git a/crates/next-custom-transforms/tests/errors/server-actions/server-graph/5/output.js b/crates/next-custom-transforms/tests/errors/server-actions/server-graph/5/output.js index f0d232472bf84..fa6276e8e1c20 100644 --- a/crates/next-custom-transforms/tests/errors/server-actions/server-graph/5/output.js +++ b/crates/next-custom-transforms/tests/errors/server-actions/server-graph/5/output.js @@ -1,5 +1,3 @@ /* __next_internal_action_entry_do_not_use__ {} */ import { registerServerReference } from "private-next-rsc-server-reference"; import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption"; export * from 'foo'; -import { ensureServerEntryExports } from "private-next-rsc-action-validate"; -ensureServerEntryExports([]); diff --git a/crates/next-custom-transforms/tests/errors/server-actions/server-graph/6/output.js b/crates/next-custom-transforms/tests/errors/server-actions/server-graph/6/output.js index 99dc4369c7857..7a65ca48369ae 100644 --- a/crates/next-custom-transforms/tests/errors/server-actions/server-graph/6/output.js +++ b/crates/next-custom-transforms/tests/errors/server-actions/server-graph/6/output.js @@ -2,5 +2,3 @@ import { encryptActionBoundArgs, decryptActionBoundArgs } from "private-next-rsc-action-encryption"; export default registerServerReference($$RSC_SERVER_ACTION_0, "6a88810ecce4a4e8b59d53b8327d7e98bbf251d7", null); export async function $$RSC_SERVER_ACTION_0() {} -import { ensureServerEntryExports } from "private-next-rsc-action-validate"; -ensureServerEntryExports([]); diff --git a/crates/next-custom-transforms/tests/fixture/server-actions/client/6/input.js b/crates/next-custom-transforms/tests/fixture/server-actions/client/6/input.js new file mode 100644 index 0000000000000..6c81b7aea14b5 --- /dev/null +++ b/crates/next-custom-transforms/tests/fixture/server-actions/client/6/input.js @@ -0,0 +1,3 @@ +'use cache' + +export async function foo() {} diff --git a/crates/next-custom-transforms/tests/fixture/server-actions/client/6/output.js b/crates/next-custom-transforms/tests/fixture/server-actions/client/6/output.js new file mode 100644 index 0000000000000..9ba040f715f1b --- /dev/null +++ b/crates/next-custom-transforms/tests/fixture/server-actions/client/6/output.js @@ -0,0 +1,2 @@ +/* __next_internal_action_entry_do_not_use__ {"3128060c414d59f8552e4788b846c0d2b7f74743":"$$RSC_SERVER_CACHE_0"} */ import { createServerReference, callServer, findSourceMapURL } from "private-next-rsc-action-client-wrapper"; +export var foo = /*#__PURE__*/ createServerReference("ab21efdafbe611287bc25c0462b1e0510d13e48b", callServer, void 0, findSourceMapURL, "foo"); diff --git a/crates/next-custom-transforms/tests/fixture/server-actions/server/37/output.js b/crates/next-custom-transforms/tests/fixture/server-actions/server/37/output.js index cd308c806a2bc..6c87b5a00e67c 100644 --- a/crates/next-custom-transforms/tests/fixture/server-actions/server/37/output.js +++ b/crates/next-custom-transforms/tests/fixture/server-actions/server/37/output.js @@ -9,5 +9,3 @@ async function Component() { const data = await fn(); return
{data}
; } -import { ensureServerEntryExports } from "private-next-rsc-action-validate"; -ensureServerEntryExports([]); diff --git a/docs/01-getting-started/01-installation.mdx b/docs/01-getting-started/01-installation.mdx index 130bd4e5b97f2..436f9fce02509 100644 --- a/docs/01-getting-started/01-installation.mdx +++ b/docs/01-getting-started/01-installation.mdx @@ -146,6 +146,12 @@ export default function Page() { } ``` +```jsx filename="pages/index.js" switcher +export default function Page() { + return

Hello, Next.js!

+} +``` + Next, add an `_app.tsx` file inside `pages/` to define the global layout. Learn more about the [custom App file](/docs/pages/building-your-application/routing/custom-app). ```tsx filename="pages/_app.tsx" switcher @@ -180,6 +186,22 @@ export default function Document() { } ``` +```jsx filename="pages/_document.js" switcher +import { Html, Head, Main, NextScript } from 'next/document' + +export default function Document() { + return ( + + + +
+ + + + ) +} +``` + Learn more about [using the Pages Router](/docs/pages/building-your-application/routing/pages-and-layouts). > **Good to know**: Although you can use both routers in the same project, routes in `app` will be prioritized over `pages`. We recommend using only one router in your new project to avoid confusion. diff --git a/docs/02-app/01-building-your-application/01-routing/10-dynamic-routes.mdx b/docs/02-app/01-building-your-application/01-routing/10-dynamic-routes.mdx index 4f3c5f99c698f..cb15eccae1fbf 100644 --- a/docs/02-app/01-building-your-application/01-routing/10-dynamic-routes.mdx +++ b/docs/02-app/01-building-your-application/01-routing/10-dynamic-routes.mdx @@ -41,7 +41,7 @@ export default function Page({ params }) { See the [generateStaticParams()](#generating-static-params) page to learn how to generate the params for the segment. -> **Good to know**: Dynamic Segments are equivalent to [Dynamic Routes](/docs/app/building-your-application/routing/dynamic-routes) in the `pages` directory. +> **Good to know**: Dynamic Segments are equivalent to [Dynamic Routes](/docs/pages/building-your-application/routing/dynamic-routes) in the `pages` directory. ## Generating Static Params diff --git a/docs/02-app/01-building-your-application/01-routing/11-parallel-routes.mdx b/docs/02-app/01-building-your-application/01-routing/11-parallel-routes.mdx index a706751c7c3f0..755adbe87755e 100644 --- a/docs/02-app/01-building-your-application/01-routing/11-parallel-routes.mdx +++ b/docs/02-app/01-building-your-application/01-routing/11-parallel-routes.mdx @@ -202,7 +202,7 @@ export default function Layout({ children }: { children: React.ReactNode }) { ```jsx filename="app/@analytics/layout.js" switcher import Link from 'next/link' -export default function Layout({ children }: { children: React.ReactNode }) { +export default function Layout({ children }) { return ( <>