Next.js 15.2 released with improved error messages, faster Turbopack, and more
Next.js has rolled out version 15.2 of its popular React framework, bringing a host of enhancements and bug fixes. Key updates include improved visual and quality aspects of error messages encountered during application development. Additionally, the new version allows the initial UI to be sent to the browser before generateMetadata completes, facilitating dynamic data fetching or asynchronous operations without delay.
Turbopack's performance has been notably enhanced, especially in scenarios lacking persistent caching, leading to faster compile times and reduced memory usage. These improvements position Turbopack as faster than Webpack in nearly all contexts. Additionally, this release introduces a feature flag for the experimental View Transitions API in React, enabling animations between different views and components.
An experimental flag has also been added to permit the use of the Node.js runtime for Next.js Middleware. Version 15.2 includes several other changes and bug fixes, further refining the framework's capabilities.