Releases: web-infra-dev/modern.js
Releases · web-infra-dev/modern.js
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
v2.49.2
v2.49.1
What's Changed
New Features 🎉
- feat: support dev.client configuration in #5678
Bug Fixes 🐞
- fix: swc can not transform dynamic import in cjs normally in #5670
- fix: require bundle maybe failed in #5672
- fix: @modern-js/utils should be a dependency in @modern-js/prod-server in #5659
- fix: should not print error level log when in prod env in #5654
- fix: @modern-js/server-core should be a dependency in @modern-js/server in #5658
- fix: should not include babel-loader in streaming ssr project in #5683
Docs update 📄
- docs: bump Rspress v1.18.2 and remove dividers in #5662
- docs(module-doc): align
define
description to actual behavior in #5665
Other Changes
- chore(uni-builder): reuse rspack-manifest-plugin in webpack mode in #5675
- chore(deps): bump rsbuild to 0.6.6 in #5682
- chore: add rsbuild-plugin-esbuild package in #5655
- chore: export getServerManifest in #5684
- no need to emit assets for SSR bundles in #5668
更新内容
新特性 🎉
- feat: 支持 dev.client 配置项, 详情可查看 #5678
Bug 修复 🐞
- fix: require bundle 有可能是失败的, 详情可查看 #5672
- fix: @modern-js/utils 应该是 @modern-js/prod-server 的依赖, 详情可查看 #5659
- fix: 生产环境不应该打印 error 级日志, 详情可查看 #5654
- fix: 在 streaming ssr 项目中,不应该引入 babel-loader, 详情可查看 #5683
文档更新 📄
- docs(module-doc): 对齐
define
的文档描述和实际行为一致, 详情可查看 #5665
其他变更
v.2.48.6
v2.48.5
What's Changed
Bug Fixes 🐞
- fix: remove
node:
prefix by @GiveMe-A-Name in #5606 - fix(module-tools): new matcher to match alias in dts by @10Derozan in #5600
- fix: bundle utils which in module tools to avoid not found error by @10Derozan in #5596
- fix: only invoke svgr in load hook by @10Derozan in #5609
Other Changes
更新内容
Bug 修复 🐞
- fix: 移除
node:
前缀 由 @GiveMe-A-Name 实现, 详情可查看 #5606 - fix(module-tools): 新的 matcher 规则以匹配 dts 别名 由 @10Derozan 实现, 详情可查看 #5600
- fix: 打包模块工程里的工具函数以避免找不到的错误 由 @10Derozan 实现, 详情可查看 #5596
- fix: 只在 load hook 里调用 svgr 逻辑 由 @10Derozan 实现, 详情可查看 #5609
其他变更
v2.48.4
What's Changed
New Features 🎉
- feat(app-tools): add type for SVGR query usage by @chenjiahan in #5560
Bug Fixes 🐞
- fix: add type to auto sidebar plugin by @10Derozan in #5593
- fix: should not be more than one title tag by @clChenLiang in #5580
- fix: when router does't exist, no pathname detection by @yimingjfe in #5570
- fix: we should override server.baseUrl when merge it by @GiveMe-A-Name in #5567
- fix(devtools): failed to render breadcrumb by @Asuka109 in #5590
Docs update 📄
- docs: fix dead link in source.alias by @await-ovo in #5594
Other Changes
更新内容
Bug 修复 🐞
- fix: 给自动生成侧边栏插件添加类型 由 @10Derozan 实现, 详情可查看 #5593
- fix: 只能出现一个 title 标签 由 @clChenLiang 实现, 详情可查看 #5580
- fix: 当 router 不存在时,不再做 pathname 检测 由 @yimingjfe 实现, 详情可查看 #5570
- fix: 在合并 server.baseUrl 时,我们应该覆盖他 由 @GiveMe-A-Name 实现, 详情可查看 #5567
- fix(devtools): 渲染面包屑导航失败 由 @Asuka109 实现, 详情可查看 #5590
v2.48.3
What's Changed
Bug Fixes 🐞
Docs update 📄
- docs(module): fix test example by @fi3ework
Other Changes
- chore(deps): bump rsbuild 0.5.x by @9aoy in #5550
- chore(server): set devServer.compress config value in app-tools by @9aoy in #5544
更新内容
Bug 修复 🐞
其他变更
- chore(deps): 升级 rsbuild 到 0.5.x 由 @9aoy 实现, 详情可查看 #5550
- chore(server): 在 app-tools 中设置 ssr 场景下 devServer compress 配置的值 由 @9aoy 实现, 详情可查看 #5544
Full Changelog: v2.48.2...v2.48.3
v2.48.2
What's Changed
New Features 🎉
- feat(server): support modify Rsbuild server config in Rsbuild modifyRsbuildConfig hook by @9aoy in #5534
Bug Fixes 🐞
- fix: helmet.renderStatic must be sync action by @GiveMe-A-Name in #5510
- fix(create-request): 修复错误的 types 指向 by @AtarisMio in #5529
- fix: ssr reload infinite by @GiveMe-A-Name in #5536
更新内容
新特性 🎉
Bug 修复 🐞
- fix: helmet.renderStatic 必须是同步的行为 由 @GiveMe-A-Name 实现, 详情可查看 #5510
- fix: ssr 无限刷新问题 由 @GiveMe-A-Name 实现, 详情可查看 #5536