Releases: web-infra-dev/modern.js
Releases · web-infra-dev/modern.js
v2.67.4
What's Changed
New Features 🎉
- feat: modern.server supports extended server by @zllkjc in #6952
- feat: support getKey for cache funtion by @yimingjfe in #7102
- feat(cache): support customKey for cache by @yimingjfe in #7058
- feat: support unstable_shouldDisable by @yimingjfe in #7058
- feat: support plugin-router-v7 by @yimingjfe in #7106
- feat: support cache statistics by @yimingjfe in #7058
Bug Fixes 🐞
- fix(router): replace slashes in route ID for loader timing reporting by @yimingjfe in #7117
- fix(server): should sync all headers from req.headers by @yimingjfe in #7107
- fix: add the "$" character to avoid alias override in nested entries by @zllkjc in #7093
Other Changes
- chore(deps): update Rsbuild to 1.3.11 by @chenjiahan in #7081
更新内容
新特性 🎉
- feat: modern.server 支持扩展 modern.js 服务 由 @zllkjc 实现, 详情可查看 #6952
- feat: 为 cahce 函数支持 getKey 由 @yimingjfe 实现, 详情可查看 #7102
- feat(cache): 为缓存支持 customKey 函数 由 @yimingjfe 实现, 详情可查看 #7058
- feat: 支持 unstable_shouldDisable 由 @yimingjfe 实现, 详情可查看 #7058
- feat: support plugin-router-v7 由 @yimingjfe 实现, 详情可查看 #7106
- feat: 支持缓存命中率统计 由 @yimingjfe 实现, 详情可查看 #7058
Bug 修复 🐞
- fix(router): 为 server timing 替换 route id 中的 "/" 由 @yimingjfe 实现, 详情可查看 #7117
- fix(server): 应该从 req.headers 同步所有的 headers 由 @yimingjfe 实现, 详情可查看 #7107
- fix: 添加 $ 字符避免嵌套入口时 alias 覆盖 由 @zllkjc 实现, 详情可查看 #7093
v2.67.3
What's Changed
New Features 🎉
- feat: bff supports hono runtime framework by @keepview in #6937
- feat: support deployment for github pages by @yimingjfe in #7052
Other Changes
更新内容
新特性 🎉
- feat: bff 支持 hono 运行时框架 由 @keepview 实现, 详情可查看 #6937
- feat: 支持使用 github pages 部署 由 @yimingjfe 实现, 详情可查看 #7052
其他变更
v2.67.2
What's Changed
New Features 🎉
- feat(ssr): support customizing fallback reason via
x-modern-ssr-fallback
header by @await-ovo in #7045 - feat: improve modern.js server performance by @zllkjc in #7048
- feat(bff): support params and headers for Upload by @yimingjfe in #7031
- feat(ssr): inject fallback reason to html by @await-ovo in #7053
- feat(image): new
@modern-js/image
package to provide optimizedcomponent by @Asuka109 in #7055
Bug Fixes 🐞
- fix(deploy): fix the deploy problem for netlify by @yimingjfe in #7014
- fix: storybook generator template by @caohuilin in #7043
- fix: garfish plugin config name by @caohuilin in #7032
Docs update 📄
更新内容
新特性 🎉
- feat(ssr): 支持在
x-modern-ssr-fallback
中自定义降级原因 由 @await-ovo 实现, 详情可查看 #7045 - feat: 提升 modern.js 服务器性能 由 @zllkjc 实现, 详情可查看 #7048
- feat(bff): 为 Upload 操作符支持 params 和 headers 由 @yimingjfe 实现, 详情可查看 #7031
- feat(ssr): 注入降级原因到响应的 html 由 @await-ovo 实现, 详情可查看 #7053
- feat(image): 新增
@modern-js/image
包以提供优化的组件 由 @Asuka109 实现, 详情可查看 #7055
Bug 修复 🐞
- fix(deploy): 修复部署 netlify 的问题 由 @yimingjfe 实现, 详情可查看 #7014
- fix: 修复 storybook 生成器模板 由 @caohuilin 实现, 详情可查看 #7043
- fix: 修复 garfish 插件配置名称 由 @caohuilin 实现, 详情可查看 #7032
文档更新 📄
v2.67.1
What's Changed
New Features 🎉
- feat(ssr): support streaming ssr to work with http2 by @yimingjfe in #7016
- feat: add node 16 will not support warning by @caohuilin in #7015
Bug Fixes 🐞
- fix(server): webCompiler maybe undefined by @yimingjfe in #7021
Docs update 📄
- docs: Recommended Node version changed to 22, minimum supported Node version changed to 18 by @caohuilin in #7017
更新内容
新特性 🎉
- feat(ssr): 支持 streaming ssr 和 http2 协议一起工作 由 @yimingjfe 实现, 详情可查看 #7016
- feat: 增加 node 16 即将不支持警告信息 由 @caohuilin 实现, 详情可查看 #7015
Bug 修复 🐞
- fix(server): webCompiler 可能为 undefined 由 @yimingjfe 实现, 详情可查看 #7021
文档更新 📄
- docs: 推荐使用 Node 版本修改为 22,最低支持 Node 版本修改为 18 由 @caohuilin 实现, 详情可查看 #7017
v2.67.0
What's Changed
New Features 🎉
- feat: Centralize runtime plugin configuration into
src/modern.runtime.ts
by @caohuilin in #6942 - feat: split state plugin from runtime package by @caohuilin in #6942
Bug Fixes 🐞
- fix: global context appInit and appConfig not define error by @caohuilin in #6981
- fix: initAppContext should not update metaName by @caohuilin in #6978
- fix: should detect page route by entryName, not isApi by @zllkjc in #6980
- fix: temp dir of the framework should be watched by @yimingjfe in #6996
- fix: ssg should concat buffer first, then stringify buffer by @zllkjc in #6982
Docs update 📄
- docs: refactor runtime config doc by @caohuilin in #6977
更新内容
新特性 🎉
- feat: runtime 插件配置集中到
src/modern.runtime.ts
中 由 @caohuilin 实现, 详情可查看 #6942 - feat: 从 runtime 包中拆分 state 插件 由 @caohuilin 实现, 详情可查看 #6942
Bug 修复 🐞
- fix: 修复 global context 文件 appInit 和 appConfig 未定义报错 由 @caohuilin 实现, 详情可查看 #6981
- fix: initAppContext 时不应该更新 metaName 由 @caohuilin 实现, 详情可查看 #6978
- fix: 应该通过 entryName 来判断是否是页面路由,而不是 isApi 由 @zllkjc 实现, 详情可查看 #6980
- fix: 框架的临时目录应该被监听 由 @yimingjfe 实现, 详情可查看 #6996
- fix: ssg 应该先拼接 buffer, 再将 buffer 处理成字符串 由 @zllkjc 实现, 详情可查看 #6982
文档更新 📄
- docs: 重构 Runtime 配置文档 由 @caohuilin 实现, 详情可查看 #6977
v2.66.0
What's Changed
New Features 🎉
- feat: static middleware support dev.assetPrefix by @zllkjc in #6972
- feat: rename ServerPlugin to ServerPluginLegacy and ServerPluginFuture to ServerPlugin by @caohuilin in #6851
- feat: server plugin use plugin v2 by @caohuilin in #6851
Docs update 📄
- docs: Enhance Modern.js Plugin doc by @caohuilin in #6938
更新内容
新特性 🎉
- feat: 静态资源中间件支持 dev.assetPrefix 由 @zllkjc 实现, 详情可查看 #6972
- feat: 将 ServerPlugin 类型重命名为 ServerPluginLegacy,ServerPluginFuture 类型重命名为 ServerPlugin 由 @caohuilin 实现, 详情可查看 #6851
- feat: server 插件使用 plugin v2 实现 由 @caohuilin 实现, 详情可查看 #6851
文档更新 📄
- docs: 提升 Modern.js Plugin 文档 由 @caohuilin 实现, 详情可查看 #6938
v2.65.5
What's Changed
New Features 🎉
- feat: improve support rsc with rspack by @yimingjfe in #6931
- feat: garfish provider support add appName props by @caohuilin in #6957
- feat: Add response APIs to support setting response headers, status codes, and redirects by @yimingjfe in #6931
Bug Fixes 🐞
- fix: fix the compatibility issue of the garfish plugin rendering nodes by @caohuilin in #6939
- fix: add new mid connet for mock handler by @zllkjc in #6955
- fix: route.json html entry path when config html.outputStructure by @caohuilin in #6950
- fix: postcss.config not works by @9aoy in #6670
- fix(cache): handle different functions with same parameters for cache function by @yimingjfe in #6951
更新内容
新特性 🎉
- feat: 完善 rspack 下对 rsc 的支持 由 @yimingjfe 实现, 详情可查看 #6931
- feat: garfish provider 支持添加 appName props 由 @caohuilin 实现, 详情可查看 #6957
- feat: 添加一些响应的 API,可以设置响应头,状态码,及重定向 由 @yimingjfe 实现, 详情可查看 #6931
Bug 修复 🐞
- fix: 修复 garfish 插件渲染节点兼容性问题 由 @caohuilin 实现, 详情可查看 #6939
- fix: 修复当配置 html.outputStructure 为 flat 时,route.json 中 html 入口文件路径 由 @caohuilin 实现, 详情可查看 #6950
- fix(cache): 正确处理使用 cache 函数时,不同函数,相同参数的 case 由 @yimingjfe 实现, 详情可查看 #6951
v2.65.4
What's Changed
New Features 🎉
- feat: rename runtime plugin modifyRuntimeConfig hook to config by @caohuilin in #6928
- feat: use require.resolve to check react version to fix use pnpm catalog in pnpm workspace by @caohuilin in #6919
- feat: Modern.js server static middleware should always use system fs by @zllkjc in #6924
- feat: support watch mode in modern build by @9aoy in #6470
Bug Fixes 🐞
更新内容
新特性 🎉
- feat: 重命名 runtime 插件 modifyRuntimeConfig 钩子为 config 由 @caohuilin 实现, 详情可查看 #6928
- feat: 使用 require.resolve 来检查 react 版本,以修复 pnpm workspace 中使用 pnpm catalog 的问题 由 @caohuilin 实现, 详情可查看 #6919
- feat: Modern.js 的静态中间件应该始终使用系统 fs 由 @zllkjc 实现, 详情可查看 #6924
v2.65.3
What's Changed
New Features 🎉
- feat: defineRuntimeConfig supports function parameters and multiple entry configuration by @caohuilin in #6895
- feat: export getMonitors for server component by @yimingjfe in #6896
- feat: Add response APIs to support setting response headers, status codes, and redirects by @yimingjfe in #6902
Bug Fixes 🐞
Docs update 📄
更新内容
新特性 🎉
- feat: defineRuntimeConfig 支持函数参数及配置多入口 由 @caohuilin 实现, 详情可查看 #6895
- feat: 为 server component 暴露 getMonitors 由 @yimingjfe 实现, 详情可查看 #6896
- feat: 添加一些响应的 API,可以设置响应头,状态码,及重定向 由 @yimingjfe 实现, 详情可查看 #6902
Bug 修复 🐞
文档更新 📄
v2.65.2
What's Changed
New Features 🎉
- feat: use assign to update context by @caohuilin in #6885
- feat: support get monitors in Data Loader and Component by @zllkjc in #6844
- feat(runtime): support cache function & getRequest function by @yimingjfe in #6848
Bug Fixes 🐞
- fix(render): fork react-server-dom-webpack to avoid warnings about installing dependencies by @yimingjfe in #6880
Other Changes
- chore: use monitors instead of reporter to report Data Loader cost by @zllkjc in #6886
- chore: remove
reporter.init
and use Monitors to report request cost by @zllkjc in #6883
更新内容
新特性 🎉
- feat: 使用 assign 函数更新 context 信息 由 @caohuilin 实现, 详情可查看 #6885
- feat: 在 Data Loader 和组件中支持获取 monitors 由 @zllkjc 实现, 详情可查看 #6844
- feat(runtime): 支持 cache 函数 和 getRequest 函数 由 @yimingjfe 实现, 详情可查看 #6848
Bug 修复 🐞
- fix(render): 内置 react-server-dom-webpack 到 packages/toolkit/utils/compiled 中,避免安装依赖的警告 由 @yimingjfe 实现, 详情可查看 #6880