Skip to content

Commit b0756d2

Browse files
authored
feat(express): support Express v5 (#13064)
* [express] Add express@5 to peerDependencies `express@5` is out, and is mostly compatible with `express@4` (see [the migration guide](https://expressjs.com/en/guide/migrating-5.html)). At least for React Router usage the differences should be immaterial. This would allow users to integrate React Router into their existing `express@5` apps, or use `express@5` as a hosting server, without having to fiddle with `--legacy-peer-deps` or similar. * contributors.yml
1 parent 283fa44 commit b0756d2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@
265265
- robbtraister
266266
- RobHannay
267267
- robinvdvleuten
268+
- rossipedia
268269
- rtmann
269270
- rtzll
270271
- rubeonline

packages/react-router-express/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"wireit": "0.14.9"
6464
},
6565
"peerDependencies": {
66-
"express": "^4.17.1",
66+
"express": "^4.17.1 || ^5",
6767
"react-router": "workspace:*",
6868
"typescript": "^5.1.0"
6969
},

0 commit comments

Comments
 (0)