diff --git a/.changeset/allow-requests.md b/.changeset/allow-requests.md deleted file mode 100644 index 167529be..00000000 --- a/.changeset/allow-requests.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'electron-trpc': minor ---- - -Add an `allow` option to `createIPCHandler`, which decides whether to handle each request, e.g. based on `event.senderFrame.url`. Rejected requests fail with a `FORBIDDEN` error. diff --git a/.changeset/automatic-preload.md b/.changeset/automatic-preload.md deleted file mode 100644 index 2a81608f..00000000 --- a/.changeset/automatic-preload.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'electron-trpc': major ---- - -Breaking change: `createIPCHandler` registers electron-trpc's preload script itself, on the default session or the sessions passed as `preload: { sessions }`, so apps no longer need one. Apps that expose electron-trpc from their own preload script pass `preload: false` and import `exposeElectronTRPC` from `electron-trpc/preload` instead of `electron-trpc/main`. If a build bundles electron-trpc without its preload script, `createIPCHandler` throws an error explaining how to expose it from your own preload script instead. diff --git a/.changeset/disposable-ipc-handler.md b/.changeset/disposable-ipc-handler.md deleted file mode 100644 index 765f1615..00000000 --- a/.changeset/disposable-ipc-handler.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'electron-trpc': major ---- - -Breaking change: `createIPCHandler` returns a `Disposable` handler that serves every window, replacing the `windows` option and `attachWindow`/`detachWindow`. Requests are cancelled when their page navigates away, reloads, crashes or closes, and disposing the handler cancels everything still running. diff --git a/.changeset/ipc-fixes.md b/.changeset/ipc-fixes.md deleted file mode 100644 index 91befb5f..00000000 --- a/.changeset/ipc-fixes.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'electron-trpc': patch ---- - -Fix responses reaching the wrong client when a page has several (#201), types not resolving with `moduleResolution: bundler` (#229), `instanceof TRPCClientError` failing in the renderer (#209), and electron-trpc not working in sandboxed renderers (#116). diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index b8e81757..00000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "mode": "exit", - "tag": "alpha", - "initialVersions": { - "examples/basic-react": "0.0.16", - "examples/basic-react-superjson": "0.0.16", - "examples/basic-vanilla-esm": "0.0.16", - "electron-trpc": "0.6.1", - "www": "0.0.1" - }, - "changesets": [] -} diff --git a/.changeset/trpc-11-support.md b/.changeset/trpc-11-support.md deleted file mode 100644 index 8564a62d..00000000 --- a/.changeset/trpc-11-support.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'electron-trpc': major ---- - -Breaking change: Requires tRPC 11 and Electron 35 or later. Pass transformers to `ipcLink` instead of the client, as with tRPC 11's other links. diff --git a/packages/electron-trpc/CHANGELOG.md b/packages/electron-trpc/CHANGELOG.md index 6040f383..3ff4ea5a 100644 --- a/packages/electron-trpc/CHANGELOG.md +++ b/packages/electron-trpc/CHANGELOG.md @@ -1,5 +1,23 @@ # electron-trpc +## 1.0.0 + +### Major Changes + +- [#231](https://github.com/jsonnull/electron-trpc/pull/231) [`bb5a2d9`](https://github.com/jsonnull/electron-trpc/commit/bb5a2d994ffd721c5ce3a3ce4b06d3c920fa65c2) Thanks [@jsonnull](https://github.com/jsonnull)! - Breaking change: `createIPCHandler` registers electron-trpc's preload script itself, on the default session or the sessions passed as `preload: { sessions }`, so apps no longer need one. Apps that expose electron-trpc from their own preload script pass `preload: false` and import `exposeElectronTRPC` from `electron-trpc/preload` instead of `electron-trpc/main`. If a build bundles electron-trpc without its preload script, `createIPCHandler` throws an error explaining how to expose it from your own preload script instead. + +- [#231](https://github.com/jsonnull/electron-trpc/pull/231) [`bb5a2d9`](https://github.com/jsonnull/electron-trpc/commit/bb5a2d994ffd721c5ce3a3ce4b06d3c920fa65c2) Thanks [@jsonnull](https://github.com/jsonnull)! - Breaking change: `createIPCHandler` returns a `Disposable` handler that serves every window, replacing the `windows` option and `attachWindow`/`detachWindow`. Requests are cancelled when their page navigates away, reloads, crashes or closes, and disposing the handler cancels everything still running. + +- [#231](https://github.com/jsonnull/electron-trpc/pull/231) [`bb5a2d9`](https://github.com/jsonnull/electron-trpc/commit/bb5a2d994ffd721c5ce3a3ce4b06d3c920fa65c2) Thanks [@jsonnull](https://github.com/jsonnull)! - Breaking change: Requires tRPC 11 and Electron 35 or later. Pass transformers to `ipcLink` instead of the client, as with tRPC 11's other links. + +### Minor Changes + +- [#231](https://github.com/jsonnull/electron-trpc/pull/231) [`bb5a2d9`](https://github.com/jsonnull/electron-trpc/commit/bb5a2d994ffd721c5ce3a3ce4b06d3c920fa65c2) Thanks [@jsonnull](https://github.com/jsonnull)! - Add an `allow` option to `createIPCHandler`, which decides whether to handle each request, e.g. based on `event.senderFrame.url`. Rejected requests fail with a `FORBIDDEN` error. + +### Patch Changes + +- [#231](https://github.com/jsonnull/electron-trpc/pull/231) [`bb5a2d9`](https://github.com/jsonnull/electron-trpc/commit/bb5a2d994ffd721c5ce3a3ce4b06d3c920fa65c2) Thanks [@jsonnull](https://github.com/jsonnull)! - Fix responses reaching the wrong client when a page has several (#201), types not resolving with `moduleResolution: bundler` (#229), `instanceof TRPCClientError` failing in the renderer (#209), and electron-trpc not working in sandboxed renderers (#116). + ## 0.7.1 ### Patch Changes diff --git a/packages/electron-trpc/package.json b/packages/electron-trpc/package.json index 58ad16c5..7f4dfb9e 100644 --- a/packages/electron-trpc/package.json +++ b/packages/electron-trpc/package.json @@ -1,7 +1,7 @@ { "name": "electron-trpc", "description": "Electron support for tRPC", - "version": "0.7.1", + "version": "1.0.0", "type": "module", "repository": { "type": "git", diff --git a/www/CHANGELOG.md b/www/CHANGELOG.md new file mode 100644 index 00000000..c73163e3 --- /dev/null +++ b/www/CHANGELOG.md @@ -0,0 +1,3 @@ +# www + +## 0.0.2 diff --git a/www/package.json b/www/package.json index 19ce7423..d98005c2 100644 --- a/www/package.json +++ b/www/package.json @@ -2,7 +2,7 @@ "name": "www", "private": true, "type": "module", - "version": "0.0.1", + "version": "0.0.2", "scripts": { "dev": "astro dev", "start": "astro dev",