October 21st, 2024

Next.js 15 and Turbopack Dev (Stable)

Next.js 15 has been released, featuring stability improvements, breaking changes to caching and Async Request APIs, support for React 19, a new CLI for upgrades, and stable Turbopack Dev.

Read original articleLink Icon
Next.js 15 and Turbopack Dev (Stable)

Next.js 15 has been officially released, focusing on stability and introducing several significant updates. Key features include the new @next/codemod CLI for easier upgrades, breaking changes to Async Request APIs and caching semantics, and support for React 19. The caching behavior has shifted, with fetch requests and GET Route Handlers no longer cached by default, allowing developers to opt-in for caching if needed. The release also includes enhancements for forms, TypeScript support in configuration files, and improved server actions security. The Turbopack development tool is now stable, promising faster local server startup and code updates. Additionally, a Static Route Indicator has been introduced to help developers identify static routes during development. The experimental unstable_after API allows for executing tasks after a response is sent, improving server efficiency. The instrumentation.js API is now stable, enabling better performance monitoring and error tracking. Overall, Next.js 15 aims to streamline development processes and enhance application performance.

- Next.js 15 is stable and ready for production use.

- Major updates include breaking changes to caching and Async Request APIs.

- Support for React 19 is included, with backward compatibility for React 18.

- The new @next/codemod CLI simplifies the upgrade process.

- Turbopack Dev is now stable, offering significant performance improvements.

Related

Link Icon 5 comments
By @blovescoffee - 3 months
Next js gets so much hate on HN. In my experience, it's been great. It's kind of like Apple in that, if you buy into the ecosystem, you unlock great benefits. Fwiw we're running on cloudflare at my work and it's been one of the most enjoyable DX I've had in a long time. RTFM and you'll be fine. Listen to conference talks and you'll understand why some of the 'weird' decisions were made - they might not even seem so weird anymore.
By @mdhb - 3 months
All I can see is more lock in and less interoperability with anything else. Seems like a liability to be honest
By @aitchnyu - 3 months
Tangential, does any heavyweight framework allow user to hit back and it loads exact content and scroll position, out of the box? HTMX does it perfectly, since its "unit of serialization" is html dom instead of components and internal state.
By @terandle - 3 months
Great release! People should be much happier with the new caching defaults.
By @prng2021 - 3 months
“We've focused heavily on stability”

Fantastic, it only has 2550 open bugs now! /s