Skip to content

v3.11.1

Latest

Choose a tag to compare

@caohuilin caohuilin released this 05 Nov 15:24

What's Changed

New Features 🎉

  • feat(runtime): add router.useTransitions to control whether router state updates use React.startTransition by @keepview in #9121

Bug Fixes 🐞

  • fix(bff-core): type Data, Query, Params, Headers and Upload against Standard Schema instead of the zod package, so Zod 3 and Zod 4 schemas both type-check no matter which zod copy bff-core resolves. by @keepview in #9089
  • fix(server): use the named minimatch export in the development watcher so native ESM imports work with minimatch 11. by @SoonIter in #9114
  • fix: match prerendered SSG pages exactly and use available entry SSR or CSR fallbacks for other paths. Redirect trailing-slash SSG URLs to their canonical paths while preserving query strings. Skip non-2xx prerender responses with a warning instead of publishing error pages as successful HTML. by @zllkjc in #9084
  • fix(mcp-apps): align the server-runtime peer dependency with the current workspace version. by @zllkjc in #9086
  • fix(data-loader): handle redirects returned or thrown by server actions during client submissions. by @zllkjc in #9086
  • fix(prod-server): default production server logging to info and document MODERN_SERVER_LOG_LEVEL. Set MODERN_SERVER_LOG_LEVEL=verbose to restore per-request logs. by @zllkjc in #9083
  • fix(mcp-apps): remove the default loading placeholder in createMcpView by @zllkjc in #9082
  • fix(mcp-apps): synchronize the server-runtime peer dependency with the workspace version after the 3.10.4 release. by @zllkjc in #9083
  • fix(runtime): keep chunk IDs that would lose information when converted to numbers in loadable-stats.json, so compact-hashed IDs with leading zeros still match the ones registered by the runtime and string SSR hydration can finish. by @Hstealth in #9097

Other Changes ✨

  • Upgrade @rsbuild/core to 2.3.1. by @stormslowly in #9118
  • Build render with Rslib while preserving public entry points and application RSC manifest references. by @zllkjc in #9085

Rsbuild Update 📦

  • Upgrade @rsbuild/core from v2.2.13 to v2.3.1. See v2.3.1 for details.

更新内容

新特性 🎉

  • feat(runtime): 新增 router.useTransitions 配置,控制路由状态更新是否使用 React.startTransition 由 @keepview 实现, 详情可查看 #9121

Bug 修复 🐞

  • fix(bff-core): Data、Query、Params、Headers、Upload 的参数类型改为基于 Standard Schema,不再依赖 zod 包本身。无论 bff-core 解析到哪个版本的 zod,Zod 3 和 Zod 4 的 schema 都能通过类型检查。 由 @keepview 实现, 详情可查看 #9089
  • fix(server):开发服务器 watcher 改用 minimatch 的具名导出,修复升级 minimatch 11 后原生 ESM 加载失败的问题。 由 @SoonIter 实现, 详情可查看 #9114
  • fix: 精确匹配 SSG 预渲染页面,其他路径使用可用的入口 SSR 或 CSR 回退。将带尾部斜杠的 SSG URL 重定向到对应路径,并保留查询参数。跳过非 2xx 预渲染响应并输出警告,避免将错误页面作为成功的静态 HTML 发布。 由 @zllkjc 实现, 详情可查看 #9084
  • fix(mcp-apps): 将 server-runtime peer 依赖对齐到当前工作区版本。 由 @zllkjc 实现, 详情可查看 #9086
  • fix(data-loader): 修复客户端提交时服务端 action 返回或抛出的重定向无法触发页面跳转的问题。 由 @zllkjc 实现, 详情可查看 #9086
  • fix(prod-server):生产服务器默认使用 info 日志级别,并补充 MODERN_SERVER_LOG_LEVEL 文档。设置 MODERN_SERVER_LOG_LEVEL=verbose 可恢复逐请求日志。 由 @zllkjc 实现, 详情可查看 #9083
  • fix(mcp-apps):将 server-runtime 的 peer 依赖同步到 3.10.4 发布后的工作区版本。 由 @zllkjc 实现, 详情可查看 #9083
  • fix(runtime): 修复 loadable-stats.json 将 compact-hashed 产生的前导零 chunk ID 转为数字,导致与实际注册的 ID 不匹配、string SSR 水合无法完成的问题。 由 @Hstealth 实现, 详情可查看 #9097

其他变更 ✨

  • 将 @rsbuild/core 升级至 2.3.1。 由 @stormslowly 实现, 详情可查看 #9118

Rsbuild 更新 📦

  • 升级 @rsbuild/core 从 v2.2.13 到 v2.3.1,查看 v2.3.1 了解详情。