Skip to content

Releases: web-infra-dev/modern.js

v2.49.3

09 May 07:48
Compare
Choose a tag to compare

What's Changed

New Features 🎉

Bug Fixes 🐞

Docs update 📄

  • docs: update buildConfig in plugin-vue docs by @Lakphy in #5711

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

26 Apr 01:29
Compare
Choose a tag to compare

What's Changed

Other Changes

v2.49.1

25 Apr 02:27
Compare
Choose a tag to compare

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

其他变更

  • chore(uni-builder): 在 webpack 模式下复用 rspack-manifest-plugin, 详情可查看 #5675
  • chore: 导出 getServerManifest 方法, 详情可查看 #5684

v.2.48.6

16 Apr 10:50
Compare
Choose a tag to compare

What's Changed

Other Changes

更新内容

其他变更

  • chore(deps): 升级 rsbuild 到 0.6.1@9aoy 实现

v2.48.5

11 Apr 03:06
Compare
Choose a tag to compare

What's Changed

Bug Fixes 🐞

Other Changes

  • chore(deps): should not bump builder deps when use upgrade command by @9aoy in #5615

更新内容

Bug 修复 🐞

  • fix: 移除 node: 前缀 由 @GiveMe-A-Name 实现, 详情可查看 #5606
  • fix(module-tools): 新的 matcher 规则以匹配 dts 别名 由 @10Derozan 实现, 详情可查看 #5600
  • fix: 打包模块工程里的工具函数以避免找不到的错误 由 @10Derozan 实现, 详情可查看 #5596
  • fix: 只在 load hook 里调用 svgr 逻辑 由 @10Derozan 实现, 详情可查看 #5609

其他变更

  • chore(deps): 使用 upgrade 命令时不升级 builder 依赖并添加 builder 插件废弃提示 由 @9aoy 实现, 详情可查看 #5615

v2.48.4

28 Mar 01:48
Compare
Choose a tag to compare

What's Changed

New Features 🎉

Bug Fixes 🐞

Docs update 📄

Other Changes

  • add deprecated warning for @modern-js/plugin-proxy by @SoonIter in #5571

更新内容

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

21 Mar 06:52
Compare
Choose a tag to compare

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

  • fix(generator): tailwindcss 配置文件类型 由 @KyrieLii 实现, 详情可查看 #5551

其他变更

  • 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

15 Mar 06:30
Compare
Choose a tag to compare

What's Changed

New Features 🎉

  • feat(server): support modify Rsbuild server config in Rsbuild modifyRsbuildConfig hook by @9aoy in #5534

Bug Fixes 🐞

更新内容

新特性 🎉

  • feat(server): 支持在 Rsbuild modifyRsbuildConfig hook 中修改 Rsbuild server 相关配置 由 @9aoy 实现, 详情可查看 #5534

Bug 修复 🐞

v2.48.1

14 Mar 02:52
Compare
Choose a tag to compare

What's Changed

Performance Improvements ⚡

New Features 🎉

  • feat(uni-builder): bump rsbuild 0.4.11 and support modify rspack builtin:swc-loadder config by tools.swc by @9aoy in #5496
  • feat(devtools): support runtime plugins by @Asuka109 in #5494

Bug Fixes 🐞

  • fix(worker): worker can run correctly when dev & prod by @GiveMe-A-Name in #5528
  • fix: type-fest shouldn't be a devDependency by @yimingjfe in #5498
  • fix(module-tools): support tsconfig extends. by @kirainmoe in #5427
  • fix(server): print ipv6 url correctly by @9aoy in #5512
  • fix syntax by @zhmushan in #5519
  • fix(module-tools): target es5 not work for mjs chunk by @chenjiahan in #5527
  • fix: adpater modern worker, worker bundle need export serverRender fn by @GiveMe-A-Name in #5340
  • fix(uni-builder): allow tools.postcss to override the plugins by @chenjiahan in #5479
  • fix(uni-builder): missing postcss peer dependency by @chenjiahan in #5489
  • fix(module-tools): new matcher to match alias when exist comment in dynamic import by @10Derozan in #5468
  • fix: sometime the url '/a/' shoud be equal '/a' by @GiveMe-A-Name in #5520
  • fix(uni-builder): should not apply babel-loader in modern.js basic app when use rspack build by @9aoy in #5493
  • fix(uni-builder): html.templateParametersByEntries should merge with default value by @9aoy in #5495
  • fix(uni-builder): splitChunks.overrides not effective for inner cacheGroups by @9aoy in #5500

