nestjs / nest

A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
https://nestjs.com
MIT License
67.36k stars 7.59k forks source link

Express 5 support #14042

Open TrejGun opened 3 weeks ago

TrejGun commented 3 weeks ago

Is there an existing issue that is already proposing this?

Is your feature request related to a problem? Please describe it

As we are all aware Express 5 has been in beta for a while. I would like to clarify the developers' position on potential migration and define the scope.

Here are the breaking changes introduced in Express.js v5, with additional details and corrections based on the latest documentation:

Route Param Middleware

Removed Deprecated Methods

Improved Error Handling for Async Functions

Changes in Path Route Matching

HTTP/2 Support

Express v5 includes native support for HTTP/2, which allows for better performance and the use of modern features such as multiplexing and server push.

Enforcement of Asynchronous View Rendering

The res.render() method now enforces asynchronous behavior for all view engines, ensuring consistency and avoiding bugs caused by synchronous implementations.

Describe the solution you'd like

native support for express 5 is implemented

Teachability, documentation, adoption, migration strategy

https://expressjs.com/en/guide/migrating-5.html

What is the motivation / use case for changing the behavior?

i would like to utilize new features of ExpressJS 5 like http2 support

kalyan90 commented 1 week ago

I would like to contribute to this enhancement