Skip to content

Commit

Permalink
chore(deps): Update indexmap to v2 (#8370)
Browse files Browse the repository at this point in the history
**Description:**

Updates `indexmap` to `v2`, reducing dependency duplication. Unfortunately there are still many dependencies that require `v1`, including `rkyv` and `cranelift-egraph` that have no published versions using indexmap `v2`.
  • Loading branch information
Redfire75369 authored Dec 3, 2023
1 parent c73abc8 commit 91e0fc7
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 30 deletions.
31 changes: 16 additions & 15 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/swc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_bundler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_compat_es2015/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_minifier/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_preset_env/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_transforms_base/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_transforms_compat/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
4 changes: 2 additions & 2 deletions crates/swc_ecma_transforms_module/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_transforms_optimization/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_transforms_react/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_usage_analyzer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_fast_graph/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 91e0fc7

Please sign in to comment.