Releases: web-infra-dev/modern.js
Releases · web-infra-dev/modern.js
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
其他变更
v2.65.1
v2.65.0
What's Changed
New Features 🎉
- feat: BFF 跨项目调用支持配置域名,补充文档 by @keepview in #6803
- feat: pass through the body, when query is pass_body by @yimingjfe in #6841
- feat: support rsbuild modify config hook by @caohuilin in #6840
Bug Fixes 🐞
- fix: support add frameworkConfigPath to buildCache.buildDependencies when rspack build by @9aoy in #6839
- fix(bff): fixed path issue of generating package.json attribute by @keepview in #6843
更新内容
新特性 🎉
- feat: BFF cross-project-invocation supports configuration of domain, add doc 由 @keepview 实现, 详情可查看 #6803
- feat: 透传 body,当 query 为 pass_body 时 由 @yimingjfe 实现, 详情可查看 #6841
- feat: 支持 rsbuild 修改配置的 Hook 函数 由 @caohuilin 实现, 详情可查看 #6840
Bug 修复 🐞
v2.64.3
What's Changed
New Features 🎉
- feat(server): allow x-parse-through-body header to parse through the body of req by @yimingjfe in #6836
Bug Fixes 🐞
- fix(router): compatible with splitRouteChunks is false in react17 + csr by @yimingjfe in #6827
更新内容
新特性 🎉
- feat(server): 添加 x-parse-through-body 以透传请求体 由 @yimingjfe 实现, 详情可查看 #6836
Bug 修复 🐞
- fix(router): 在 react17 和 csr 模式下,兼容 splitRouteChunks 为 false 的情况 由 @yimingjfe 实现, 详情可查看 #6827
v2.64.2
What's Changed
New Features 🎉
- feat: bump rsbuild & rspack 1.2.x by @9aoy in #6821
- feat: unify server monitors usage, add error logger for data loader by @zllkjc in #6818
- feat: move modifyServerRoutes hook to plugin v2 by @caohuilin in #6800
Bug Fixes 🐞
- fix: add
server.logger
to control internal server logger by @zllkjc in #6812 - fix: plugin v2 runtime export add node config by @caohuilin in #6819
- fix(dev-server): apply dev configuration, then void dev.setupMiddlewares config lost by @GiveMe-A-Name in #6799
- fix: types for custom server hook by @yimingjfe in #6823
- fix: compat chain.cache true by @9aoy in #6824
Other Changes
更新内容
新特性 🎉
- feat: 统一 server 监控的使用方式,为 data loader 添加错误日志 由 @zllkjc 实现, 详情可查看 #6818
- feat: 将 modifyServerRoutes 钩子函数移动到 plugin v2 中 由 @caohuilin 实现, 详情可查看 #6800
Bug 修复 🐞
- fix: 添加
server.logger
配置来控制 Server 内部日志 由 @zllkjc 实现, 详情可查看 #6812 - fix: plugin v2 runtime 导出增加 node 配置 由 @caohuilin 实现, 详情可查看 #6819
- fix(dev-server): 应用 dev 配置防止 dev.setupMiddlewares 丢失 由 @GiveMe-A-Name 实现, 详情可查看 #6799
- fix: 自定义 server 的 hook 类型 由 @yimingjfe 实现, 详情可查看 #6823
其他变更
v2.64.1
What's Changed
New Features 🎉
- feat: use
jiti
to read config file for supporting esm import by @caohuilin in #6751 - feat: load env in appTools when before the first time load modern config by @zllkjc in #6774
- feat: add warning for twin.macro v2 usage by @caohuilin in #6762
- feat: migrate _internalRuntimePlugins and _internalServerPlugins hooks to plugin v2 by @caohuilin in #6779
- feat: cli plugin support ExtendConfigUtils by @caohuilin in #6752
Bug Fixes 🐞
- fix: remove register esbuild in registerEsm & should log status correctly by @yimingjfe in #6754
更新内容
新特性 🎉
- feat: 使用
jiti
读取配置文件,支持 esm 导入 由 @caohuilin 实现, 详情可查看 #6751 - feat: 在 appTools 在第一次加载 modern config 之前,加载环境变量 由 @zllkjc 实现, 详情可查看 #6774
- feat: twin.macro v2 使用添加警告信息 由 @caohuilin 实现, 详情可查看 #6762
- feat: 迁移 _internalRuntimePlugins 和 _internalServerPlugins hook 函数到 plugin-v2 由 @caohuilin 实现, 详情可查看 #6779
- feat: cli 插件支持扩展 config 工具函数 由 @caohuilin 实现, 详情可查看 #6752
Bug 修复 🐞
- fix: 移除在 registerEsm 中注册 esbuild & 正确地打印 status 由 @yimingjfe 实现, 详情可查看 #6754
v2.64.0
What's Changed
New Features 🎉
- feat: export router extend hooks type by @caohuilin in #6750
- feat: enhance plugin API type inference, supporting extendsHooks and extendsAPI by @caohuilin in #6750
- feat: upgarde the basic dependency version in the template by @caohuilin in #6739
- feat: runtime plugin use plugin v2 by @caohuilin in #6709
更新内容
新特性 🎉
- feat: 导出 router 插件扩展 Hooks 类型 由 @caohuilin 实现, 详情可查看 #6750
- feat: 增强 plugin api 类型推断,支持 extendsHooks 和 extendsAPI 由 @caohuilin 实现, 详情可查看 #6750
- feat: 升级模板中基础依赖版本 由 @caohuilin 实现, 详情可查看 #6739
- feat: runtime 插件使用插件 v2 由 @caohuilin 实现, 详情可查看 #6709
v2.63.7
What's Changed
New Features 🎉
- feat: add new configuration for reload on SSR URL mismatch by @zllkjc in #6731
- feat: plugin run support config params to overrides config file content by @caohuilin in #6732
- feat: adjust after dev hook type and run time by @caohuilin in #6732
- feat: add onDevCompileDone hook by @caohuilin in #6732
- feat: bff support independent project by @keepview in #6587
- feat: plugin api add isPluginExists by @caohuilin in #6713
- feat: cli plugin support extend build utils by @caohuilin in #6715
- feat: handle api not register error by @caohuilin in #6732
- feat: support styled-component in streaming ssr by @zllkjc in #6734
- feat: unify the response logic of the Loader in SSR by @zllkjc in #6720
Bug Fixes 🐞
- fix(ssg): unable to render huge list of routes by @Asuka109 in #6711
- fix(bff): client bundle supplement env variables & fix bff test by @keepview in #6733
更新内容
新特性 🎉
- feat: 添加新的配置,支持在 SSR URL 不匹配时重新加载页面 由 @zllkjc 实现, 详情可查看 #6731
- feat: 插件 run 方法支持添加更高优先级的配置参数 由 @caohuilin 实现, 详情可查看 #6732
- feat: 调整 onAfterDev 钩子函数的类型和执行时机 由 @caohuilin 实现, 详情可查看 #6732
- feat: 添加 onDevCompileDone 钩子函数 由 @caohuilin 实现, 详情可查看 #6732
- feat: bff 支持跨项目调用 由 @keepview 实现, 详情可查看 #6587
- feat: 插件 api 增加 isPluginExists 由 @caohuilin 实现, 详情可查看 #6713
- feat: cli 插件支持扩展构建工具函数 由 @caohuilin 实现, 详情可查看 #6715
- feat: api 未注册时增加 debug 调试信息 由 @caohuilin 实现, 详情可查看 #6732
- feat: 在流式渲染中支持 styled-component 由 @zllkjc 实现, 详情可查看 #6734
- feat: 统一 SSR 中 Loader 的响应逻辑 由 @zllkjc 实现, 详情可查看 #6720
Bug 修复 🐞
v2.63.6
What's Changed
New Features 🎉
- feat: deprecate beforeConfig hook by @caohuilin in #6703
- feat: support isPluginExists for plugin manager by @caohuilin in #6702
Bug Fixes 🐞
- fix: add missing getInitData api by @zllkjc in #6707
- fix: support unstable middleware hot reload by @zllkjc in #6701
- fix: use entryName to ensure match the target route correctly after router.rewrite by @zllkjc in #6706
Other Changes
更新内容
新特性 🎉
- feat: 废弃 beforeConfig Hook 由 @caohuilin 实现, 详情可查看 #6703
- feat: 插件支持 isPluginExists 方法 由 @caohuilin 实现, 详情可查看 #6702