diff --git a/Cargo.lock b/Cargo.lock index 8c459c23bb2..57be5efbfcc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -93,7 +93,21 @@ dependencies = [ "pmutil", "proc-macro2", "quote", - "swc_macros_common", + "swc_macros_common 0.3.6", + "syn", +] + +[[package]] +name = "ast_node" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a36288803cd1605bc4f0e3189970a0db8e602bb01a39f8133889f35ece7ddde" +dependencies = [ + "darling", + "pmutil", + "proc-macro2", + "quote", + "swc_macros_common 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", "syn", ] @@ -166,6 +180,15 @@ dependencies = [ "scoped-tls", ] +[[package]] +name = "better_scoped_tls" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b73e8ecdec39e98aa3b19e8cd0b8ed8f77ccb86a6b0b2dc7cd86d105438a2123" +dependencies = [ + "scoped-tls", +] + [[package]] name = "binding_core_node" version = "0.1.0" @@ -179,7 +202,7 @@ dependencies = [ "path-clean", "serde", "serde_json", - "swc_core", + "swc_core 0.7.5", "tracing", "tracing-chrome", "tracing-futures", @@ -190,7 +213,7 @@ dependencies = [ name = "binding_core_wasm" version = "1.2.230" dependencies = [ - "swc_core", + "swc_core 0.7.5", "wasm-bindgen", ] @@ -202,10 +225,28 @@ dependencies = [ "console_error_panic_hook", "js-sys", "once_cell", - "swc", - "swc_common", - "swc_ecma_ast", - "swc_ecma_transforms", + "swc 0.214.5", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", + "swc_ecma_transforms 0.183.3", + "wasm-bindgen", + "wasm-bindgen-futures", +] + +[[package]] +name = "binding_macros" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09e95f362b54cc4abc08a06ffe51c3d20739f7aca87976f37f3985a92cf2ef27" +dependencies = [ + "anyhow", + "console_error_panic_hook", + "js-sys", + "once_cell", + "swc 0.214.4", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_ast 0.90.7 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms 0.183.3 (registry+https://github.com/rust-lang/crates.io-index)", "wasm-bindgen", "wasm-bindgen-futures", ] @@ -763,16 +804,16 @@ dependencies = [ "clap 3.1.0", "rayon", "sha1 0.10.1", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_codegen", - "swc_ecma_minifier", - "swc_ecma_parser", - "swc_ecma_transforms_base", - "swc_ecma_visit", - "swc_error_reporters", - "swc_timer", + "swc_atoms 0.4.5", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", + "swc_ecma_codegen 0.121.4", + "swc_ecma_minifier 0.144.3", + "swc_ecma_parser 0.117.4", + "swc_ecma_transforms_base 0.103.6", + "swc_ecma_visit 0.76.5", + "swc_error_reporters 0.11.4", + "swc_timer 0.15.4", "tempdir", "tracing", "tracing-subscriber", @@ -869,7 +910,19 @@ version = "0.2.1" dependencies = [ "pmutil", "proc-macro2", - "swc_macros_common", + "swc_macros_common 0.3.6", + "syn", +] + +[[package]] +name = "enum_kind" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78b940da354ae81ef0926c5eaa428207b8f4f091d3956c891dfbd124162bed99" +dependencies = [ + "pmutil", + "proc-macro2", + "swc_macros_common 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", "syn", ] @@ -943,7 +996,19 @@ version = "0.1.3" dependencies = [ "pmutil", "proc-macro2", - "swc_macros_common", + "swc_macros_common 0.3.6", + "syn", +] + +[[package]] +name = "from_variant" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0951635027ca477be98f8774abd6f0345233439d63f307e47101acb40c7cc63d" +dependencies = [ + "pmutil", + "proc-macro2", + "swc_macros_common 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", "syn", ] @@ -1289,10 +1354,10 @@ dependencies = [ "dashmap", "nom", "serde", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_parser", + "swc_atoms 0.4.5", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", + "swc_ecma_parser 0.117.4", "testing", ] @@ -2114,7 +2179,25 @@ dependencies = [ "anyhow", "browserslist-rs", "dashmap", - "from_variant", + "from_variant 0.1.3", + "once_cell", + "semver 1.0.4", + "serde", + "st-map", + "tracing", +] + +[[package]] +name = "preset_env_base" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f68dc2366d2258e280ad44221403aa0af50868b3e6dc1cb9fb14a302cc01948" +dependencies = [ + "ahash", + "anyhow", + "browserslist-rs", + "dashmap", + "from_variant 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "once_cell", "semver 1.0.4", "serde", @@ -2878,7 +2961,20 @@ dependencies = [ "proc-macro2", "quote", "serde", - "swc_macros_common", + "swc_macros_common 0.3.6", + "syn", +] + +[[package]] +name = "string_enum" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f584cc881e9e5f1fd6bf827b0444aa94c30d8fe6378cf241071b5f5700b2871f" +dependencies = [ + "pmutil", + "proc-macro2", + "quote", + "swc_macros_common 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", "syn", ] @@ -2925,6 +3021,57 @@ dependencies = [ [[package]] name = "swc" version = "0.214.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb98ba635aabf1a73d5377feec9e0a7fa7d1d49dfb53239201d99994db1672e1" +dependencies = [ + "ahash", + "anyhow", + "base64 0.13.0", + "dashmap", + "either", + "indexmap", + "json_comments", + "lru", + "napi", + "napi-derive", + "once_cell", + "parking_lot", + "pathdiff", + "regex", + "rustc-hash", + "serde", + "serde_json", + "sourcemap", + "swc_atoms 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_cached 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_config 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_ast 0.90.7 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_codegen 0.121.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_ext_transforms 0.85.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_lints 0.58.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_loader 0.39.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_minifier 0.144.3 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_parser 0.117.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_preset_env 0.158.3 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms 0.183.3 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_base 0.103.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_compat 0.122.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_optimization 0.152.3 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_utils 0.99.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_visit 0.76.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_error_reporters 0.11.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_node_comments 0.14.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_plugin_proxy 0.18.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_plugin_runner 0.71.6", + "swc_timer 0.15.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_visit 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", + "tracing", +] + +[[package]] +name = "swc" +version = "0.214.5" dependencies = [ "ahash", "ansi_term", @@ -2947,32 +3094,32 @@ dependencies = [ "serde", "serde_json", "sourcemap", - "swc_atoms", - "swc_cached", - "swc_common", - "swc_config", - "swc_ecma_ast", - "swc_ecma_codegen", - "swc_ecma_ext_transforms", - "swc_ecma_lints", - "swc_ecma_loader", - "swc_ecma_minifier", - "swc_ecma_parser", - "swc_ecma_preset_env", + "swc_atoms 0.4.5", + "swc_cached 0.3.5", + "swc_common 0.27.6", + "swc_config 0.1.1", + "swc_ecma_ast 0.90.7", + "swc_ecma_codegen 0.121.4", + "swc_ecma_ext_transforms 0.85.4", + "swc_ecma_lints 0.58.4", + "swc_ecma_loader 0.39.4", + "swc_ecma_minifier 0.144.3", + "swc_ecma_parser 0.117.4", + "swc_ecma_preset_env 0.158.3", "swc_ecma_testing", - "swc_ecma_transforms", - "swc_ecma_transforms_base", - "swc_ecma_transforms_compat", - "swc_ecma_transforms_optimization", - "swc_ecma_utils", - "swc_ecma_visit", - "swc_error_reporters", - "swc_node_base", - "swc_node_comments", - "swc_plugin_proxy", - "swc_plugin_runner", - "swc_timer", - "swc_visit", + "swc_ecma_transforms 0.183.3", + "swc_ecma_transforms_base 0.103.6", + "swc_ecma_transforms_compat 0.122.4", + "swc_ecma_transforms_optimization 0.152.3", + "swc_ecma_utils 0.99.4", + "swc_ecma_visit 0.76.5", + "swc_error_reporters 0.11.4", + "swc_node_base 0.5.5", + "swc_node_comments 0.14.4", + "swc_plugin_proxy 0.18.5", + "swc_plugin_runner 0.71.7", + "swc_timer 0.15.4", + "swc_visit 0.5.2", "testing", "tracing", "walkdir", @@ -2991,6 +3138,21 @@ dependencies = [ "string_cache_codegen", ] +[[package]] +name = "swc_atoms" +version = "0.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "013b8129d72b54f337bc3733a075389d97a5714fb58d3ead5df49977a45322fc" +dependencies = [ + "bytecheck", + "once_cell", + "rkyv", + "rustc-hash", + "serde", + "string_cache", + "string_cache_codegen", +] + [[package]] name = "swc_bundler" version = "0.177.3" @@ -3013,29 +3175,63 @@ dependencies = [ "reqwest", "retain_mut", "sha-1", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_codegen", - "swc_ecma_loader", - "swc_ecma_minifier", - "swc_ecma_parser", - "swc_ecma_transforms_base", - "swc_ecma_transforms_optimization", - "swc_ecma_transforms_proposal", - "swc_ecma_transforms_react", - "swc_ecma_transforms_typescript", - "swc_ecma_utils", - "swc_ecma_visit", - "swc_fast_graph", - "swc_graph_analyzer", - "swc_node_base", + "swc_atoms 0.4.5", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", + "swc_ecma_codegen 0.121.4", + "swc_ecma_loader 0.39.4", + "swc_ecma_minifier 0.144.3", + "swc_ecma_parser 0.117.4", + "swc_ecma_transforms_base 0.103.6", + "swc_ecma_transforms_optimization 0.152.3", + "swc_ecma_transforms_proposal 0.130.3", + "swc_ecma_transforms_react 0.141.3", + "swc_ecma_transforms_typescript 0.145.3", + "swc_ecma_utils 0.99.4", + "swc_ecma_visit 0.76.5", + "swc_fast_graph 0.15.4", + "swc_graph_analyzer 0.16.4", + "swc_node_base 0.5.5", "tempfile", "testing", "tracing", "url", ] +[[package]] +name = "swc_bundler" +version = "0.177.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7bb445816f57e0900235128a9bb4f46da5eeca8e0b6542250c6e28166f3996df" +dependencies = [ + "ahash", + "anyhow", + "crc", + "dashmap", + "indexmap", + "is-macro", + "once_cell", + "parking_lot", + "petgraph", + "radix_fmt", + "rayon", + "relative-path", + "retain_mut", + "swc_atoms 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_ast 0.90.7 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_codegen 0.121.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_loader 0.39.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_parser 0.117.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_base 0.103.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_optimization 0.152.3 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_utils 0.99.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_visit 0.76.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_fast_graph 0.15.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_graph_analyzer 0.16.4 (registry+https://github.com/rust-lang/crates.io-index)", + "tracing", +] + [[package]] name = "swc_cached" version = "0.3.5" @@ -3046,7 +3242,22 @@ dependencies = [ "once_cell", "regex", "serde", - "swc_atoms", + "swc_atoms 0.4.5", +] + +[[package]] +name = "swc_cached" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "395389d54bea607246bb4a400b9b3df2e55adfe8fcce7965a5b99fed7816cf4d" +dependencies = [ + "ahash", + "anyhow", + "dashmap", + "once_cell", + "regex", + "serde", + "swc_atoms 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -3062,7 +3273,7 @@ dependencies = [ "relative-path", "serde", "serde_json", - "swc_core", + "swc_core 0.7.5", "tracing", "tracing-chrome", "tracing-futures", @@ -3077,15 +3288,15 @@ dependencies = [ "ahash", "anyhow", "arbitrary", - "ast_node", + "ast_node 0.8.2", "atty", - "better_scoped_tls", + "better_scoped_tls 0.1.0", "bytecheck", "cfg-if 1.0.0", "criterion", "debug_unreachable", "either", - "from_variant", + "from_variant 0.1.3", "num-bigint", "once_cell", "parking_lot", @@ -3097,15 +3308,47 @@ dependencies = [ "siphasher", "sourcemap", "string_cache", - "swc_atoms", - "swc_eq_ignore_macros", - "swc_visit", + "swc_atoms 0.4.5", + "swc_eq_ignore_macros 0.1.1", + "swc_visit 0.5.2", "termcolor", "tracing", "unicode-width", "url", ] +[[package]] +name = "swc_common" +version = "0.27.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2659e2466667506a9c6994062344f8ee10ae8d48a4bd3a43e974c8945c0ae2bb" +dependencies = [ + "ahash", + "anyhow", + "ast_node 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)", + "better_scoped_tls 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", + "bytecheck", + "cfg-if 1.0.0", + "debug_unreachable", + "either", + "from_variant 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", + "num-bigint", + "once_cell", + "parking_lot", + "rkyv", + "rustc-hash", + "serde", + "siphasher", + "sourcemap", + "string_cache", + "swc_atoms 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_eq_ignore_macros 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_visit 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", + "tracing", + "unicode-width", + "url", +] + [[package]] name = "swc_config" version = "0.1.1" @@ -3114,7 +3357,20 @@ dependencies = [ "indexmap", "serde", "serde_json", - "swc_config_macro", + "swc_config_macro 0.1.0", +] + +[[package]] +name = "swc_config" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8bb05ef56c14b95dd7e62e95960153af811b9a447287f1f6ca59f1337fb83d4" +dependencies = [ + "anyhow", + "indexmap", + "serde", + "serde_json", + "swc_config_macro 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -3124,36 +3380,72 @@ dependencies = [ "pmutil", "proc-macro2", "quote", - "swc_macros_common", + "swc_macros_common 0.3.6", + "syn", +] + +[[package]] +name = "swc_config_macro" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb64bc03d90fd5c90d6ab917bb2b1d7fbd31957df39e31ea24a3f554b4372251" +dependencies = [ + "pmutil", + "proc-macro2", + "quote", + "swc_macros_common 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", "syn", ] [[package]] name = "swc_core" version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "790e03fcbb48790c2ca34e79f77c8284641fd1010252d2f987fab68f593b1586" dependencies = [ - "binding_macros", + "binding_macros 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", + "swc 0.214.4", + "swc_atoms 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_bundler 0.177.3 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_ast 0.90.7 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_loader 0.39.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms 0.183.3 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_node_bundler 0.0.1 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_nodejs_common 0.0.1 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_plugin_proxy 0.18.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_plugin_runner 0.71.6", + "swc_trace_macro 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "wasmer", + "wasmer-wasi", +] + +[[package]] +name = "swc_core" +version = "0.7.6" +dependencies = [ + "binding_macros 0.2.3", "once_cell", - "swc", - "swc_atoms", - "swc_bundler", - "swc_common", - "swc_ecma_ast", - "swc_ecma_loader", - "swc_ecma_parser", + "swc 0.214.5", + "swc_atoms 0.4.5", + "swc_bundler 0.177.3", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", + "swc_ecma_loader 0.39.4", + "swc_ecma_parser 0.117.4", "swc_ecma_quote_macros", - "swc_ecma_transforms", + "swc_ecma_transforms 0.183.3", "swc_ecma_transforms_testing", - "swc_ecma_utils", - "swc_ecma_visit", - "swc_node_base", - "swc_node_bundler", - "swc_nodejs_common", + "swc_ecma_utils 0.99.4", + "swc_ecma_visit 0.76.5", + "swc_node_base 0.5.5", + "swc_node_bundler 0.0.1", + "swc_nodejs_common 0.0.1", "swc_plugin", "swc_plugin_macro", - "swc_plugin_proxy", - "swc_plugin_runner", - "swc_trace_macro", + "swc_plugin_proxy 0.18.5", + "swc_plugin_runner 0.71.7", + "swc_trace_macro 0.1.2", "testing", "wasmer", "wasmer-wasi", @@ -3179,9 +3471,9 @@ dependencies = [ "is-macro", "rkyv", "serde", - "string_enum", - "swc_atoms", - "swc_common", + "string_enum 0.3.1", + "swc_atoms 0.4.5", + "swc_common 0.27.6", ] [[package]] @@ -3192,8 +3484,8 @@ dependencies = [ "bitflags", "rustc-hash", "serde", - "swc_atoms", - "swc_common", + "swc_atoms 0.4.5", + "swc_common 0.27.6", "swc_css_ast", "swc_css_codegen_macros", "swc_css_parser", @@ -3208,7 +3500,7 @@ dependencies = [ "pmutil", "proc-macro2", "quote", - "swc_macros_common", + "swc_macros_common 0.3.6", "syn", ] @@ -3221,9 +3513,9 @@ dependencies = [ "rayon", "serde", "serde_json", - "swc_atoms", - "swc_cached", - "swc_common", + "swc_atoms 0.4.5", + "swc_cached 0.3.5", + "swc_common 0.27.6", "swc_css_ast", "swc_css_parser", "swc_css_visit", @@ -3236,8 +3528,8 @@ name = "swc_css_minifier" version = "0.82.0" dependencies = [ "serde", - "swc_atoms", - "swc_common", + "swc_atoms 0.4.5", + "swc_common 0.27.6", "swc_css_ast", "swc_css_codegen", "swc_css_parser", @@ -3255,11 +3547,11 @@ dependencies = [ "lexical", "serde", "serde_json", - "swc_atoms", - "swc_common", + "swc_atoms 0.4.5", + "swc_common 0.27.6", "swc_css_ast", "swc_css_visit", - "swc_node_base", + "swc_node_base 0.5.5", "testing", ] @@ -3268,11 +3560,11 @@ name = "swc_css_prefixer" version = "0.117.0" dependencies = [ "once_cell", - "preset_env_base", + "preset_env_base 0.2.4", "serde", "serde_json", - "swc_atoms", - "swc_common", + "swc_atoms 0.4.5", + "swc_common 0.27.6", "swc_css_ast", "swc_css_codegen", "swc_css_parser", @@ -3288,8 +3580,8 @@ dependencies = [ "once_cell", "serde", "serde_json", - "swc_atoms", - "swc_common", + "swc_atoms 0.4.5", + "swc_common 0.27.6", "swc_css_ast", "swc_css_visit", ] @@ -3299,10 +3591,10 @@ name = "swc_css_visit" version = "0.106.0" dependencies = [ "serde", - "swc_atoms", - "swc_common", + "swc_atoms 0.4.5", + "swc_common 0.27.6", "swc_css_ast", - "swc_visit", + "swc_visit 0.5.2", ] [[package]] @@ -3318,9 +3610,28 @@ dependencies = [ "scoped-tls", "serde", "serde_json", - "string_enum", - "swc_atoms", - "swc_common", + "string_enum 0.3.1", + "swc_atoms 0.4.5", + "swc_common 0.27.6", + "unicode-id", +] + +[[package]] +name = "swc_ecma_ast" +version = "0.90.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8265c7abbdf36fa17da7c276bf6dd933b0837e00655dc7452b7b23068e7de688" +dependencies = [ + "bitflags", + "bytecheck", + "is-macro", + "num-bigint", + "rkyv", + "scoped-tls", + "serde", + "string_enum 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_atoms 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", "unicode-id", ] @@ -3335,16 +3646,35 @@ dependencies = [ "rustc-hash", "serde", "sourcemap", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_codegen_macros", - "swc_ecma_parser", - "swc_node_base", + "swc_atoms 0.4.5", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", + "swc_ecma_codegen_macros 0.7.1", + "swc_ecma_parser 0.117.4", + "swc_node_base 0.5.5", "testing", "tracing", ] +[[package]] +name = "swc_ecma_codegen" +version = "0.121.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "54c1e454253d4cda2d9e600256d5511d33d163361ef8b6165343505c48328f2b" +dependencies = [ + "memchr", + "num-bigint", + "once_cell", + "rustc-hash", + "serde", + "sourcemap", + "swc_atoms 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_ast 0.90.7 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_codegen_macros 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)", + "tracing", +] + [[package]] name = "swc_ecma_codegen_macros" version = "0.7.1" @@ -3352,7 +3682,20 @@ dependencies = [ "pmutil", "proc-macro2", "quote", - "swc_macros_common", + "swc_macros_common 0.3.6", + "syn", +] + +[[package]] +name = "swc_ecma_codegen_macros" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0159c99f81f52e48fe692ef7af1b0990b45d3006b14c6629be0b1ffee1b23aea" +dependencies = [ + "pmutil", + "proc-macro2", + "quote", + "swc_macros_common 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", "syn", ] @@ -3361,11 +3704,11 @@ name = "swc_ecma_dep_graph" version = "0.89.4" dependencies = [ "pretty_assertions", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_parser", - "swc_ecma_visit", + "swc_atoms 0.4.5", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", + "swc_ecma_parser 0.117.4", + "swc_ecma_visit 0.76.5", "testing", ] @@ -3374,11 +3717,25 @@ name = "swc_ecma_ext_transforms" version = "0.85.4" dependencies = [ "phf", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_atoms 0.4.5", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", + "swc_ecma_utils 0.99.4", + "swc_ecma_visit 0.76.5", +] + +[[package]] +name = "swc_ecma_ext_transforms" +version = "0.85.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8488d1f1b56152f8881482924b67930ae817ec78d669c17d659ebe981f95d25e" +dependencies = [ + "phf", + "swc_atoms 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_ast 0.90.7 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_utils 0.99.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_visit 0.76.5 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -3392,18 +3749,39 @@ dependencies = [ "rayon", "regex", "serde", - "swc_atoms", - "swc_common", - "swc_config", - "swc_ecma_ast", - "swc_ecma_codegen", - "swc_ecma_parser", - "swc_ecma_transforms_base", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_atoms 0.4.5", + "swc_common 0.27.6", + "swc_config 0.1.1", + "swc_ecma_ast 0.90.7", + "swc_ecma_codegen 0.121.4", + "swc_ecma_parser 0.117.4", + "swc_ecma_transforms_base 0.103.6", + "swc_ecma_utils 0.99.4", + "swc_ecma_visit 0.76.5", "testing", ] +[[package]] +name = "swc_ecma_lints" +version = "0.58.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "588b745eaa0979490dd20df11d982c72b25aaa78eddf0033a159906f4adf3f28" +dependencies = [ + "ahash", + "auto_impl", + "dashmap", + "parking_lot", + "rayon", + "regex", + "serde", + "swc_atoms 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_config 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_ast 0.90.7 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_utils 0.99.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_visit 0.76.5 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "swc_ecma_loader" version = "0.39.4" @@ -3420,8 +3798,30 @@ dependencies = [ "pathdiff", "serde", "serde_json", - "swc_cached", - "swc_common", + "swc_cached 0.3.5", + "swc_common 0.27.6", + "tracing", +] + +[[package]] +name = "swc_ecma_loader" +version = "0.39.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ece6023a43222e3bd36e3d191fa5289c848245b97fbf0127d9c0923165648d18" +dependencies = [ + "ahash", + "anyhow", + "dashmap", + "lru", + "normpath", + "once_cell", + "parking_lot", + "path-clean", + "pathdiff", + "serde", + "serde_json", + "swc_cached 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", "tracing", ] @@ -3447,50 +3847,104 @@ dependencies = [ "rustc-hash", "serde", "serde_json", - "swc_atoms", - "swc_cached", - "swc_common", - "swc_config", - "swc_ecma_ast", - "swc_ecma_codegen", - "swc_ecma_parser", + "swc_atoms 0.4.5", + "swc_cached 0.3.5", + "swc_common 0.27.6", + "swc_config 0.1.1", + "swc_ecma_ast 0.90.7", + "swc_ecma_codegen 0.121.4", + "swc_ecma_parser 0.117.4", "swc_ecma_testing", - "swc_ecma_transforms_base", - "swc_ecma_transforms_optimization", - "swc_ecma_utils", - "swc_ecma_visit", - "swc_node_base", - "swc_timer", + "swc_ecma_transforms_base 0.103.6", + "swc_ecma_transforms_optimization 0.152.3", + "swc_ecma_utils 0.99.4", + "swc_ecma_visit 0.76.5", + "swc_node_base 0.5.5", + "swc_timer 0.15.4", "testing", "tracing", "unicode-id", "walkdir", ] +[[package]] +name = "swc_ecma_minifier" +version = "0.144.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d474a0474eefe107a8d69bbfe18cd334133182129560a32ae13246f576ee93ed" +dependencies = [ + "ahash", + "arrayvec", + "indexmap", + "num-bigint", + "num_cpus", + "once_cell", + "parking_lot", + "rayon", + "regex", + "retain_mut", + "rustc-hash", + "serde", + "serde_json", + "swc_atoms 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_cached 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_config 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_ast 0.90.7 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_codegen 0.121.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_parser 0.117.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_base 0.103.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_optimization 0.152.3 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_utils 0.99.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_visit 0.76.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_timer 0.15.4 (registry+https://github.com/rust-lang/crates.io-index)", + "tracing", + "unicode-id", +] + [[package]] name = "swc_ecma_parser" version = "0.117.4" dependencies = [ "criterion", "either", - "enum_kind", + "enum_kind 0.2.1", "lexical", "num-bigint", "pretty_assertions", "serde", "serde_json", "smallvec", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_visit", - "swc_node_base", + "swc_atoms 0.4.5", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", + "swc_ecma_visit 0.76.5", + "swc_node_base 0.5.5", "testing", "tracing", "typed-arena", "walkdir", ] +[[package]] +name = "swc_ecma_parser" +version = "0.117.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8a8ef64367f4f84c49599c94426254fcc2a4bfbc446c422b6208ee685f72f1b" +dependencies = [ + "either", + "enum_kind 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", + "lexical", + "num-bigint", + "serde", + "smallvec", + "swc_atoms 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_ast 0.90.7 (registry+https://github.com/rust-lang/crates.io-index)", + "tracing", + "typed-arena", +] + [[package]] name = "swc_ecma_preset_env" version = "0.158.3" @@ -3501,33 +3955,58 @@ dependencies = [ "dashmap", "indexmap", "once_cell", - "preset_env_base", + "preset_env_base 0.2.4", "pretty_assertions", "semver 1.0.4", "serde", "serde_json", "st-map", - "string_enum", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_codegen", - "swc_ecma_parser", - "swc_ecma_transforms", - "swc_ecma_utils", - "swc_ecma_visit", + "string_enum 0.3.1", + "swc_atoms 0.4.5", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", + "swc_ecma_codegen 0.121.4", + "swc_ecma_parser 0.117.4", + "swc_ecma_transforms 0.183.3", + "swc_ecma_utils 0.99.4", + "swc_ecma_visit 0.76.5", "testing", ] +[[package]] +name = "swc_ecma_preset_env" +version = "0.158.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d353e3aa1926417582babdfbb9f222d5f277669279e939eb5f9210d67cac2f80" +dependencies = [ + "ahash", + "anyhow", + "dashmap", + "indexmap", + "once_cell", + "preset_env_base 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", + "semver 1.0.4", + "serde", + "serde_json", + "st-map", + "string_enum 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_atoms 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_ast 0.90.7 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms 0.183.3 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_utils 0.99.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_visit 0.76.5 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "swc_ecma_quote" version = "0.32.4" dependencies = [ - "swc_atoms", - "swc_common", - "swc_ecma_ast", + "swc_atoms 0.4.5", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", "swc_ecma_quote_macros", - "swc_ecma_utils", + "swc_ecma_utils 0.99.4", "testing", ] @@ -3539,11 +4018,11 @@ dependencies = [ "pmutil", "proc-macro2", "quote", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_parser", - "swc_macros_common", + "swc_atoms 0.4.5", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", + "swc_ecma_parser 0.117.4", + "swc_macros_common 0.3.6", "syn", ] @@ -3554,10 +4033,10 @@ dependencies = [ "anyhow", "hex", "sha-1", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_codegen", + "swc_atoms 0.4.5", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", + "swc_ecma_codegen 0.121.4", "testing", ] @@ -3567,30 +4046,50 @@ version = "0.183.3" dependencies = [ "pretty_assertions", "sourcemap", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_codegen", - "swc_ecma_parser", - "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_atoms 0.4.5", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", + "swc_ecma_codegen 0.121.4", + "swc_ecma_parser 0.117.4", + "swc_ecma_transforms_base 0.103.6", + "swc_ecma_transforms_compat 0.122.4", + "swc_ecma_transforms_module 0.139.3", + "swc_ecma_transforms_optimization 0.152.3", + "swc_ecma_transforms_proposal 0.130.3", + "swc_ecma_transforms_react 0.141.3", "swc_ecma_transforms_testing", - "swc_ecma_transforms_typescript", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_ecma_transforms_typescript 0.145.3", + "swc_ecma_utils 0.99.4", + "swc_ecma_visit 0.76.5", "tempfile", "testing", ] +[[package]] +name = "swc_ecma_transforms" +version = "0.183.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8176d1490d371bf812d1d4ae92f1a8d0361fae57cc9d198cd1a1d8f2a965374" +dependencies = [ + "swc_atoms 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_ast 0.90.7 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_base 0.103.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_compat 0.122.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_module 0.139.3 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_optimization 0.152.3 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_proposal 0.130.3 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_react 0.141.3 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_typescript 0.145.3 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_utils 0.99.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_visit 0.76.5 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "swc_ecma_transforms_base" version = "0.103.6" dependencies = [ - "better_scoped_tls", + "better_scoped_tls 0.1.0", "bitflags", "criterion", "num_cpus", @@ -3600,29 +4099,67 @@ dependencies = [ "rustc-hash", "serde", "smallvec", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_codegen", - "swc_ecma_parser", - "swc_ecma_transforms_macros", - "swc_ecma_utils", - "swc_ecma_visit", - "swc_node_base", + "swc_atoms 0.4.5", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", + "swc_ecma_codegen 0.121.4", + "swc_ecma_parser 0.117.4", + "swc_ecma_transforms_macros 0.5.0", + "swc_ecma_utils 0.99.4", + "swc_ecma_visit 0.76.5", + "swc_node_base 0.5.5", "testing", "tracing", ] +[[package]] +name = "swc_ecma_transforms_base" +version = "0.103.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdd22a6ac5bd2baa8f171a07a9c41e5d8e599c854769099817be46aef0e2c2e2" +dependencies = [ + "better_scoped_tls 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", + "bitflags", + "num_cpus", + "once_cell", + "phf", + "rayon", + "rustc-hash", + "serde", + "smallvec", + "swc_atoms 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_ast 0.90.7 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_parser 0.117.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_utils 0.99.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_visit 0.76.5 (registry+https://github.com/rust-lang/crates.io-index)", + "tracing", +] + [[package]] name = "swc_ecma_transforms_classes" version = "0.91.4" dependencies = [ - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_transforms_base", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_atoms 0.4.5", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", + "swc_ecma_transforms_base 0.103.6", + "swc_ecma_utils 0.99.4", + "swc_ecma_visit 0.76.5", +] + +[[package]] +name = "swc_ecma_transforms_classes" +version = "0.91.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "628b626272c37957ab2cda24590c25f2064debef55f2d94b50ff94ca87fd7071" +dependencies = [ + "swc_atoms 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_ast 0.90.7 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_base 0.103.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_utils 0.99.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_visit 0.76.5 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -3639,22 +4176,50 @@ dependencies = [ "serde", "serde_json", "smallvec", - "swc_atoms", - "swc_common", - "swc_config", - "swc_ecma_ast", - "swc_ecma_parser", - "swc_ecma_transforms_base", - "swc_ecma_transforms_classes", - "swc_ecma_transforms_macros", + "swc_atoms 0.4.5", + "swc_common 0.27.6", + "swc_config 0.1.1", + "swc_ecma_ast 0.90.7", + "swc_ecma_parser 0.117.4", + "swc_ecma_transforms_base 0.103.6", + "swc_ecma_transforms_classes 0.91.4", + "swc_ecma_transforms_macros 0.5.0", "swc_ecma_transforms_testing", - "swc_ecma_utils", - "swc_ecma_visit", - "swc_trace_macro", + "swc_ecma_utils 0.99.4", + "swc_ecma_visit 0.76.5", + "swc_trace_macro 0.1.2", "testing", "tracing", ] +[[package]] +name = "swc_ecma_transforms_compat" +version = "0.122.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e7d4974b48a7eb7af478824fa0ef582a3700c9c9f495bf23b761432c24f9706" +dependencies = [ + "ahash", + "arrayvec", + "indexmap", + "is-macro", + "num-bigint", + "ordered-float", + "rayon", + "serde", + "smallvec", + "swc_atoms 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_config 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_ast 0.90.7 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_base 0.103.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_classes 0.91.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_macros 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_utils 0.99.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_visit 0.76.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_trace_macro 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "tracing", +] + [[package]] name = "swc_ecma_transforms_macros" version = "0.5.0" @@ -3662,7 +4227,20 @@ dependencies = [ "pmutil", "proc-macro2", "quote", - "swc_macros_common", + "swc_macros_common 0.3.6", + "syn", +] + +[[package]] +name = "swc_ecma_transforms_macros" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebf907935ec5492256b523ae7935a824d9fdc0368dcadc41375bad0dca91cd8b" +dependencies = [ + "pmutil", + "proc-macro2", + "quote", + "swc_macros_common 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", "syn", ] @@ -3681,21 +4259,49 @@ dependencies = [ "regex", "serde", "serde_json", - "swc_atoms", - "swc_cached", - "swc_common", - "swc_ecma_ast", - "swc_ecma_loader", - "swc_ecma_parser", - "swc_ecma_transforms_base", - "swc_ecma_transforms_compat", + "swc_atoms 0.4.5", + "swc_cached 0.3.5", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", + "swc_ecma_loader 0.39.4", + "swc_ecma_parser 0.117.4", + "swc_ecma_transforms_base 0.103.6", + "swc_ecma_transforms_compat 0.122.4", "swc_ecma_transforms_testing", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_ecma_utils 0.99.4", + "swc_ecma_visit 0.76.5", "testing", "tracing", ] +[[package]] +name = "swc_ecma_transforms_module" +version = "0.139.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a6562dd6dec642c90f2ce2d7b327f0349e5cdb5d0d089ca286eb11a691cc1c4" +dependencies = [ + "Inflector", + "ahash", + "anyhow", + "bitflags", + "indexmap", + "is-macro", + "path-clean", + "pathdiff", + "regex", + "serde", + "swc_atoms 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_cached 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_ast 0.90.7 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_loader 0.39.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_parser 0.117.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_base 0.103.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_utils 0.99.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_visit 0.76.5 (registry+https://github.com/rust-lang/crates.io-index)", + "tracing", +] + [[package]] name = "swc_ecma_transforms_optimization" version = "0.152.3" @@ -3707,24 +4313,48 @@ dependencies = [ "rayon", "rustc-hash", "serde_json", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_parser", - "swc_ecma_transforms_base", - "swc_ecma_transforms_compat", - "swc_ecma_transforms_macros", - "swc_ecma_transforms_module", - "swc_ecma_transforms_proposal", - "swc_ecma_transforms_react", + "swc_atoms 0.4.5", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", + "swc_ecma_parser 0.117.4", + "swc_ecma_transforms_base 0.103.6", + "swc_ecma_transforms_compat 0.122.4", + "swc_ecma_transforms_macros 0.5.0", + "swc_ecma_transforms_module 0.139.3", + "swc_ecma_transforms_proposal 0.130.3", + "swc_ecma_transforms_react 0.141.3", "swc_ecma_transforms_testing", - "swc_ecma_transforms_typescript", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_ecma_transforms_typescript 0.145.3", + "swc_ecma_utils 0.99.4", + "swc_ecma_visit 0.76.5", "testing", "tracing", ] +[[package]] +name = "swc_ecma_transforms_optimization" +version = "0.152.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd9647ff9b7bf2846c7816fa074c6d499fe707d9f16f951d78ec144dfafd0457" +dependencies = [ + "ahash", + "dashmap", + "indexmap", + "once_cell", + "rayon", + "rustc-hash", + "serde_json", + "swc_atoms 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_ast 0.90.7 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_parser 0.117.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_base 0.103.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_macros 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_utils 0.99.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_visit 0.76.5 (registry+https://github.com/rust-lang/crates.io-index)", + "tracing", +] + [[package]] name = "swc_ecma_transforms_proposal" version = "0.130.3" @@ -3733,21 +4363,40 @@ dependencies = [ "serde", "serde_json", "smallvec", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_loader", - "swc_ecma_parser", - "swc_ecma_transforms_base", - "swc_ecma_transforms_classes", - "swc_ecma_transforms_compat", - "swc_ecma_transforms_macros", + "swc_atoms 0.4.5", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", + "swc_ecma_loader 0.39.4", + "swc_ecma_parser 0.117.4", + "swc_ecma_transforms_base 0.103.6", + "swc_ecma_transforms_classes 0.91.4", + "swc_ecma_transforms_compat 0.122.4", + "swc_ecma_transforms_macros 0.5.0", "swc_ecma_transforms_testing", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_ecma_utils 0.99.4", + "swc_ecma_visit 0.76.5", "testing", ] +[[package]] +name = "swc_ecma_transforms_proposal" +version = "0.130.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "462240dbb9c3fddb8342bc947e74f5df860f92720449823f0709ffd15ac1711b" +dependencies = [ + "either", + "serde", + "smallvec", + "swc_atoms 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_ast 0.90.7 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_base 0.103.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_classes 0.91.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_macros 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_utils 0.99.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_visit 0.76.5 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "swc_ecma_transforms_react" version = "0.141.3" @@ -3761,23 +4410,50 @@ dependencies = [ "regex", "serde", "sha-1", - "string_enum", - "swc_atoms", - "swc_common", - "swc_config", - "swc_ecma_ast", - "swc_ecma_codegen", - "swc_ecma_parser", - "swc_ecma_transforms_base", - "swc_ecma_transforms_compat", - "swc_ecma_transforms_macros", - "swc_ecma_transforms_module", + "string_enum 0.3.1", + "swc_atoms 0.4.5", + "swc_common 0.27.6", + "swc_config 0.1.1", + "swc_ecma_ast 0.90.7", + "swc_ecma_codegen 0.121.4", + "swc_ecma_parser 0.117.4", + "swc_ecma_transforms_base 0.103.6", + "swc_ecma_transforms_compat 0.122.4", + "swc_ecma_transforms_macros 0.5.0", + "swc_ecma_transforms_module 0.139.3", "swc_ecma_transforms_testing", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_ecma_utils 0.99.4", + "swc_ecma_visit 0.76.5", "testing", ] +[[package]] +name = "swc_ecma_transforms_react" +version = "0.141.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "947cdceaf6f0108d6253d02848436131061f16861df417e81b44c227285d952c" +dependencies = [ + "ahash", + "base64 0.13.0", + "dashmap", + "indexmap", + "once_cell", + "rayon", + "regex", + "serde", + "sha-1", + "string_enum 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_atoms 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_config 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_ast 0.90.7 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_parser 0.117.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_base 0.103.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_macros 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_utils 0.99.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_visit 0.76.5 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "swc_ecma_transforms_testing" version = "0.105.4" @@ -3788,14 +4464,14 @@ dependencies = [ "serde", "serde_json", "sha-1", - "swc_common", - "swc_ecma_ast", - "swc_ecma_codegen", - "swc_ecma_parser", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", + "swc_ecma_codegen 0.121.4", + "swc_ecma_parser 0.117.4", "swc_ecma_testing", - "swc_ecma_transforms_base", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_ecma_transforms_base 0.103.6", + "swc_ecma_utils 0.99.4", + "swc_ecma_visit 0.76.5", "tempfile", "testing", ] @@ -3806,21 +4482,37 @@ version = "0.145.3" dependencies = [ "criterion", "serde", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_codegen", - "swc_ecma_parser", - "swc_ecma_transforms_base", - "swc_ecma_transforms_compat", - "swc_ecma_transforms_proposal", - "swc_ecma_transforms_react", + "swc_atoms 0.4.5", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", + "swc_ecma_codegen 0.121.4", + "swc_ecma_parser 0.117.4", + "swc_ecma_transforms_base 0.103.6", + "swc_ecma_transforms_compat 0.122.4", + "swc_ecma_transforms_proposal 0.130.3", + "swc_ecma_transforms_react 0.141.3", "swc_ecma_transforms_testing", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_ecma_utils 0.99.4", + "swc_ecma_visit 0.76.5", "testing", ] +[[package]] +name = "swc_ecma_transforms_typescript" +version = "0.145.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f61975f11d397454db9f5046c3224813c95804e5684933c5cbf6324a4d9ff5c" +dependencies = [ + "serde", + "swc_atoms 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_ast 0.90.7 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_base 0.103.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms_react 0.141.3 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_utils 0.99.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_visit 0.76.5 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "swc_ecma_utils" version = "0.99.4" @@ -3828,11 +4520,28 @@ dependencies = [ "indexmap", "once_cell", "rayon", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_parser", - "swc_ecma_visit", + "swc_atoms 0.4.5", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", + "swc_ecma_parser 0.117.4", + "swc_ecma_visit 0.76.5", + "tracing", + "unicode-id", +] + +[[package]] +name = "swc_ecma_utils" +version = "0.99.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6494149979ae31a79d8a423c5da4aae9ac8ff0195d9e0135ccf569bc1a1d0d3f" +dependencies = [ + "indexmap", + "once_cell", + "rayon", + "swc_atoms 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_ast 0.90.7 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_visit 0.76.5 (registry+https://github.com/rust-lang/crates.io-index)", "tracing", "unicode-id", ] @@ -3843,10 +4552,24 @@ version = "0.76.5" dependencies = [ "num-bigint", "serde", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_visit", + "swc_atoms 0.4.5", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", + "swc_visit 0.5.2", + "tracing", +] + +[[package]] +name = "swc_ecma_visit" +version = "0.76.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d998049fbf890e6674c7c818683b3eed53d993aac7156970b03b343659aeef75" +dependencies = [ + "num-bigint", + "swc_atoms 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_ast 0.90.7 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_visit 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", "tracing", ] @@ -3854,16 +4577,16 @@ dependencies = [ name = "swc_ecmascript" version = "0.189.3" dependencies = [ - "swc_ecma_ast", - "swc_ecma_codegen", + "swc_ecma_ast 0.90.7", + "swc_ecma_codegen 0.121.4", "swc_ecma_dep_graph", - "swc_ecma_minifier", - "swc_ecma_parser", - "swc_ecma_preset_env", + "swc_ecma_minifier 0.144.3", + "swc_ecma_parser 0.117.4", + "swc_ecma_preset_env 0.158.3", "swc_ecma_quote", - "swc_ecma_transforms", - "swc_ecma_utils", - "swc_ecma_visit", + "swc_ecma_transforms 0.183.3", + "swc_ecma_utils 0.99.4", + "swc_ecma_visit 0.76.5", ] [[package]] @@ -3876,6 +4599,18 @@ dependencies = [ "syn", ] +[[package]] +name = "swc_eq_ignore_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c20468634668c2bbab581947bb8c75c97158d5a6959f4ba33df20983b20b4f6" +dependencies = [ + "pmutil", + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "swc_error_reporters" version = "0.11.4" @@ -3884,18 +4619,31 @@ dependencies = [ "miette", "once_cell", "parking_lot", - "swc_common", + "swc_common 0.27.6", +] + +[[package]] +name = "swc_error_reporters" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb0171a43e5d90cdea0efbf5844e3780f8650a22e4152b0c49549387d5f6b3da" +dependencies = [ + "anyhow", + "miette", + "once_cell", + "parking_lot", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "swc_estree_ast" version = "0.17.4" dependencies = [ - "better_scoped_tls", + "better_scoped_tls 0.1.0", "serde", "serde_json", - "swc_atoms", - "swc_common", + "swc_atoms 0.4.5", + "swc_common 0.27.6", ] [[package]] @@ -3910,16 +4658,16 @@ dependencies = [ "rayon", "serde", "serde_json", - "swc", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_parser", - "swc_ecma_transforms", - "swc_ecma_utils", - "swc_ecma_visit", + "swc 0.214.5", + "swc_atoms 0.4.5", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", + "swc_ecma_parser 0.117.4", + "swc_ecma_transforms 0.183.3", + "swc_ecma_utils 0.99.4", + "swc_ecma_visit 0.76.5", "swc_estree_ast", - "swc_node_comments", + "swc_node_comments 0.14.4", "testing", "walkdir", ] @@ -3931,7 +4679,19 @@ dependencies = [ "ahash", "indexmap", "petgraph", - "swc_common", + "swc_common 0.27.6", +] + +[[package]] +name = "swc_fast_graph" +version = "0.15.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7b0ff4fa987b8722801a7789563b8cbc71058027f2f2cc4e7e95876a0cc4960" +dependencies = [ + "ahash", + "indexmap", + "petgraph", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -3941,11 +4701,24 @@ dependencies = [ "ahash", "auto_impl", "petgraph", - "swc_fast_graph", + "swc_fast_graph 0.15.4", "testing", "tracing", ] +[[package]] +name = "swc_graph_analyzer" +version = "0.16.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba02e0726abddde48fecef483fb0b067c88a6c0da736b91d3ef424be3cfcaa39" +dependencies = [ + "ahash", + "auto_impl", + "petgraph", + "swc_fast_graph 0.15.4 (registry+https://github.com/rust-lang/crates.io-index)", + "tracing", +] + [[package]] name = "swc_html" version = "0.59.0" @@ -3965,9 +4738,9 @@ dependencies = [ "is-macro", "rkyv", "serde", - "string_enum", - "swc_atoms", - "swc_common", + "string_enum 0.3.1", + "swc_atoms 0.4.5", + "swc_common 0.27.6", ] [[package]] @@ -3977,8 +4750,8 @@ dependencies = [ "auto_impl", "bitflags", "rustc-hash", - "swc_atoms", - "swc_common", + "swc_atoms 0.4.5", + "swc_common 0.27.6", "swc_html_ast", "swc_html_codegen_macros", "swc_html_parser", @@ -3994,7 +4767,7 @@ dependencies = [ "pmutil", "proc-macro2", "quote", - "swc_macros_common", + "swc_macros_common 0.3.6", "syn", ] @@ -4005,19 +4778,19 @@ dependencies = [ "once_cell", "serde", "serde_json", - "swc_atoms", - "swc_cached", - "swc_common", + "swc_atoms 0.4.5", + "swc_cached 0.3.5", + "swc_common 0.27.6", "swc_css_ast", "swc_css_codegen", "swc_css_minifier", "swc_css_parser", - "swc_ecma_ast", - "swc_ecma_codegen", - "swc_ecma_minifier", - "swc_ecma_parser", - "swc_ecma_transforms_base", - "swc_ecma_visit", + "swc_ecma_ast 0.90.7", + "swc_ecma_codegen 0.121.4", + "swc_ecma_minifier 0.144.3", + "swc_ecma_parser 0.117.4", + "swc_ecma_transforms_base 0.103.6", + "swc_ecma_visit 0.76.5", "swc_html_ast", "swc_html_codegen", "swc_html_parser", @@ -4033,12 +4806,12 @@ dependencies = [ "criterion", "serde", "serde_json", - "swc_atoms", - "swc_common", + "swc_atoms 0.4.5", + "swc_common 0.27.6", "swc_html_ast", "swc_html_utils", "swc_html_visit", - "swc_node_base", + "swc_node_base 0.5.5", "testing", ] @@ -4049,7 +4822,7 @@ dependencies = [ "once_cell", "serde", "serde_json", - "swc_common", + "swc_common 0.27.6", ] [[package]] @@ -4057,10 +4830,10 @@ name = "swc_html_visit" version = "0.24.4" dependencies = [ "serde", - "swc_atoms", - "swc_common", + "swc_atoms 0.4.5", + "swc_common 0.27.6", "swc_html_ast", - "swc_visit", + "swc_visit 0.5.2", ] [[package]] @@ -4073,6 +4846,18 @@ dependencies = [ "syn", ] +[[package]] +name = "swc_macros_common" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4be988307882648d9bc7c71a6a73322b7520ef0211e920489a98f8391d8caa2" +dependencies = [ + "pmutil", + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "swc_node_base" version = "0.5.5" @@ -4081,6 +4866,16 @@ dependencies = [ "tikv-jemallocator", ] +[[package]] +name = "swc_node_base" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2771d2e2fe236364f95a4c4e29e41dd82592d047377337401593cade75ef878a" +dependencies = [ + "mimalloc-rust", + "tikv-jemallocator", +] + [[package]] name = "swc_node_bundler" version = "0.0.1" @@ -4093,31 +4888,72 @@ dependencies = [ "regex", "serde", "serde_json", - "string_enum", - "swc", - "swc_atoms", - "swc_bundler", - "swc_common", - "swc_ecma_ast", - "swc_ecma_codegen", - "swc_ecma_loader", - "swc_ecma_parser", - "swc_ecma_transforms", - "swc_ecma_utils", - "swc_ecma_visit", - "swc_node_base", + "string_enum 0.3.1", + "swc 0.214.5", + "swc_atoms 0.4.5", + "swc_bundler 0.177.3", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", + "swc_ecma_codegen 0.121.4", + "swc_ecma_loader 0.39.4", + "swc_ecma_parser 0.117.4", + "swc_ecma_transforms 0.183.3", + "swc_ecma_utils 0.99.4", + "swc_ecma_visit 0.76.5", + "swc_node_base 0.5.5", "testing", "tracing", ] +[[package]] +name = "swc_node_bundler" +version = "0.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ca3cb2b36af6d307da8f57b0f29e6001a4c004479adef100d11105a368e802d" +dependencies = [ + "anyhow", + "dashmap", + "is-macro", + "once_cell", + "regex", + "serde", + "serde_json", + "string_enum 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", + "swc 0.214.4", + "swc_atoms 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_bundler 0.177.3 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_ast 0.90.7 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_codegen 0.121.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_loader 0.39.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_parser 0.117.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_transforms 0.183.3 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_utils 0.99.4 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_visit 0.76.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_node_base 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", + "tracing", +] + [[package]] name = "swc_node_comments" version = "0.14.4" dependencies = [ "ahash", "dashmap", - "swc_atoms", - "swc_common", + "swc_atoms 0.4.5", + "swc_common 0.27.6", +] + +[[package]] +name = "swc_node_comments" +version = "0.14.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "809a8d29020a11b0171f033110c9d0bd260b8797429f9e26672afd8353a14cce" +dependencies = [ + "ahash", + "dashmap", + "swc_atoms 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -4128,7 +4964,22 @@ dependencies = [ "napi", "serde", "serde_json", - "swc_node_base", + "swc_node_base 0.5.5", + "tracing", + "tracing-subscriber", +] + +[[package]] +name = "swc_nodejs_common" +version = "0.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a61f704db0d5bbf239312cf2bfdd47ad7c497e407726deff80be2ea4021719c4" +dependencies = [ + "anyhow", + "napi", + "serde", + "serde_json", + "swc_node_base 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", "tracing", "tracing-subscriber", ] @@ -4142,7 +4993,7 @@ dependencies = [ [[package]] name = "swc_plugin_macro" -version = "0.9.2" +version = "0.9.3" dependencies = [ "proc-macro2", "quote", @@ -4153,18 +5004,53 @@ dependencies = [ name = "swc_plugin_proxy" version = "0.18.5" dependencies = [ - "better_scoped_tls", + "better_scoped_tls 0.1.0", "bytecheck", "rkyv", - "swc_common", - "swc_ecma_ast", - "swc_trace_macro", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", + "swc_trace_macro 0.1.2", + "tracing", +] + +[[package]] +name = "swc_plugin_proxy" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52c3e4ee90cbce03fbdd31f5a0b4d3b41b1d3afc5e384c828ac05fd7d236cce9" +dependencies = [ + "better_scoped_tls 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", + "bytecheck", + "rkyv", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_ast 0.90.7 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_trace_macro 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "tracing", ] [[package]] name = "swc_plugin_runner" version = "0.71.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44947b7c140a8b0d45072b6669ce1dc53f7e2198bcdb1f09c7f41bd4d774396c" +dependencies = [ + "anyhow", + "once_cell", + "parking_lot", + "serde", + "serde_json", + "swc_common 0.27.6 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_ecma_ast 0.90.7 (registry+https://github.com/rust-lang/crates.io-index)", + "swc_plugin_proxy 0.18.5 (registry+https://github.com/rust-lang/crates.io-index)", + "tracing", + "wasmer", + "wasmer-cache", + "wasmer-wasi", +] + +[[package]] +name = "swc_plugin_runner" +version = "0.71.7" dependencies = [ "anyhow", "criterion", @@ -4172,14 +5058,14 @@ dependencies = [ "parking_lot", "serde", "serde_json", - "swc_atoms", - "swc_common", - "swc_ecma_ast", - "swc_ecma_loader", - "swc_ecma_parser", - "swc_ecma_visit", - "swc_node_base", - "swc_plugin_proxy", + "swc_atoms 0.4.5", + "swc_common 0.27.6", + "swc_ecma_ast 0.90.7", + "swc_ecma_loader 0.39.4", + "swc_ecma_parser 0.117.4", + "swc_ecma_visit 0.76.5", + "swc_node_base 0.5.5", + "swc_plugin_proxy 0.18.5", "testing", "tracing", "wasmer", @@ -4199,6 +5085,15 @@ dependencies = [ "tracing", ] +[[package]] +name = "swc_timer" +version = "0.15.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f94c875f92763879d638174414a94762cd8f865d237ad75b34094c18395bc796" +dependencies = [ + "tracing", +] + [[package]] name = "swc_trace_macro" version = "0.1.2" @@ -4208,12 +5103,33 @@ dependencies = [ "syn", ] +[[package]] +name = "swc_trace_macro" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4795c8d23e0de62eef9cac0a20ae52429ee2ffc719768e838490f195b7d7267" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "swc_visit" version = "0.5.2" dependencies = [ "either", - "swc_visit_macros", + "swc_visit_macros 0.5.3", +] + +[[package]] +name = "swc_visit" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b754ef01f2614eb469fd5215789bfd319566a3bf1033056d7a7bfb5a3c9a69f5" +dependencies = [ + "either", + "swc_visit_macros 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -4224,7 +5140,21 @@ dependencies = [ "pmutil", "proc-macro2", "quote", - "swc_macros_common", + "swc_macros_common 0.3.6", + "syn", +] + +[[package]] +name = "swc_visit_macros" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c230bcd129d1fbcd1decd8b43cccd613fda11c895f7c04d6c966231dbc1959af" +dependencies = [ + "Inflector", + "pmutil", + "proc-macro2", + "quote", + "swc_macros_common 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", "syn", ] @@ -4244,9 +5174,9 @@ version = "0.2.4" dependencies = [ "is-macro", "serde", - "string_enum", - "swc_atoms", - "swc_common", + "string_enum 0.3.1", + "swc_atoms 0.4.5", + "swc_common 0.27.6", ] [[package]] @@ -4256,8 +5186,8 @@ dependencies = [ "auto_impl", "bitflags", "rustc-hash", - "swc_atoms", - "swc_common", + "swc_atoms 0.4.5", + "swc_common 0.27.6", "swc_xml_ast", "swc_xml_codegen_macros", "swc_xml_parser", @@ -4272,7 +5202,7 @@ dependencies = [ "pmutil", "proc-macro2", "quote", - "swc_macros_common", + "swc_macros_common 0.3.6", "syn", ] @@ -4283,9 +5213,9 @@ dependencies = [ "criterion", "serde", "serde_json", - "swc_atoms", - "swc_common", - "swc_node_base", + "swc_atoms 0.4.5", + "swc_common 0.27.6", + "swc_node_base 0.5.5", "swc_xml_ast", "swc_xml_visit", "testing", @@ -4296,9 +5226,9 @@ name = "swc_xml_visit" version = "0.2.5" dependencies = [ "serde", - "swc_atoms", - "swc_common", - "swc_visit", + "swc_atoms 0.4.5", + "swc_common 0.27.6", + "swc_visit 0.5.2", "swc_xml_ast", ] @@ -4372,8 +5302,8 @@ dependencies = [ "pretty_assertions", "regex", "serde_json", - "swc_common", - "swc_error_reporters", + "swc_common 0.27.6", + "swc_error_reporters 0.11.4", "testing_macros", "tracing", "tracing-subscriber", diff --git a/crates/binding_core_node/Cargo.toml b/crates/binding_core_node/Cargo.toml index a2fe3b18169..13aab30c573 100644 --- a/crates/binding_core_node/Cargo.toml +++ b/crates/binding_core_node/Cargo.toml @@ -48,7 +48,7 @@ tracing-chrome = "0.5.0" tracing-futures = "0.2.5" tracing-subscriber = { version = "0.3.9", features = ["env-filter"] } -swc_core = { path = "../swc_core", features = [ +swc_core = { version = "0.7.5", features = [ "ast", "common_concurrent", "bundler", diff --git a/crates/binding_core_wasm/Cargo.toml b/crates/binding_core_wasm/Cargo.toml index ef2a8d3bde6..7ffdb527f55 100644 --- a/crates/binding_core_wasm/Cargo.toml +++ b/crates/binding_core_wasm/Cargo.toml @@ -20,7 +20,7 @@ swc_v2 = [] plugin = ["swc_core/plugin_transform_host_js"] [dependencies] -swc_core = { path = "../swc_core", features = [ +swc_core = { version = "0.7.5", features = [ "common_perf", "binding_macro_wasm", ] } diff --git a/crates/swc/Cargo.toml b/crates/swc/Cargo.toml index 262e7830823..cf745190a73 100644 --- a/crates/swc/Cargo.toml +++ b/crates/swc/Cargo.toml @@ -9,7 +9,7 @@ include = ["Cargo.toml", "src/**/*.rs"] license = "Apache-2.0" name = "swc" repository = "https://github.com/swc-project/swc.git" -version = "0.214.4" +version = "0.214.5" [lib] bench = false @@ -90,7 +90,7 @@ swc_ecma_visit = { version = "0.76.5", path = "../swc_ecma_visit" } swc_error_reporters = { version = "0.11.4", path = "../swc_error_reporters" } swc_node_comments = { version = "0.14.4", path = "../swc_node_comments" } swc_plugin_proxy = { version = "0.18.5", path = "../swc_plugin_proxy", optional = true } -swc_plugin_runner = { version = "0.71.6", path = "../swc_plugin_runner", optional = true, default-features = false } +swc_plugin_runner = { version = "0.71.7", path = "../swc_plugin_runner", optional = true, default-features = false } swc_timer = { version = "0.15.4", path = "../swc_timer" } swc_visit = { version = "0.5.2", path = "../swc_visit" } tracing = "0.1.32" diff --git a/crates/swc_cli/Cargo.toml b/crates/swc_cli/Cargo.toml index 5fd0c917f30..9e18628f405 100644 --- a/crates/swc_cli/Cargo.toml +++ b/crates/swc_cli/Cargo.toml @@ -26,7 +26,7 @@ rayon = "1" relative-path = "1.6.1" serde = { version = "1", features = ["derive"] } serde_json = { version = "1", features = ["unbounded_depth"] } -swc_core = { version = "0.7.4", path = "../swc_core", features = [ +swc_core = { version = "0.7.5", features = [ "trace_macro", "common_concurrent", "base", diff --git a/crates/swc_common/Cargo.toml b/crates/swc_common/Cargo.toml index 4d1702d4203..2b704ea9e83 100644 --- a/crates/swc_common/Cargo.toml +++ b/crates/swc_common/Cargo.toml @@ -24,8 +24,8 @@ perf = ["parking_lot"] plugin-base = ["anyhow", "rkyv-impl", "diagnostic-serde"] plugin-mode = ["plugin-base"] plugin-rt = ["plugin-base"] -plugin_transform_schema_v1 = [] -plugin_transform_schema_vtest = [] +plugin_transform_schema_v1 = ["plugin-base"] +plugin_transform_schema_vtest = ["plugin-base"] rkyv-impl = ["rkyv", "bytecheck", "swc_atoms/rkyv-impl"] tty-emitter = ["atty", "termcolor"] diff --git a/crates/swc_common/src/plugin/mod.rs b/crates/swc_common/src/plugin/mod.rs index 9a51603fd3e..dcdb6f82386 100644 --- a/crates/swc_common/src/plugin/mod.rs +++ b/crates/swc_common/src/plugin/mod.rs @@ -2,3 +2,25 @@ pub mod metadata; #[cfg(feature = "plugin-base")] #[cfg_attr(docsrs, doc(cfg(feature = "plugin-base")))] pub mod serialized; + +/** + * Compile-time version constant for the AST struct schema's version. + * + * NOTE: this is for PARTIAL compatibility only, supporting if AST struct + * adds new properties without changing / removing existing properties. + * + * - When adding a new properties to the AST struct: + * 1. Create a new feature flag in cargo.toml + * 2. Create a new schema version with new feature flag. + * 3. Create a new AST struct with compile time feature flag with newly + * added properties. Previous struct should remain with existing feature + * flag, or add previous latest feature flag. + * + * - When removing, or changing existing properties in the AST struct: TBD + */ +#[cfg(feature = "plugin_transform_schema_v1")] +pub const PLUGIN_TRANSFORM_AST_SCHEMA_VERSION: u32 = 1; + +// Reserved for the testing purpose. +#[cfg(feature = "plugin_transform_schema_vtest")] +pub const PLUGIN_TRANSFORM_AST_SCHEMA_VERSION: u32 = u32::MAX - 1; diff --git a/crates/swc_common/src/plugin/serialized.rs b/crates/swc_common/src/plugin/serialized.rs index 272204e4e90..e3b29d869c5 100644 --- a/crates/swc_common/src/plugin/serialized.rs +++ b/crates/swc_common/src/plugin/serialized.rs @@ -3,28 +3,6 @@ use std::any::type_name; use anyhow::Error; use rkyv::Deserialize; -/** - * Compile-time version constant for the AST struct schema's version. - * - * NOTE: this is for PARTIAL compatibility only, supporting if AST struct - * adds new properties without changing / removing existing properties. - * - * - When adding a new properties to the AST struct: - * 1. Create a new feature flag in cargo.toml - * 2. Create a new schema version with new feature flag. - * 3. Create a new AST struct with compile time feature flag with newly - * added properties. Previous struct should remain with existing feature - * flag, or add previous latest feature flag. - * - * - When removing, or changing existing properties in the AST struct: TBD - */ -#[cfg(feature = "plugin_transform_schema_v1")] -pub const PLUGIN_TRANSFORM_AST_SCHEMA_VERSION: u32 = 1; - -// Reserved for the testing purpose. -#[cfg(feature = "plugin_transform_schema_vtest")] -pub const PLUGIN_TRANSFORM_AST_SCHEMA_VERSION: u32 = u32::MAX - 1; - #[derive(Debug, Clone, PartialEq, Eq)] #[non_exhaustive] #[cfg_attr( diff --git a/crates/swc_core/Cargo.toml b/crates/swc_core/Cargo.toml index 4c3d7e2d772..21a30e1aed3 100644 --- a/crates/swc_core/Cargo.toml +++ b/crates/swc_core/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_core" repository = "https://github.com/swc-project/swc.git" -version = "0.7.5" +version = "0.7.6" [package.metadata.docs.rs] features = [ "common_perf", @@ -225,7 +225,7 @@ wasmer-wasi = { optional = true, version = "2.3.0", default-features = false } # swc_* dependencies binding_macros = { optional = true, version = "0.2.3", path = "../binding_macros" } -swc = { optional = true, version = "0.214.4", path = "../swc" } +swc = { optional = true, version = "0.214.5", path = "../swc" } swc_atoms = { optional = true, version = "0.4.5", path = "../swc_atoms" } swc_bundler = { optional = true, version = "0.177.3", path = "../swc_bundler" } swc_common = { optional = true, version = "0.27.6", path = "../swc_common" } @@ -241,11 +241,11 @@ swc_node_base = { optional = true, version = "0.5.5", path = "../s swc_node_bundler = { optional = true, version = "0.0.1", path = "../swc_node_bundler" } swc_nodejs_common = { optional = true, version = "0.0.1", path = "../swc_nodejs_common" } swc_plugin = { optional = true, version = "0.89.0", path = "../swc_plugin" } -swc_plugin_macro = { optional = true, version = "0.9.2", path = "../swc_plugin_macro" } +swc_plugin_macro = { optional = true, version = "0.9.3", path = "../swc_plugin_macro" } swc_plugin_proxy = { optional = true, version = "0.18.5", path = "../swc_plugin_proxy" } swc_trace_macro = { optional = true, version = "0.1.2", path = "../swc_trace_macro" } # TODO: eventually swc_plugin_runner needs to remove default features -swc_plugin_runner = { optional = true, version = "0.71.6", path = "../swc_plugin_runner", default-features = false } +swc_plugin_runner = { optional = true, version = "0.71.7", path = "../swc_plugin_runner", default-features = false } [dev-dependencies] testing = { version = "0.29.4", path = "../testing" } diff --git a/crates/swc_plugin_macro/Cargo.toml b/crates/swc_plugin_macro/Cargo.toml index bb0065d73e3..fef75ec5619 100644 --- a/crates/swc_plugin_macro/Cargo.toml +++ b/crates/swc_plugin_macro/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" license = "Apache-2.0" name = "swc_plugin_macro" repository = "https://github.com/swc-project/swc.git" -version = "0.9.2" +version = "0.9.3" [lib] bench = false diff --git a/crates/swc_plugin_macro/src/lib.rs b/crates/swc_plugin_macro/src/lib.rs index 3129b6c7ad6..516088f7834 100644 --- a/crates/swc_plugin_macro/src/lib.rs +++ b/crates/swc_plugin_macro/src/lib.rs @@ -81,7 +81,7 @@ fn handle_func(func: ItemFn) -> TokenStream { #[no_mangle] pub fn #transform_schema_version_ident() -> u32 { - swc_core::common::plugin::serialized::PLUGIN_TRANSFORM_AST_SCHEMA_VERSION + swc_core::common::plugin::PLUGIN_TRANSFORM_AST_SCHEMA_VERSION } // Macro to allow compose plugin's transform function without manual pointer operation. diff --git a/crates/swc_plugin_runner/Cargo.toml b/crates/swc_plugin_runner/Cargo.toml index 16e3fe9a408..bfac8fff891 100644 --- a/crates/swc_plugin_runner/Cargo.toml +++ b/crates/swc_plugin_runner/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_plugin_runner" repository = "https://github.com/swc-project/swc.git" -version = "0.71.6" +version = "0.71.7" [lib] bench = false diff --git a/crates/swc_plugin_runner/src/transform_executor.rs b/crates/swc_plugin_runner/src/transform_executor.rs index f00db7ca063..eb8acbc273c 100644 --- a/crates/swc_plugin_runner/src/transform_executor.rs +++ b/crates/swc_plugin_runner/src/transform_executor.rs @@ -2,10 +2,15 @@ use std::sync::Arc; use anyhow::{anyhow, Error}; use parking_lot::Mutex; +#[cfg(any( + feature = "plugin_transform_schema_v1", + feature = "plugin_transform_schema_vtest" +))] +use swc_common::plugin::PLUGIN_TRANSFORM_AST_SCHEMA_VERSION; use swc_common::{ plugin::{ metadata::TransformPluginMetadataContext, - serialized::{PluginError, PluginSerializedBytes, PLUGIN_TRANSFORM_AST_SCHEMA_VERSION}, + serialized::{PluginError, PluginSerializedBytes}, }, SourceMap, }; @@ -18,6 +23,13 @@ pub struct TransformExecutor { // Main transform interface plugin exports exported_plugin_transform: wasmer::NativeFunc<(i32, i32, u32, i32), i32>, // Schema version interface exports + #[cfg_attr( + not(any( + feature = "plugin_transform_schema_v1", + feature = "plugin_transform_schema_vtest" + )), + allow(unused) + )] exported_plugin_transform_schema_version: wasmer::NativeFunc<(), u32>, // `__free` function automatically exported via swc_plugin sdk to allow deallocation in guest // memory space @@ -127,10 +139,13 @@ impl TransformExecutor { * Host should appropriately handle if plugin is not compatible to the * current runtime. */ + #[allow(unreachable_code)] pub fn is_transform_schema_compatible(&self) -> Result { - let plugin_schema_version = self.exported_plugin_transform_schema_version.call(); - - match plugin_schema_version { + #[cfg(any( + feature = "plugin_transform_schema_v1", + feature = "plugin_transform_schema_vtest" + ))] + return match self.exported_plugin_transform_schema_version.call() { Ok(plugin_schema_version) => { let host_schema_version = PLUGIN_TRANSFORM_AST_SCHEMA_VERSION; @@ -142,7 +157,16 @@ impl TransformExecutor { } } Err(e) => Err(anyhow!("Failed to call plugin's schema version: {}", e)), - } + }; + + #[cfg(not(all( + feature = "plugin_transform_schema_v1", + feature = "plugin_transform_schema_vtest" + )))] + anyhow::bail!( + "Plugin runner cannot detect plugin's schema version. Ensure host is compiled with \ + proper versions" + ) } #[tracing::instrument(level = "info", skip_all)] diff --git a/crates/swc_plugin_runner/tests/fixture/swc_internal_plugin/Cargo.lock b/crates/swc_plugin_runner/tests/fixture/swc_internal_plugin/Cargo.lock index 46928ef40ec..cde63f6302f 100644 --- a/crates/swc_plugin_runner/tests/fixture/swc_internal_plugin/Cargo.lock +++ b/crates/swc_plugin_runner/tests/fixture/swc_internal_plugin/Cargo.lock @@ -1219,7 +1219,7 @@ dependencies = [ [[package]] name = "swc_core" -version = "0.7.5" +version = "0.7.6" dependencies = [ "once_cell", "swc_atoms",