diff --git a/Cargo.lock b/Cargo.lock index 174003b3a0ca..93c2b65a2921 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1831,7 +1831,6 @@ checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" dependencies = [ "autocfg", "hashbrown 0.12.3", - "rayon", "serde", ] @@ -1843,6 +1842,8 @@ checksum = "8adf3ddd720272c6ea8bf59463c04e0f93d0bbf7c5439b691bca2987e0270897" dependencies = [ "equivalent", "hashbrown 0.14.1", + "rayon", + "serde", ] [[package]] @@ -3795,7 +3796,7 @@ dependencies = [ "criterion", "dashmap", "either", - "indexmap 1.9.3", + "indexmap 2.0.2", "jsonc-parser", "lru", "napi", @@ -3862,7 +3863,7 @@ dependencies = [ "crc", "dashmap", "hex", - "indexmap 1.9.3", + "indexmap 2.0.2", "is-macro", "ntest", "once_cell", @@ -3994,7 +3995,7 @@ dependencies = [ name = "swc_config" version = "0.1.7" dependencies = [ - "indexmap 1.9.3", + "indexmap 2.0.2", "serde", "serde_json", "swc_config_macro", @@ -4335,7 +4336,7 @@ name = "swc_ecma_compat_es2015" version = "0.1.52" dependencies = [ "arrayvec", - "indexmap 1.9.3", + "indexmap 2.0.2", "is-macro", "serde", "serde_derive", @@ -4553,7 +4554,7 @@ dependencies = [ "arrayvec", "backtrace", "criterion", - "indexmap 1.9.3", + "indexmap 2.0.2", "num-bigint", "num_cpus", "once_cell", @@ -4620,7 +4621,7 @@ dependencies = [ "anyhow", "criterion", "dashmap", - "indexmap 1.9.3", + "indexmap 2.0.2", "once_cell", "preset_env_base", "pretty_assertions", @@ -4711,7 +4712,7 @@ dependencies = [ "better_scoped_tls", "bitflags 2.3.2", "criterion", - "indexmap 1.9.3", + "indexmap 2.0.2", "once_cell", "phf", "rayon", @@ -4748,7 +4749,7 @@ name = "swc_ecma_transforms_compat" version = "0.160.57" dependencies = [ "arrayvec", - "indexmap 1.9.3", + "indexmap 2.0.2", "is-macro", "num-bigint", "rayon", @@ -4800,7 +4801,7 @@ dependencies = [ "Inflector", "anyhow", "bitflags 2.3.2", - "indexmap 1.9.3", + "indexmap 2.0.2", "is-macro", "path-clean", "pathdiff", @@ -4827,7 +4828,7 @@ name = "swc_ecma_transforms_optimization" version = "0.195.64" dependencies = [ "dashmap", - "indexmap 1.9.3", + "indexmap 2.0.2", "once_cell", "petgraph", "rayon", @@ -4882,7 +4883,7 @@ version = "0.180.62" dependencies = [ "base64", "dashmap", - "indexmap 1.9.3", + "indexmap 2.0.2", "once_cell", "rayon", "serde", @@ -4954,7 +4955,7 @@ dependencies = [ name = "swc_ecma_usage_analyzer" version = "0.20.36" dependencies = [ - "indexmap 1.9.3", + "indexmap 2.0.2", "rustc-hash", "swc_atoms", "swc_common", @@ -4969,7 +4970,7 @@ dependencies = [ name = "swc_ecma_utils" version = "0.124.35" dependencies = [ - "indexmap 1.9.3", + "indexmap 2.0.2", "num_cpus", "once_cell", "rayon", @@ -5074,7 +5075,7 @@ dependencies = [ name = "swc_fast_graph" version = "0.21.10" dependencies = [ - "indexmap 1.9.3", + "indexmap 2.0.2", "petgraph", "rustc-hash", "swc_common", diff --git a/crates/swc/Cargo.toml b/crates/swc/Cargo.toml index 0ed645cda4af..b8324b42c466 100644 --- a/crates/swc/Cargo.toml +++ b/crates/swc/Cargo.toml @@ -52,7 +52,7 @@ anyhow = "1" base64 = "0.21.0" dashmap = "5.4.0" either = "1" -indexmap = { version = "1.9.3", features = ["serde"] } +indexmap = { version = "2.0.0", features = ["serde"] } jsonc-parser = { version = "0.21.0", features = ["serde"] } lru = "0.10.0" once_cell = "1.18.0" diff --git a/crates/swc_bundler/Cargo.toml b/crates/swc_bundler/Cargo.toml index 6f1baec9fea8..245dd0bddb0a 100644 --- a/crates/swc_bundler/Cargo.toml +++ b/crates/swc_bundler/Cargo.toml @@ -27,7 +27,7 @@ default = [] anyhow = "1" crc = "2.1.0" dashmap = { version = "5.4.0", optional = true } -indexmap = "1.9.3" +indexmap = "2.0.0" is-macro = "0.3.0" once_cell = "1.18.0" parking_lot = "0.12.1" diff --git a/crates/swc_config/Cargo.toml b/crates/swc_config/Cargo.toml index 7ef420953e2e..5a5a96da146d 100644 --- a/crates/swc_config/Cargo.toml +++ b/crates/swc_config/Cargo.toml @@ -9,7 +9,7 @@ repository = "https://github.com/swc-project/swc.git" version = "0.1.7" [dependencies] -indexmap = "1.9.3" +indexmap = "2.0.0" serde = { version = "1", features = ["derive"] } serde_json = "1" diff --git a/crates/swc_ecma_compat_es2015/Cargo.toml b/crates/swc_ecma_compat_es2015/Cargo.toml index ba542cb7e817..ed8e455d64ca 100644 --- a/crates/swc_ecma_compat_es2015/Cargo.toml +++ b/crates/swc_ecma_compat_es2015/Cargo.toml @@ -14,7 +14,7 @@ version = "0.1.52" [dependencies] arrayvec = "0.7.4" -indexmap = "1.9.3" +indexmap = "2.0.0" is-macro = "0.3.0" serde = "1.0.188" serde_derive = "1.0.188" diff --git a/crates/swc_ecma_minifier/Cargo.toml b/crates/swc_ecma_minifier/Cargo.toml index 547c5bcb462d..3b25451a55ed 100644 --- a/crates/swc_ecma_minifier/Cargo.toml +++ b/crates/swc_ecma_minifier/Cargo.toml @@ -35,7 +35,7 @@ trace-ast = [] [dependencies] arrayvec = "0.7.2" backtrace = { version = "0.3.61", optional = true } -indexmap = "1.9.3" +indexmap = "2.0.0" num-bigint = "0.4.3" num_cpus = "1.13.1" once_cell = "1.18.0" diff --git a/crates/swc_ecma_preset_env/Cargo.toml b/crates/swc_ecma_preset_env/Cargo.toml index a80fcf8cc918..c2be737d78fc 100644 --- a/crates/swc_ecma_preset_env/Cargo.toml +++ b/crates/swc_ecma_preset_env/Cargo.toml @@ -19,7 +19,7 @@ serde-impl = ["serde"] [dependencies] anyhow = "1" dashmap = "5.4.0" -indexmap = "1.9.3" +indexmap = "2.0.0" once_cell = "1.18.0" semver = { version = "1.0.17", features = ["serde"] } serde = { version = "1", features = ["derive"], optional = true } diff --git a/crates/swc_ecma_transforms_base/Cargo.toml b/crates/swc_ecma_transforms_base/Cargo.toml index 281c3e44b75d..bd6dca6f5685 100644 --- a/crates/swc_ecma_transforms_base/Cargo.toml +++ b/crates/swc_ecma_transforms_base/Cargo.toml @@ -19,7 +19,7 @@ concurrent-renamer = ["rayon"] [dependencies] better_scoped_tls = { version = "0.1.1", path = "../better_scoped_tls" } bitflags = "2.3.2" -indexmap = "1.9.3" +indexmap = "2.0.0" once_cell = "1.18.0" phf = { version = "0.11", features = ["macros"] } rayon = { version = "1", optional = true } diff --git a/crates/swc_ecma_transforms_compat/Cargo.toml b/crates/swc_ecma_transforms_compat/Cargo.toml index 5cefce549641..0cb505b9419c 100644 --- a/crates/swc_ecma_transforms_compat/Cargo.toml +++ b/crates/swc_ecma_transforms_compat/Cargo.toml @@ -21,7 +21,7 @@ concurrent = [ [dependencies] arrayvec = "0.7.2" -indexmap = "1.9.3" +indexmap = "2.0.0" is-macro = "0.3.0" num-bigint = "0.4" rayon = { version = "1.7.0", optional = true } diff --git a/crates/swc_ecma_transforms_module/Cargo.toml b/crates/swc_ecma_transforms_module/Cargo.toml index 105889679172..b5d6d81d5c91 100644 --- a/crates/swc_ecma_transforms_module/Cargo.toml +++ b/crates/swc_ecma_transforms_module/Cargo.toml @@ -16,7 +16,7 @@ bench = false Inflector = "0.11.4" anyhow = "1.0.71" bitflags = "2.3.2" -indexmap = "1.9.3" +indexmap = "2.0.0" is-macro = "0.3.0" path-clean = "0.1.0" pathdiff = "0.2.0" @@ -37,7 +37,7 @@ swc_ecma_utils = { version = "0.124.35", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "0.96.11", path = "../swc_ecma_visit" } [dev-dependencies] -indexmap = { version = "1.9.3", features = ["serde"] } +indexmap = { version = "2.0.0", features = ["serde"] } serde_json = "1" swc_ecma_loader = { version = "0.45.11", path = "../swc_ecma_loader", features = [ diff --git a/crates/swc_ecma_transforms_optimization/Cargo.toml b/crates/swc_ecma_transforms_optimization/Cargo.toml index bf9d1e34d636..d7e33d16bfee 100644 --- a/crates/swc_ecma_transforms_optimization/Cargo.toml +++ b/crates/swc_ecma_transforms_optimization/Cargo.toml @@ -23,7 +23,7 @@ debug = [] [dependencies] dashmap = "5.4.0" -indexmap = "1.9.3" +indexmap = "2.0.0" once_cell = "1.18.0" petgraph = "0.6" rayon = { version = "1.7.0", optional = true } diff --git a/crates/swc_ecma_transforms_react/Cargo.toml b/crates/swc_ecma_transforms_react/Cargo.toml index 63a3c94f1dc0..4fa975287b08 100644 --- a/crates/swc_ecma_transforms_react/Cargo.toml +++ b/crates/swc_ecma_transforms_react/Cargo.toml @@ -20,7 +20,7 @@ serde-impl = ["serde"] [dependencies] base64 = "0.21.0" dashmap = "5.4.0" -indexmap = "1.9.3" +indexmap = "2.0.0" once_cell = "1.18.0" rayon = { version = "1.7.0", optional = true } serde = { version = "1.0.118", features = ["derive"], optional = true } diff --git a/crates/swc_ecma_usage_analyzer/Cargo.toml b/crates/swc_ecma_usage_analyzer/Cargo.toml index bde643cc4b62..a7db4012d8b3 100644 --- a/crates/swc_ecma_usage_analyzer/Cargo.toml +++ b/crates/swc_ecma_usage_analyzer/Cargo.toml @@ -22,7 +22,7 @@ concurrent = ["swc_common/concurrent", "indexmap/rayon"] trace-ast = [] [dependencies] -indexmap = "1.9.3" +indexmap = "2.0.0" rustc-hash = "1.1.0" tracing = "0.1.37" diff --git a/crates/swc_ecma_utils/Cargo.toml b/crates/swc_ecma_utils/Cargo.toml index b7ad5775c4fd..175f78915a48 100644 --- a/crates/swc_ecma_utils/Cargo.toml +++ b/crates/swc_ecma_utils/Cargo.toml @@ -20,7 +20,7 @@ bench = false concurrent = ["swc_common/concurrent", "rayon"] [dependencies] -indexmap = "1.9.3" +indexmap = "2.0.0" num_cpus = "1.13.1" once_cell = "1.18.0" rayon = { version = "1.7.0", optional = true } diff --git a/crates/swc_fast_graph/Cargo.toml b/crates/swc_fast_graph/Cargo.toml index 155d16ebe95c..7a294421a14c 100644 --- a/crates/swc_fast_graph/Cargo.toml +++ b/crates/swc_fast_graph/Cargo.toml @@ -12,7 +12,7 @@ version = "0.21.10" bench = false [dependencies] -indexmap = "1.9.3" +indexmap = "2.0.0" petgraph = "0.6" rustc-hash = "1.1.0"