Releases: web-infra-dev/modern.js
Releases · web-infra-dev/modern.js
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
Bug 修复 🐞
v2.63.5
v2.63.4
What's Changed
New Features 🎉
- feat: adjust cli plugin type by @caohuilin in #6665
- feat: migrate runtime cli plugin to new cli plugin by @caohuilin in #6629
Bug Fixes 🐞
- fix: cache should not be overrides when request has tail slash by @zllkjc in #6649
- fix: run with metaName by @clChenLiang in #6650
Other Changes
更新内容
新特性 🎉
- feat: 调整 CLI 插件类型定义 由 @caohuilin 实现, 详情可查看 #6665
- feat: runtime CLI 插件迁移到新的 CLI 插件 由 @caohuilin 实现, 详情可查看 #6629
Bug 修复 🐞
- fix: 当请求有尾斜杠时,缓存不应该被重写 由 @zllkjc 实现, 详情可查看 #6649
- fix: run 函数增加 metaName 参数 由 @clChenLiang 实现, 详情可查看 #6650
其他变更
v2.63.3
What's Changed
Bug Fixes 🐞
- fix: compat jest plugin hooks by @caohuilin in #6641
- fix: compat htmlPartials hooks result error by @caohuilin in #6644
- fix(doc): update doc routing link by @keepview in #6640
- fix(deploy): should handle prebundle package correctly by @yimingjfe in #6632
Other Changes
- chore:
getServerManifest
should run first onprepare
by @spencerHT in #6638 - chore: should load html template while server preparing by @spencerHT in #6643
更新内容
Bug 修复 🐞
- fix: 兼容 jest 插件 hooks 函数 由 @caohuilin 实现, 详情可查看 #6641
- fix: 修复兼容 htmlPartials 钩子函数时返回值错误 由 @caohuilin 实现, 详情可查看 #6644
- fix(doc): 更新文档自控路由链接 由 @keepview 实现, 详情可查看 #6640
- fix(deploy): 应该正确地处理 prebundle 的包 由 @yimingjfe 实现, 详情可查看 #6632
其他变更
- chore:
getServerManifest
应该在prepare
时运行 由 @spencerHT 实现, 详情可查看 #6638 - chore: 在 server 准备时应该加载 html 模板 由 @spencerHT 实现, 详情可查看 #6643
v2.63.2
What's Changed
New Features 🎉
- feat(app-tools): enable Rsbuild CLI shortcuts by @chenjiahan in #6610
- feat: add server.useJsonScript , for instead ssr.inlineScript by @zllkjc in #6625
- feat: migrate app tools to use new cli plugin by @caohuilin in #6603
- feat: support enable lightningcssLoader by @9aoy in #6614
- feat: add route info into unstable_middleware context by @zllkjc in #6605
- feat(uni-builder): support environment tools.babel config by @9aoy in #6609
Bug Fixes 🐞
- fix: React is undefined while using react@16.14.0 and webpack mode by @Asuka109 in #6612
- fix: should get server routes from route.json in serve command by @zllkjc in #6627
- fix: unstable_middlwares doesn't exec when render.middlewares not empty by @zllkjc in #6624
更新内容
新特性 🎉
- feat: 添加 server.useJsonScript 配置,代替 ssr.inlineScript 由 @zllkjc 实现, 详情可查看 #6625
- feat: app tools 使用新的 cli 插件 由 @caohuilin 实现, 详情可查看 #6603
- feat: 添加路由信息到 unstable_middleware 上下文中 由 @zllkjc 实现, 详情可查看 #6605
Bug 修复 🐞
v2.63.1
What's Changed
New Features 🎉
- feat: bff doc add shared source by @keepview in #6575
- feat: feat: app tools analyze plugin use new cli plugin by @caohuilin in #6579
- feat: app tools deploy plugin use new cli plugin by @caohuilin in #6579
Bug Fixes 🐞
- fix: uni-builder plugins should be registered earlier than user plugins by @9aoy in #6604
- fix: addWatchFiles hook not work by @caohuilin in #6599
- fix(entry): compatible with jsx by @yimingjfe in #6586
Docs update 📄
- docs: recommend using Rslib to reuse webpack plugins by @chenjiahan in #6598
Other Changes
更新内容
新特性 🎉
- feat: bff 文档增加共享源码 由 @keepview 实现, 详情可查看 #6575
- feat: app tools analyze 插件使用新的 cli 插件 由 @caohuilin 实现, 详情可查看 #6579
- feat: app tools deploy 插件使用新的 cli 插件 由 @caohuilin 实现, 详情可查看 #6579
Bug 修复 🐞
- fix(entry): 兼容 jsx 由 @yimingjfe 实现, 详情可查看 #6586
v2.63.0
What's Changed
New Features 🎉
- feat: define new app tools plugin type by @caohuilin in #6574
- feat: new cli plugin by @caohuilin in #6488
- feat(app-tools): update preset type definitions by @9aoy in #6568
Bug Fixes 🐞
- fix: output.sourceMap not works by @9aoy in #6576
- fix(devtools): rsdoctor get resolved module module graph by @easy1090 in #6565
- fix(uni-builder): bump postcss plugin to support cyclic variables by @chenjiahan in #6571
- fix: only call hydrateRoot in ssr mode, fix bug that always call hydrateRoot by @zllkjc in #6570
Other Changes
- chore(deps): bump @rsbuild/plugin-type-check v1.1 by @chenjiahan in #6572
更新内容
新特性 🎉
- feat: 定义新的 app tools 插件类型 由 @caohuilin 实现, 详情可查看 #6574
- feat: 新版 CLI 插件 由 @caohuilin 实现, 详情可查看 #6488
Bug 修复 🐞
v2.62.1
What's Changed
New Features 🎉
Bug Fixes 🐞
- fix: new and upgrade command run error by @caohuilin in #6551
Other Changes
- chore: add a server directory for universal server utils by @yimingjfe in #6547
更新内容
Bug 修复 🐞
- fix: 修复 new 命令和 upgrade 命令执行报错 由 @caohuilin 实现, 详情可查看 #6551
其他变更
- chore: 添加一个 server 目录用于存放通用的服务端工具函数 由 @yimingjfe 实现, 详情可查看 #6547