diff --git a/Cargo.lock b/Cargo.lock index 08e522d..b1ba637 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,16 +2,6 @@ # It is not intended for manual editing. version = 4 -[[package]] -name = "Inflector" -version = "0.11.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3" -dependencies = [ - "lazy_static", - "regex", -] - [[package]] name = "ahash" version = "0.8.12" @@ -19,52 +9,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75" dependencies = [ "cfg-if", - "getrandom", "once_cell", - "serde", "version_check", "zerocopy", ] -[[package]] -name = "aho-corasick" -version = "1.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" -dependencies = [ - "memchr", -] - [[package]] name = "allocator-api2" version = "0.2.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" -[[package]] -name = "android-tzdata" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0" - -[[package]] -name = "android_system_properties" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" -dependencies = [ - "libc", -] - -[[package]] -name = "ansi_term" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" -dependencies = [ - "winapi", -] - [[package]] name = "anstyle" version = "1.0.11" @@ -73,15 +28,9 @@ checksum = "862ed96ca487e809f1c8e5a8447f6ee2cf102f846893800b20cebdf541fc6bbd" [[package]] name = "anyhow" -version = "1.0.98" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e16d2d3311acee920a9eb8d33b8cbc1787ce4a264e85f964c2404b969bdcd487" - -[[package]] -name = "arrayvec" -version = "0.7.6" +version = "1.0.100" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" +checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61" [[package]] name = "ascii" @@ -107,26 +56,15 @@ dependencies = [ [[package]] name = "ast_node" -version = "3.0.3" +version = "5.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1e2cddd48eafd883890770673b1971faceaf80a185445671abc3ea0c00593ee" +checksum = "2eb025ef00a6da925cf40870b9c8d008526b6004ece399cb0974209720f0b194" dependencies = [ "quote", "swc_macros_common", "syn", ] -[[package]] -name = "auto_impl" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffdcb70bdbc4d478427380519163274ac86e52916e10f0a8889adf0f96d3fee7" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "autocfg" version = "1.5.0" @@ -176,42 +114,6 @@ dependencies = [ "wyz", ] -[[package]] -name = "block-buffer" -version = "0.10.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" -dependencies = [ - "generic-array", -] - -[[package]] -name = "browserslist-data" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c49471c5ae53cefe3ac4acc4d3c75cb4b68995b70b3bbb864f8e08fae282098c" -dependencies = [ - "ahash", - "chrono", -] - -[[package]] -name = "browserslist-rs" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8dd48a6ca358df4f7000e3fb5f08738b1b91a0e5d5f862e2f77b2b14647547f5" -dependencies = [ - "ahash", - "browserslist-data", - "chrono", - "either", - "itertools", - "nom", - "serde", - "serde_json", - "thiserror 1.0.69", -] - [[package]] name = "bstr" version = "1.12.0" @@ -219,7 +121,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "234113d19d0d7d613b40e86fb654acf958910802bcceab913a4f9e7cda03b1a4" dependencies = [ "memchr", - "regex-automata 0.4.9", + "regex-automata", "serde", ] @@ -232,29 +134,6 @@ dependencies = [ "allocator-api2", ] -[[package]] -name = "bytecheck" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50690fb3370fb9fe3550372746084c46f2ac8c9685c583d2be10eefd89d3d1a3" -dependencies = [ - "bytecheck_derive", - "ptr_meta", - "rancor", - "simdutf8", -] - -[[package]] -name = "bytecheck_derive" -version = "0.8.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "efb7846e0cb180355c2dec69e721edafa36919850f1a9f52ffba4ebc0393cb71" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "bytecount" version = "0.6.9" @@ -274,54 +153,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7c60b5ce37e0b883c37eb89f79a1e26fbe9c1081945d024eee93e8d91a7e18b3" dependencies = [ "bytes", - "rkyv", - "serde", -] - -[[package]] -name = "camino" -version = "1.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0da45bc31171d8d6960122e222a67740df867c1dd53b4d51caa297084c185cab" -dependencies = [ - "serde", -] - -[[package]] -name = "cargo-platform" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e35af189006b9c0f00a064685c727031e3ed2d8020f7ba284d78cc2671bd36ea" -dependencies = [ - "serde", -] - -[[package]] -name = "cargo_metadata" -version = "0.18.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d886547e41f740c616ae73108f6eb70afe6d940c7bc697cb30f13daec073037" -dependencies = [ - "camino", - "cargo-platform", - "semver", - "serde", - "serde_json", - "thiserror 1.0.69", -] - -[[package]] -name = "cargo_metadata" -version = "0.19.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd5eb614ed4c27c5d706420e4320fbe3216ab31fa1c33cd8246ac36dae4479ba" -dependencies = [ - "camino", - "cargo-platform", - "semver", "serde", - "serde_json", - "thiserror 2.0.12", ] [[package]] @@ -333,33 +165,12 @@ dependencies = [ "rustversion", ] -[[package]] -name = "cc" -version = "1.2.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "deec109607ca693028562ed836a5f1c4b8bd77755c4e132fc5ce11b0b6211ae7" -dependencies = [ - "shlex", -] - [[package]] name = "cfg-if" version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9555578bc9e57714c812a1f84e4fc5b4d21fcb063490c624de019f7464c91268" -[[package]] -name = "chrono" -version = "0.4.41" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c469d952047f47f91b68d1cba3f10d63c11d73e4636f24f08daf0278abf01c4d" -dependencies = [ - "android-tzdata", - "iana-time-zone", - "num-traits", - "windows-link", -] - [[package]] name = "compact_str" version = "0.7.1" @@ -373,66 +184,6 @@ dependencies = [ "static_assertions", ] -[[package]] -name = "core-foundation-sys" -version = "0.8.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" - -[[package]] -name = "cpufeatures" -version = "0.2.17" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" -dependencies = [ - "libc", -] - -[[package]] -name = "crypto-common" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" -dependencies = [ - "generic-array", - "typenum", -] - -[[package]] -name = "darling" -version = "0.20.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee" -dependencies = [ - "darling_core", - "darling_macro", -] - -[[package]] -name = "darling_core" -version = "0.20.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d00b9596d185e565c2207a0b01f8bd1a135483d02d9b7b0a54b11da8d53412e" -dependencies = [ - "fnv", - "ident_case", - "proc-macro2", - "quote", - "strsim", - "syn", -] - -[[package]] -name = "darling_macro" -version = "0.20.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead" -dependencies = [ - "darling_core", - "quote", - "syn", -] - [[package]] name = "dashmap" version = "5.5.3" @@ -462,65 +213,12 @@ dependencies = [ "uuid", ] -[[package]] -name = "derive_builder" -version = "0.20.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "507dfb09ea8b7fa618fcf76e953f4f5e192547945816d5358edffe39f6f94947" -dependencies = [ - "derive_builder_macro", -] - -[[package]] -name = "derive_builder_core" -version = "0.20.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d5bcf7b024d6835cfb3d473887cd966994907effbe9227e8c8219824d06c4e8" -dependencies = [ - "darling", - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "derive_builder_macro" -version = "0.20.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab63b0e2bf4d5928aff72e83a7dace85d7bba5fe12dcc3c5a572d78caffd3f3c" -dependencies = [ - "derive_builder_core", - "syn", -] - -[[package]] -name = "diff" -version = "0.1.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56254986775e3233ffa9c4d7d3faaf6d36a2c09d30b20687e9f88bc8bafc16c8" - -[[package]] -name = "difference" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "524cbf6897b527295dff137cec09ecf3a05f4fddffd7dfcd1585403449e74198" - [[package]] name = "difflib" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6184e33543162437515c2e2b48714794e37845ec9851711914eec9d308f6ebe8" -[[package]] -name = "digest" -version = "0.10.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" -dependencies = [ - "block-buffer", - "crypto-common", -] - [[package]] name = "displaydoc" version = "0.2.5" @@ -550,40 +248,6 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" -[[package]] -name = "errno" -version = "0.3.13" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "778e2ac28f6c47af28e4907f13ffd1e1ddbd400980a9abd7c8df189bf578a5ad" -dependencies = [ - "libc", - "windows-sys 0.60.2", -] - -[[package]] -name = "fastrand" -version = "2.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" - -[[package]] -name = "fixedbitset" -version = "0.5.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d674e81391d1e1ab681a28d99df07927c6d4aa5b027d7da16ba32d1d21ecd99" - -[[package]] -name = "fnv" -version = "1.0.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" - -[[package]] -name = "foldhash" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" - [[package]] name = "form_urlencoded" version = "1.2.1" @@ -595,9 +259,9 @@ dependencies = [ [[package]] name = "from_variant" -version = "2.0.2" +version = "3.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "308530a56b099da144ebc5d8e179f343ad928fa2b3558d1eb3db9af18d6eff43" +checksum = "e5ff35a391aef949120a0340d690269b3d9f63460a6106e99bd07b961f345ea9" dependencies = [ "swc_macros_common", "syn", @@ -609,16 +273,6 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" -[[package]] -name = "generic-array" -version = "0.14.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" -dependencies = [ - "typenum", - "version_check", -] - [[package]] name = "getrandom" version = "0.3.3" @@ -633,24 +287,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "glob" -version = "0.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8d1add55171497b4705a648c6b583acafb01d58050a51727785f0b2c8e0a2b2" - -[[package]] -name = "globset" -version = "0.4.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54a1028dfc5f5df5da8a56a73e6c153c9a9708ec57232470703592a3f18e49f5" -dependencies = [ - "aho-corasick", - "bstr", - "regex-automata 0.4.9", - "regex-syntax 0.8.5", -] - [[package]] name = "gloo-utils" version = "0.2.0" @@ -664,15 +300,6 @@ dependencies = [ "web-sys", ] -[[package]] -name = "hashbrown" -version = "0.13.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" -dependencies = [ - "ahash", -] - [[package]] name = "hashbrown" version = "0.14.5" @@ -685,14 +312,9 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.15.4" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5971ac85611da7067dbfcabef3c70ebb5606018acd9e2a3903a0da507521e0d5" -dependencies = [ - "allocator-api2", - "equivalent", - "foldhash", -] +checksum = "5419bdc4f6a9207fbeba6d11b604d481addf78ecd10c11ad51e76c2f6482748d" [[package]] name = "heck" @@ -700,86 +322,38 @@ version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" -[[package]] -name = "hermit-abi" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c" - -[[package]] -name = "hex" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" - [[package]] name = "hstr" -version = "1.1.6" +version = "3.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b85186bc48d3c611ead052cc3f907748e40b63d73a99e4ed34d18063e2baaf1b" +checksum = "0c43c0a9e8fbdb3bb9dc8eee85e1e2ac81605418b4c83b6b7413cbf14d56ca5c" dependencies = [ "hashbrown 0.14.5", "new_debug_unreachable", "once_cell", "rustc-hash", + "serde", "triomphe", ] [[package]] -name = "hstr" +name = "icu_collections" version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4933df6fceb5d21a21e9fb5b46e572a83be4108e5b544de7ebe87cc1245b5d23" +checksum = "200072f5d0e3614556f94a9930d5dc3e0662a652823904c3a75dc3b0af7fee47" dependencies = [ - "hashbrown 0.14.5", - "new_debug_unreachable", - "once_cell", - "rustc-hash", - "triomphe", + "displaydoc", + "potential_utf", + "yoke", + "zerofrom", + "zerovec", ] [[package]] -name = "iana-time-zone" -version = "0.1.63" +name = "icu_locale_core" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0c919e5debc312ad217002b8048a17b7d83f80703865bbfcfebb0458b0b27d8" -dependencies = [ - "android_system_properties", - "core-foundation-sys", - "iana-time-zone-haiku", - "js-sys", - "log", - "wasm-bindgen", - "windows-core", -] - -[[package]] -name = "iana-time-zone-haiku" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" -dependencies = [ - "cc", -] - -[[package]] -name = "icu_collections" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "200072f5d0e3614556f94a9930d5dc3e0662a652823904c3a75dc3b0af7fee47" -dependencies = [ - "displaydoc", - "potential_utf", - "yoke", - "zerofrom", - "zerovec", -] - -[[package]] -name = "icu_locale_core" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0cde2700ccaed3872079a65fb1a78f6c0a36c91570f28755dda67bc8f7d9f00a" +checksum = "0cde2700ccaed3872079a65fb1a78f6c0a36c91570f28755dda67bc8f7d9f00a" dependencies = [ "displaydoc", "litemap", @@ -848,12 +422,6 @@ dependencies = [ "zerovec", ] -[[package]] -name = "ident_case" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" - [[package]] name = "idna" version = "1.0.3" @@ -883,13 +451,12 @@ checksum = "cb56e1aa765b4b4f3aadfab769793b7087bb03a4ea4920644a6d238e2df5b9ed" [[package]] name = "indexmap" -version = "2.10.0" +version = "2.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe4cd85333e22411419a0bcae1297d25e58c9443848b11dc6a86fefe8c78a661" +checksum = "6717a8d2a5a929a1a2eb43a12812498ed141a0bcfb7e8f7844fbdbe4303bba9f" dependencies = [ "equivalent", - "hashbrown 0.15.4", - "serde", + "hashbrown 0.16.0", ] [[package]] @@ -904,15 +471,6 @@ dependencies = [ "syn", ] -[[package]] -name = "itertools" -version = "0.13.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" -dependencies = [ - "either", -] - [[package]] name = "itoa" version = "1.0.15" @@ -929,33 +487,12 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "jsonc-parser" -version = "0.26.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d6d80e6d70e7911a29f3cf3f44f452df85d06f73572b494ca99a2cad3fcf8f4" -dependencies = [ - "serde_json", -] - -[[package]] -name = "lazy_static" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" - [[package]] name = "libc" version = "0.2.174" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1171693293099992e19cddea4e8b849964e9846f4acee11b3948bcc337be8776" -[[package]] -name = "linux-raw-sys" -version = "0.9.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12" - [[package]] name = "litemap" version = "0.8.0" @@ -978,24 +515,6 @@ version = "0.4.27" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94" -[[package]] -name = "lru" -version = "0.10.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "718e8fae447df0c7e1ba7f5189829e63fd536945c8988d61444c19039f16b670" -dependencies = [ - "hashbrown 0.13.2", -] - -[[package]] -name = "matchers" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558" -dependencies = [ - "regex-automata 0.1.10", -] - [[package]] name = "memchr" version = "2.7.5" @@ -1026,32 +545,6 @@ dependencies = [ "syn", ] -[[package]] -name = "minimal-lexical" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" - -[[package]] -name = "munge" -version = "0.4.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7feb0b48aa0a25f9fe0899482c6e1379ee7a11b24a53073eacdecb9adb6dc60" -dependencies = [ - "munge_macro", -] - -[[package]] -name = "munge_macro" -version = "0.4.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2e3795a5d2da581a8b252fec6022eee01aea10161a4d1bf237d4cbe47f7e988" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "new_debug_unreachable" version = "1.0.6" @@ -1067,39 +560,10 @@ dependencies = [ "bytecount", "miette", "serde", - "thiserror 1.0.69", + "thiserror", "winnow", ] -[[package]] -name = "nom" -version = "7.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" -dependencies = [ - "memchr", - "minimal-lexical", -] - -[[package]] -name = "normpath" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a9da8c9922c35a1033d76f7272dfc2e7ee20392083d75aeea6ced23c6266578" -dependencies = [ - "winapi", -] - -[[package]] -name = "nu-ansi-term" -version = "0.46.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84" -dependencies = [ - "overload", - "winapi", -] - [[package]] name = "num-bigint" version = "0.4.6" @@ -1129,16 +593,6 @@ dependencies = [ "autocfg", ] -[[package]] -name = "num_cpus" -version = "1.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91df4bbde75afed763b708b7eee1e8e7651e02d97f6d5dd763e89367e957b23b" -dependencies = [ - "hermit-abi", - "libc", -] - [[package]] name = "once_cell" version = "1.21.3" @@ -1149,14 +603,23 @@ checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" name = "orchestrion-js" version = "0.1.0" dependencies = [ + "anyhow", "assert_cmd", "getrandom", "nodejs-semver", "serde", - "swc", - "swc_core", + "swc_atoms", + "swc_common", + "swc_compiler_base", + "swc_config", + "swc_ecma_ast", + "swc_ecma_codegen", "swc_ecma_parser", - "swc_ecma_visit 8.0.0", + "swc_ecma_quote", + "swc_ecma_visit", + "swc_error_reporters", + "swc_node_comments", + "swc_sourcemap", "tsify", "wasm-bindgen", ] @@ -1167,37 +630,12 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1a80800c0488c3a21695ea981a54918fbb37abf04f4d0720c453632255e2ff0e" -[[package]] -name = "overload" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b15813163c1d831bf4a13c3610c05c0d03b39feb07f7e09fa234dac9b15aaf39" - [[package]] name = "owo-colors" version = "4.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "48dd4f4a2c8405440fd0462561f0e5806bd0f77e86f51c761481bdd4018b545e" -[[package]] -name = "par-core" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e96cbd21255b7fb29a5d51ef38a779b517a91abd59e2756c039583f43ef4c90f" -dependencies = [ - "once_cell", -] - -[[package]] -name = "par-iter" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3eae0176a010bb94b9a67f0eb9da0fd31410817d58850649c54f485124c9a71a" -dependencies = [ - "either", - "par-core", -] - [[package]] name = "parking_lot" version = "0.12.4" @@ -1218,21 +656,9 @@ dependencies = [ "libc", "redox_syscall", "smallvec", - "windows-targets 0.52.6", + "windows-targets", ] -[[package]] -name = "path-clean" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecba01bf2678719532c5e3059e0b5f0811273d94b397088b82e3bd0a78c78fdd" - -[[package]] -name = "path-clean" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17359afc20d7ab31fdb42bb844c8b3bb1dabd7dcf7e68428492da7f16966fcef" - [[package]] name = "pathdiff" version = "0.2.3" @@ -1245,16 +671,6 @@ version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" -[[package]] -name = "petgraph" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3672b37090dbd86368a4145bc067582552b29c27377cad4e0a306c97f9bd7772" -dependencies = [ - "fixedbitset", - "indexmap", -] - [[package]] name = "phf" version = "0.11.3" @@ -1312,12 +728,6 @@ dependencies = [ "zerovec", ] -[[package]] -name = "precomputed-map" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84350ffee5cedfabf9bee3e8825721f651da8ff79d50fe7a37cf0ca015c428ee" - [[package]] name = "predicates" version = "3.1.3" @@ -1345,34 +755,6 @@ dependencies = [ "termtree", ] -[[package]] -name = "preset_env_base" -version = "5.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8e82699979593636125cbeeedaf538d11f3dc4645287bbd594041404ad4a88a" -dependencies = [ - "anyhow", - "browserslist-rs", - "dashmap", - "from_variant", - "once_cell", - "rustc-hash", - "semver", - "serde", - "st-map", - "tracing", -] - -[[package]] -name = "pretty_assertions" -version = "1.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ae130e2f271fbc2ac3a40fb1d07180839cdbbe443c7a27e1e3c13c5cac0116d" -dependencies = [ - "diff", - "yansi", -] - [[package]] name = "proc-macro2" version = "1.0.95" @@ -1382,35 +764,6 @@ dependencies = [ "unicode-ident", ] -[[package]] -name = "psm" -version = "0.1.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e944464ec8536cd1beb0bbfd96987eb5e3b72f2ecdafdc5c769a37f1fa2ae1f" -dependencies = [ - "cc", -] - -[[package]] -name = "ptr_meta" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe9e76f66d3f9606f44e45598d155cb13ecf09f4a28199e48daf8c8fc937ea90" -dependencies = [ - "ptr_meta_derive", -] - -[[package]] -name = "ptr_meta_derive" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca414edb151b4c8d125c12566ab0d74dc9cdba36fb80eb7b848c15f495fd32d1" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "quote" version = "1.0.40" @@ -1432,21 +785,6 @@ version = "0.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" -[[package]] -name = "radix_fmt" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce082a9940a7ace2ad4a8b7d0b1eac6aa378895f18be598230c5f2284ac05426" - -[[package]] -name = "rancor" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "caf5f7161924b9d1cea0e4cabc97c372cea92b5f927fc13c6bca67157a0ad947" -dependencies = [ - "ptr_meta", -] - [[package]] name = "rand" version = "0.8.5" @@ -1474,101 +812,12 @@ dependencies = [ [[package]] name = "regex" version = "1.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" -dependencies = [ - "aho-corasick", - "memchr", - "regex-automata 0.4.9", - "regex-syntax 0.8.5", -] - -[[package]] -name = "regex-automata" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" -dependencies = [ - "regex-syntax 0.6.29", -] [[package]] name = "regex-automata" version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908" -dependencies = [ - "aho-corasick", - "memchr", - "regex-syntax 0.8.5", -] - -[[package]] -name = "regex-syntax" -version = "0.6.29" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1" - -[[package]] -name = "regex-syntax" -version = "0.8.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c" - -[[package]] -name = "regress" -version = "0.10.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "145bb27393fe455dd64d6cbc8d059adfa392590a45eadf079c01b11857e7b010" -dependencies = [ - "hashbrown 0.15.4", - "memchr", -] - -[[package]] -name = "relative-path" -version = "1.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba39f3699c378cd8970968dcbff9c43159ea4cfbd88d43c00b22f2ef10a435d2" - -[[package]] -name = "rend" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a35e8a6bf28cd121053a66aa2e6a2e3eaffad4a60012179f0e864aa5ffeff215" -dependencies = [ - "bytecheck", -] - -[[package]] -name = "rkyv" -version = "0.8.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19f5c3e5da784cd8c69d32cdc84673f3204536ca56e1fa01be31a74b92c932ac" -dependencies = [ - "bytecheck", - "bytes", - "hashbrown 0.15.4", - "indexmap", - "munge", - "ptr_meta", - "rancor", - "rend", - "rkyv_derive", - "tinyvec", - "uuid", -] - -[[package]] -name = "rkyv_derive" -version = "0.8.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4270433626cffc9c4c1d3707dd681f2a2718d3d7b09ad754bec137acecda8d22" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] [[package]] name = "rustc-hash" @@ -1576,19 +825,6 @@ version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" -[[package]] -name = "rustix" -version = "1.0.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11181fbabf243db407ef8df94a6ce0b2f9a733bd8be4ad02b4eda9602296cac8" -dependencies = [ - "bitflags", - "errno", - "libc", - "linux-raw-sys", - "windows-sys 0.60.2", -] - [[package]] name = "rustversion" version = "1.0.21" @@ -1620,26 +856,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" [[package]] -name = "semver" -version = "1.0.26" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56e6fa9c48d24d85fb3de5ad847117517440f6beceb7798af16b4a87d616b8d0" -dependencies = [ - "serde", -] - -[[package]] -name = "seq-macro" -version = "0.3.6" +name = "seq-macro" +version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc" [[package]] name = "serde" -version = "1.0.219" +version = "1.0.228" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6" +checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" dependencies = [ + "serde_core", "serde_derive", ] @@ -1654,11 +882,20 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "serde_core" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +dependencies = [ + "serde_derive", +] + [[package]] name = "serde_derive" -version = "1.0.219" +version = "1.0.228" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00" +checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" dependencies = [ "proc-macro2", "quote", @@ -1688,49 +925,6 @@ dependencies = [ "serde", ] -[[package]] -name = "sha1" -version = "0.10.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" -dependencies = [ - "cfg-if", - "cpufeatures", - "digest", -] - -[[package]] -name = "sha2" -version = "0.10.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" -dependencies = [ - "cfg-if", - "cpufeatures", - "digest", -] - -[[package]] -name = "sharded-slab" -version = "0.1.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" -dependencies = [ - "lazy_static", -] - -[[package]] -name = "shlex" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" - -[[package]] -name = "simdutf8" -version = "0.1.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" - [[package]] name = "siphasher" version = "0.3.11" @@ -1760,46 +954,12 @@ dependencies = [ "version_check", ] -[[package]] -name = "st-map" -version = "0.2.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8257dd592de7614be71a2342d36ba2d527ddad3f9a0c8d09d6ceed4c371531e4" -dependencies = [ - "arrayvec", - "static-map-macro", -] - [[package]] name = "stable_deref_trait" version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" -[[package]] -name = "stacker" -version = "0.1.21" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cddb07e32ddb770749da91081d8d0ac3a16f1a569a18b20348cd371f5dead06b" -dependencies = [ - "cc", - "cfg-if", - "libc", - "psm", - "windows-sys 0.59.0", -] - -[[package]] -name = "static-map-macro" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "710e9696ef338691287aeb937ee6ffe60022f579d3c8d2fd9d58973a9a10a466" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "static_assertions" version = "1.1.0" @@ -1817,62 +977,6 @@ dependencies = [ "syn", ] -[[package]] -name = "strsim" -version = "0.11.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" - -[[package]] -name = "swc" -version = "33.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86f9d4f0774fd52adb122a5c11ae790bf34abd8e4a21be5a612a2ee7855d020c" -dependencies = [ - "anyhow", - "base64", - "bytes-str", - "dashmap", - "either", - "indexmap", - "jsonc-parser", - "once_cell", - "par-core", - "par-iter", - "parking_lot", - "regex", - "rustc-hash", - "serde", - "serde_json", - "swc_atoms 7.0.0", - "swc_common 14.0.2", - "swc_compiler_base", - "swc_config", - "swc_ecma_ast 14.0.0", - "swc_ecma_codegen", - "swc_ecma_ext_transforms", - "swc_ecma_lints", - "swc_ecma_loader", - "swc_ecma_minifier", - "swc_ecma_parser", - "swc_ecma_preset_env", - "swc_ecma_transforms", - "swc_ecma_transforms_base", - "swc_ecma_transforms_compat", - "swc_ecma_transforms_optimization", - "swc_ecma_utils", - "swc_ecma_visit 14.0.0", - "swc_error_reporters", - "swc_node_comments", - "swc_sourcemap", - "swc_timer", - "swc_transform_common", - "swc_typescript", - "swc_visit", - "tracing", - "url", -] - [[package]] name = "swc_allocator" version = "4.0.1" @@ -1887,67 +991,24 @@ dependencies = [ [[package]] name = "swc_atoms" -version = "5.0.0" +version = "9.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d7077ba879f95406459bc0c81f3141c529b34580bc64d7ab7bd15e7118a0391" +checksum = "d4ccbe2ecad10ad7432100f878a107b1d972a8aee83ca53184d00c23a078bb8a" dependencies = [ - "hstr 1.1.6", + "hstr", "once_cell", - "rustc-hash", "serde", ] -[[package]] -name = "swc_atoms" -version = "7.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3500dcf04c84606b38464561edc5e46f5132201cb3e23cf9613ed4033d6b1bb2" -dependencies = [ - "bytecheck", - "hstr 2.0.0", - "once_cell", - "rancor", - "rkyv", - "serde", -] - -[[package]] -name = "swc_common" -version = "8.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f8c8e4348383e4154f8d384cdad7e48f5d6d3daef78af376ac4e5ddbbf60c88" -dependencies = [ - "anyhow", - "ast_node", - "better_scoped_tls", - "cfg-if", - "either", - "from_variant", - "new_debug_unreachable", - "num-bigint", - "once_cell", - "rustc-hash", - "serde", - "siphasher 0.3.11", - "swc_allocator", - "swc_atoms 5.0.0", - "swc_eq_ignore_macros", - "swc_visit", - "tracing", - "unicode-width 0.1.14", - "url", -] - [[package]] name = "swc_common" -version = "14.0.2" +version = "17.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7e510ae120281a9daee0b9246b6740b509b99bd78f88b2a7210c87ec78572a7" +checksum = "259b675d633a26d24efe3802a9d88858c918e6e8f062d3222d3aa02d56a2cf4c" dependencies = [ "anyhow", "ast_node", "better_scoped_tls", - "bytecheck", "bytes-str", "either", "from_variant", @@ -1955,26 +1016,21 @@ dependencies = [ "num-bigint", "once_cell", "parking_lot", - "rancor", - "rkyv", "rustc-hash", "serde", "siphasher 0.3.11", - "swc_atoms 7.0.0", + "swc_atoms", "swc_eq_ignore_macros", "swc_sourcemap", "swc_visit", - "termcolor", "tracing", - "unicode-width 0.1.14", + "unicode-width 0.2.1", "url", ] [[package]] name = "swc_compiler_base" -version = "30.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61c48081f273403ee15d219c3a28cdd7beab88b510753b112c874bf568b01192" +version = "39.0.0" dependencies = [ "anyhow", "base64", @@ -1984,37 +1040,29 @@ dependencies = [ "rustc-hash", "serde", "serde_json", - "swc_atoms 7.0.0", - "swc_common 14.0.2", + "swc_atoms", + "swc_common", "swc_config", - "swc_ecma_ast 14.0.0", + "swc_ecma_ast", "swc_ecma_codegen", - "swc_ecma_minifier", "swc_ecma_parser", - "swc_ecma_visit 14.0.0", + "swc_ecma_visit", "swc_sourcemap", "swc_timer", ] [[package]] name = "swc_config" -version = "3.1.1" +version = "3.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d94f41e0f3c4c119a06af5e164674b63ae7eb6d7c1c60e46036c4a548f9fbe44" +checksum = "72e90b52ee734ded867104612218101722ad87ff4cf74fe30383bd244a533f97" dependencies = [ "anyhow", "bytes-str", - "dashmap", - "globset", "indexmap", - "once_cell", - "regex", - "regress", - "rustc-hash", "serde", "serde_json", "swc_config_macro", - "swc_sourcemap", ] [[package]] @@ -2029,32 +1077,11 @@ dependencies = [ "syn", ] -[[package]] -name = "swc_core" -version = "34.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4638e0e6fac7184531bd67e4244a4a27ceec81cd039171ceb5649456816f8346" -dependencies = [ - "swc_allocator", - "swc_atoms 7.0.0", - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "swc_ecma_quote_macros", - "swc_ecma_transforms_base", - "swc_ecma_transforms_testing", - "swc_ecma_visit 14.0.0", - "swc_plugin", - "swc_plugin_macro", - "swc_plugin_proxy", - "swc_transform_common", - "vergen", -] - [[package]] name = "swc_ecma_ast" -version = "8.1.2" +version = "18.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4062a54522a9c02d2b68cc09282774b87121cd48693b0e67ae8c18b31b709866" +checksum = "a573a0c72850dec8d4d8085f152d5778af35a2520c3093b242d2d1d50776da7c" dependencies = [ "bitflags", "is-macro", @@ -2062,42 +1089,18 @@ dependencies = [ "once_cell", "phf", "rustc-hash", - "scoped-tls", "string_enum", - "swc_atoms 5.0.0", - "swc_common 8.1.1", - "swc_visit", - "unicode-id-start", -] - -[[package]] -name = "swc_ecma_ast" -version = "14.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5d8d26e697ce58654f0816890af7a28efd8660c154b613acefa2d3727e8ec93" -dependencies = [ - "bitflags", - "bytecheck", - "is-macro", - "num-bigint", - "once_cell", - "phf", - "rancor", - "rkyv", - "rustc-hash", - "serde", - "string_enum", - "swc_atoms 7.0.0", - "swc_common 14.0.2", + "swc_atoms", + "swc_common", "swc_visit", "unicode-id-start", ] [[package]] name = "swc_ecma_codegen" -version = "16.0.0" +version = "20.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b3a46868f249b86a74f91774c8faf12340abb86ba7c3ff152bdc7a8f94011b6" +checksum = "a278bb4395127390f3a2ae2cacf6e276b446654fc7b31d0c7e7917035f8e86c3" dependencies = [ "ascii", "compact_str", @@ -2109,9 +1112,9 @@ dependencies = [ "ryu-js", "serde", "swc_allocator", - "swc_atoms 7.0.0", - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", + "swc_atoms", + "swc_common", + "swc_ecma_ast", "swc_ecma_codegen_macros", "swc_sourcemap", "tracing", @@ -2129,230 +1132,11 @@ dependencies = [ ] [[package]] -name = "swc_ecma_compat_bugfixes" -version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a3f347c4383d37a02fee3c872d206a8b560ea437b89e407a98200a78c8069e3" -dependencies = [ - "rustc-hash", - "swc_atoms 7.0.0", - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "swc_ecma_compat_es2015", - "swc_ecma_transforms_base", - "swc_ecma_utils", - "swc_ecma_visit 14.0.0", - "swc_trace_macro", - "tracing", -] - -[[package]] -name = "swc_ecma_compat_common" -version = "19.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f573f45c9756d0b40788bcf4456ffdd8432785f57a5b9c24bcc2c93078f3280d" -dependencies = [ - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "swc_ecma_utils", - "swc_ecma_visit 14.0.0", -] - -[[package]] -name = "swc_ecma_compat_es2015" -version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3eccef9a362812c591aee035adf028a355fb1818522fad22148334138932ec52" -dependencies = [ - "arrayvec", - "indexmap", - "is-macro", - "rustc-hash", - "serde", - "serde_derive", - "smallvec", - "swc_atoms 7.0.0", - "swc_common 14.0.2", - "swc_config", - "swc_ecma_ast 14.0.0", - "swc_ecma_compat_common", - "swc_ecma_transforms_base", - "swc_ecma_transforms_classes", - "swc_ecma_transforms_macros", - "swc_ecma_utils", - "swc_ecma_visit 14.0.0", - "swc_trace_macro", - "tracing", -] - -[[package]] -name = "swc_ecma_compat_es2016" -version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "148e194737c87a64252280698364be0d2ab12e097be450d6aeda3868fe3b3f9c" -dependencies = [ - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "swc_ecma_transforms_base", - "swc_ecma_transforms_macros", - "swc_ecma_utils", - "swc_ecma_visit 14.0.0", - "swc_trace_macro", - "tracing", -] - -[[package]] -name = "swc_ecma_compat_es2017" -version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37399e4ead34a3d6991aa8cc17ea4bd5133a0c54be70ecc0eeb96905f75e3939" -dependencies = [ - "serde", - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "swc_ecma_transforms_base", - "swc_ecma_utils", - "swc_ecma_visit 14.0.0", - "swc_trace_macro", - "tracing", -] - -[[package]] -name = "swc_ecma_compat_es2018" -version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "737ace9c05605dd5bd54852bb6199aa37f4378346ebef2ab08c29501a781a8d2" -dependencies = [ - "serde", - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "swc_ecma_compat_common", - "swc_ecma_transforms_base", - "swc_ecma_transforms_macros", - "swc_ecma_utils", - "swc_ecma_visit 14.0.0", - "swc_trace_macro", - "tracing", -] - -[[package]] -name = "swc_ecma_compat_es2019" -version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60f0e0422bdd6704e10437af83d9f2e79aad86b8a310fc1661200baf496b209d" -dependencies = [ - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "swc_ecma_transforms_base", - "swc_ecma_utils", - "swc_ecma_visit 14.0.0", - "swc_trace_macro", - "tracing", -] - -[[package]] -name = "swc_ecma_compat_es2020" -version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39393fbf2af0200e29160131cba4036758ff1d175f910760dff1bd8e0b2ec9fa" -dependencies = [ - "serde", - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "swc_ecma_compat_es2022", - "swc_ecma_compiler", - "swc_ecma_transforms_base", - "swc_ecma_utils", - "swc_ecma_visit 14.0.0", - "tracing", -] - -[[package]] -name = "swc_ecma_compat_es2021" -version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a2664c2f2ac9ee3dbfc6d6e88f8eb08b0612e30313ee517906fbf486e7e3860" -dependencies = [ - "swc_ecma_ast 14.0.0", - "swc_ecma_compiler", - "swc_ecma_transforms_base", - "swc_ecma_utils", - "tracing", -] - -[[package]] -name = "swc_ecma_compat_es2022" -version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4dc22f7f1667e0e598a9967876de8e76e1adf2a37435d36bad17ca5f677d018" -dependencies = [ - "rustc-hash", - "swc_atoms 7.0.0", - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "swc_ecma_compat_common", - "swc_ecma_compiler", - "swc_ecma_transforms_base", - "swc_ecma_transforms_classes", - "swc_ecma_transforms_macros", - "swc_ecma_utils", - "swc_ecma_visit 14.0.0", - "swc_trace_macro", - "tracing", -] - -[[package]] -name = "swc_ecma_compat_es3" -version = "20.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5ea46821c0b5c8f8f55935b21957fbb4668a12f5101a28ed8038ef1ccf05b8e" -dependencies = [ - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "swc_ecma_utils", - "swc_ecma_visit 14.0.0", - "swc_trace_macro", - "tracing", -] - -[[package]] -name = "swc_ecma_compiler" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f3c6eb2f61fe0021761d9fc9dfe971643d5041799ec8aba4cd8e37b3f82b810" -dependencies = [ - "bitflags", - "rustc-hash", - "swc_atoms 7.0.0", - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "swc_ecma_transforms_base", - "swc_ecma_utils", - "swc_ecma_visit 14.0.0", - "swc_trace_macro", - "tracing", -] - -[[package]] -name = "swc_ecma_ext_transforms" -version = "19.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2f85f84aa5b1116bac920f548be87b7c45d936002ca2654c455a148751826be" -dependencies = [ - "phf", - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "swc_ecma_utils", - "swc_ecma_visit 14.0.0", -] - -[[package]] -name = "swc_ecma_lexer" -version = "22.0.2" +name = "swc_ecma_parser" +version = "27.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69ec39d3c46e3a76129ad5b7032d509240fb150cf1a2e8a57b368bfd5ec3f9cd" +checksum = "012463b97e33753387e575b1a1ec24afbbccfc2e1e795211583260916987e6fc" dependencies = [ - "arrayvec", "bitflags", "either", "num-bigint", @@ -2360,462 +1144,53 @@ dependencies = [ "rustc-hash", "seq-macro", "serde", - "smallvec", "smartstring", - "stacker", - "swc_atoms 7.0.0", - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "tracing", -] - -[[package]] -name = "swc_ecma_lints" -version = "20.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ada8892093ff36ba93258b0e53fc2b970c1bb2dec6c74fa3c274a186e8861f74" -dependencies = [ - "auto_impl", - "dashmap", - "par-core", - "parking_lot", - "regex", - "rustc-hash", - "serde", - "swc_atoms 7.0.0", - "swc_common 14.0.2", - "swc_config", - "swc_ecma_ast 14.0.0", - "swc_ecma_utils", - "swc_ecma_visit 14.0.0", -] - -[[package]] -name = "swc_ecma_loader" -version = "14.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c675d14700c92f12585049b22b02356f1e142f4b0c32a4d0eb4b7a968a4c0c1e" -dependencies = [ - "anyhow", - "dashmap", - "lru", - "normpath", - "once_cell", - "parking_lot", - "path-clean 0.1.0", - "pathdiff", - "rustc-hash", - "serde", - "serde_json", - "swc_atoms 7.0.0", - "swc_common 14.0.2", + "swc_atoms", + "swc_common", + "swc_ecma_ast", "tracing", ] [[package]] -name = "swc_ecma_minifier" -version = "28.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edb2f52e59364dc6400f5bbd3fcd5c77b0ac043f5daad6933a291dfada16a76b" -dependencies = [ - "arrayvec", - "bitflags", - "indexmap", - "num-bigint", - "num_cpus", - "once_cell", - "par-core", - "par-iter", - "parking_lot", - "phf", - "radix_fmt", - "rustc-hash", - "ryu-js", - "serde", - "serde_json", - "swc_atoms 7.0.0", - "swc_common 14.0.2", - "swc_config", - "swc_ecma_ast 14.0.0", - "swc_ecma_codegen", - "swc_ecma_parser", - "swc_ecma_transforms_base", - "swc_ecma_transforms_optimization", - "swc_ecma_usage_analyzer", - "swc_ecma_utils", - "swc_ecma_visit 14.0.0", - "swc_timer", - "tracing", -] - -[[package]] -name = "swc_ecma_parser" -version = "22.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d61d0b6ecfdf633595d41a730da0c44195cf292e8417a3e77226be9d6e99653" -dependencies = [ - "either", - "num-bigint", - "serde", - "swc_atoms 7.0.0", - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "swc_ecma_lexer", - "tracing", -] - -[[package]] -name = "swc_ecma_preset_env" -version = "28.0.0" +name = "swc_ecma_quote" +version = "27.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "782e5dd521dea0bc345b279438727afba2fd0f197aaa9990dcb1c54f359e05d4" +checksum = "c70aaf989fd87e49b610fa7871cea5716681636095a361c8ed5114cbae0367d0" dependencies = [ - "anyhow", - "foldhash", - "indexmap", - "once_cell", - "precomputed-map", - "preset_env_base", - "rustc-hash", - "serde", - "serde_json", - "string_enum", - "swc_atoms 7.0.0", - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "swc_ecma_compiler", - "swc_ecma_transforms", - "swc_ecma_utils", - "swc_ecma_visit 14.0.0", + "swc_common", + "swc_ecma_ast", + "swc_ecma_quote_macros", ] [[package]] name = "swc_ecma_quote_macros" -version = "22.0.0" +version = "27.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6be24fed75ad626f2a9e05ceaf54a46607ab544be66eb5dfc917f8b69b6f00f" +checksum = "0c552556fde16429909df76a315c107283d25b398dd939cfaa1b1594b970f6c4" dependencies = [ "anyhow", "proc-macro2", "quote", "rustc-hash", - "swc_atoms 7.0.0", - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", + "swc_atoms", + "swc_common", + "swc_ecma_ast", "swc_ecma_parser", "swc_macros_common", "syn", ] -[[package]] -name = "swc_ecma_testing" -version = "15.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd297865d417cf7e99bf36f4f29928e89ccf3446b56440e110b2f488f6d8d2d0" -dependencies = [ - "anyhow", - "hex", - "sha2", - "testing", - "tracing", -] - -[[package]] -name = "swc_ecma_transforms" -version = "27.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3806045dcfcd0a58b58f6c82dea68d26aa7dac0bc8233ca36c4474ad5732ab45" -dependencies = [ - "par-core", - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "swc_ecma_transforms_base", - "swc_ecma_transforms_compat", - "swc_ecma_transforms_module", - "swc_ecma_transforms_optimization", - "swc_ecma_transforms_proposal", - "swc_ecma_transforms_react", - "swc_ecma_transforms_typescript", - "swc_ecma_utils", -] - -[[package]] -name = "swc_ecma_transforms_base" -version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b53ce98ea827bd2f0f85f497698db4ef69cdbd3015e757bfa38c57a5f7c27fcc" -dependencies = [ - "better_scoped_tls", - "indexmap", - "once_cell", - "par-core", - "phf", - "rustc-hash", - "serde", - "swc_atoms 7.0.0", - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "swc_ecma_parser", - "swc_ecma_utils", - "swc_ecma_visit 14.0.0", - "tracing", -] - -[[package]] -name = "swc_ecma_transforms_classes" -version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb9db85f13957bd240ed574131f0d36f735cb2487747200a6e72842f76e3db6d" -dependencies = [ - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "swc_ecma_transforms_base", - "swc_ecma_utils", - "swc_ecma_visit 14.0.0", -] - -[[package]] -name = "swc_ecma_transforms_compat" -version = "25.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17f4e2cb0050b39f8fc7dbacaaebcf6a5298ae65882272371467bb6038d9c025" -dependencies = [ - "indexmap", - "par-core", - "serde", - "swc_atoms 7.0.0", - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "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_utils", - "swc_ecma_visit 14.0.0", - "tracing", -] - -[[package]] -name = "swc_ecma_transforms_macros" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc777288799bf6786e5200325a56e4fbabba590264a4a48a0c70b16ad0cf5cd8" -dependencies = [ - "proc-macro2", - "quote", - "swc_macros_common", - "syn", -] - -[[package]] -name = "swc_ecma_transforms_module" -version = "25.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c106671cd3f0d65e2e6b22dd17526b63e395b1c92a3811a543c90794d7d4292" -dependencies = [ - "Inflector", - "anyhow", - "bitflags", - "indexmap", - "is-macro", - "path-clean 1.0.1", - "pathdiff", - "regex", - "rustc-hash", - "serde", - "swc_atoms 7.0.0", - "swc_common 14.0.2", - "swc_config", - "swc_ecma_ast 14.0.0", - "swc_ecma_loader", - "swc_ecma_parser", - "swc_ecma_transforms_base", - "swc_ecma_utils", - "swc_ecma_visit 14.0.0", - "tracing", -] - -[[package]] -name = "swc_ecma_transforms_optimization" -version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a7f5a522c12d3aec0ba8a39ef90d1091636a5fbffcbba69f28c6fb584485dbc" -dependencies = [ - "bytes-str", - "dashmap", - "indexmap", - "once_cell", - "par-core", - "petgraph", - "rustc-hash", - "serde_json", - "swc_atoms 7.0.0", - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "swc_ecma_parser", - "swc_ecma_transforms_base", - "swc_ecma_utils", - "swc_ecma_visit 14.0.0", - "tracing", -] - -[[package]] -name = "swc_ecma_transforms_proposal" -version = "23.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c19070c23765b955ce52319fa7c25dec93f776037587081edaade58ba8d52bd" -dependencies = [ - "either", - "rustc-hash", - "serde", - "swc_atoms 7.0.0", - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "swc_ecma_transforms_base", - "swc_ecma_transforms_classes", - "swc_ecma_utils", - "swc_ecma_visit 14.0.0", -] - -[[package]] -name = "swc_ecma_transforms_react" -version = "25.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "174f69d639d5860a413eefa1ae680c815866b95da2bcb421ab4b7fefca2bf081" -dependencies = [ - "base64", - "bytes-str", - "indexmap", - "once_cell", - "rustc-hash", - "serde", - "sha1", - "string_enum", - "swc_atoms 7.0.0", - "swc_common 14.0.2", - "swc_config", - "swc_ecma_ast 14.0.0", - "swc_ecma_parser", - "swc_ecma_transforms_base", - "swc_ecma_utils", - "swc_ecma_visit 14.0.0", -] - -[[package]] -name = "swc_ecma_transforms_testing" -version = "26.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a42c20d98700d87473c1b95ea3324935e8351b774cbadc5e0561d4d733b323c1" -dependencies = [ - "ansi_term", - "anyhow", - "base64", - "hex", - "serde", - "serde_json", - "sha2", - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "swc_ecma_codegen", - "swc_ecma_parser", - "swc_ecma_testing", - "swc_ecma_transforms_base", - "swc_ecma_utils", - "swc_ecma_visit 14.0.0", - "swc_sourcemap", - "tempfile", - "testing", -] - -[[package]] -name = "swc_ecma_transforms_typescript" -version = "25.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7347443361b7388eaf6781855739cdf6c6b724216e33b8880612fa4933c497ec" -dependencies = [ - "bytes-str", - "rustc-hash", - "serde", - "swc_atoms 7.0.0", - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "swc_ecma_transforms_base", - "swc_ecma_transforms_react", - "swc_ecma_utils", - "swc_ecma_visit 14.0.0", -] - -[[package]] -name = "swc_ecma_usage_analyzer" -version = "20.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "808e3f82526825e5fdc12902493069789e986e3323b6e9e59870b89d06bee367" -dependencies = [ - "bitflags", - "indexmap", - "rustc-hash", - "swc_atoms 7.0.0", - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "swc_ecma_utils", - "swc_ecma_visit 14.0.0", - "swc_timer", - "tracing", -] - -[[package]] -name = "swc_ecma_utils" -version = "19.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bcade4287d4cb7636e47462b423eb6914b0b24e0baf8b4a457e5447fd9a8521" -dependencies = [ - "indexmap", - "num_cpus", - "once_cell", - "par-core", - "rustc-hash", - "ryu-js", - "swc_atoms 7.0.0", - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "swc_ecma_visit 14.0.0", - "tracing", -] - [[package]] name = "swc_ecma_visit" -version = "8.0.0" +version = "18.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f7a65fa06d0c0f709f1df4e820ccdc4eca7b3db7f9d131545e20c2ac2f1cd23" +checksum = "a9611a72a4008d62608547a394e5d72a5245413104db096d95a52368a8cc1d63" dependencies = [ "new_debug_unreachable", "num-bigint", - "swc_atoms 5.0.0", - "swc_common 8.1.1", - "swc_ecma_ast 8.1.2", - "swc_visit", - "tracing", -] - -[[package]] -name = "swc_ecma_visit" -version = "14.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d187b3440f20dac5d5a61aaedff585aefac9c75c1a6650abb7f25936a4f0e67" -dependencies = [ - "new_debug_unreachable", - "num-bigint", - "swc_atoms 7.0.0", - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", + "swc_atoms", + "swc_common", + "swc_ecma_ast", "swc_visit", "tracing", ] @@ -2832,55 +1207,23 @@ dependencies = [ ] [[package]] -name = "swc_error_reporters" -version = "16.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7a16e3c08fd820735631820a7c220d5ce39bdc08b83eddbc73a645ef744511e" -dependencies = [ - "anyhow", - "miette", - "once_cell", - "serde", - "swc_common 14.0.2", -] - -[[package]] -name = "swc_macros_common" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aae1efbaa74943dc5ad2a2fb16cbd78b77d7e4d63188f3c5b4df2b4dcd2faaae" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "swc_node_comments" -version = "14.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bf07db306bc7e19b8fc46702e8298419d12f587bd4724858bc9889fef8f3e72" -dependencies = [ - "dashmap", - "rustc-hash", - "swc_atoms 7.0.0", - "swc_common 14.0.2", -] - -[[package]] -name = "swc_plugin" -version = "1.0.1" +name = "swc_error_reporters" +version = "19.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92b27449420554de6ad8d49004ad3d36e6ac64ecb51d1b0fe1002afcd7a45d85" +checksum = "30c41e7b4f78298094092765ddf5b667491026a53a1d149c25b983188d471cbc" dependencies = [ + "anyhow", + "miette", "once_cell", + "serde", + "swc_common", ] [[package]] -name = "swc_plugin_macro" -version = "1.1.0" +name = "swc_macros_common" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ace467dfafbbdf3aecff786b8605b35db57d945e92fd88800569aa2cba0cdf61" +checksum = "aae1efbaa74943dc5ad2a2fb16cbd78b77d7e4d63188f3c5b4df2b4dcd2faaae" dependencies = [ "proc-macro2", "quote", @@ -2888,27 +1231,22 @@ dependencies = [ ] [[package]] -name = "swc_plugin_proxy" -version = "14.0.0" +name = "swc_node_comments" +version = "17.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb61022f33eb711aa1644788a76b854a795e0de89c38af3c7cd6071da34bbb58" +checksum = "614f452f71edf142525dea290ae1faa8a9bcc972888327848297a4785c6628a1" dependencies = [ - "better_scoped_tls", - "bytecheck", - "rancor", - "rkyv", + "dashmap", "rustc-hash", - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "swc_trace_macro", - "tracing", + "swc_atoms", + "swc_common", ] [[package]] name = "swc_sourcemap" -version = "9.3.3" +version = "9.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3cd6e0cad02163875258edaf9ae6004e2526be137bdde6a46c540515615949b1" +checksum = "de08ef00f816acdd1a58ee8a81c0e1a59eefef2093aefe5611f256fa6b64c4d7" dependencies = [ "base64-simd", "bitvec", @@ -2932,44 +1270,6 @@ dependencies = [ "tracing", ] -[[package]] -name = "swc_trace_macro" -version = "2.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfd2b4b0adb82e36f2ac688d00a6a67132c7f4170c772617516793a701be89e8" -dependencies = [ - "quote", - "syn", -] - -[[package]] -name = "swc_transform_common" -version = "8.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca33f282df60eefee05511c9aaf557696d2f9f0e22f4a5abca318da10c22f1cc" -dependencies = [ - "better_scoped_tls", - "rustc-hash", - "serde", - "swc_common 14.0.2", -] - -[[package]] -name = "swc_typescript" -version = "18.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "033e1a80701cb3bb0561b504477c39975a76091197b96b5e59d65d0a4fb5f92c" -dependencies = [ - "bitflags", - "petgraph", - "rustc-hash", - "swc_atoms 7.0.0", - "swc_common 14.0.2", - "swc_ecma_ast 14.0.0", - "swc_ecma_utils", - "swc_ecma_visit 14.0.0", -] - [[package]] name = "swc_visit" version = "2.0.1" @@ -3008,71 +1308,12 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" -[[package]] -name = "tempfile" -version = "3.20.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8a64e3985349f2441a1a9ef0b853f869006c3855f2cda6862a94d26ebb9d6a1" -dependencies = [ - "fastrand", - "getrandom", - "once_cell", - "rustix", - "windows-sys 0.59.0", -] - -[[package]] -name = "termcolor" -version = "1.4.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" -dependencies = [ - "winapi-util", -] - [[package]] name = "termtree" version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f50febec83f5ee1df3015341d8bd429f2d1cc62bcba7ea2076759d315084683" -[[package]] -name = "testing" -version = "15.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb14720ff995a98916e7fafc6771242727ed1ac5f2725059f03f203586d8ca1b" -dependencies = [ - "cargo_metadata 0.18.1", - "difference", - "once_cell", - "pretty_assertions", - "regex", - "rustc-hash", - "serde", - "serde_json", - "swc_common 14.0.2", - "swc_error_reporters", - "testing_macros", - "tracing", - "tracing-subscriber", -] - -[[package]] -name = "testing_macros" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7442bd3ca09f38d4788dc5ebafbc1967c3717726b4b074db011d470b353548b" -dependencies = [ - "anyhow", - "glob", - "once_cell", - "proc-macro2", - "quote", - "regex", - "relative-path", - "syn", -] - [[package]] name = "textwrap" version = "0.16.2" @@ -3089,16 +1330,7 @@ version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" dependencies = [ - "thiserror-impl 1.0.69", -] - -[[package]] -name = "thiserror" -version = "2.0.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "567b8a2dae586314f7be2a752ec7474332959c6460e02bde30d702a66d488708" -dependencies = [ - "thiserror-impl 2.0.12", + "thiserror-impl", ] [[package]] @@ -3112,26 +1344,6 @@ dependencies = [ "syn", ] -[[package]] -name = "thiserror-impl" -version = "2.0.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f7cf42b4507d8ea322120659672cf1b9dbb93f8f2d4ecfd6e51350ff5b17a1d" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "thread_local" -version = "1.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185" -dependencies = [ - "cfg-if", -] - [[package]] name = "tinystr" version = "0.8.1" @@ -3142,21 +1354,6 @@ dependencies = [ "zerovec", ] -[[package]] -name = "tinyvec" -version = "1.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09b3661f17e86524eccd4371ab0429194e0d7c008abb45f7a7495b1719463c71" -dependencies = [ - "tinyvec_macros", -] - -[[package]] -name = "tinyvec_macros" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" - [[package]] name = "tracing" version = "0.1.41" @@ -3186,36 +1383,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b9d12581f227e93f094d3af2ae690a574abb8a2b9b7a96e7cfe9647b2b617678" dependencies = [ "once_cell", - "valuable", -] - -[[package]] -name = "tracing-log" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" -dependencies = [ - "log", - "once_cell", - "tracing-core", -] - -[[package]] -name = "tracing-subscriber" -version = "0.3.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8189decb5ac0fa7bc8b96b7cb9b2701d60d48805aca84a238004d665fcc4008" -dependencies = [ - "matchers", - "nu-ansi-term", - "once_cell", - "regex", - "sharded-slab", - "smallvec", - "thread_local", - "tracing", - "tracing-core", - "tracing-log", ] [[package]] @@ -3254,12 +1421,6 @@ dependencies = [ "syn", ] -[[package]] -name = "typenum" -version = "1.18.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1dccffe3ce07af9386bfd29e80c0ab1a8205a2fc34e4bcd40364df902cfa8f3f" - [[package]] name = "unicode-id-start" version = "1.3.1" @@ -3317,37 +1478,6 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "valuable" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" - -[[package]] -name = "vergen" -version = "9.0.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b2bf58be11fc9414104c6d3a2e464163db5ef74b12296bda593cac37b6e4777" -dependencies = [ - "anyhow", - "cargo_metadata 0.19.2", - "derive_builder", - "regex", - "rustversion", - "vergen-lib", -] - -[[package]] -name = "vergen-lib" -version = "0.1.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b07e6010c0f3e59fcb164e0163834597da68d1f864e2b8ca49f74de01e9c166" -dependencies = [ - "anyhow", - "derive_builder", - "rustversion", -] - [[package]] name = "version_check" version = "0.9.5" @@ -3446,145 +1576,20 @@ dependencies = [ "wasm-bindgen", ] -[[package]] -name = "winapi" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" -dependencies = [ - "winapi-i686-pc-windows-gnu", - "winapi-x86_64-pc-windows-gnu", -] - -[[package]] -name = "winapi-i686-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" - -[[package]] -name = "winapi-util" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb" -dependencies = [ - "windows-sys 0.59.0", -] - -[[package]] -name = "winapi-x86_64-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" - -[[package]] -name = "windows-core" -version = "0.61.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3" -dependencies = [ - "windows-implement", - "windows-interface", - "windows-link", - "windows-result", - "windows-strings", -] - -[[package]] -name = "windows-implement" -version = "0.60.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a47fddd13af08290e67f4acabf4b459f647552718f683a7b415d290ac744a836" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "windows-interface" -version = "0.59.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd9211b69f8dcdfa817bfd14bf1c97c9188afa36f4750130fcdf3f400eca9fa8" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "windows-link" -version = "0.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a" - -[[package]] -name = "windows-result" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6" -dependencies = [ - "windows-link", -] - -[[package]] -name = "windows-strings" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57" -dependencies = [ - "windows-link", -] - -[[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-sys" -version = "0.60.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" -dependencies = [ - "windows-targets 0.53.3", -] - [[package]] name = "windows-targets" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" dependencies = [ - "windows_aarch64_gnullvm 0.52.6", - "windows_aarch64_msvc 0.52.6", - "windows_i686_gnu 0.52.6", - "windows_i686_gnullvm 0.52.6", - "windows_i686_msvc 0.52.6", - "windows_x86_64_gnu 0.52.6", - "windows_x86_64_gnullvm 0.52.6", - "windows_x86_64_msvc 0.52.6", -] - -[[package]] -name = "windows-targets" -version = "0.53.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5fe6031c4041849d7c496a8ded650796e7b6ecc19df1a431c1a363342e5dc91" -dependencies = [ - "windows-link", - "windows_aarch64_gnullvm 0.53.0", - "windows_aarch64_msvc 0.53.0", - "windows_i686_gnu 0.53.0", - "windows_i686_gnullvm 0.53.0", - "windows_i686_msvc 0.53.0", - "windows_x86_64_gnu 0.53.0", - "windows_x86_64_gnullvm 0.53.0", - "windows_x86_64_msvc 0.53.0", + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_gnullvm", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", ] [[package]] @@ -3593,96 +1598,48 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86b8d5f90ddd19cb4a147a5fa63ca848db3df085e25fee3cc10b39b6eebae764" - [[package]] name = "windows_aarch64_msvc" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" -[[package]] -name = "windows_aarch64_msvc" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7651a1f62a11b8cbd5e0d42526e55f2c99886c77e007179efff86c2b137e66c" - [[package]] name = "windows_i686_gnu" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" -[[package]] -name = "windows_i686_gnu" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1dc67659d35f387f5f6c479dc4e28f1d4bb90ddd1a5d3da2e5d97b42d6272c3" - [[package]] name = "windows_i686_gnullvm" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" -[[package]] -name = "windows_i686_gnullvm" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ce6ccbdedbf6d6354471319e781c0dfef054c81fbc7cf83f338a4296c0cae11" - [[package]] name = "windows_i686_msvc" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" -[[package]] -name = "windows_i686_msvc" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "581fee95406bb13382d2f65cd4a908ca7b1e4c2f1917f143ba16efe98a589b5d" - [[package]] name = "windows_x86_64_gnu" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" -[[package]] -name = "windows_x86_64_gnu" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e55b5ac9ea33f2fc1716d1742db15574fd6fc8dadc51caab1c16a3d3b4190ba" - [[package]] name = "windows_x86_64_gnullvm" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a6e035dd0599267ce1ee132e51c27dd29437f63325753051e71dd9e42406c57" - [[package]] name = "windows_x86_64_msvc" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" -[[package]] -name = "windows_x86_64_msvc" -version = "0.53.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486" - [[package]] name = "winnow" version = "0.6.26" @@ -3716,12 +1673,6 @@ dependencies = [ "tap", ] -[[package]] -name = "yansi" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cfe53a6657fd280eaa890a3bc59152892ffa3e30101319d168b781ed6529b049" - [[package]] name = "yoke" version = "0.8.0" diff --git a/Cargo.toml b/Cargo.toml index 031f7cb..db98e68 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,7 @@ version = "0.1.0" edition = "2021" rust-version = "1.84.1" license = "Apache-2.0" +resolver = "2" [lib] crate-type = ["cdylib", "rlib"] @@ -13,11 +14,19 @@ serde = ["serde/derive"] wasm = ['serde', "wasm-bindgen", "tsify", "getrandom"] [dependencies] -nodejs-semver = { version = "4", features = ["serde"] } -swc = "33" -swc_core = { version = "34", features = ["ecma_plugin_transform","ecma_quote"] } -swc_ecma_parser = "22" -swc_ecma_visit = { version = "8", features = ["path"] } +nodejs-semver = { version = "4", features = ["serde"], default-features = false } +swc_ecma_parser = { version = "27", default-features = false } +swc_compiler_base = { version = "39", default-features = false } +swc_config = { version = "3", default-features = false } +swc_error_reporters = { version = "19", default-features = false } +swc_node_comments = { version = "17", default-features = false } +swc_ecma_codegen = { version = "20.0.0", default-features = false } +swc_atoms = { version = "9.0.0", default-features = false } +swc_sourcemap = { version = "9.3.4", default-features = false } +swc_ecma_quote = { version = "27", default-features = false } +swc_ecma_ast = { version = "18.0.0", default-features = false } +swc_ecma_visit = { version = "18.0.1", default-features = false } +swc_common = { version = "17.0.1", default-features = false } # serde feature serde = { version = "1", features = ["derive"], optional = true } @@ -27,10 +36,26 @@ wasm-bindgen = { version = "0.2", optional = true } tsify = { version='0.5', features = ["js"], optional = true} # we need this to enable the js feature getrandom = { version = "*", features = ["wasm_js"], optional = true } +anyhow = "1.0.100" + + [dev-dependencies] assert_cmd = "2" [profile.release] lto = true -opt-level = "s" \ No newline at end of file +opt-level = "s" +panic = "abort" +codegen-units = 1 + +[patch.crates-io] +swc_compiler_base = { path = "./overrides/swc_compiler_base" } +regex = { path = "./overrides/regex" } + +[package.metadata.wasm-pack.profile.release.wasm-bindgen] +debug-js-glue = false +demangle-name-section = false +dwarf-debug-info = false +omit-default-module-path = true +wasm-opt = ["-Oz"] diff --git a/overrides/regex/Cargo.lock b/overrides/regex/Cargo.lock new file mode 100644 index 0000000..72ac6b7 --- /dev/null +++ b/overrides/regex/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "regex" +version = "1.11.1" diff --git a/overrides/regex/Cargo.toml b/overrides/regex/Cargo.toml new file mode 100644 index 0000000..4d17c59 --- /dev/null +++ b/overrides/regex/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "regex" +version = "1.11.1" +edition = "2021" +rust-version = "1.84.1" +license = "Apache-2.0" +resolver = "2" diff --git a/overrides/regex/src/lib.rs b/overrides/regex/src/lib.rs new file mode 100644 index 0000000..44d9586 --- /dev/null +++ b/overrides/regex/src/lib.rs @@ -0,0 +1,29 @@ +pub struct Match {} + +impl Match { + pub fn end(&self) -> u8 { + 0 + } +} + +pub struct MatchIter {} + +impl Iterator for MatchIter { + type Item = Match; + + fn next(&mut self) -> Option { + None + } +} + +pub struct Regex {} + +impl Regex { + pub fn new(_string: &str) -> Result{ + Ok(Regex{}) + } + + pub fn find_iter(&self, _string: &str) -> MatchIter { + MatchIter {} + } +} diff --git a/overrides/swc_compiler_base/Cargo.toml b/overrides/swc_compiler_base/Cargo.toml new file mode 100644 index 0000000..c83972e --- /dev/null +++ b/overrides/swc_compiler_base/Cargo.toml @@ -0,0 +1,35 @@ +[package] +authors = ["강동윤 "] +description = "Base crate for the 'swc' crate. This is not a public API." +documentation = "https://rustdoc.swc.rs/swc_compiler_base/" +edition = "2021" +include = ["Cargo.toml", "src/**/*.rs"] +license = "Apache-2.0" +name = "swc_compiler_base" +repository = "https://github.com/swc-project/swc.git" +version = "39.0.0" + +[features] +node = [] + +[dependencies] +anyhow = "1.0.98" +base64 = "0.22.1" +bytes-str = "0.2.5" +once_cell = "1.19.0" +pathdiff = "0.2.1" +rustc-hash = "2" +serde = "1.0.225" +serde_json = "1.0.140" +swc_sourcemap = { version = "9.3.4", default-features = false } + +swc_atoms = { version = "9.0.0", default-features = false } +swc_common = { version = "17.0.1", features = [ + "sourcemap", +] } +swc_config = { version = "3.1.2", default-features = false } +swc_ecma_ast = { version = "18.0.0", default-features = false } +swc_ecma_codegen = { version = "20.0.0", default-features = false } +swc_ecma_parser = { version = "27.0.3", default-features = false, features = ["typescript"] } +swc_ecma_visit = { version = "18.0.1", default-features = false } +swc_timer = { version = "1.0.0", default-features = false } diff --git a/overrides/swc_compiler_base/src/lib.rs b/overrides/swc_compiler_base/src/lib.rs new file mode 100644 index 0000000..f5810a3 --- /dev/null +++ b/overrides/swc_compiler_base/src/lib.rs @@ -0,0 +1,395 @@ +use std::{ + env, + path::{Path, PathBuf}, +}; + +use anyhow::{Context, Error}; +use base64::prelude::{Engine, BASE64_STANDARD}; +use bytes_str::BytesStr; +use once_cell::sync::Lazy; +use rustc_hash::FxHashMap; +#[allow(unused)] +use serde::{Deserialize, Serialize}; +use swc_atoms::Atom; +use swc_common::{ + comments::{Comments}, + errors::Handler, + source_map::SourceMapGenConfig, + sync::Lrc, + BytePos, FileName, SourceFile, SourceMap, +}; +use swc_config::{is_module::IsModule}; +use swc_ecma_ast::{EsVersion, Ident, IdentName, Program}; +use swc_ecma_codegen::{text_writer::WriteJs, Emitter, Node}; +use swc_ecma_parser::{ + parse_file_as_commonjs, parse_file_as_module, parse_file_as_program, parse_file_as_script, + Syntax, +}; +use swc_ecma_visit::{noop_visit_type, Visit, VisitWith}; +use swc_timer::timer; + +#[derive(Debug, Serialize)] +pub struct TransformOutput { + pub code: String, + + #[serde(skip_serializing_if = "Option::is_none")] + pub map: Option, + + #[serde(skip_serializing_if = "Option::is_none")] + pub output: Option, + + pub diagnostics: std::vec::Vec, +} + +/// This method parses a javascript / typescript file +/// +/// This should be called in a scope of [swc_common::GLOBALS]. +pub fn parse_js( + _cm: Lrc, + fm: Lrc, + handler: &Handler, + target: EsVersion, + syntax: Syntax, + is_module: IsModule, + comments: Option<&dyn Comments>, +) -> Result { + let mut res = (|| { + let mut error = false; + + let mut errors = std::vec::Vec::new(); + let program_result = match is_module { + IsModule::Bool(true) => { + parse_file_as_module(&fm, syntax, target, comments, &mut errors) + .map(Program::Module) + } + IsModule::Bool(false) => { + parse_file_as_script(&fm, syntax, target, comments, &mut errors) + .map(Program::Script) + } + IsModule::CommonJS => { + parse_file_as_commonjs(&fm, syntax, target, comments, &mut errors) + .map(Program::Script) + } + IsModule::Unknown => parse_file_as_program(&fm, syntax, target, comments, &mut errors), + }; + + for e in errors { + e.into_diagnostic(handler).emit(); + error = true; + } + + let program = program_result.map_err(|e| { + e.into_diagnostic(handler).emit(); + Error::msg("Syntax Error") + })?; + + if error { + return Err(anyhow::anyhow!("Syntax Error")); + } + + Ok(program) + })(); + + if env::var("SWC_DEBUG").unwrap_or_default() == "1" { + res = res.with_context(|| format!("Parser config: {syntax:?}")); + } + + res +} + +pub struct PrintArgs<'a> { + pub source_root: Option<&'a str>, + pub source_file_name: Option<&'a str>, + pub output_path: Option, + pub inline_sources_content: bool, + pub source_map: SourceMapsConfig, + pub source_map_names: &'a FxHashMap, + pub orig: Option, + pub comments: Option<&'a dyn Comments>, + pub emit_source_map_columns: bool, + pub preamble: &'a str, + pub codegen_config: swc_ecma_codegen::Config, + pub output: Option>, + pub source_map_url: Option<&'a str>, +} + +impl Default for PrintArgs<'_> { + fn default() -> Self { + static DUMMY_NAMES: Lazy> = Lazy::new(Default::default); + + PrintArgs { + source_root: None, + source_file_name: None, + output_path: None, + inline_sources_content: false, + source_map: Default::default(), + source_map_names: &DUMMY_NAMES, + orig: None, + comments: None, + emit_source_map_columns: false, + preamble: "", + codegen_config: Default::default(), + output: None, + source_map_url: None, + } + } +} + +/// Converts ast node to source string and sourcemap. +/// +/// +/// This method receives target file path, but does not write file to the +/// path. See: https://github.com/swc-project/swc/issues/1255 +/// +/// +/// +/// This should be called in a scope of [swc_common::GLOBALS]. +#[allow(clippy::too_many_arguments)] +pub fn print( + cm: Lrc, + node: &T, + PrintArgs { + source_root, + source_file_name, + output_path, + inline_sources_content, + source_map, + source_map_names, + orig, + comments, + emit_source_map_columns, + preamble, + codegen_config, + output, + source_map_url, + }: PrintArgs, +) -> Result +where + T: Node + VisitWith, +{ + let _timer = timer!("Compiler::print"); + + let mut src_map_buf = Vec::new(); + + let mut src = { + let mut buf = std::vec::Vec::new(); + { + let mut w = swc_ecma_codegen::text_writer::JsWriter::new( + cm.clone(), + "\n", + &mut buf, + if source_map.enabled() { + Some(&mut src_map_buf) + } else { + None + }, + ); + w.preamble(preamble).unwrap(); + let mut wr = Box::new(w) as Box; + + if codegen_config.minify { + wr = Box::new(swc_ecma_codegen::text_writer::omit_trailing_semi(wr)); + } + + let mut emitter = Emitter { + cfg: codegen_config, + comments, + cm: cm.clone(), + wr, + }; + + node.emit_with(&mut emitter) + .context("failed to emit module")?; + } + // Invalid utf8 is valid in javascript world. + String::from_utf8(buf).expect("invalid utf8 character detected") + }; + + if cfg!(debug_assertions) + && !src_map_buf.is_empty() + && src_map_buf.iter().all(|(bp, _)| bp.is_dummy()) + && src.lines().count() >= 3 + && option_env!("SWC_DEBUG") == Some("1") + { + panic!("The module contains only dummy spans\n{src}"); + } + + let mut map = if source_map.enabled() { + Some(cm.build_source_map( + &src_map_buf, + orig, + SwcSourceMapConfig { + source_file_name, + output_path: output_path.as_deref(), + names: source_map_names, + inline_sources_content, + emit_columns: emit_source_map_columns, + }, + )) + } else { + None + }; + + if let Some(map) = &mut map { + if let Some(source_root) = source_root { + map.set_source_root(Some(BytesStr::from_str_slice(source_root))) + } + } + + let (code, map) = match source_map { + SourceMapsConfig::Bool(v) => { + if v { + let mut buf = std::vec::Vec::new(); + + map.unwrap() + .to_writer(&mut buf) + .context("failed to write source map")?; + let map = String::from_utf8(buf).context("source map is not utf-8")?; + + if let Some(source_map_url) = source_map_url { + src.push_str("\n//# sourceMappingURL="); + src.push_str(source_map_url); + } + + (src, Some(map)) + } else { + (src, None) + } + } + SourceMapsConfig::Str(_) => { + let mut buf = std::vec::Vec::new(); + + map.unwrap() + .to_writer(&mut buf) + .context("failed to write source map file")?; + let map = String::from_utf8(buf).context("source map is not utf-8")?; + + src.push_str("\n//# sourceMappingURL=data:application/json;base64,"); + BASE64_STANDARD.encode_string(map.as_bytes(), &mut src); + (src, None) + } + }; + + Ok(TransformOutput { + code, + map, + output: output + .map(|v| serde_json::to_string(&v).context("failed to serilaize output")) + .transpose()?, + diagnostics: Default::default(), + }) +} + +struct SwcSourceMapConfig<'a> { + source_file_name: Option<&'a str>, + /// Output path of the `.map` file. + output_path: Option<&'a Path>, + + names: &'a FxHashMap, + + inline_sources_content: bool, + + emit_columns: bool, +} + +impl SourceMapGenConfig for SwcSourceMapConfig<'_> { + fn file_name_to_source(&self, f: &FileName) -> String { + if let Some(file_name) = self.source_file_name { + return file_name.to_string(); + } + + let Some(base_path) = self.output_path.as_ref().and_then(|v| v.parent()) else { + return f.to_string(); + }; + let target = match f { + FileName::Real(v) => v, + _ => return f.to_string(), + }; + + let rel = pathdiff::diff_paths(target, base_path); + match rel { + Some(v) => { + let s = v.to_string_lossy().to_string(); + if cfg!(target_os = "windows") { + s.replace('\\', "/") + } else { + s + } + } + None => f.to_string(), + } + } + + fn name_for_bytepos(&self, pos: BytePos) -> Option<&str> { + self.names.get(&pos).map(|v| &**v) + } + + fn inline_sources_content(&self, _: &FileName) -> bool { + self.inline_sources_content + } + + fn emit_columns(&self, _f: &FileName) -> bool { + self.emit_columns + } + + fn skip(&self, f: &FileName) -> bool { + match f { + FileName::Internal(..) => true, + FileName::Custom(s) => s.starts_with('<'), + _ => false, + } + } + + fn ignore_list(&self, _f: &FileName) -> bool { + false + } +} + +/// Configuration related to source map generated by swc. +#[derive(Clone, Serialize, Deserialize, Debug)] +#[serde(untagged)] +pub enum SourceMapsConfig { + Bool(bool), + Str(String), +} + +impl SourceMapsConfig { + pub fn enabled(&self) -> bool { + match *self { + SourceMapsConfig::Bool(b) => b, + SourceMapsConfig::Str(ref s) => { + assert_eq!(s, "inline", "Source map must be true, false or inline"); + true + } + } + } +} + +impl Default for SourceMapsConfig { + fn default() -> Self { + SourceMapsConfig::Bool(true) + } +} + +pub struct IdentCollector { + pub names: FxHashMap, +} + +impl Visit for IdentCollector { + noop_visit_type!(); + + fn visit_ident(&mut self, ident: &Ident) { + self.names.insert(ident.span.lo, ident.sym.clone()); + } + + fn visit_ident_name(&mut self, ident: &IdentName) { + // We don't want to specifically include the constructor name in the source map + // so that the source map name in thrown errors refers to the class name + // instead of the constructor name. + if ident.sym == "constructor" { + return; + } + + self.names.insert(ident.span.lo, ident.sym.clone()); + } +} diff --git a/src/config.rs b/src/config.rs index ab8667c..dd6d6aa 100644 --- a/src/config.rs +++ b/src/config.rs @@ -18,7 +18,7 @@ pub struct ModuleMatcher { /// The name of the module you want to match pub name: String, /// The semver range that you want to match - #[tsify(type = "string")] + #[cfg_attr(feature = "wasm", tsify(type = "string"))] pub version_range: Range, /// The path of the file you want to match from the module root pub file_path: PathBuf, diff --git a/src/function_query.rs b/src/function_query.rs index cb15e0d..9a9573f 100644 --- a/src/function_query.rs +++ b/src/function_query.rs @@ -2,7 +2,7 @@ * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * This product includes software developed at Datadog (/). Copyright 2025 Datadog, Inc. **/ -use swc_core::ecma::ast::FnDecl; +use swc_ecma_ast::FnDecl; #[derive(Debug, Clone)] pub(crate) enum FunctionType { diff --git a/src/instrumentation.rs b/src/instrumentation.rs index 1c79a47..12ca671 100644 --- a/src/instrumentation.rs +++ b/src/instrumentation.rs @@ -4,16 +4,31 @@ **/ use crate::config::InstrumentationConfig; use std::path::PathBuf; -use swc_core::common::{Span, SyntaxContext}; -use swc_core::ecma::{ - ast::{ - ArrowExpr, AssignExpr, AssignTarget, BlockStmt, ClassDecl, ClassExpr, ClassMethod, - Constructor, Expr, FnDecl, FnExpr, Ident, Lit, MemberProp, MethodProp, Module, ModuleItem, - Param, Pat, PropName, Script, SimpleAssignTarget, Stmt, Str, VarDecl, - }, - atoms::Atom, +use swc_common::{Span, SyntaxContext}; +use swc_ecma_ast::{ + ArrowExpr, AssignExpr, AssignTarget, BlockStmt, ClassDecl, ClassExpr, ClassMethod, + Constructor, Expr, FnDecl, FnExpr, Ident, Lit, MemberProp, MethodProp, Module, ModuleItem, + Param, Pat, PropName, Script, SimpleAssignTarget, Stmt, Str, VarDecl, }; -use swc_core::quote; +use swc_atoms::Atom; +use swc_ecma_quote::quote; + +pub (crate) mod swc_core { + pub mod common { + pub use swc_common::*; + } + pub mod ecma { + pub mod ast { + pub use swc_ecma_ast::*; + } + } + pub mod atoms { + pub use swc_atoms::*; + } + pub mod quote { + pub use swc_ecma_quote::*; + } +} macro_rules! ident { ($name:expr) => { diff --git a/src/lib.rs b/src/lib.rs index 0618089..dea5716 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,23 +19,22 @@ * This product includes software developed at Datadog (/). Copyright 2025 Datadog, Inc. **/ use std::{error::Error, path::PathBuf, sync::Arc}; -use swc::{ - config::{IsModule, SourceMapsConfig}, - sourcemap::SourceMap, - try_with_handler, Compiler, HandlerOpts, PrintArgs, -}; -use swc_core::{ - common::{comments::Comments, errors::ColorConfig, FileName, FilePathMapping}, - ecma::{ - ast::{ - AssignExpr, ClassDecl, ClassExpr, ClassMethod, Constructor, EsVersion, FnDecl, - MethodProp, Module, Script, Str, VarDecl, - }, - visit::{VisitMut, VisitMutWith}, - }, - quote, + +use swc_compiler_base::PrintArgs; +use swc_compiler_base::SourceMapsConfig; +use swc_config::is_module::IsModule; +use swc_error_reporters::handler::{try_with_handler, HandlerOpts}; +use swc_node_comments::SwcComments; +use swc_common::{comments::Comments, errors::{ColorConfig, Handler}, FileName, SourceFile}; +use swc_ecma_ast::{ + AssignExpr, ClassDecl, ClassExpr, ClassMethod, Constructor, EsVersion, FnDecl, + MethodProp, Module, Script, Str, VarDecl, Program }; +use swc_ecma_visit::{VisitMut, VisitMutWith, VisitWith}; use swc_ecma_parser::{EsSyntax, Syntax}; +use swc_ecma_codegen::Node; +use swc_sourcemap::SourceMap; +use swc_ecma_quote::quote; mod error; @@ -50,6 +49,60 @@ pub use function_query::*; use crate::error::OrchestrionError; +struct Compiler { + /// CodeMap + pub cm: Arc, + comments: SwcComments, +} + +impl Compiler { + + fn new(cm: Arc) -> Self { + Compiler { + cm, + comments: Default::default(), + } + } + + pub fn comments(&self) -> &SwcComments { + &self.comments + } + + /// This method parses a javascript / typescript file + pub fn parse_js( + &self, + fm: Arc, + handler: &Handler, + target: EsVersion, + syntax: Syntax, + is_module: IsModule, + comments: Option<&dyn Comments>, + ) -> Result { + swc_compiler_base::parse_js( + self.cm.clone(), + fm, + handler, + target, + syntax, + is_module, + comments, + ) + } + + /// Converts ast node to source string and sourcemap. + /// + /// + /// This method receives target file path, but does not write file to the + /// path. See: https://github.com/swc-project/swc/issues/1255 + #[allow(clippy::too_many_arguments)] + pub fn print(&self, node: &T, args: PrintArgs) -> Result + where + T: Node + VisitWith, + { + swc_compiler_base::print(self.cm.clone(), node, args) + } +} + #[cfg(feature = "wasm")] pub mod wasm; @@ -176,9 +229,7 @@ impl InstrumentationVisitor { is_module: IsModule, sourcemap: Option<&str>, ) -> Result> { - let compiler = Compiler::new(Arc::new(swc_core::common::SourceMap::new( - FilePathMapping::empty(), - ))); + let compiler = Compiler::new(Arc::new(swc_common::SourceMap::default())); // Parse input sourcemap if provided let sourcemap = diff --git a/src/wasm.rs b/src/wasm.rs index 6e1f842..13e6b08 100644 --- a/src/wasm.rs +++ b/src/wasm.rs @@ -1,6 +1,6 @@ use crate::{Config, InstrumentationConfig, InstrumentationVisitor, Instrumentor, TransformOutput}; use std::path::PathBuf; -use swc::config::IsModule; +use swc_config::is_module::IsModule; use wasm_bindgen::prelude::*; #[cfg_attr( diff --git a/yarn.lock b/yarn.lock index bd3b088..f5f6749 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,241 +2,21 @@ # yarn lockfile v1 -"@esbuild/aix-ppc64@0.25.9": - version "0.25.9" - resolved "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.9.tgz" - integrity sha512-OaGtL73Jck6pBKjNIe24BnFE6agGl+6KxDtTfHhy1HmhthfKouEcOhqpSL64K4/0WCtbKFLOdzD/44cJ4k9opA== - -"@esbuild/android-arm@0.25.9": - version "0.25.9" - resolved "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.9.tgz" - integrity sha512-5WNI1DaMtxQ7t7B6xa572XMXpHAaI/9Hnhk8lcxF4zVN4xstUgTlvuGDorBguKEnZO70qwEcLpfifMLoxiPqHQ== - -"@esbuild/android-arm64@0.25.9": - version "0.25.9" - resolved "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.9.tgz" - integrity sha512-IDrddSmpSv51ftWslJMvl3Q2ZT98fUSL2/rlUXuVqRXHCs5EUF1/f+jbjF5+NG9UffUDMCiTyh8iec7u8RlTLg== - -"@esbuild/android-x64@0.25.9": - version "0.25.9" - resolved "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.9.tgz" - integrity sha512-I853iMZ1hWZdNllhVZKm34f4wErd4lMyeV7BLzEExGEIZYsOzqDWDf+y082izYUE8gtJnYHdeDpN/6tUdwvfiw== - "@esbuild/darwin-arm64@0.25.9": version "0.25.9" resolved "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.9.tgz" integrity sha512-XIpIDMAjOELi/9PB30vEbVMs3GV1v2zkkPnuyRRURbhqjyzIINwj+nbQATh4H9GxUgH1kFsEyQMxwiLFKUS6Rg== -"@esbuild/darwin-x64@0.25.9": - version "0.25.9" - resolved "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.9.tgz" - integrity sha512-jhHfBzjYTA1IQu8VyrjCX4ApJDnH+ez+IYVEoJHeqJm9VhG9Dh2BYaJritkYK3vMaXrf7Ogr/0MQ8/MeIefsPQ== - -"@esbuild/freebsd-arm64@0.25.9": - version "0.25.9" - resolved "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.9.tgz" - integrity sha512-z93DmbnY6fX9+KdD4Ue/H6sYs+bhFQJNCPZsi4XWJoYblUqT06MQUdBCpcSfuiN72AbqeBFu5LVQTjfXDE2A6Q== - -"@esbuild/freebsd-x64@0.25.9": - version "0.25.9" - resolved "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.9.tgz" - integrity sha512-mrKX6H/vOyo5v71YfXWJxLVxgy1kyt1MQaD8wZJgJfG4gq4DpQGpgTB74e5yBeQdyMTbgxp0YtNj7NuHN0PoZg== - -"@esbuild/linux-arm@0.25.9": - version "0.25.9" - resolved "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.9.tgz" - integrity sha512-HBU2Xv78SMgaydBmdor38lg8YDnFKSARg1Q6AT0/y2ezUAKiZvc211RDFHlEZRFNRVhcMamiToo7bDx3VEOYQw== - -"@esbuild/linux-arm64@0.25.9": - version "0.25.9" - resolved "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.9.tgz" - integrity sha512-BlB7bIcLT3G26urh5Dmse7fiLmLXnRlopw4s8DalgZ8ef79Jj4aUcYbk90g8iCa2467HX8SAIidbL7gsqXHdRw== - -"@esbuild/linux-ia32@0.25.9": - version "0.25.9" - resolved "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.9.tgz" - integrity sha512-e7S3MOJPZGp2QW6AK6+Ly81rC7oOSerQ+P8L0ta4FhVi+/j/v2yZzx5CqqDaWjtPFfYz21Vi1S0auHrap3Ma3A== - -"@esbuild/linux-loong64@0.25.9": - version "0.25.9" - resolved "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.9.tgz" - integrity sha512-Sbe10Bnn0oUAB2AalYztvGcK+o6YFFA/9829PhOCUS9vkJElXGdphz0A3DbMdP8gmKkqPmPcMJmJOrI3VYB1JQ== - -"@esbuild/linux-mips64el@0.25.9": - version "0.25.9" - resolved "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.9.tgz" - integrity sha512-YcM5br0mVyZw2jcQeLIkhWtKPeVfAerES5PvOzaDxVtIyZ2NUBZKNLjC5z3/fUlDgT6w89VsxP2qzNipOaaDyA== - -"@esbuild/linux-ppc64@0.25.9": - version "0.25.9" - resolved "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.9.tgz" - integrity sha512-++0HQvasdo20JytyDpFvQtNrEsAgNG2CY1CLMwGXfFTKGBGQT3bOeLSYE2l1fYdvML5KUuwn9Z8L1EWe2tzs1w== - -"@esbuild/linux-riscv64@0.25.9": - version "0.25.9" - resolved "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.9.tgz" - integrity sha512-uNIBa279Y3fkjV+2cUjx36xkx7eSjb8IvnL01eXUKXez/CBHNRw5ekCGMPM0BcmqBxBcdgUWuUXmVWwm4CH9kg== - -"@esbuild/linux-s390x@0.25.9": - version "0.25.9" - resolved "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.9.tgz" - integrity sha512-Mfiphvp3MjC/lctb+7D287Xw1DGzqJPb/J2aHHcHxflUo+8tmN/6d4k6I2yFR7BVo5/g7x2Monq4+Yew0EHRIA== - -"@esbuild/linux-x64@0.25.9": - version "0.25.9" - resolved "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.9.tgz" - integrity sha512-iSwByxzRe48YVkmpbgoxVzn76BXjlYFXC7NvLYq+b+kDjyyk30J0JY47DIn8z1MO3K0oSl9fZoRmZPQI4Hklzg== - -"@esbuild/netbsd-arm64@0.25.9": - version "0.25.9" - resolved "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.9.tgz" - integrity sha512-9jNJl6FqaUG+COdQMjSCGW4QiMHH88xWbvZ+kRVblZsWrkXlABuGdFJ1E9L7HK+T0Yqd4akKNa/lO0+jDxQD4Q== - -"@esbuild/netbsd-x64@0.25.9": - version "0.25.9" - resolved "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.9.tgz" - integrity sha512-RLLdkflmqRG8KanPGOU7Rpg829ZHu8nFy5Pqdi9U01VYtG9Y0zOG6Vr2z4/S+/3zIyOxiK6cCeYNWOFR9QP87g== - -"@esbuild/openbsd-arm64@0.25.9": - version "0.25.9" - resolved "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.9.tgz" - integrity sha512-YaFBlPGeDasft5IIM+CQAhJAqS3St3nJzDEgsgFixcfZeyGPCd6eJBWzke5piZuZ7CtL656eOSYKk4Ls2C0FRQ== - -"@esbuild/openbsd-x64@0.25.9": - version "0.25.9" - resolved "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.9.tgz" - integrity sha512-1MkgTCuvMGWuqVtAvkpkXFmtL8XhWy+j4jaSO2wxfJtilVCi0ZE37b8uOdMItIHz4I6z1bWWtEX4CJwcKYLcuA== - -"@esbuild/openharmony-arm64@0.25.9": - version "0.25.9" - resolved "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.9.tgz" - integrity sha512-4Xd0xNiMVXKh6Fa7HEJQbrpP3m3DDn43jKxMjxLLRjWnRsfxjORYJlXPO4JNcXtOyfajXorRKY9NkOpTHptErg== - -"@esbuild/sunos-x64@0.25.9": - version "0.25.9" - resolved "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.9.tgz" - integrity sha512-WjH4s6hzo00nNezhp3wFIAfmGZ8U7KtrJNlFMRKxiI9mxEK1scOMAaa9i4crUtu+tBr+0IN6JCuAcSBJZfnphw== - -"@esbuild/win32-arm64@0.25.9": - version "0.25.9" - resolved "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.9.tgz" - integrity sha512-mGFrVJHmZiRqmP8xFOc6b84/7xa5y5YvR1x8djzXpJBSv/UsNK6aqec+6JDjConTgvvQefdGhFDAs2DLAds6gQ== - -"@esbuild/win32-ia32@0.25.9": - version "0.25.9" - resolved "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.9.tgz" - integrity sha512-b33gLVU2k11nVx1OhX3C8QQP6UHQK4ZtN56oFWvVXvz2VkDoe6fbG8TOgHFxEvqeqohmRnIHe5A1+HADk4OQww== - -"@esbuild/win32-x64@0.25.9": - version "0.25.9" - resolved "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.9.tgz" - integrity sha512-PPOl1mi6lpLNQxnGoyAfschAodRFYXJ+9fs6WHXz7CSWKbOqiMZsubC+BQsVKuul+3vKLuwTHsS2c2y9EoKwxQ== - "@jridgewell/sourcemap-codec@^1.5.0": version "1.5.5" resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz" integrity sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og== -"@rollup/rollup-android-arm-eabi@4.47.1": - version "4.47.1" - resolved "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.47.1.tgz" - integrity sha512-lTahKRJip0knffA/GTNFJMrToD+CM+JJ+Qt5kjzBK/sFQ0EWqfKW3AYQSlZXN98tX0lx66083U9JYIMioMMK7g== - -"@rollup/rollup-android-arm64@4.47.1": - version "4.47.1" - resolved "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.47.1.tgz" - integrity sha512-uqxkb3RJLzlBbh/bbNQ4r7YpSZnjgMgyoEOY7Fy6GCbelkDSAzeiogxMG9TfLsBbqmGsdDObo3mzGqa8hps4MA== - "@rollup/rollup-darwin-arm64@4.47.1": version "4.47.1" resolved "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.47.1.tgz" integrity sha512-tV6reObmxBDS4DDyLzTDIpymthNlxrLBGAoQx6m2a7eifSNEZdkXQl1PE4ZjCkEDPVgNXSzND/k9AQ3mC4IOEQ== -"@rollup/rollup-darwin-x64@4.47.1": - version "4.47.1" - resolved "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.47.1.tgz" - integrity sha512-XuJRPTnMk1lwsSnS3vYyVMu4x/+WIw1MMSiqj5C4j3QOWsMzbJEK90zG+SWV1h0B1ABGCQ0UZUjti+TQK35uHQ== - -"@rollup/rollup-freebsd-arm64@4.47.1": - version "4.47.1" - resolved "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.47.1.tgz" - integrity sha512-79BAm8Ag/tmJ5asCqgOXsb3WY28Rdd5Lxj8ONiQzWzy9LvWORd5qVuOnjlqiWWZJw+dWewEktZb5yiM1DLLaHw== - -"@rollup/rollup-freebsd-x64@4.47.1": - version "4.47.1" - resolved "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.47.1.tgz" - integrity sha512-OQ2/ZDGzdOOlyfqBiip0ZX/jVFekzYrGtUsqAfLDbWy0jh1PUU18+jYp8UMpqhly5ltEqotc2miLngf9FPSWIA== - -"@rollup/rollup-linux-arm-gnueabihf@4.47.1": - version "4.47.1" - resolved "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.47.1.tgz" - integrity sha512-HZZBXJL1udxlCVvoVadstgiU26seKkHbbAMLg7680gAcMnRNP9SAwTMVet02ANA94kXEI2VhBnXs4e5nf7KG2A== - -"@rollup/rollup-linux-arm-musleabihf@4.47.1": - version "4.47.1" - resolved "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.47.1.tgz" - integrity sha512-sZ5p2I9UA7T950JmuZ3pgdKA6+RTBr+0FpK427ExW0t7n+QwYOcmDTK/aRlzoBrWyTpJNlS3kacgSlSTUg6P/Q== - -"@rollup/rollup-linux-arm64-gnu@4.47.1": - version "4.47.1" - resolved "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.47.1.tgz" - integrity sha512-3hBFoqPyU89Dyf1mQRXCdpc6qC6At3LV6jbbIOZd72jcx7xNk3aAp+EjzAtN6sDlmHFzsDJN5yeUySvorWeRXA== - -"@rollup/rollup-linux-arm64-musl@4.47.1": - version "4.47.1" - resolved "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.47.1.tgz" - integrity sha512-49J4FnMHfGodJWPw73Ve+/hsPjZgcXQGkmqBGZFvltzBKRS+cvMiWNLadOMXKGnYRhs1ToTGM0sItKISoSGUNA== - -"@rollup/rollup-linux-loongarch64-gnu@4.47.1": - version "4.47.1" - resolved "https://registry.npmjs.org/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.47.1.tgz" - integrity sha512-4yYU8p7AneEpQkRX03pbpLmE21z5JNys16F1BZBZg5fP9rIlb0TkeQjn5du5w4agConCCEoYIG57sNxjryHEGg== - -"@rollup/rollup-linux-ppc64-gnu@4.47.1": - version "4.47.1" - resolved "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.47.1.tgz" - integrity sha512-fAiq+J28l2YMWgC39jz/zPi2jqc0y3GSRo1yyxlBHt6UN0yYgnegHSRPa3pnHS5amT/efXQrm0ug5+aNEu9UuQ== - -"@rollup/rollup-linux-riscv64-gnu@4.47.1": - version "4.47.1" - resolved "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.47.1.tgz" - integrity sha512-daoT0PMENNdjVYYU9xec30Y2prb1AbEIbb64sqkcQcSaR0zYuKkoPuhIztfxuqN82KYCKKrj+tQe4Gi7OSm1ow== - -"@rollup/rollup-linux-riscv64-musl@4.47.1": - version "4.47.1" - resolved "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.47.1.tgz" - integrity sha512-JNyXaAhWtdzfXu5pUcHAuNwGQKevR+6z/poYQKVW+pLaYOj9G1meYc57/1Xv2u4uTxfu9qEWmNTjv/H/EpAisw== - -"@rollup/rollup-linux-s390x-gnu@4.47.1": - version "4.47.1" - resolved "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.47.1.tgz" - integrity sha512-U/CHbqKSwEQyZXjCpY43/GLYcTVKEXeRHw0rMBJP7fP3x6WpYG4LTJWR3ic6TeYKX6ZK7mrhltP4ppolyVhLVQ== - -"@rollup/rollup-linux-x64-gnu@4.47.1": - version "4.47.1" - resolved "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.47.1.tgz" - integrity sha512-uTLEakjxOTElfeZIGWkC34u2auLHB1AYS6wBjPGI00bWdxdLcCzK5awjs25YXpqB9lS8S0vbO0t9ZcBeNibA7g== - -"@rollup/rollup-linux-x64-musl@4.47.1": - version "4.47.1" - resolved "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.47.1.tgz" - integrity sha512-Ft+d/9DXs30BK7CHCTX11FtQGHUdpNDLJW0HHLign4lgMgBcPFN3NkdIXhC5r9iwsMwYreBBc4Rho5ieOmKNVQ== - -"@rollup/rollup-win32-arm64-msvc@4.47.1": - version "4.47.1" - resolved "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.47.1.tgz" - integrity sha512-N9X5WqGYzZnjGAFsKSfYFtAShYjwOmFJoWbLg3dYixZOZqU7hdMq+/xyS14zKLhFhZDhP9VfkzQnsdk0ZDS9IA== - -"@rollup/rollup-win32-ia32-msvc@4.47.1": - version "4.47.1" - resolved "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.47.1.tgz" - integrity sha512-O+KcfeCORZADEY8oQJk4HK8wtEOCRE4MdOkb8qGZQNun3jzmj2nmhV/B/ZaaZOkPmJyvm/gW9n0gsB4eRa1eiQ== - -"@rollup/rollup-win32-x64-msvc@4.47.1": - version "4.47.1" - resolved "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.47.1.tgz" - integrity sha512-CpKnYa8eHthJa3c+C38v/E+/KZyF1Jdh2Cz3DyKZqEWYgrM1IHFArXNWvBLPQCKUEsAqqKX27tTqVEFbDNUcOA== - "@types/chai@^5.2.2": version "5.2.2" resolved "https://registry.npmjs.org/@types/chai/-/chai-5.2.2.tgz"