Releases: web-infra-dev/modern.js
Releases · web-infra-dev/modern.js
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
v2.62.0
What's Changed
New Features 🎉
- feat: support script properties with Script by @clChenLiang in #6530
- feat: stream ssr support inlineScript config by @targeral in #6494
- feat(module-tool): add resolve.tsConfig by @SoonIter in #6514
Docs update 📄
- docs: add migration tip for Modern.js Module by @chenjiahan in #6532
更新内容
新特性 🎉
v2.61.0
What's Changed
Performance Improvements ⚡
- perf(plugin-tailwind): reduce tailwindcss
hash()
overhead by @chenjiahan in #6471
New Features 🎉
- feat: passthrough body, when receiving an mf request by @yimingjfe in #6506
- feat: create tools and new command not support Module project by @caohuilin in #6493
- feat: splitting the code for _ROUTER_DATA initialisation by @targeral in #6463
Bug Fixes 🐞
- fix(bff): fix zod not found error by @keepview in #6468
- fix: hot reload problems for server by @yimingjfe in #6500
- fix: parse
routerDataFnArgs
inmergeLoaderData
function by @targeral in #6473 - fix: garfish plugin export path error by @caohuilin in #6499
Docs update 📄
- docs: remove Module from Modern.js introduction by @chenjiahan in #6491
Other Changes
- chore(docs): fix the documentation of source build error by @easy1090 in #6476
- chore(deps): bump webpack to 5.96.x by @9aoy in #6489
更新内容
新特性 🎉
- feat: 当收到一个 mf 请求时,透传 body 由 @yimingjfe 实现, 详情可查看 #6506
- feat: create 工具和 new 命令不再支持模块项目 由 @caohuilin 实现, 详情可查看 #6493
- feat: 拆分 _ROUTER_DATA 初始化的代码 由 @targeral 实现, 详情可查看 #6463
Bug 修复 🐞
- fix(bff): 修复无法找到 zod 错误 由 @keepview 实现, 详情可查看 #6468
- fix: 修复服务端热更新问题 由 @yimingjfe 实现, 详情可查看 #6500
- fix: 在
mergeLoaderData
函数中解析 routerDataFnArgs 由 @targeral 实现, 详情可查看 #6473 - fix: 修复 garfish 插件导出路径错误 由 @caohuilin 实现, 详情可查看 #6499
v2.60.6
What's Changed
New Features 🎉
- feat(deps): bump babel to 7.26 to support parse import attributes by default by @9aoy in #6453
- feat: delete unused hook api by @caohuilin in #6457
- feat(bff): integrated file upload call by @keepview in #6419
- feat: print ssg subprocess log by @caohuilin in #6440
- feat(router): support v7_startTransition configuration by @yimingjfe in #6461
Bug Fixes 🐞
- fix: support tools.htmlPlugin.minify false by @9aoy in #6439
- fix: router v5 baseUrl problem by @caohuilin in #6435
- fix: using node:fs with node polyfill will lead to an error by @yuyutaotao in #6431
- fix(server): handle the cases that res cannot be writable by @yimingjfe in #6430
- fix(runtime-utils): the normalizePathname should handles multiple slashes by @yimingjfe in #6441
更新内容
新特性 🎉
- feat: 删除没有使用的 hook api 由 @caohuilin 实现, 详情可查看 #6457
- feat(bff): 支持文件上传一体化调用 由 @keepview 实现, 详情可查看 #6419
- feat: 输出 ssg 子进程日志 由 @caohuilin 实现, 详情可查看 #6440
- feat(router): 支持 v7_startTransition 配置 由 @yimingjfe 实现, 详情可查看 #6461
Bug 修复 🐞
- fix: 修复 router v5 的 baseUrl 问题 由 @caohuilin 实现, 详情可查看 #6435
- fix(server): 处理 res 无法写入的情况 由 @yimingjfe 实现, 详情可查看 #6430
- fix(runtime-utils): normalizePathname 函数应该处理好多个 / 的情况 由 @yimingjfe 实现, 详情可查看 #6441
v2.60.5
What's Changed
New Features 🎉
- feat(deps): bump html-webpack-plugin to support getCompilationHooks by @9aoy in #6402
- feat: update @types/node version for template by @caohuilin in #6418
- feat: router plugin add beforeCreateRoutes hook by @caohuilin in #6417
- feat: generator upgrade tailwindcss version by @caohuilin in #6423
Bug Fixes 🐞
- fix: upgrade command get modern version error by @caohuilin in #6396
- fix: upgrade tools prepare generator error by @caohuilin in #6398
- fix: when the enableCustomEntry is set to true, the
entry.tsx
should be recognized first. by @caohuilin in #6420
更新内容
新特性 🎉
- feat: 更新生成器模板 @types/node 版本 由 @caohuilin 实现, 详情可查看 #6418
- feat: router 插件添加 beforeCreateRoutes 钩子 由 @caohuilin 实现, 详情可查看 #6417
- feat: 生成器升级 tailwindcss 版本 由 @caohuilin 实现, 详情可查看 #6423
Bug 修复 🐞
- fix: 修复 upgrade 命令获取 modern 版本失败的问题 由 @caohuilin 实现, 详情可查看 #6396
- fix: 修复 upgrade 工具准备阶段生成器失败的问题 由 @caohuilin 实现, 详情可查看 #6398
- fix: 开启 enableCustomEntry 后,
entry.tsx
入口应优先被识别 由 @caohuilin 实现, 详情可查看 #6420
v2.60.4
What's Changed
New Features 🎉
- feat: add
html.outputStructure
and doc by @spencerHT in #6375 - feat(server): add catch logic for ssrCache container operation by @targeral in #6390
- feat: optimize generator download by @caohuilin in #6377
- feat: config/public directory ignore .gitkeep file by @caohuilin in #6394
Bug Fixes 🐞
- fix(bff): should register esbuild for js projects by @yimingjfe in #6379
- fix: remove node_modules in watcher ignored list by @zllkjc in #6381
- fix(bff): zodError causing 500 error due to inconsistent zod versions by @keepview in #6384
- fix:
output.sourcemap
not work by @SoonIter in #6342 - fix: remove ssg stdout listener, only stderr by @zllkjc in #6387
- fix(server): should get context from unstable middleware correctly by @yimingjfe in #6391
- fix: upgrade react-router & log in debug mode only by @yimingjfe in #6388
- fix: should include files other than tsconfg.json by @caohuilin in #6343
- fix(ssr): we match all asset directly, it can be more faster by @GiveMe-A-Name in #6386
更新内容
新特性 🎉
- feat: 展示
html.outputStructure
并添加文档 由 @spencerHT 实现, 详情可查看 #6375 - feat(server): 为 ssr 缓存容器操作添加错误捕获逻辑 由 @targeral 实现, 详情可查看 #6390
- feat: 优化生成器下载 由 @caohuilin 实现, 详情可查看 #6377
- feat: config/public 目录忽略 .gitkeep 文件 由 @caohuilin 实现, 详情可查看 #6394
Bug 修复 🐞
- fix(bff): 应该为 js 项目注册 esbuild 由 @yimingjfe 实现, 详情可查看 #6379
- fix: 移除 watcher 忽略列表中的 node_modules 由 @zllkjc 实现, 详情可查看 #6381
- fix(bff): 修复由于 zod 版本不一致导致的 zodError 触发的 500 错误 由 @keepview 实现, 详情可查看 #6384
- fix:
output.sourcemap
不生效 由 @SoonIter 实现, 详情可查看 #6342 - fix: 移除 ssg 的 stdout 监听,只保留 stderr 由 @zllkjc 实现, 详情可查看 #6387
- fix(server): 应该正确地获取到 loaderContext 由 @yimingjfe 实现, 详情可查看 #6391
- fix: 更新 react-router 到最新版 & 只在 debug 模式下打印日志 由 @yimingjfe 实现, 详情可查看 #6388
- fix: 应该包含除了 tsconfig.json 以外的文件 由 @caohuilin 实现, 详情可查看 #6343
- fix(ssr): 我们一次性匹配出所有资源,这样性能更快 由 @GiveMe-A-Name 实现, 详情可查看 #6386