Skip to content

Commit 713998b

Browse files
committed
[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.
1 parent d984f8b commit 713998b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)