Releases: web-infra-dev/modern.js
Releases · web-infra-dev/modern.js
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
v2.48.1
What's Changed
Performance Improvements ⚡
- perf(utils): remove unused schema-utils3 package by @chenjiahan in #5480
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
更新内容
性能优化 ⚡
- 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
其他变更
v2.48.0
What's Changed
New Features 🎉
- feat(module-tools): add support for custom asset name by @10Derozan in #5431
- feat(deps): bump Rsbuild v0.4.8 by @chenjiahan in #5469
- feat: support
x-render-cache
response headers when open ssr cache by @GiveMe-A-Name in #5466 - feat: separate new & upgrade action from solutions by @KyrieLii in #5420
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