Skip to content

v3.9.3

Latest

Choose a tag to compare

@caohuilin caohuilin released this 24 Sep 02:31

What's Changed

New Features 🎉

  • feat(builder): tools.less / tools.sass accept the full Rsbuild plugin options and add tools.svgr, so plugin-level options such as parallel can be configured; the legacy forms keep working and are marked deprecated. in #8881

Bug Fixes 🐞

  • fix: fall back to supported base languages when detecting SSR query and cookie languages for custom i18n wrappers, while preserving exact language tag matches. in #8922
  • fix: correct the "Middlware" typo in BFF middleware identifiers — the exported PublicMiddlwareOptions type from @modern-js/server-core is renamed to PublicMiddlewareOptions, and the internal routeMiddlwares variable in @modern-js/plugin-bff is renamed to routeMiddlewares in #8791
  • fix: emit streaming SSR deferred resolver scripts only at safe HTML boundaries in #8838
  • fix: emit completion scripts for deferred fields serialized as pending during streaming SSR in #8838

Other Changes ✨

  • chore: upgrade Rsbuild to v2.2.9 in #8924
  • Remove the programmatic build and deploy exports and restore CLI-owned in #8885
  • Keep SSR cache revalidation running after a completed HTTP response while preserving cancellation for disconnected clients. Handle background render and stream failures without unhandled rejections or caching incomplete HTML. in #8889

Rsbuild Update 📦

  • Upgrade @rsbuild/core from v2.2.7 to v2.2.9. See v2.2.8, and v2.2.9 for details.

更新内容

新特性 🎉

  • feat(builder): tools.less / tools.sass 支持传入 Rsbuild 插件完整选项并新增 tools.svgr,可配置 parallel 等插件级选项;旧写法继续生效并标记废弃。, 详情可查看 #8881

Bug 修复 🐞

  • fix: 修复自定义 i18n wrapper 在 SSR 中通过 URL 参数和 cookie 检测语言时缺少基础语言回退的问题,同时保留完整语言标签的优先匹配。, 详情可查看 #8922
  • fix: 修正 BFF 中间件标识符里的 "Middlware" 拼写错误——@modern-js/server-core 导出的 PublicMiddlwareOptions 类型更名为 PublicMiddlewareOptions,@modern-js/plugin-bff 内部变量 routeMiddlwares 更名为 routeMiddlewares, 详情可查看 #8791
  • fix: Streaming SSR 的 deferred resolver script 仅在安全的 HTML 边界输出, 详情可查看 #8838
  • fix: 流式 SSR 中,初始序列化为等待状态的 deferred 字段完成后发送通知, 详情可查看 #8838

其他变更 ✨

  • chore: 升级 Rsbuild 至 v2.2.9, 详情可查看 #8924
  • build and deploy lifecycles. Programmatic dev and start calls no longer change
    CLI-only initialization behavior, and completed non-watch builds are no longer
    closed automatically. Keep the public closeServer API and DeployOptions
    type., 详情可查看 #8885

Rsbuild 更新 📦

  • 升级 @rsbuild/core 从 v2.2.7 到 v2.2.9,查看 v2.2.8和v2.2.9 了解详情。