Skip to content

Commit b7bca29

Browse files
Update react-router packages (#116)
* Update react-router packages * Update typescript and remove unused imports * Bump packages in .tests
1 parent e88a6b8 commit b7bca29

File tree

15 files changed

+649
-3166
lines changed

15 files changed

+649
-3166
lines changed

.tests/package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
"private": true,
33
"type": "module",
44
"scripts": {
5-
"test": "playwright test"
5+
"test": "playwright test",
6+
"clean": "rm -rf ./test-results && rm -rf ./tmp"
67
},
78
"devDependencies": {
8-
"@playwright/test": "^1.49.0",
9+
"@playwright/test": "^1.52.0",
910
"@types/fs-extra": "^11.0.4",
10-
"@types/node": "^22.9.1",
11-
"execa": "^9.5.1",
12-
"fs-extra": "^11.2.0",
11+
"@types/node": "^22.15.3",
12+
"execa": "^9.5.2",
13+
"fs-extra": "^11.3.0",
1314
"get-port": "^7.1.0",
14-
"pathe": "^1.1.2"
15+
"pathe": "^2.0.3"
1516
}
1617
}

cloudflare-d1/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,25 @@
1212
"typecheck": "wrangler types && react-router typegen && tsc -b"
1313
},
1414
"dependencies": {
15-
"@react-router/node": "^7.3.0",
16-
"@react-router/serve": "^7.3.0",
15+
"@react-router/node": "^7.5.3",
16+
"@react-router/serve": "^7.5.3",
1717
"drizzle-orm": "~0.36.3",
1818
"isbot": "^5.1.17",
1919
"react": "^19.0.0",
2020
"react-dom": "^19.0.0",
21-
"react-router": "^7.3.0"
21+
"react-router": "^7.5.3"
2222
},
2323
"devDependencies": {
2424
"@cloudflare/workers-types": "^4.20250303.0",
25-
"@react-router/dev": "^7.3.0",
25+
"@react-router/dev": "^7.5.3",
2626
"@tailwindcss/vite": "^4.0.0",
2727
"@types/node": "^20",
28-
"@types/react": "^19.0.1",
29-
"@types/react-dom": "^19.0.1",
28+
"@types/react": "^19.1.2",
29+
"@types/react-dom": "^19.1.2",
3030
"dotenv-cli": "^7.4.3",
3131
"drizzle-kit": "~0.28.1",
3232
"tailwindcss": "^4.0.0",
33-
"typescript": "^5.7.2",
33+
"typescript": "^5.8.3",
3434
"vite": "^5.4.11",
3535
"vite-tsconfig-paths": "^5.1.4",
3636
"wrangler": "^3.114.1"

cloudflare-d1/workers/app.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ import { getLoadContext } from "load-context";
22
import { createRequestHandler } from "react-router";
33

44
const requestHandler = createRequestHandler(
5-
// @ts-expect-error - virtual module provided by React Router at build time
65
() => import("virtual:react-router/server-build"),
7-
import.meta.env.MODE
6+
import.meta.env.MODE,
87
);
98

109
export default {

cloudflare/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@
1313
"isbot": "^5.1.17",
1414
"react": "^19.0.0",
1515
"react-dom": "^19.0.0",
16-
"react-router": "^7.5.0"
16+
"react-router": "^7.5.3"
1717
},
1818
"devDependencies": {
1919
"@cloudflare/vite-plugin": "^1.0.0",
2020
"@cloudflare/workers-types": "^4.20250303.0",
21-
"@react-router/dev": "^7.5.0",
21+
"@react-router/dev": "^7.5.3",
2222
"@tailwindcss/vite": "^4.0.0",
2323
"@types/node": "^20",
24-
"@types/react": "^19.0.1",
25-
"@types/react-dom": "^19.0.1",
24+
"@types/react": "^19.1.2",
25+
"@types/react-dom": "^19.1.2",
2626
"tailwindcss": "^4.0.0",
27-
"typescript": "^5.7.2",
27+
"typescript": "^5.8.3",
2828
"vite": "^6.2.1",
2929
"vite-tsconfig-paths": "^5.1.4",
3030
"wrangler": "^4.7.2"

default/package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,21 @@
88
"typecheck": "react-router typegen && tsc"
99
},
1010
"dependencies": {
11-
"@react-router/node": "*",
12-
"@react-router/serve": "*",
11+
"@react-router/node": "^7.5.3",
12+
"@react-router/serve": "^7.5.3",
1313
"isbot": "^5.1.17",
1414
"react": "^19.0.0",
1515
"react-dom": "^19.0.0",
16-
"react-router": "*"
16+
"react-router": "^7.5.3"
1717
},
1818
"devDependencies": {
19-
"@react-router/dev": "*",
19+
"@react-router/dev": "^7.5.3",
2020
"@tailwindcss/vite": "^4.0.0",
2121
"@types/node": "^20",
22-
"@types/react": "^19.0.1",
23-
"@types/react-dom": "^19.0.1",
24-
"react-router-devtools": "^1.1.0",
22+
"@types/react": "^19.1.2",
23+
"@types/react-dom": "^19.1.2",
2524
"tailwindcss": "^4.0.0",
26-
"typescript": "^5.7.2",
25+
"typescript": "^5.8.3",
2726
"vite": "^5.4.11",
2827
"vite-tsconfig-paths": "^5.1.4"
2928
}

javascript/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
"start": "react-router-serve ./build/server/index.js"
88
},
99
"dependencies": {
10-
"@react-router/node": "*",
11-
"@react-router/serve": "*",
10+
"@react-router/node": "^7.5.3",
11+
"@react-router/serve": "^7.5.3",
1212
"isbot": "^5.1.17",
1313
"react": "^19.0.0",
1414
"react-dom": "^19.0.0",
15-
"react-router": "*"
15+
"react-router": "^7.5.3"
1616
},
1717
"devDependencies": {
18-
"@react-router/dev": "*",
18+
"@react-router/dev": "^7.5.3",
1919
"@tailwindcss/vite": "^4.0.0",
2020
"tailwindcss": "^4.0.0",
2121
"vite": "^5.4.11"

minimal/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@
88
"typecheck": "react-router typegen && tsc"
99
},
1010
"dependencies": {
11-
"@react-router/node": "*",
12-
"@react-router/serve": "*",
11+
"@react-router/node": "7.5.3",
12+
"@react-router/serve": "^7.5.3",
1313
"isbot": "^5.1.17",
1414
"react": "^19.0.0",
1515
"react-dom": "^19.0.0",
16-
"react-router": "*"
16+
"react-router": "^7.5.3"
1717
},
1818
"devDependencies": {
19-
"@react-router/dev": "*",
19+
"@react-router/dev": "^7.5.3",
2020
"@types/node": "^20",
21-
"@types/react": "^19.0.1",
22-
"@types/react-dom": "^19.0.1",
21+
"@types/react": "^19.1.2",
22+
"@types/react-dom": "^19.1.2",
2323
"tailwindcss": "^3.4.17",
24-
"typescript": "^5.7.2",
24+
"typescript": "^5.8.3",
2525
"vite": "^6.0.11",
2626
"vite-tsconfig-paths": "^5.1.4"
2727
}

