FeatureFuel
0

Upgrade to Express 5 for 3.0? Patch and tests ready

Source: louislam/uptime-kuma#8068 · opened by @ryanmurdoc
📑 I have found these related issues/pull requests I couldn't find any related issues or pull requests. I searched issues for "express 5" and "express v5", and checked every pull request branch in the repository: none of them moves Express beyond 4.x. 🔖 Feature description Upgrade the server from Express 4.22 to Express 5.3. Since 3.0 is in beta, a major version seems the right time for the switch. ✔️ Solution I have a working branch. It's small: • Express 5's route syntax no longer accepts a bare * or ? optional parameters, so the server doesn't start on Express 5 as-is. Six route strings change: the catch-alls in server.js and setup-database.js (GET and OPTIONS), the Better Auth /api/auth/* route, and the three badge routes with an optional /:duration?. Badge URLs keep working with and without a duration. • Express 5 leaves req.body undefined when there's no body. Two handlers need a ?.. One of them matters: a body-less P…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests