From ef414ce77acad893a3df6a38ad4e619e17d25a68 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 25 May 2026 05:45:21 +0000 Subject: [PATCH 1/2] chore(deps): update swc --- Cargo.lock | 54 +++++++++++++++++++++++++++++++++++++++++++++++++----- Cargo.toml | 4 ++-- 2 files changed, 51 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3ca4095..b60c6ed 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -76,8 +76,8 @@ dependencies = [ "num_cpus", "oxc", "rayon", - "swc_common", - "swc_ecma_ast", + "swc_common 22.0.0", + "swc_ecma_ast 24.0.0", "swc_ecma_parser", ] @@ -1273,6 +1273,31 @@ dependencies = [ "url", ] +[[package]] +name = "swc_common" +version = "22.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "162109f5780051aba388a3451c916096af5d47f530e68dc1f4999cfcb7633371" +dependencies = [ + "anyhow", + "ast_node", + "better_scoped_tls", + "bytes-str", + "either", + "from_variant", + "num-bigint", + "once_cell", + "rustc-hash", + "serde", + "siphasher 0.3.11", + "swc_atoms", + "swc_eq_ignore_macros", + "swc_visit", + "tracing", + "unicode-width", + "url", +] + [[package]] name = "swc_ecma_ast" version = "23.0.1" @@ -1287,7 +1312,26 @@ dependencies = [ "rustc-hash", "string_enum", "swc_atoms", - "swc_common", + "swc_common 21.0.2", + "swc_visit", + "unicode-id-start", +] + +[[package]] +name = "swc_ecma_ast" +version = "24.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c9a622ffc0c3364da3a276154b30271319e9aa5fb95a1b111a2e99ace0ac3c4" +dependencies = [ + "bitflags", + "is-macro", + "num-bigint", + "once_cell", + "phf 0.11.3", + "rustc-hash", + "string_enum", + "swc_atoms", + "swc_common 22.0.0", "swc_visit", "unicode-id-start", ] @@ -1308,8 +1352,8 @@ dependencies = [ "smartstring", "stacker", "swc_atoms", - "swc_common", - "swc_ecma_ast", + "swc_common 21.0.2", + "swc_ecma_ast 23.0.1", "tracing", ] diff --git a/Cargo.toml b/Cargo.toml index 748743e..9efef99 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,8 +30,8 @@ doctest = false oxc = "0.132.0" swc_ecma_parser = { version = "39.1.1", features = ["typescript"] } -swc_ecma_ast = "23.0.1" -swc_common = "21.0.2" +swc_ecma_ast = "24.0.0" +swc_common = "22.0.0" # biome_js_parser = "0.5.6" # biome_js_syntax = "0.5.6" From 3027ea315ff73a77b5782b2f13daba532dc751a4 Mon Sep 17 00:00:00 2001 From: "anthropic-code-agent[bot]" <242468646+Claude@users.noreply.github.com> Date: Mon, 25 May 2026 06:03:56 +0000 Subject: [PATCH 2/2] fix: revert swc_common and swc_ecma_ast to compatible versions swc_ecma_parser v39.1.1 requires swc_common v21.0.2 and swc_ecma_ast v23.0.1. The major version updates to v22.0.0 and v24.0.0 are incompatible and caused duplicate dependency errors in cargo-deny and build failures. Co-Authored-By: Claude Sonnet 4.5 Agent-Logs-Url: https://github.com/oxc-project/bench-javascript-parser-written-in-rust/sessions/14365f1b-ae08-4eca-ac34-234c32123077 Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com> --- Cargo.lock | 54 +++++------------------------------------------------- Cargo.toml | 4 ++-- 2 files changed, 7 insertions(+), 51 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b60c6ed..3ca4095 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -76,8 +76,8 @@ dependencies = [ "num_cpus", "oxc", "rayon", - "swc_common 22.0.0", - "swc_ecma_ast 24.0.0", + "swc_common", + "swc_ecma_ast", "swc_ecma_parser", ] @@ -1273,31 +1273,6 @@ dependencies = [ "url", ] -[[package]] -name = "swc_common" -version = "22.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "162109f5780051aba388a3451c916096af5d47f530e68dc1f4999cfcb7633371" -dependencies = [ - "anyhow", - "ast_node", - "better_scoped_tls", - "bytes-str", - "either", - "from_variant", - "num-bigint", - "once_cell", - "rustc-hash", - "serde", - "siphasher 0.3.11", - "swc_atoms", - "swc_eq_ignore_macros", - "swc_visit", - "tracing", - "unicode-width", - "url", -] - [[package]] name = "swc_ecma_ast" version = "23.0.1" @@ -1312,26 +1287,7 @@ dependencies = [ "rustc-hash", "string_enum", "swc_atoms", - "swc_common 21.0.2", - "swc_visit", - "unicode-id-start", -] - -[[package]] -name = "swc_ecma_ast" -version = "24.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c9a622ffc0c3364da3a276154b30271319e9aa5fb95a1b111a2e99ace0ac3c4" -dependencies = [ - "bitflags", - "is-macro", - "num-bigint", - "once_cell", - "phf 0.11.3", - "rustc-hash", - "string_enum", - "swc_atoms", - "swc_common 22.0.0", + "swc_common", "swc_visit", "unicode-id-start", ] @@ -1352,8 +1308,8 @@ dependencies = [ "smartstring", "stacker", "swc_atoms", - "swc_common 21.0.2", - "swc_ecma_ast 23.0.1", + "swc_common", + "swc_ecma_ast", "tracing", ] diff --git a/Cargo.toml b/Cargo.toml index 9efef99..748743e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,8 +30,8 @@ doctest = false oxc = "0.132.0" swc_ecma_parser = { version = "39.1.1", features = ["typescript"] } -swc_ecma_ast = "24.0.0" -swc_common = "22.0.0" +swc_ecma_ast = "23.0.1" +swc_common = "21.0.2" # biome_js_parser = "0.5.6" # biome_js_syntax = "0.5.6"