Electron 团队于近日正式发布了 Electron 24.0,开发者可以使用 npm install electron@latest 安装它,或者从官方网站下载它。它包括对 Chromium 112、V8 11.2 和 Node.js 18.14.0 的升级。
npm install electron@latest
nativeImage.createThumbnailFromPath()
size
maxSize
httpOnly
shell.openExternal()
logUsage
ShellExecuteEx
SEE_MASK_FLAG_LOG_USAGE
webRequest
types
webContents.print()
ses.setDisplayMediaRequestHandler()
enableLocalEcho
BrowserWindow
BrowserView
beforeunload
contextIsolation: false
BroadcastChannel
aspectRatio
minWidth
minHeight
maxWidth
maxHeight
MessagePortMain
port.postMessage
hasReply
actions
contents.takeHeapSnapshot
更多详情可查看:https://github.com/electron/electron/releases/tag/v24.0.0
评论删除后,数据将无法恢复
Electron 24.0 正式发布
Electron 团队于近日正式发布了 Electron 24.0,开发者可以使用
npm install electron@latest
安装它,或者从官方网站下载它。它包括对 Chromium 112、V8 11.2 和 Node.js 18.14.0 的升级。技术栈变化
突破性变化
nativeImage.createThumbnailFromPath()
现在使用size
而不是maxSize
功能
httpOnly
shell.openExternal()
选项中添加了logUsage
,允许在 Windows 上向ShellExecuteEx
传递SEE_MASK_FLAG_LOG_USAGE
标志webRequest
过滤器添加了types
webContents.print()
增加了几个标准页面大小选项ses.setDisplayMediaRequestHandler()
的回调中添加了enableLocalEcho
的标志修复
BrowserWindow
全屏功能被禁用时,HTML 全屏的一个问题BrowserView
出现时,用户试图阻止渲染器进程中的beforeunload
时的崩溃contextIsolation: false
时,BroadcastChannel
不能正确工作的问题aspectRatio
,minWidth
/minHeight
和maxWidth
/maxHeight
将不会被强制执行的问题MessagePortMain
中调用port.postMessage
,如果参数无效,可能会导致崩溃的问题hasReply
和actions
所导致的问题其他变化
contents.takeHeapSnapshot
的错误信息更多详情可查看:https://github.com/electron/electron/releases/tag/v24.0.0