-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrading to Electron@12 #401
Comments
electron/forge#2208 shows that there are still issues between Webpack 4 and 5 for Electron Forge, which might be related to the errors thrown by Additionally, examining the
However, updating to
Therefore, the following updates need to occur before upgrading Synectic to Electon@12:
|
Of particular relevance for updating to Fast Refresh is the following post by @gaearon: facebook/react#16604 (comment) |
electron-userland/electron-forge v6.0.0-beta.56 includes support for Webpack 5, which means that particular barrier is a non-issue now. |
Per @malept in electron/forge#2307 (comment):
|
Additionally, when running under Electron 12+ there are currently errors indicating that
|
Resolved by #521. |
Describe the bug
Electron v12.0.0 has been released with changelog:
Stack Changes
89
14.16
8.9
Highlight Features
exposeInMainWorld
method can now expose non-object APIs.webFrameMain
API for accessing sub-frames of aWebContents
instance from the main process.contextIsolation
andworldSafeExecuteJavaScript
are nowtrue
.See the 12.0.0 release notes for a full list of new features and changes.
Breaking Changes
remote
module. It is replaced by@electron/remote
.@electron/remote
here.contextIsolation
totrue
.worldSafeExecuteJavaScript
totrue
.crashReporter.start({ compress })
fromfalse
totrue
.More information about these and future changes can be found on the Planned Breaking Changes page.
API Changes
webFrameMain
API: ThewebFrameMain
module can be used to look up frames across existingWebContents
instances. This is the main process equivalent of the existing webFrame API. More information about this new API can be found here, and in our documentation.app
API changes:serviceName
to'child-process-gone'
/app.getAppMetrics()
.app.runningUnderRosettaTranslation
property to detect when running under rosetta on Apple silicon.exitCode
torender-process-gone
details (app & webContents).BrowserWindow
API changes:BrowserWindow.isTabletMode()
API.resized
(Windows/macOS) andmoved
(Windows) events toBrowserWindow
.system-context-menu
event to allow preventing and overriding the system context menu.win.setTopBrowserView()
so thatBrowserView
s can be raised.webPreferences.preferredSizeMode
to allow sizing views according to their document's minimum size.contextBridge
API changes:exposeInMainWorld
method to expose non-object APIs.display
API changes:displayFrequency
property to theDisplay
object to allow getting information about the refresh rate on Windows.extensions
API changes:chrome.management
APIs.MenuItem
API changes:net
API changes:credentials
option fornet.request()
.net.online
for detecting whether there is currently internet connection.powerMonitor
API changes:powerMonitor.onBatteryPower
.powerMonitor
on macOS.session
API changes:allowFileAccess
option toses.loadExtension()
API.display-capture
API forsession.setPermissionRequestHandler
.disabledCipherSuites
option tosession.setSSLConfig
.extension-loaded
,extension-unloaded
, andextension-ready
events tosession
.session.setSSLConfig()
to allow configuring SSL.direct
,auto_detect
orsystem
modes insession.setProxy()
.shell
API changes:shell.trashItem()
API, replacing the synchronousshell.moveItemToTrash()
.webContents
API changes:frame
andwebContents
properties to the details object in webRequest handlers.webContents.forcefullyCrashRenderer()
to forcefully terminate a renderer process to assist with recovering a hung renderer.setWindowOpenHandler
API for renderer-created child windows, and deprecatenew-window
event.webFrame
API changes:Removed/Deprecated Changes
The following APIs have been removed or are now deprecated:
remote
module. It is replaced by@electron/remote
.crashReporter
APIs.Additional considerations must be resolved prior to upgrading Synectic to Electron@12.
Versions (please complete the following information):
development
)Additional context
#384 had to be reverted due to errors indicating that
__dirname
cannot be found during runtime, which appear to be thrown byreact-hot-loader
due to version mismatches with Webpack 5.The text was updated successfully, but these errors were encountered: