Skip to content

Commit e316165

Browse files
committed
chore: update express to v5.2.1
1 parent 9f6258f commit e316165

35 files changed

Lines changed: 178 additions & 141 deletions

File tree

‎e2e/react-start/basic/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@tanstack/react-router": "workspace:^",
2222
"@tanstack/react-router-devtools": "workspace:^",
2323
"@tanstack/react-start": "workspace:^",
24-
"express": "^5.1.0",
24+
"express": "^5.2.1",
2525
"http-proxy-middleware": "^3.0.5",
2626
"js-cookie": "^3.0.5",
2727
"react": "^19.0.0",

‎e2e/react-start/basic/server.js‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,22 @@ export async function createSpaServer() {
7979

8080
if (isSpaMode) {
8181
createSpaServer().then(async ({ app }) =>
82-
app.listen(port, () => {
82+
app.listen(port, (error) => {
83+
if (error) throw error
8384
console.info(`Client Server: http://localhost:${port}`)
8485
}),
8586
)
8687

8788
createStartServer().then(async ({ app }) =>
88-
app.listen(startPort, () => {
89+
app.listen(startPort, (error) => {
90+
if (error) throw error
8991
console.info(`Start Server: http://localhost:${startPort}`)
9092
}),
9193
)
9294
} else {
9395
createStartServer().then(async ({ app }) =>
94-
app.listen(port, () => {
96+
app.listen(port, (error) => {
97+
if (error) throw error
9598
console.info(`Start Server: http://localhost:${port}`)
9699
}),
97100
)

‎e2e/react-start/css-inline/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"dependencies": {
1818
"@tanstack/react-router": "workspace:^",
1919
"@tanstack/react-start": "workspace:^",
20-
"express": "^5.1.0",
20+
"express": "^5.2.1",
2121
"react": "^19.0.0",
2222
"react-dom": "^19.0.0",
2323
"srvx": "^0.11.9"

‎e2e/react-start/css-inline/server.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ async function createStartServer() {
3737
}
3838

3939
createStartServer().then((app) => {
40-
app.listen(port, () => {
40+
app.listen(port, (error) => {
41+
if (error) throw error
4142
console.info(`Start Server: http://localhost:${port}`)
4243
})
4344
})

‎e2e/react-start/custom-basepath/express-server.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ if (DEVELOPMENT) {
4040
})
4141
}
4242

43-
app.listen(PORT, () => {
43+
app.listen(PORT, (error) => {
44+
if (error) throw error
4445
console.log(`Server is running on http://localhost:${PORT}`)
4546
})

‎e2e/react-start/custom-basepath/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@tanstack/react-router": "workspace:^",
1515
"@tanstack/react-router-devtools": "workspace:^",
1616
"@tanstack/react-start": "workspace:^",
17-
"express": "^5.1.0",
17+
"express": "^5.2.1",
1818
"react": "^19.0.0",
1919
"react-dom": "^19.0.0",
2020
"redaxios": "^0.5.1"
@@ -23,7 +23,7 @@
2323
"@playwright/test": "^1.50.1",
2424
"@tailwindcss/vite": "^4.2.2",
2525
"@tanstack/router-e2e-utils": "workspace:^",
26-
"@types/express": "^5.0.3",
26+
"@types/express": "^5.0.6",
2727
"@types/node": "^22.10.2",
2828
"@types/react": "^19.0.8",
2929
"@types/react-dom": "^19.0.3",

‎e2e/react-start/custom-server-rsbuild/express-server.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ if (DEVELOPMENT) {
5757
}
5858
})
5959

60-
const httpServer = app.listen(PORT, async () => {
60+
const httpServer = app.listen(PORT, async (error) => {
61+
if (error) throw error
6162
await devServer.afterListen()
6263
console.log(`Server is running on http://localhost:${PORT}`)
6364
})
@@ -74,7 +75,8 @@ if (DEVELOPMENT) {
7475
next(error)
7576
}
7677
})
77-
app.listen(PORT, () => {
78+
app.listen(PORT, (error) => {
79+
if (error) throw error
7880
console.log(`Server is running on http://localhost:${PORT}`)
7981
})
8082
}

‎e2e/react-start/custom-server-rsbuild/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"dependencies": {
1616
"@tanstack/react-router": "workspace:^",
1717
"@tanstack/react-start": "workspace:^",
18-
"express": "^5.1.0",
18+
"express": "^5.2.1",
1919
"react": "^19.0.0",
2020
"react-dom": "^19.0.0"
2121
},
@@ -25,7 +25,7 @@
2525
"@rsbuild/plugin-react": "^2.0.0",
2626
"@tailwindcss/postcss": "^4.2.2",
2727
"@tanstack/router-e2e-utils": "workspace:^",
28-
"@types/express": "^5.0.3",
28+
"@types/express": "^5.0.6",
2929
"@types/node": "^22.10.2",
3030
"@types/react": "^19.0.8",
3131
"@types/react-dom": "^19.0.3",

‎e2e/react-start/split-base-and-basepath/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"dependencies": {
1616
"@tanstack/react-router": "workspace:^",
1717
"@tanstack/react-start": "workspace:^",
18-
"express": "^5.1.0",
18+
"express": "^5.2.1",
1919
"react": "^19.0.0",
2020
"react-dom": "^19.0.0"
2121
},

‎e2e/react-start/split-base-and-basepath/prod-server.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ app.use(async (req, res, next) => {
2020
}
2121
})
2222

23-
app.listen(PORT, () => {
23+
app.listen(PORT, (error) => {
24+
if (error) throw error
2425
console.log(`Server is running on http://localhost:${PORT}`)
2526
})

0 commit comments

Comments
 (0)