Next.js 16.3发布:开发内存最多降90%,新增Instant Navigations

Next.js 16.3: faster, better, stronger. My highlights: 0️⃣ Faster dev & builds Shoutout to Fable fo...

精选理由

如果你用Next.js,16.3把开发内存最多砍掉90%,还能让Agent帮你平滑升级,直接上手就行。

AI 摘要

Next.js 16.3正式发布,开发模式内存使用最多降低90%,构建、类型检查和渲染速度均有提升。新版本加入Instant Navigations功能,可提供类似SPA的响应式导航,并计划未来设为默认。针对AI Agent优化了开发体验,内置版本化文档和多种导航策略供选择。本次更新还包含自定义错误边界和增量next build缓存,共有90位贡献者参与。

原文 · Guillermo Rauch

Next.js 16.3: faster, better, stronger. My highlights: 0️⃣ Faster dev & builds Shoutout to Fable fo...

Next.js 16.3: faster, better, stronger. My highlights: 0️⃣ Faster dev & builds Shoutout to Fable for improving memory use, and the team for landing the incremental 𝚗𝚎𝚡𝚝 𝚋𝚞𝚒𝚕𝚍 cache. 1️⃣ Instant navigations are 🔥 The people wanted SPAs, they shall get SPAs. By turning on instant navs (which will soon be default), your agent is basically forced to make things fast. 2️⃣ Agent-native DX You can still ship "slow" navs if you want, e.g. by blocking navs on server-side data fetching ala PHP olden days. But even then, your agent will be given *choices*, like setting up a <𝚂𝚞𝚜𝚙𝚎𝚗𝚜𝚎 𝚏𝚊𝚕𝚕𝚋𝚊𝚌𝚔> for instant loading shells. Agents also get built-in versioned docs. This is our best release for agents by far, which will also make your upgrading journey very smooth. I've had an easy time bumping my projects to 16.3 and enabling instant navs, having my agent migrate everything without issues. And so much more. 16.3 is more cost-efficient to serve, both in self-hosting and serverless environments. Faster to type-check… Thank you to the 90 contributors to this release! Next.js @nextjs Next.js 16.3 is now available! • Up to 90% less memory in dev • Faster builds, type checking, and rendering • Better tooling for AI agents • Custom error boundaries • Instant Navigations for SPA-like responsiveness nextjs.org/blog/next-16-3 Here's what's new ↓ 🔗 View Quoted Tweet 💬 12 🔄 9 ❤️ 52 👀 4418 📊 15 ⚡