Skip to content

Commit

Permalink
feat(express): support Express v5 (#13064)
Browse files Browse the repository at this point in the history
* [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
  • Loading branch information
rossipedia authored Feb 20, 2025
1 parent 283fa44 commit b0756d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@
- robbtraister
- RobHannay
- robinvdvleuten
- rossipedia
- rtmann
- rtzll
- rubeonline
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router-express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"wireit": "0.14.9"
},
"peerDependencies": {
"express": "^4.17.1",
"express": "^4.17.1 || ^5",
"react-router": "workspace:*",
"typescript": "^5.1.0"
},
Expand Down

0 comments on commit b0756d2

Please sign in to comment.