Releases: web-infra-dev/modern.js
Releases · web-infra-dev/modern.js
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
v2.54.1
What's Changed
Bug Fixes 🐞
- fix: remove test command doc by @caohuilin in #5856
- fix: downgrading deepmerge-ts, deepmerge-ts v7 can't run in nodev16.2.0 by @GiveMe-A-Name in #5857
- fix: filter server plugin by metaName by @GiveMe-A-Name in #5858
更新内容
Bug 修复 🐞
- fix: 移除 test 命令相关文档 由 @caohuilin 实现, 详情可查看 #5856
- fix: 降级 deepmerge-ts, deepmerge-ts v7 在 nodev16.2.0 上跑 由 @GiveMe-A-Name 实现, 详情可查看 #5857
- fix: 用 metaName 来过滤 server plugin 由 @GiveMe-A-Name 实现, 详情可查看 #5858
v2.54.0
What's Changed
New Features 🎉
- feat: refactor app-tools command and analyze check entry point by @caohuilin in #5816
- feat: support new server plugin & discard server plugin some hooks by @GiveMe-A-Name in #5813
- feat: refactor runtime plugin by @caohuilin in #5815
- feat(ssr): support for loaderFailureMode configure by @yimingjfe in #5820
Bug Fixes 🐞
- fix: entrypoint error when use custom index entry by @caohuilin in #5845
- fix: render function dynamic router match error by @GiveMe-A-Name in #5831
Other Changes
- chore(deps): bump rsbuild to 0.7.7 by @9aoy in #5824
- optimize the doc content by @yuyutaotao in #5838
更新内容
新特性 🎉
- feat: 重构 app-tools 命令和 analyze 插件识别入口逻辑 由 @caohuilin 实现, 详情可查看 #5816
- feat: 支持新 server plugin & 减少 server plugin 钩子 由 @GiveMe-A-Name 实现, 详情可查看 #5813
- feat: 重构 runtime 插件 由 @caohuilin 实现, 详情可查看 #5815
- feat(ssr): 支持 loaderFailureMode 配置 由 @yimingjfe 实现, 详情可查看 #5820
Bug 修复 🐞
- fix: 修复当使用自定义 index 入口时入口路径错误 由 @caohuilin 实现, 详情可查看 #5845
- fix: render 函数动态路由匹配错误 由 @GiveMe-A-Name 实现, 详情可查看 #5831
v2.53.0
What's Changed
New Features 🎉
- feat: @modern-js/create not support create Monorepo Project by @caohuilin in #5804
- feat: new command not support enable testing function by @caohuilin in #5804
Bug Fixes 🐞
- fix: avoid to mismatch header label by @yimingjfe in #5810
- fix: Avoid memory leaks in node versions 18 and 20 by @yimingjfe in #5819
- fix: should add the escape character for the regexps by @yimingjfe in #5811
- fix: when enable react router v5, tooltip with plugin name is not right by @caohuilin in #5817
Docs update 📄
- docs: correcting the name of the document product added to .gitignore by @cloudmoonocus in #5807
更新内容
新特性 🎉
- feat: @modern-js/create 移除创建 Monorepo 项目 由 @caohuilin 实现, 详情可查看 #5804
- feat: new 命令不在支持开启测试功能 由 @caohuilin 实现, 详情可查看 #5804
Bug 修复 🐞
- fix: 避免误匹配 header 标签 由 @yimingjfe 实现, 详情可查看 #5810
- fix: 避免在 node 18 和 20 版本下内存泄露 由 @yimingjfe 实现, 详情可查看 #5819
- fix: 为正则表达式添加转义字符 由 @yimingjfe 实现, 详情可查看 #5811
- fix: 修复当开启 react router v5 时,提示的插件名称不正确 由 @caohuilin 实现, 详情可查看 #5817
v2.52.0
What's Changed
New Features 🎉
- feat: support control status code by data loader by @yimingjfe in #5782
Bug Fixes 🐞
- fix: should not remove html directory by @yimingjfe in #5798
- fix: redablestream should not be locked, when stream transfer by @GiveMe-A-Name in #5790
- fix: export writeReadableStreamToWritable by @yimingjfe in #5802
- fix: should inject basename for garfish projects with router v5 by @yimingjfe in #5787
Other Changes
- chore(deps): bump Rsbuild v0.7.3 by @chenjiahan in #5803
更新内容
新特性 🎉
- feat: 支持通过 data loader 控制页面状态码 由 @yimingjfe 实现, 详情可查看 #5782
Bug 修复 🐞
- fix: 不应该删除 html 目录 由 @yimingjfe 实现, 详情可查看 #5798
- fix: redablestream 不应该被锁住当 stream 传输时 由 @GiveMe-A-Name 实现, 详情可查看 #5790
- fix: 暴露 writeReadableStreamToWritable 方法 由 @yimingjfe 实现, 详情可查看 #5802
- fix: 对于 garfish 项目,应该注入 basename 以支持 router v5 由 @yimingjfe 实现, 详情可查看 #5787
其他变更
- chore(deps): 升级 Rsbuild v0.7.3 由 @chenjiahan 实现, 详情可查看 #5803
v2.51.0
What's Changed
New Features 🎉
- feat: support stream to string & support server ender styled components by @2heal1 in #5769
- feat: bump rsbuild to 0.7.x and use CssExtractRspackPlugin to extract CSS by @9aoy in #5744
- feat: support deploy command by @yimingjfe in #5752
Bug Fixes 🐞
- fix: streaming ssr should set renderLevel correctly when render occur error by @GiveMe-A-Name in #5783
- fix: default types should be
Record<string, unknown>
by @GiveMe-A-Name in #5749 - fix(plugin-ssg): prod-server should be dependencies in ssg plugin by @GiveMe-A-Name in #5768
- fix(plugin-server): support update server hook & middleware by @GiveMe-A-Name in #5778
Other Changes
更新内容
新特性 🎉
- feat: 支持 stream 模式转 string ,并且支持服务端渲染 styled compoents 由 @2heal1 实现, 详情可查看 #5769
- feat: 支持部署命令 由 @yimingjfe 实现, 详情可查看 #5752
Bug 修复 🐞
- fix: streaming ssr 当渲染遇到错误,应该设置正确的 renderLevel 由 @GiveMe-A-Name 实现, 详情可查看 #5783
- fix: 默认 types 应该是
Record<string, unknown>
由 @GiveMe-A-Name 实现, 详情可查看 #5749 - fix(plugin-ssg): prod-server 应该是生产依赖在 ssg 插件里 由 @GiveMe-A-Name 实现, 详情可查看 #5768
- fix(plugin-server): 支持热更新 server hook & middleware 由 @GiveMe-A-Name 实现, 详情可查看 #5778