返回综合榜
开发工具与框架InfoQ基于 RSS 摘要

Next.js 16.4 将 Cache Components 设为推荐默认项,新增 ensureStatic 与导航 API

Next.js 16.4 于 2026 年 10 月 6 日发布,现已将 Cache Components 推荐为所有应用的默认选项,并计划在 Next.js 17 中正式采用。使用该版本新建的项目会默认启用 cacheComponents 和 partialPrefetching 选项。

本次发布新增了 ensureStatic API,以及 navigation() 和 prefetch() 函数,同时带来了 Turbopack 改进、对 React 19.3 的支持,以及帮助升级的基于 agent 的工具。

该版本的安全补丁于 2026 年 10 月 14 日发布。升级的开发者应关注新的缓存行为,因为向 Cache Components 的转变会改变 Next.js 应用中静态与动态内容的处理方式。

Next.js 16.4 Makes Cache Components the Recommended Default, with ensureStatic and Navigation APIs

Next.js 16.4, released October 6, 2026, now recommends Cache Components as the default for all applications, and Next.js 17 is planned to adopt them. New projects created with this version enable the cacheComponents and partialPrefetching options by default.

The release introduces the ensureStatic API along with new navigation() and prefetch() functions, alongside Turbopack improvements, support for React 19.3, and agent-based tooling to help with upgrades.

A security patch for this release followed on October 14, 2026. Developers upgrading should review the new caching behavior, as the shift toward Cache Components changes how static and dynamic content is handled in Next.js apps.

Next.jsreleasecache componentsTurbopackReact
综合25
质量80
猎物热度26
时效0
信息来源1 个来源,主来源:InfoQ

猎鹰不保存原文正文。标题与摘要用于快速发现信息,事实细节请以来源原文为准。

查看来源