Skip to content

Commit f794a23

Browse files
authored
Update SWC crate versions to match Next.js (#3)
* forked_react_compiler -> nextjs_react_compiler * vendor: react-compiler from pull/36173/head @ d9001e5e85b4a2aa7808c90bcaf3725de989ecaf (forked_react_compiler) * fixup! forked_react_compiler -> nextjs_react_compiler * run codemod * Update SWC crate versions to match Next.js Aligns swc_ecma_ast/visit (21→23), swc_common (19→21), swc_ecma_parser (35→39), and swc_ecma_codegen (24→26) with the versions resolved in Next.js's Cargo.lock so Cargo can unify them into a single compiled instance when this crate is linked into the Next.js build. * vendor: react-compiler from pull/36173/head @ d9001e5e85b4a2aa7808c90bcaf3725de989ecaf (nextjs_react_compiler)
1 parent cbb3a34 commit f794a23

3 files changed

Lines changed: 44 additions & 8 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
diff --git a/react-compiler/crates/react_compiler_e2e_cli/Cargo.toml b/react-compiler/crates/react_compiler_e2e_cli/Cargo.toml
2+
--- a/react-compiler/crates/react_compiler_e2e_cli/Cargo.toml
3+
+++ b/react-compiler/crates/react_compiler_e2e_cli/Cargo.toml
4+
@@ -18,9 +18,9 @@
5+
react_compiler_oxc = { workspace = true }
6+
clap = { version = "4", features = ["derive"] }
7+
serde_json = "1"
8+
-swc_ecma_parser = "35"
9+
-swc_ecma_ast = "21"
10+
-swc_common = "19"
11+
+swc_ecma_parser = "39"
12+
+swc_ecma_ast = "23"
13+
+swc_common = "21"
14+
oxc_parser = "0.121"
15+
oxc_allocator = "0.121"
16+
oxc_span = "0.121"
17+
diff --git a/react-compiler/crates/react_compiler_swc/Cargo.toml b/react-compiler/crates/react_compiler_swc/Cargo.toml
18+
--- a/react-compiler/crates/react_compiler_swc/Cargo.toml
19+
+++ b/react-compiler/crates/react_compiler_swc/Cargo.toml
20+
@@ -12,11 +12,11 @@
21+
react_compiler = { workspace = true }
22+
react_compiler_diagnostics = { workspace = true }
23+
react_compiler_hir = { workspace = true }
24+
-swc_ecma_ast = "21"
25+
-swc_ecma_visit = "21"
26+
-swc_common = "19"
27+
-swc_ecma_parser = "35"
28+
-swc_ecma_codegen = "24"
29+
+swc_ecma_ast = "23"
30+
+swc_ecma_visit = "23"
31+
+swc_common = "21"
32+
+swc_ecma_parser = "39"
33+
+swc_ecma_codegen = "26"
34+
swc_atoms = "9"
35+
indexmap = { version = "2", features = ["serde"] }
36+
serde = { version = "1", features = ["derive"] }

react-compiler/crates/react_compiler_e2e_cli/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ react_compiler_swc = { workspace = true }
1818
react_compiler_oxc = { workspace = true }
1919
clap = { version = "4", features = ["derive"] }
2020
serde_json = "1"
21-
swc_ecma_parser = "35"
22-
swc_ecma_ast = "21"
23-
swc_common = "19"
21+
swc_ecma_parser = "39"
22+
swc_ecma_ast = "23"
23+
swc_common = "21"
2424
oxc_parser = "0.121"
2525
oxc_allocator = "0.121"
2626
oxc_span = "0.121"

react-compiler/crates/react_compiler_swc/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ react_compiler_ast = { workspace = true }
1212
react_compiler = { workspace = true }
1313
react_compiler_diagnostics = { workspace = true }
1414
react_compiler_hir = { workspace = true }
15-
swc_ecma_ast = "21"
16-
swc_ecma_visit = "21"
17-
swc_common = "19"
18-
swc_ecma_parser = "35"
19-
swc_ecma_codegen = "24"
15+
swc_ecma_ast = "23"
16+
swc_ecma_visit = "23"
17+
swc_common = "21"
18+
swc_ecma_parser = "39"
19+
swc_ecma_codegen = "26"
2020
swc_atoms = "9"
2121
indexmap = { version = "2", features = ["serde"] }
2222
serde = { version = "1", features = ["derive"] }

0 commit comments

Comments
 (0)