Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate server to Express 5 #28

Merged
merged 2 commits into from
Dec 14, 2023
Merged

Migrate server to Express 5 #28

merged 2 commits into from
Dec 14, 2023

Conversation

rjwebb
Copy link
Contributor

@rjwebb rjwebb commented Dec 14, 2023

This PR branches off the PR for migrating to express 4: #27

The main change here is that res.sendfile is replaced with res.sendFile, and res.json and res.send can't be called with the status code (we must use res.status or res.sendStatus instead).

The big improvement with express 5 is that errors in async handlers/middleware are all handled without having to call next(...).

@rjwebb rjwebb changed the title upgrade to express 5 Migrate server to Express 5 Dec 14, 2023
Base automatically changed from rjwebb/express-4 to main December 14, 2023 15:42
@rjwebb rjwebb merged commit a113fd3 into main Dec 14, 2023
1 check passed
@rjwebb rjwebb deleted the rjwebb/express-5 branch December 14, 2023 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant