opensumi / core

🚀 A framework helps you quickly build AI Native IDE products. https://preview.opensumi.com

Home Page:https://opensumi.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[FEATURE] 兼容 Electron 30

bytemain opened this issue · comments

如果你的需求与问题相关,请在下面描述一下(Is your feature request related to a problem? Please describe.)

Electron 30 有一些 breaking change,在这个文档中收集一下

https://www.electronjs.org/docs/latest/breaking-changes

Breaking API Changes (29.0)

The ipcRenderer.sendTo() API has been removed. It should be replaced by setting up a MessageChannel between the renderers.

在升级 electron 29 的话,需要重构下这个 webview 的 sendTo

CleanShot 2024-04-19 at 13 01 08@2x

Breaking API Changes (25.0)

Deprecated: protocol.{register,intercept}{Buffer,String,Stream,File,Http}Protocol
The protocol.register*Protocol and protocol.intercept*Protocol methods have been replaced with protocol.handle.