netlify/package.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,24 @@
99
},
1010
"dependencies": {
1111
"@netlify/functions": "2.8.2",
12-
"@react-router/node": "*",
12+
"@react-router/node": "^7.5.3",
1313
"isbot": "^5.1.17",
1414
"react": "^19.0.0",
1515
"react-dom": "^19.0.0",
16-
"react-router": "*"
16+
"react-router": "^7.5.3"
1717
},
1818
"devDependencies": {
1919
"@mjackson/node-fetch-server": "0.3.0",
20-
"@react-router/dev": "*",
20+
"@react-router/dev": "^7.5.3",
2121
"@tailwindcss/vite": "^4.0.0",
22-
"@types/express": "^5.0.0",
23-
"@types/react": "^19.0.1",
24-
"@types/react-dom": "^19.0.1",
25-
"autoprefixer": "^10.4.20",
22+
"@types/express": "^5.0.1",
23+
"@types/react": "^19.1.2",
24+
"@types/react-dom": "^19.1.2",
2625
"cross-env": "^7.0.3",
2726
"express": "^4.21.1",
2827
"netlify-cli": "^17.38.0",
29-
"postcss": "^8.4.49",
3028
"tailwindcss": "^4.0.0",
31-
"typescript": "^5.7.2",
29+
"typescript": "^5.8.3",
3230
"vite": "^5.4.11",
3331
"vite-tsconfig-paths": "^5.1.4"
3432
}

netlify/server/app.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ declare module "react-router" {
88
}
99

1010
const requestHandler = createRequestHandler(
11-
// @ts-expect-error - virtual module provided by React Router at build time
1211
() => import("virtual:react-router/server-build"),
13-
import.meta.env.MODE
12+
import.meta.env.MODE,
1413
);
1514

1615
export default async (request: Request, context: Context) => {

node-custom-server/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,29 @@
88
"typecheck": "react-router typegen && tsc -b"
99
},
1010
"dependencies": {
11-
"@react-router/express": "*",
12-
"@react-router/node": "*",
11+
"@react-router/express": "^7.5.3",
12+
"@react-router/node": "^7.5.3",
1313
"compression": "^1.7.5",
1414
"express": "^4.21.1",
1515
"morgan": "^1.10.0",
1616
"isbot": "^5.1.17",
1717
"react": "^19.0.0",
1818
"react-dom": "^19.0.0",
19-
"react-router": "*"
19+
"react-router": "^7.5.3"
2020
},
2121
"devDependencies": {
22-
"@react-router/dev": "*",
22+
"@react-router/dev": "^7.5.3",
2323
"@tailwindcss/vite": "^4.0.0",
2424
"@types/compression": "^1.7.5",
25-
"@types/express": "^5.0.0",
26-
"@types/express-serve-static-core": "^5.0.1",
25+
"@types/express": "^5.0.1",
26+
"@types/express-serve-static-core": "^5.0.6",
2727
"@types/morgan": "^1.9.9",
2828
"@types/node": "^20",
29-
"@types/react": "^19.0.1",
30-
"@types/react-dom": "^19.0.1",
29+
"@types/react": "^19.1.2",
30+
"@types/react-dom": "^19.1.2",
3131
"cross-env": "^7.0.3",
3232
"tailwindcss": "^4.0.0",
33-
"typescript": "^5.7.2",
33+
"typescript": "^5.8.3",
3434
"vite": "^5.4.11",
3535
"vite-tsconfig-paths": "^5.1.4"
3636
}

0 commit comments

Comments
 (0)