Skip to content

Releases: Hill-98/electron-ipc-flow

3.0.3

12 Jan 12:20
Compare
Choose a tag to compare

Misc

  • electron minimum supported version 12
  • update serialize-error to 12.x and vite to 6.x

3.0.1

06 Nov 12:56
Compare
Choose a tag to compare

Breaking

  • The controller class is now split into IpcClientController and IpcServerController

New

  • IpcClientController and IpcServerController can set an event handler object when constructing, you can also set the event handler object later in the listeners property.
  • IpcServerController can set an functions handler object when constructing, you can also set the functions handler object later in the handlers property.
  • IpcServerController's TrustHandler and WebContentsGetter support return a non-Promise value.
  • IpcServerController now has a sendToFrame method.
  • preloadInit now supports setting isolatedWorldId.

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

25 Oct 20:57
Compare
Choose a tag to compare

The previous version could not set the global TrustHandler, now it has been moved to IpcController.TrustHandler.

Breaking

  • IpcController.callers rename to IpcController.calls
  • Now IpcBroadcastController does not have a default WebContentsGetter and needs to be set manually. The previous default WebContentsGetter was to get the webContents of all BrowserWindow.
  • The first parameter type of TrustHandler is now IpcController, which used to be the controller name (string)

Fix

  • IpcController event handler parameter type is incorrect
  • IpcController.#ipcMainEventListener no await async TrustHandler

1.0.1

23 Oct 21:25
Compare
Choose a tag to compare

Misc

  • Update README.md
  • Prettier index.d.ts.

1.0.0

23 Oct 19:34
Compare
Choose a tag to compare

initial release