Skip to content

Commit 0bd23d9

Browse files
Add Wrangler v4 to @react-router/dev peer dep range (#13258)
Co-authored-by: Mark Dalgleish <[email protected]>
1 parent 2e661fb commit 0bd23d9

File tree

16 files changed

+10481
-453
lines changed

16 files changed

+10481
-453
lines changed

.changeset/late-rings-confess.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@react-router/dev": patch
3+
---
4+
5+
Update optional Wrangler peer dependency range to support Wrangler v4

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@
215215
- marvinruder
216216
- mathpaquette
217217
- matt-harro
218+
- matthewlynch
218219
- maximevtush
219220
- maxpou
220221
- mcansh

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
"react-router": "workspace:*"
2020
},
2121
"devDependencies": {
22-
"@cloudflare/workers-types": "^4.20250214.0",
22+
"@cloudflare/workers-types": "^4.20250317.0",
2323
"@react-router/dev": "workspace:*",
2424
"@react-router/fs-routes": "workspace:*",
2525
"@react-router/remix-routes-option-adapter": "workspace:*",
2626
"@types/react": "^18.2.20",
2727
"@types/react-dom": "^18.2.7",
2828
"typescript": "^5.1.6",
2929
"vite": "^6.1.0",
30-
"wrangler": "^3.109.2"
30+
"wrangler": "^4.2.0"
3131
},
3232
"engines": {
3333
"node": ">=20.0.0"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"include": ["env.d.ts", "**/*.ts", "**/*.tsx", ".react-router/types/**/*"],
33
"compilerOptions": {
44
"lib": ["DOM", "DOM.Iterable", "ES2022"],
5-
"types": ["vite/client"],
5+
"types": ["@cloudflare/workers-types", "vite/client"],
66
"verbatimModuleSyntax": true,
77
"esModuleInterop": true,
88
"jsx": "react-jsx",

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.13",
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.2.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",

0 commit comments

Comments
 (0)