Skip to content

v3.10.0

Choose a tag to compare

@caohuilin caohuilin released this 16 Oct 05:57

What's Changed

Bug Fixes 🐞

  • fix: keep loadable hydration aligned with output.chunkLoadingGlobal customized by Rspack plugins in #8839
  • fix(i18n): use named router imports and return only the required react-i18next exports to allow unused dependency code to be tree-shaken. in #8957
  • fix(runtime): keep the original error when a route module fails to load in #8996
  • fix(server-core): discard the AsyncLocalStorage callback result when registering request middleware so an unfinished Hono Context cannot escape as the response. in #9000

Other Changes ✨

  • chore: upgrade Rsbuild to v2.2.13 in #8999
  • Add Rstack CLI documentation guidance to AGENTS.md in new projects. in #8993
  • Add a pre-commit hook to new standalone projects using Rstack CLI to lint and format staged files. in #8989
  • Recommend the Rstack VS Code extension in new standalone projects. in #8991
  • Move the runtime script to the body before production inlining so streaming SSR hydration waits for initial router data. When runtime extraction is disabled, move the entry containing the runtime to the body and preload it from the head to preserve early downloading. in #8956
  • 修复共享 Rslib 配置中多个构建目标并发写入同一声明目录导致的类型文件损坏问题。 in #8959
  • Generate only AGENTS.md for AI coding guidance. Stop creating or updating CLAUDE.md in project templates and the --agents-md-only command. in #8984
  • chore: remove obsolete Jest test plugin hooks, configuration types, and the unused testing and tools.jest configuration options. in #8994
  • Use Rstack CLI for linting and formatting in new projects. in #8983
  • Wait for existing Node production SSR bundle warmup before starting the server, and preserve required SSR entry loading errors instead of starting with missing render modules. Non-SSR/static routes are not treated as required SSR entries. Missing optional loader bundles and manifests remain supported; CSR-only, RSC and development startup behavior is unchanged. Lazy route modules are not eagerly loaded. in #8996
  • chore(deps): upgrade Rsbuild to v2.2.12. in #8952

Rsbuild Update 📦

更新内容

Bug 修复 🐞

  • fix: 确保 loadable 水合使用 Rspack 插件自定义的 output.chunkLoadingGlobal, 详情可查看 #8839
  • fix(i18n): 使用 Router 命名导入,并仅返回所需的 react-i18next 导出,便于构建器裁剪未使用的依赖代码。, 详情可查看 #8957
  • fix(runtime): 路由模块加载失败时保留原始错误
    Preserve module initialization errors across preloads and repeated imports in SSR server bundles, without changing browser bundle error handling.
    SSR server bundle 在 preload 和重复 import 后仍保留模块初始化的原始 error,不改变 browser bundle 的错误处理。, 详情可查看 #8996
  • fix(server-core): 注册请求上下文中间件时,不再返回 AsyncLocalStorage 回调的结果,避免未完成的 Hono Context 被当作响应返回。, 详情可查看 #9000

其他变更 ✨

  • chore: 升级 Rsbuild 至 v2.2.13, 详情可查看 #8999
  • chore: 移除已废弃的 Jest 测试插件钩子、配置类型以及无用的 testing 和 tools.jest 配置项。, 详情可查看 #8994
  • chore(deps): 升级 Rsbuild 到 v2.2.12。, 详情可查看 #8952

Rsbuild 更新 📦