What changed in Express 5 compared with Express 4?
Model answer
Express 5 handles rejected promises and thrown errors in async route handlers by passing them to error middleware, so you need less try/catch wrapping. It also tightened route path syntax and removed some deprecated methods. When upgrading, read the official migration guide.
Learn this topic
Express Middleware Explained: next(), Logging and express.json() in the course Node.js and Express: Build a Back End API from Scratch.
Sign in to add your own answer.