Releases: Hill-98/electron-ipc-flow
Releases · Hill-98/electron-ipc-flow
3.0.3
3.0.1
Breaking
- The controller class is now split into
IpcClientController
andIpcServerController
New
IpcClientController
andIpcServerController
can set an event handler object when constructing, you can also set the event handler object later in thelisteners
property.IpcServerController
can set an functions handler object when constructing, you can also set the functions handler object later in thehandlers
property.IpcServerController
'sTrustHandler
andWebContentsGetter
support return a non-Promise value.IpcServerController
now has asendToFrame
method.preloadInit
now supports settingisolatedWorldId
.
Fix
- Global event listeners inside controllers were not removed correctly.
Misc
- More complete testing
- Better debug messages
- Simplify TypeScript type declarations
- Use biome formatter and linter
2.0.0
The previous version could not set the global TrustHandler
, now it has been moved to IpcController.TrustHandler
.
Breaking
IpcController.callers
rename toIpcController.calls
- Now
IpcBroadcastController
does not have a defaultWebContentsGetter
and needs to be set manually. The previous defaultWebContentsGetter
was to get thewebContents
of allBrowserWindow
. - The first parameter type of
TrustHandler
is nowIpcController
, which used to be the controller name (string)
Fix
IpcController
event handler parameter type is incorrectIpcController.#ipcMainEventListener
no await asyncTrustHandler