Releases: web-infra-dev/modern.js
Releases · web-infra-dev/modern.js
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
v2.50.0
What's Changed
New Features 🎉
- feat: add typings for Body、Root、Style components by @clChenLiang in #5742
- feat: new command add already enable function tooltip by @caohuilin in #5751
- feat(devtools): new tab added for managing storage presets by @Asuka109 in #5761
Other Changes
- chore: add bodyInit for createWebRequest by @yimingjfe in #5766
更新内容
新特性 🎉
- feat: 为 Body、Root、Style 组件添加类型 由 @clChenLiang 实现, 详情可查看 #5742
- feat: new 命令增加已经开启功能的提示 由 @caohuilin 实现, 详情可查看 #5751
- feat(devtools): 新增标签页提供 storage presets 管理 由 @Asuka109 实现, 详情可查看 #5761
其他变更
- chore: createWebRequest 函数支持 bodyInit 入参 由 @yimingjfe 实现, 详情可查看 #5766
v2.49.4
What's Changed
Bug Fixes 🐞
- fix: useLoader should run normally in csr when webpack build by @GiveMe-A-Name in #5724
- fix(server-core): server static can't handle page route correctly by @GiveMe-A-Name in #5726
- fix(server-core): support custom server middleware redirect, and support render function merge headers from HonoCtx.#header by @GiveMe-A-Name in #5739
- fix: parse props to custom bootstrap by @nyqykk in #5731
- fix: Compatible with http-compression, make sure res.end is called before executing the subsequent code by @yimingjfe in #5735
- fix: public middleware should not filter api route & support https by @yimingjfe in #5730
Other Changes
- chore(@modern-js/storybook-builder): downgrade webpack-dev-middleware to 6.1.3 for support node 16 by @KyrieLii in #5727
更新内容
Bug 修复 🐞
- fix: useLoader 当使用 webpack 构建是,在 csr 下应该需要正常跑 由 @GiveMe-A-Name 实现, 详情可查看 #5724
- fix(server-core): server static 无法正确的处理页面路由 由 @GiveMe-A-Name 实现, 详情可查看 #5726
- fix(server-core): 支持 custom server middleware 重定向, 并且支持 render 函数合并 HonoCtx.#header 由 @GiveMe-A-Name 实现, 详情可查看 #5739
- fix: 兼容 http-compression,确保执行后续代码前,res.end 先被调用 由 @yimingjfe 实现, 详情可查看 #5735
- fix: public middleware 不应该过滤 api 路由 & 支持 https 由 @yimingjfe 实现, 详情可查看 #5730
其他变更
v2.49.3
What's Changed
New Features 🎉
- feat(server-core): render support dynamic route by @GiveMe-A-Name in #5718
Bug Fixes 🐞
- fix: ignore should be a relative path in ts-node by @yimingjfe in #5690
- fix: should add props types by @GiveMe-A-Name in #5697
- fix: serverBase may be undefined when get renderHandler by @GiveMe-A-Name in #5701
- fix: uni-builder should depedency prod-server correctly by @GiveMe-A-Name in #5702
- fix: data.ts should not import into the client bundle in the ssg project by @yimingjfe in #5703
- fix: render should handle api route when open enableHandleWeb by @GiveMe-A-Name in #5720
- fix: add onFallback for renderHandler by @GiveMe-A-Name in #5698
- fix: we should not log error when bundle is not exists by @GiveMe-A-Name in #5695
- fix: helmet can't replace when streaming ssr by @GiveMe-A-Name in #5693
- fix: add originalBaseUrl param by @yimingjfe in #5715
- fix: server middleware response lose some methods by @GiveMe-A-Name in #5700
- fix(plugin-swc): missing
@rsbuild/core
peer dep by @chenjiahan in #5692 - fix: log error when load bundle failed by @GiveMe-A-Name in #5691
- fix: register mock middleware after dev middlewares & lambda files should not be check by ts-checker by @yimingjfe in #5696
- fix: server support add extends res headers from routes by @GiveMe-A-Name in #5717
Docs update 📄
Other Changes
- chore(uni-builder): use rspack-manifest-plugin stable version by @chenjiahan in #5705
更新内容
新特性 🎉
- feat(server-core): render 支持动态路由 由 @GiveMe-A-Name 实现, 详情可查看 #5718
Bug 修复 🐞
- fix: 使用 ts-node 时,ignore 应该为相对路径 由 @yimingjfe 实现, 详情可查看 #5690
- fix: 组件 Html 应该添加上 html 标签属性的类型 由 @GiveMe-A-Name 实现, 详情可查看 #5697
- fix: 当获得 renderHandler 时, serverBase 有可能是 undefined 由 @GiveMe-A-Name 实现, 详情可查看 #5701
- fix: uni-builder 需要正确依赖 prod-server 由 @GiveMe-A-Name 实现, 详情可查看 #5702
- fix: 在 ssg 项目中,data.ts 不应该引入到客户端 bundle 中 由 @yimingjfe 实现, 详情可查看 #5703
- fix: 当开启了 enableHandleWeb, render 应该处理 api 路由 由 @GiveMe-A-Name 实现, 详情可查看 #5720
- fix: 给 renderHandler 增加 onFallback 回调 由 @GiveMe-A-Name 实现, 详情可查看 #5698
- fix: 我们不应该打印错误日志,当 bundle 不存在时 由 @GiveMe-A-Name 实现, 详情可查看 #5695
- fix: 使用 streaming ssr 时, helmet 无法替换 由 @GiveMe-A-Name 实现, 详情可查看 #5693
- fix: 添加 originalBaseUrl 参数 由 @yimingjfe 实现, 详情可查看 #5715
- fix: server middleware response 丢失一些方法 由 @GiveMe-A-Name 实现, 详情可查看 #5700
- fix: 打印错误日志当 bundle 加载错误时 由 @GiveMe-A-Name 实现, 详情可查看 #5691
- fix: 在 dev middlewares 之后注册 mock middleware & lambda 文件不应该被 ts-checker 校验 由 @yimingjfe 实现, 详情可查看 #5696
- fix: server 支持丛 route.json 添加额外的响应头 由 @GiveMe-A-Name 实现, 详情可查看 #5717