Skip to content

Commit 1a389df

Browse files
committed
upgrade to wrangler v4
1 parent bc43707 commit 1a389df

File tree

13 files changed

+10449
-437
lines changed

13 files changed

+10449
-437
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@
211211
- marvinruder
212212
- mathpaquette
213213
- matt-harro
214+
- matthewlynch
214215
- maximevtush
215216
- maxpou
216217
- mcansh

integration/helpers/cloudflare-dev-proxy-template/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,14 @@
1919
"react-router": "workspace:*"
2020
},
2121
"devDependencies": {
22-
"@cloudflare/workers-types": "^4.20250214.0",
2322
"@react-router/dev": "workspace:*",
2423
"@react-router/fs-routes": "workspace:*",
2524
"@react-router/remix-routes-option-adapter": "workspace:*",
2625
"@types/react": "^18.2.20",
2726
"@types/react-dom": "^18.2.7",
2827
"typescript": "^5.1.6",
2928
"vite": "^6.1.0",
30-
"wrangler": "^3.109.2"
29+
"wrangler": "^4.1.0"
3130
},
3231
"engines": {
3332
"node": ">=20.0.0"

integration/helpers/vite-plugin-cloudflare-template/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"dev": "react-router dev",
99
"build": "react-router build",
10-
"typecheck": "react-router typegen && tsc"
10+
"typecheck": "wrangler types && react-router typegen && tsc"
1111
},
1212
"dependencies": {
1313
"express": "^4.19.2",
@@ -18,8 +18,7 @@
1818
"serialize-javascript": "^6.0.1"
1919
},
2020
"devDependencies": {
21-
"@cloudflare/vite-plugin": "^0.1.9",
22-
"@cloudflare/workers-types": "^4.20250214.0",
21+
"@cloudflare/vite-plugin": "^0.1.12",
2322
"@react-router/dev": "workspace:*",
2423
"@react-router/fs-routes": "workspace:*",
2524
"@types/node": "^20.0.0",
@@ -29,7 +28,7 @@
2928
"typescript": "^5.1.6",
3029
"vite": "^6.1.0",
3130
"vite-tsconfig-paths": "^4.2.1",
32-
"wrangler": "^3.109.2"
31+
"wrangler": "^4.1.0"
3332
},
3433
"engines": {
3534
"node": ">=20.0.0"

integration/helpers/vite-plugin-cloudflare-template/tsconfig.cloudflare.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"composite": true,
1313
"strict": true,
1414
"lib": ["DOM", "DOM.Iterable", "ES2022"],
15-
"types": ["@cloudflare/workers-types", "vite/client"],
15+
"types": ["vite/client"],
1616
"target": "ES2022",
1717
"module": "ES2022",
1818
"moduleResolution": "bundler",

integration/helpers/vite-plugin-cloudflare-template/worker-configuration.d.ts

Lines changed: 5004 additions & 3 deletions
Large diffs are not rendered by default.

integration/helpers/vite-plugin-cloudflare-template/wrangler.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "react-router-app"
2-
compatibility_date = "2024-11-18"
2+
compatibility_date = "2025-03-17"
33
main = "./workers/app.ts"
44

55
assets = {}

packages/react-router-cloudflare/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
}
4646
},
4747
"devDependencies": {
48-
"@cloudflare/workers-types": "^4.20250214.0",
48+
"@cloudflare/workers-types": "^4.20250317.0",
4949
"react-router": "workspace:*",
5050
"tsup": "^8.3.0",
5151
"typescript": "^5.1.6",

packages/react-router-dev/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@
115115
"typescript": "^5.1.6",
116116
"vite": "^6.1.0",
117117
"wireit": "0.14.9",
118-
"wrangler": "^3.109.2"
118+
"wrangler": "^4.1.0"
119119
},
120120
"peerDependencies": {
121121
"@react-router/serve": "workspace:^",
122122
"react-router": "workspace:^",
123123
"typescript": "^5.1.0",
124124
"vite": "^5.1.0 || ^6.0.0",
125-
"wrangler": "^3.28.2"
125+
"wrangler": "^3.28.2 || ^4.1.0"
126126
},
127127
"peerDependenciesMeta": {
128128
"@react-router/serve": {

playground/vite-plugin-cloudflare/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"dev": "react-router dev",
99
"build": "react-router build",
10-
"typecheck": "react-router typegen && tsc"
10+
"typecheck": "wrangler types && react-router typegen && tsc"
1111
},
1212
"dependencies": {
1313
"express": "^4.19.2",
@@ -18,8 +18,7 @@
1818
"serialize-javascript": "^6.0.1"
1919
},
2020
"devDependencies": {
21-
"@cloudflare/vite-plugin": "^0.1.1",
22-
"@cloudflare/workers-types": "^4.20250214.0",
21+
"@cloudflare/vite-plugin": "^0.1.12",
2322
"@react-router/dev": "workspace:*",
2423
"@react-router/fs-routes": "workspace:*",
2524
"@types/node": "^20.0.0",
@@ -29,7 +28,7 @@
2928
"typescript": "^5.1.6",
3029
"vite": "^6.1.0",
3130
"vite-tsconfig-paths": "^4.2.1",
32-
"wrangler": "^3.109.2"
31+
"wrangler": "^4.1.0"
3332
},
3433
"engines": {
3534
"node": ">=20.0.0"

playground/vite-plugin-cloudflare/tsconfig.cloudflare.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"composite": true,
1313
"strict": true,
1414
"lib": ["DOM", "DOM.Iterable", "ES2022"],
15-
"types": ["@cloudflare/workers-types", "vite/client"],
15+
"types": ["vite/client"],
1616
"target": "ES2022",
1717
"module": "ES2022",
1818
"moduleResolution": "bundler",

0 commit comments

Comments
 (0)