Closed sorrycc closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
这些变更主要集中在改进 React 版本检测逻辑。通过解析版本字符串并比较主版本号,代码更加健壮和易于维护。这些调整确保了在不同版本的 React 环境中,功能能正确地执行。
文件路径 | 变更摘要 |
---|---|
packages/preset-umi/src/features/configPlugins/configPlugins.ts |
重构了检测 React DOM 版本是否小于 18 的功能。现在通过解析版本字符串并比较主版本号来实现。 |
packages/preset-umi/src/features/mpa/mpa.ts |
更新了判断 React 版本是否大于等于 18 的逻辑。现在通过拆分版本字符串并比较主版本号来实现。 |
🐇✨ 代码变更如春风, 版本检测更从容。 主版本号来比较, React 环境无忧愁。 代码健壮又清晰, 开发心情更美丽。
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Size Change: +38 B (0%)
Total Size: 9.9 MB
Filename | Size | Change |
---|---|---|
./packages/preset-umi/dist/features/configPlugins/configPlugins.js |
1.76 kB | +29 B (+1.68%) |
./packages/preset-umi/dist/features/mpa/mpa.js |
2.63 kB | +9 B (+0.34%) |
findDOMNode is deprecated and will be removed in the next major release.
v19 废弃了 findDOMNode ,之前很多库都用到了这个 api 所以会很容易出警告,等社区的各种包跟进更新吧,根据报错堆栈你可以知道是哪个库用的,如果他们更新了,你更新下依赖版本即可。
.
Summary by CodeRabbit