Express v5 Is HERE

preview_player
Показать описание
In this video CJ shows all the changes in the latest version of express js v5.0.0

0:00 - express v5 Released
0:25 - express v5 docs still in beta
0:49 - express v5 changelog / migrating guide
0:56 - rejected promised automatically handled
1:05 - setting up local example api
1:35 - api code tour
1:51 - add broken router
2:34 - throw error in handler without try / catch
3:19 - express error handler setup
4:00 - throw error in handler in async handler without try / catch
5:05 - Installing v5
5:16 - express types not updated yet
5:41 - sendfile removed / renamed to sendFile
5:56 - using express v5
6:31 - send method status argument removed
7:03 - path route matching syntax change
7:20 - async handlers are now caught
7:57 - deprecated methods from v4 are removed in v5
9:01 - pluralized accepts method names
9:47 - v5 upgrades not that bad
9:59 - v5 type updates waiting to be merged
10:21 - Thanks!

Рекомендации по теме
Комментарии
Автор

0:00 - express v5 Released
0:25 - express v5 docs still in beta
0:49 - express v5 changelog / migrating guide
0:56 - rejected promised automatically handled
1:05 - setting up local example api
1:35 - api code tour
1:51 - add broken router
2:34 - throw error in handler without try / catch
3:19 - express error handler setup
4:00 - throw error in handler in async handler without try / catch
5:05 - Installing v5
5:16 - express types not updated yet
5:41 - sendfile removed / renamed to sendFile
5:56 - using express v5
6:31 - send method status argument removed
7:03 - path route matching syntax change
7:16 - req.query not writable
7:20 - async handlers are now caught
7:57 - deprecated methods from v4 are removed in v5
9:01 - pluralized accepts method names
9:09 - app.param leading colon ignored
9:14 - res.send no long accepts just status code - use res.sendStatus
9:47 - v5 upgrades not that bad
9:59 - v5 type updates waiting to be merged
10:21 - Thanks!

CodingGarden
Автор

Absolutely respect the library, the author, and the people that made the effort to actually ship this. But. I'm not coming back after using Hono.

mikevaleriano
Автор

After 10 years, another version update. The stability of this is outstanding.

codedusting
Автор

Love to see a Express.js vs Hono.js comparison

everythingisfine
Автор

For me this is a bummer „Express 5 no longer supports the signature res.json(obj, status). Instead, set the status and then chain it to the res.json() method like this: .. because now we need to always send a status?! Why can’t we keep default 200?

svenst
Автор

Feels like the evolution of js libraries has been promise friendly > typesafe > web standards. This lets me remove a dependency on promiserouter or whatever it’s called but man…it’s years late lol

erikslorenz
Автор

Did CJ accidentally upload this to the wrong channel?

JLarky
Автор

Not to sound ungrateful, but I'm surprised Express still doesn't have first-class support for HTTP/2. My company will probably have to migrate to Fastify because of this.

zabustifu