Skip to content

Releases: web-infra-dev/modern.js

v3.1.5

23 Apr 10:26

Choose a tag to compare

更新内容

Bug 修复 🐞

  • fix: 修复 Rspack 2.0 下的 chunk ID 问题, 详情可查看 #8570

其他变更 ✨

  • chore: 升级 @rsbuild 相关依赖至 v2.0.0, 详情可查看 #8565

Rsbuild 更新 📦

  • 升级 @rsbuild/core 从 v2.0.0-rc.0 到 v2.0.0,查看 v2.0.0 了解详情。

v3.1.4

15 Apr 19:11

Choose a tag to compare

What's Changed

Bug Fixes 🐞

  • fix: netlify function not get the right server path in #8543

更新内容

Bug 修复 🐞

  • fix: netlify function 未获取正确的 server 路径, 详情可查看 #8543

v3.1.3

09 Apr 03:12

Choose a tag to compare

What's Changed

Bug Fixes 🐞

  • fix: isolate sdk resource events between i18n instances in #8523

Docs update 📄

  • docs: remove unused code in vercel deployment plugin in #8527

更新内容

Bug 修复 🐞

  • fix: 隔离多 i18n 实例之间的 sdk 资源事件串扰, 详情可查看 #8523

文档更新 📄

  • docs: 移除 Vercel 部署插件中未使用的代码, 详情可查看 #8527

v3.1.2

02 Apr 09:44

Choose a tag to compare

What's Changed

New Features 🎉

  • feat: support OPTIONS handler on ServerBase in #8483

Bug Fixes 🐞

  • fix: restore dev server runtime stability for server config in #8500
  • fix: not got the right component props in #8498
  • fix: use Node 22 native loader for tsconfig path aliases in #8484

Other Changes ✨

Rsbuild Update 📦

  • Upgrade @rsbuild/core from v2.0.0-beta.4 to v2.0.0-rc.0. See v2.0.0-rc.0 for details.

更新内容

新特性 🎉

  • feat: 为 serverBase 添加 options handler, 详情可查看 #8483

Bug 修复 🐞

  • fix: 处理 dev server runtime 的稳定性, 详情可查看 #8500
  • fix: 未能正确识别 component 的部分属性, 详情可查看 #8498
  • fix: 使用 node v22 原生 loader 处理 tsconfig path aliases, 详情可查看 #8484

Rsbuild 更新 📦

  • 升级 @rsbuild/core 从 v2.0.0-beta.4 到 v2.0.0-rc.0,查看 v2.0.0-rc.0 了解详情。

v3.1.1

26 Mar 00:05

Choose a tag to compare

What's Changed

Bug Fixes 🐞

  • fix: netlify use different request by module export way in #8477
  • fix: preserve closing tags order in RSC HTML responses in #8463
  • fix: support custom entry in rsc client mode in #8464

更新内容

Bug 修复 🐞

  • fix: netlify 在不同的 module 导出方式下使用不同的版本,进而有不同的 request, 详情可查看 #8477
  • fix: 为 rsc html 保留 closing tags order, 详情可查看 #8463
  • fix: 支持在 RSC 客户端模式下自定义入口, 详情可查看 #8464

v3.1.0

19 Mar 07:25

Choose a tag to compare

What's Changed

New Features 🎉

  • feat: deploy command generate esm artifact in #8306

Bug Fixes 🐞

  • fix: check ts-node existence via package.json instead of module resolution to avoid false positives from hoisted dependencies in #8455
  • fix: ssr hydration should add prefix_id for react use_id in #8433
  • fix: temporarily disable the o shortcut key, as it opens the wrong URL (/html/main => 404). in #8442
  • fix(bff-core): filter failed modules correctly and include filename in errors in #8434

更新内容

新特性 🎉

  • feat: deploy 命令支持生成 ESM 产物, 详情可查看 #8306

Bug 修复 🐞

  • fix: 通过读取 package.json 检测 ts-node 是否存在,避免因依赖提升等因素导致模块解析误判, 详情可查看 #8455
  • fix: 为了 react useid hook, ssr hydration 应该添加 prefix_id, 详情可查看 #8433
  • fix: 临时禁用 o 快捷键,因为它会打开错误的网址(/html/main => 404)。, 详情可查看 #8442
  • fix(bff-core): 正确过滤未能正确加载的BFF模块; 在加载错误中包含文件名, 详情可查看 #8434

v3.0.5

12 Mar 05:07

Choose a tag to compare

What's Changed

New Features 🎉

  • feat(router): skip RSC payload fetch for client-only route navigations in #8430
  • feat: add modern.js adapter to run tests via Rstest in #8413

Bug Fixes 🐞

  • fix: use correct file for bootstrap in #8428
  • fix: style-components import path in #8420

更新内容

新特性 🎉

  • feat(router): 导航到只有客户端路由组件的路径时,跳过对 rsc payload 的拉取, 详情可查看 #8430
  • feat: 添加 modern.js 适配器以在 Rstest 中继承 Modern.js 的配置, 详情可查看 #8413

Bug 修复 🐞

  • fix: 使用正确的 bootstrap 文件, 详情可查看 #8428
  • fix: 修复 styled-components 导入路径问题, 详情可查看 #8420

v3.0.4

04 Mar 22:11

Choose a tag to compare

What's Changed

Bug Fixes 🐞

  • fix: update context in createStorybookOptions to resolve the issue of missing BFF configuration in #8412
  • fix: close document compiler minify in #8375
  • fix: csr remove @swc/plugin-loadable-components in #8376
  • fix: sync server hono context to dev BFF context in #8410
  • fix(runtime): should match head file correctly in #8383
  • fix: rsbuild plugins type mismatch in #8414

更新内容

Bug 修复 🐞

  • fix: createStorybookOptions 中更新上下文,解决 BFF 配置缺失问题, 详情可查看 #8412
  • fix: 关闭 document Rspack 编译器的 minify 选项, 详情可查看 #8375
  • fix: csr 移除 @swc/plugin-loadable-components 配置, 详情可查看 #8376
  • fix: dev 环境同步自定义 server 上下文到 BFF 上下文, 详情可查看 #8410
  • fix(runtime): 应该正确的匹配 head 文件, 详情可查看 #8383
  • fix: 修复 rsbuild plugins 类型不匹配问题, 详情可查看 #8414

v3.0.3

25 Feb 21:22

Choose a tag to compare

What's Changed

Bug Fixes 🐞

  • fix(builder): check original config to determine if inlineScripts was explicitly set by user in #8353
  • fix: inlineScripts should not takes the default value when set to false in #8343

Other Changes ✨

  • chore(create): simplify project creation output logs in #8368

更新内容

Bug 修复 🐞

  • fix(builder): 通过检查原始配置来判断 inlineScripts 是否由用户显式设置, 详情可查看 #8353
  • fix: inlineScripts 设置为false时不应取默认值, 详情可查看 #8343

其他变更 ✨

  • chore(create): 简化项目创建输出日志, 详情可查看 #8368

v2.70.8

26 Feb 01:12

Choose a tag to compare

What's Changed

Bug Fixes 🐞

  • fix: 修复 README.md 中的 Benchmark 的链接错误 by @zllkjc in #8377

更新内容

Bug 修复 🐞

  • fix: fix the wrong link of Benchmark in README.md 由 @zllkjc 实现, 详情可查看 #8377