Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/express-5-upgrade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"template-node-express": major
---

Upgrade to Express 5 and remove `express-async-errors`, relying on Express 5's built-in async error handling.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ A minimal production-ready node HTTP server with [`Express`](https://expressjs.c
✅ Properly configured request payload size limiting to help prevent Denial of Service attack vectors \
✅ `AbortSignal` propagation to prevent unnecessary work (includes example and test) \
✅ Validation with [`express-validator`](https://express-validator.github.io/docs) \
✅ Async error forwarding to default error handler with [`express-async-errors`](https://github.com/davidbanham/express-async-errors) \
✅ Async error forwarding to the default error handler (built into Express 5) \
✅ Structured logging with [`pino`](https://github.com/pinojs/pino) \
✅ Rich request logging middleware including request id, trace id, context propagation, and more \
✅ Testing with [`jest`](https://github.com/jestjs/jest), [`supertest`](https://github.com/forwardemail/supertest), and [`fetch-mock`](https://github.com/wheresrhys/fetch-mock) \
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@changesets/cli": "^2.31.1",
"@jest/globals": "^29.7.0",
"@types/compression": "^1.8.1",
"@types/express": "^4.17.23",
"@types/express": "^5.0.6",
"@types/jest": "^29.5.14",
"@types/node": "^20.19.9",
"@types/request-ip": "^0.0.41",
Expand All @@ -47,8 +47,7 @@
"@opentelemetry/sdk-trace-base": "^2.9.0",
"@opentelemetry/semantic-conventions": "^1.43.0",
"compression": "^1.8.1",
"express": "^4.22.2",
"express-async-errors": "^3.1.1",
"express": "^5.2.1",
"express-validator": "^7.3.2",
"helmet": "^8.1.0",
"http-graceful-shutdown": "^3.1.16",
Expand All @@ -60,6 +59,7 @@
"protobufjs"
],
"overrides": {
"@types/express": "^5.0.6",
"js-yaml": "^3.15.0",
"form-data": "^4.0.6",
"protobufjs": "^7.6.3",
Expand Down
Loading
Loading