Skip to content

Releases: web-infra-dev/modern.js

v2.63.3

18 Dec 23:08
Compare
Choose a tag to compare

What's Changed

Bug Fixes 🐞

Other Changes

  • chore: getServerManifest should run first on prepare 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

11 Dec 23:56
Compare
Choose a tag to compare

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 修复 🐞

  • fix: 使用 react@16.14.0 且在 webpack 模式下时报错 React is undefined 由 @Asuka109 实现, 详情可查看 #6612
  • fix: 在 serve 命令下应该从 route.json 中获取 server routes 由 @zllkjc 实现, 详情可查看 #6627
  • fix: 修复 unstable_middlwares 在 render.middlewares 不为空时不执行的问题 由 @zllkjc 实现, 详情可查看 #6624

v2.63.1

05 Dec 01:08
Compare
Choose a tag to compare

What's Changed

New Features 🎉

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 📄

Other Changes

  • chore(deps): pin rsbuild version by @9aoy in #6580

更新内容

新特性 🎉

  • feat: bff 文档增加共享源码 由 @keepview 实现, 详情可查看 #6575
  • feat: app tools analyze 插件使用新的 cli 插件 由 @caohuilin 实现, 详情可查看 #6579
  • feat: app tools deploy 插件使用新的 cli 插件 由 @caohuilin 实现, 详情可查看 #6579

Bug 修复 🐞

v2.63.0

28 Nov 01:17
Compare
Choose a tag to compare

What's Changed

New Features 🎉

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

更新内容

新特性 🎉

  • feat: 定义新的 app tools 插件类型 由 @caohuilin 实现, 详情可查看 #6574
  • feat: 新版 CLI 插件 由 @caohuilin 实现, 详情可查看 #6488

Bug 修复 🐞

  • fix: 只需要在 SSR 模式下才调用 hydrateRoot 函数,修复必定进入 hydrateRoot 函数的问题 由 @zllkjc 实现, 详情可查看 #6570

v2.62.1

21 Nov 03:29
Compare
Choose a tag to compare

What's Changed

New Features 🎉

Bug Fixes 🐞

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

14 Nov 01:11
Compare
Choose a tag to compare

What's Changed

New Features 🎉

Docs update 📄

更新内容

新特性 🎉

  • feat: 支持 script 原生属性 由 @clChenLiang 实现, 详情可查看 #6530
  • feat: Stream SSR 支持 inlineScript 配置 由 @targeral 实现, 详情可查看 #6494
  • feat(module-tool): 增加 resolve.tsConfig 由 @SoonIter 实现, 详情可查看 #6514

v2.61.0

06 Nov 23:26
Compare
Choose a tag to compare

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 🐞

Docs update 📄

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

31 Oct 03:51
Compare
Choose a tag to compare

What's Changed

New Features 🎉

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

24 Oct 01:07
Compare
Choose a tag to compare

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

17 Oct 00:47
Compare
Choose a tag to compare

What's Changed

New Features 🎉

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