Other Changes

  • chore(generator): remove legacy storybook generator by @9aoy in #5491

更新内容

性能优化 ⚡

  • perf(utils): 移除 schema-utils3 包 由 @chenjiahan 实现, 详情可查看 #5480

新特性 🎉

  • feat(uni-builder): rsbuild 版本升级到 0.4.11,并支持通过 tools.swc 修改 rspack builtin:swc-loadder 配置 由 @9aoy 实现, 详情可查看 #5496
  • feat(devtools): 支持 Runtime 插件 由 @Asuka109 实现, 详情可查看 #5494

Bug 修复 🐞

  • fix(worker): 在开发模式和线上模式 worker 能够正常运行 由 @GiveMe-A-Name 实现, 详情可查看 #5528
  • fix: type-fest 不应该是 devDependency 由 @yimingjfe 实现, 详情可查看 #5498
  • fix(module-tools): 支持解析 tsconfig extends. 由 @kirainmoe 实现, 详情可查看 #5427
  • fix(server): 正确打印 ipv6 url 由 @9aoy 实现, 详情可查看 #5512
  • fix: 适配 modern worker, worker bundle 需要导出 serverRender 函数 由 @GiveMe-A-Name 实现, 详情可查看 #5340
  • fix(uni-builder): 允许通过 tools.postcss 覆盖内置 plugins 由 @chenjiahan 实现, 详情可查看 #5479
  • fix(uni-builder): 缺少 postcss peer dependency 由 @chenjiahan 实现, 详情可查看 #5489
  • fix(module-tools): 新的匹配器以匹配别名即使动态引用里存在注释 由 @10Derozan 实现, 详情可查看 #5468
  • fix: 有时 url '/a/' 应该等于 '/a' 由 @GiveMe-A-Name 实现, 详情可查看 #5520
  • fix(uni-builder): 在 modern.js 基础 demo 中使用 rspack 构建时不应该用到 babel-loader 由 @9aoy 实现, 详情可查看 #5493
  • fix(uni-builder): html.templateParametersByEntries 返回值应与默认值合并 由 @9aoy 实现, 详情可查看 #5495
  • fix(uni-builder): splitChunks.overrides 配置项对内置 cacheGroups 无效 由 @9aoy 实现, 详情可查看 #5500

其他变更

  • chore(generator): 移除老的 storybook v6 生成器 由 @9aoy 实现, 详情可查看 #5491

v2.48.0

29 Feb 03:54
Compare
Choose a tag to compare

What's Changed

New Features 🎉

Other Changes

  • chore(generator): extract getGeneratorPath function to generator-utils in #5465

更新内容

新特性 🎉

  • feat(module-tools): 支持自定义资源文件名 由 @10Derozan 实现, 详情可查看 #5431
  • feat(deps): 升级 Rsbuild v0.4.8 由 @chenjiahan 实现, 详情可查看 #5469
  • feat: 当开启 ssr 缓存时,支持 x-render-cache 响应头 由 @GiveMe-A-Name 实现, 详情可查看 #5466
  • feat: 从工程方案中分离 new & upgrade 命令 由 @KyrieLii 实现, 详情可查看 #5420

其他变更

  • fechoreat(generator): 提取 getGeneratorPath 方法到 generator-utils 公共包, 详情可查看 #5465