Releases: web-infra-dev/modern.js
Releases · web-infra-dev/modern.js
v2.57.0
What's Changed
New Features 🎉
- feat(ssr): support server.ssrByRouteIds by @yimingjfe in #5986
- feat: inject renderHandler to appContext & add default serverPlugins by @GiveMe-A-Name in #6012
- feat(ssg): support ssg with bff.enableHandleWeb by @yimingjfe in #5983
- feat: reexport new dev options by @GiveMe-A-Name in #6004
- feat: refactor runtime plugin hooks by @caohuilin in #5988
- feat: Support Runtime Plugin Communication by @caohuilin in #5988
Bug Fixes 🐞
- fix: data loader support async-node target by @2heal1 in #6016
- fix: more runtime plugin add alias not work by @caohuilin in #6002
- fix: add deferedDataScripts only streaming ssr by @GiveMe-A-Name in #6022
- fix(plugin-garfish): can not import garfish runtime directly which has sideffect by @2heal1 in #5997
- fix: type error when registering Rsbuild plugins by @chenjiahan in #6018
- fix: dev server should call rsbuild.afterListen when listen by @GiveMe-A-Name in #6008
- fix: user can get status in afterRenderContext by @GiveMe-A-Name in #6009
- fix: distPath should from output.distPath.root by @GiveMe-A-Name in #6010
- fix: we should export
getLoaderCtx
from server-core by @GiveMe-A-Name in #6020 - fix:
createDevServer
should not listen port by default by @GiveMe-A-Name in #6000 - fix: mergeConfig function to return an object when the first configuration is not an object by @caohuilin in #6024
- fix: react 17 ssr context error by @caohuilin in #6023
- fix: faviconPlugin should after staticPlugin by @GiveMe-A-Name in #6019
更新内容
新特性 🎉
- feat(ssr): 支持 server.ssrByRouteIds 由 @yimingjfe 实现, 详情可查看 #5986
- feat: 注入 renderHandler 到 appContext & 新增默认 serverPlugins 由 @GiveMe-A-Name 实现, 详情可查看 #6012
- feat(ssg): 支持 ssg 和 bff.enableHandleWeb 一起使用 由 @yimingjfe 实现, 详情可查看 #5983
- feat: 重导出 dev 配置 由 @GiveMe-A-Name 实现, 详情可查看 #6004
- feat: 重构 runtime 插件钩子函数 由 @caohuilin 实现, 详情可查看 #5988
- feat: 支持 Runtime 插件通信 由 @caohuilin 实现, 详情可查看 #5988
Bug 修复 🐞
- fix: 多个 runtime 插件添加 runtime 路径别名时不符合预期 由 @caohuilin 实现, 详情可查看 #6002
- fix: 只有在 streaming ssr 时才添加 deferedDataScripts 由 @GiveMe-A-Name 实现, 详情可查看 #6022
- fix(plugin-garfish): 不能直接注入带有副作用的 garfish runtime 由 @2heal1 实现, 详情可查看 #5997
- fix: dev server 应该在 listen 时,调用 rsbuild.afterListen 由 @GiveMe-A-Name 实现, 详情可查看 #6008
- fix: 用户可以从 afterRenderContext 上拿到 status 由 @GiveMe-A-Name 实现, 详情可查看 #6009
- fix: distPath 应该来自 output.distPath.root 由 @GiveMe-A-Name 实现, 详情可查看 #6010
- fix: 我们应该从 server-core 导出
getLoaderCtx
由 @GiveMe-A-Name 实现, 详情可查看 #6020 - fix:
createDevServer
默认不应该监听端口 由 @GiveMe-A-Name 实现, 详情可查看 #6000 - fix: 修复 mergeConfig 函数,使其在第一个配置非对象时返回对象 由 @caohuilin 实现, 详情可查看 #6024
- fix: 修复 react 17 ssr 找不到 runtimeReactContext 报错 由 @caohuilin 实现, 详情可查看 #6023
- fix: faviconPlugin 应该在 staticPlugin 之后 由 @GiveMe-A-Name 实现, 详情可查看 #6019
v2.56.2
What's Changed
New Features 🎉
- feat: set async entry for data loader entry if enable source.enableAsyncEntry by @2heal1 in #5924
- feat: router v5 and garfish runtime plugin use @meta/runtime path for @modern-js/runtime package by @caohuilin in #5989
Bug Fixes 🐞
- fix: exports more server types by @GiveMe-A-Name in #5995
- fix: handle the case of nft find for error dependencies by @yimingjfe in #5985
- fix: ssrContext.request maybe a undefined by @GiveMe-A-Name in #5991
- fix: resolve.extensions should add .server.jsx when target = node by @GiveMe-A-Name in #5992
- fix: enableAsyncEntry = true, we should generate bootstrap.server.jsx when ssr mode by @GiveMe-A-Name in #5992
更新内容
新特性 🎉
- feat: router v5 和 garfish runtime 插件使用 @meta/runtime 路径导入 @modern-js/runtime 由 @caohuilin 实现, 详情可查看 #5989
Bug 修复 🐞
- fix: 导出更多的 server 类型 由 @GiveMe-A-Name 实现, 详情可查看 #5995
- fix: 处理 nft 查找到错误依赖的情况 由 @yimingjfe 实现, 详情可查看 #5985
- fix: ssrContext.request 可能是 undefined 由 @GiveMe-A-Name 实现, 详情可查看 #5991
- fix: resolve.extensions 应该添加上 .server.jsx 当 target 为 node 时 由 @GiveMe-A-Name 实现, 详情可查看 #5992
- fix: enableAsyncEntry 为 true, 我们应该生成 bootstrap.server.jsx 在 ssr 模式下 由 @GiveMe-A-Name 实现, 详情可查看 #5992
v2.56.1
What's Changed
New Features 🎉
- feat: garfish beforeRender function support props params by @caohuilin in #5970
Bug Fixes 🐞
- fix: new server middleware support get body, if request.method is post by @GiveMe-A-Name in #5972
- fix: storybook port occupied error by @9aoy in #5966
- fix: match unexpected environment resources when artifact with the same name in different environments by @9aoy in #5968
- fix: import plugin api from @modern-js/plugin instead @modern-js/core by @zllkjc in #5974
- fix(ssr): Avoid the compilation problem with renderToPipeableStream and react 17 by @yimingjfe in #5965
- fix: style assets should be add to cssChunk by @GiveMe-A-Name in #5971
- fix: remove unused @loadable/webpack-plugin dependency by @chenjiahan in #5976
更新内容
新特性 🎉
- feat: garfish beforeRender 函数支持 props 参数 由 @caohuilin 实现, 详情可查看 #5970
Bug 修复 🐞
- fix: 如果请求是 post, 新 server middlewares 可以拿到 body 数据 由 @GiveMe-A-Name 实现, 详情可查看 #5972
- fix: 修复 storybook 端口占用报错 由 @9aoy 实现, 详情可查看 #5966
- fix: 当存在同名产物时匹配到不符合预期的 environment 资源 由 @9aoy 实现, 详情可查看 #5968
- fix: 从 @modern-js/plugin 导入插件 api 而不是 @modern-js/core 由 @zllkjc 实现, 详情可查看 #5974
- fix(ssr): 避免 react 17 下,使用 renderToPipeableStream 的编译问题 由 @yimingjfe 实现, 详情可查看 #5965
- fix: style 应该被添加到 cssChunks 由 @GiveMe-A-Name 实现, 详情可查看 #5971
v2.56.0
What's Changed
New Features 🎉
- feat: the runtime path use the meta alias in garfish provider by @caohuilin in #5949
- feat: server monitors interface unity by @GiveMe-A-Name in #5925
- feat: remove lodash dep from runtime mergeConfig function by @caohuilin in #5939
- feat: garfish plugin support custom behavior before render by @caohuilin in #5959
- feat: refactor the logic of the system file router entry by @caohuilin in #5943
Bug Fixes 🐞
- fix(prefetch): chunkId may be string or number by @yimingjfe in #5951
- fix(babel-preset): cjs extension should be js by @chenjiahan in #5952
- fix(plugin-runtime): failed to resolve @rsbuild/core by @chenjiahan in #5950
- fix: router plugin should receive request that method is GET by @GiveMe-A-Name in #5960
- fix: server runtime should get config.disablePrerender from ssr config by @GiveMe-A-Name in #5942
- fix: mockHandler should run before rsbuild middleware & mockHandler can't hmr correctly by @GiveMe-A-Name in #5954
- fix: ssrContext in browser should add document information by @GiveMe-A-Name in #5956
Other Changes
- refactor: bump rsbuild 1.0.0-alpha and use Rsbuild environment config by @9aoy in #5940
- chore: move babel-preset package by @chenjiahan in #5946
- chore(deps): bump rspress to 1.26.1 by @shulaoda in #5948
更新内容
新特性 🎉
- feat: 在 garfish provider 函数中使用 runtime 别名路径 由 @caohuilin 实现, 详情可查看 #5949
- feat: server 监控接口统一 由 @GiveMe-A-Name 实现, 详情可查看 #5925
- feat: mergeConfig 函数移除 lodash 依赖 由 @caohuilin 实现, 详情可查看 #5939
- feat: garfish 插件支持在 render 前自定义行为 由 @caohuilin 实现, 详情可查看 #5959
- feat: 重构文件系统路由入口逻辑 由 @caohuilin 实现, 详情可查看 #5943
Bug 修复 🐞
- fix(prefetch): chunkId 可能是 sstring 或 number 由 @yimingjfe 实现, 详情可查看 #5951
- fix: router 插件应该获得请求方法为 GET 的请求 由 @GiveMe-A-Name 实现, 详情可查看 #5960
- fix: server runtime 应该从 ssrconfig 获取 config.disablePrerender 由 @GiveMe-A-Name 实现, 详情可查看 #5942
- fix: mockHandler 应该在 rsbuild middleware 之前跑 & mockHandler 不能正确的 hmr 由 @GiveMe-A-Name 实现, 详情可查看 #5954
- fix: 在浏览器中的 ssrContext 应该添加 document 的信息 由 @GiveMe-A-Name 实现, 详情可查看 #5956
v2.55.0
What's Changed
New Features 🎉
- feat: generator support runtime config file by @caohuilin in #5916
- feat: update entry doc by @caohuilin in #5874
- feat: garfish plugin support append entry code by @caohuilin in #5914
- feat: refactor runtime brower entry by @caohuilin in #5839
Bug Fixes 🐞
- fix: garfish plugin use custom bootstrap not work by @caohuilin in #5933
- fix: isbot v4.x require nodev18, so we downgrade it into v3.x by @GiveMe-A-Name in #5915
- fix: should use server-entires when target === 'node', 'web-worker', 'service-worker' by @GiveMe-A-Name in #5919
- fix: prod-server support source-map by @GiveMe-A-Name in #5930
- fix: runtime template windows path by @caohuilin in #5912
- fix(module-tools): the imports field which is handled as url by @SoonIter in #5923
- fix: add bff/tailwindcss/swc plugin exported types by @zllkjc in #5926
- fix: ssr use-loader should set _internal_context.ssr = false by @GiveMe-A-Name in #5935
- fix: re-export runtime server by @GiveMe-A-Name in #5932
- fix: make sure that BFF run products of the dist when building with ssg by @yimingjfe in #5909
- fix: cacheProvider support return false by @GiveMe-A-Name in #5905
Other Changes
更新内容
新特性 🎉
- feat: 生成器支持 modern.runtime 配置文件 由 @caohuilin 实现, 详情可查看 #5916
- feat: 更新入口相关文档 由 @caohuilin 实现, 详情可查看 #5874
- feat: garfish 插件支持补充入口代码 由 @caohuilin 实现, 详情可查看 #5914
- feat: 重构客户端入口 由 @caohuilin 实现, 详情可查看 #5839
Bug 修复 🐞
- fix: 修复 garfish 插件使用 custom bootstrap 不生效问题 由 @caohuilin 实现, 详情可查看 #5933
- fix: isbot v4.x 需要 nodev18, 所以我们把他降级为 v3.x 由 @GiveMe-A-Name 实现, 详情可查看 #5915
- fix: 当 target 为 'node', 'web-worker', 'service-worker' 应该使用 server 入口. 由 @GiveMe-A-Name 实现, 详情可查看 #5919
- fix: prod-server 支持 source-map 由 @GiveMe-A-Name 实现, 详情可查看 #5930
- fix: 修复 runtime 模板 windows 路径不正确 由 @caohuilin 实现, 详情可查看 #5912
- fix(module-tools): imports field 被认为了 url 由 @SoonIter 实现, 详情可查看 #5923
- fix: 添加 bff/tailwindcss/swc 插件的导出类型 由 @zllkjc 实现, 详情可查看 #5926
- fix: ssr use-loader 应该将 _internal_context.ssr 为 false 由 @GiveMe-A-Name 实现, 详情可查看 #5935
- fix: 重导出 runtime server 由 @GiveMe-A-Name 实现, 详情可查看 #5932
- fix: make sure that BFF run products of the dist when building with ssg 由 @yimingjfe 实现, 详情可查看 #5909
- fix: cacheProvider 支持返回 false 由 @GiveMe-A-Name 实现, 详情可查看 #5905
v2.54.6
What's Changed
New Features 🎉
- feat: support getting assets on the server by @yimingjfe in #5896
Bug Fixes 🐞
- fix(ssr): hmr problem with ssr when using rspack by @yimingjfe in #5893
更新内容
新特性 🎉
- feat: 支持在服务端获取静态资源 由 @yimingjfe 实现, 详情可查看 #5896
Bug 修复 🐞
- fix(ssr): 使用 rspack 时,ssr 的 hmr 问题 由 @yimingjfe 实现, 详情可查看 #5893
v2.54.5
What's Changed
Bug Fixes 🐞
- fix: logger maybe undefined when server occur error by @GiveMe-A-Name in #5884
- fix: fix router info error when use custom file system routes entry by @caohuilin in #5889
更新内容
Bug 修复 🐞
- fix: logger 可能是 undefined 当 server 发生错误时 由 @GiveMe-A-Name 实现, 详情可查看 #5884
- fix: 修复当使用自定义约定式路由入口时生成 router 信息问题 由 @caohuilin 实现, 详情可查看 #5889
v2.54.4
What's Changed
New Features 🎉
- feat: export handleDependencies by @yimingjfe in #5854
- feat: add deprecat function doc by @caohuilin in #5878
Bug Fixes 🐞
- fix: module not found error when restart app by @zllkjc in #5880
- fix(devtools): resolve storage preset config file by @Asuka109 in #5885
Other Changes
更新内容
新特性 🎉
- feat: 暴露 handleDependencies 方法 由 @yimingjfe 实现, 详情可查看 #5854
- feat: 添加下线功能文档 由 @caohuilin 实现, 详情可查看 #5878
Bug 修复 🐞
- fix: 修复重启应用时找不到模块的报错 由 @zllkjc 实现, 详情可查看 #5880
- fix(devtools): 无法正确找到 storage preset 配置文件 由 @Asuka109 实现, 详情可查看 #5885
其他变更
v2.54.3
What's Changed
Bug Fixes 🐞
- fix: we should load modern.config.json when production by @GiveMe-A-Name in #5869
- fix: we should add cli config correctly by @GiveMe-A-Name in #5871
- fix: adapt to the new server plugin for entry by @yimingjfe in #5870
- fix: move @modern-js/server-core to bff/koa/express plugin dependencies by @zllkjc in #5868
Docs update 📄
- docs: remove module tools test doc by @caohuilin in #5865
更新内容
Bug 修复 🐞
- fix: 在生产阶段,我们应该加载 modern.config.json 由 @GiveMe-A-Name 实现, 详情可查看 #5869
- fix: 我们应该正确的添加 cli 配置 由 @GiveMe-A-Name 实现, 详情可查看 #5871
- fix: server entry 适配新的 server plugin 由 @yimingjfe 实现, 详情可查看 #5870
- fix: 将 @modern-js/server-core 作为 bff/koa/express 插件的 dependencies 由 @zllkjc 实现, 详情可查看 #5868
文档更新 📄
- docs: 移除模块工程方案测试相关文档 由 @caohuilin 实现, 详情可查看 #5865
v2.54.2
What's Changed
Bug Fixes 🐞
- fix: not specify externalsType in rspack mode by @9aoy in #5861
- fix: Fix the failure of App entry recognition when there are pages and routes paths. by @caohuilin in #5862
更新内容
Bug 修复 🐞
- fix: 修复当存在 pages 和 routes 路径时,App 入口识别失败 由 @caohuilin 实现, 详情可查看 #5862