Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/allow-requests.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/automatic-preload.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/disposable-ipc-handler.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/ipc-fixes.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/pre.json

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/trpc-11-support.md

This file was deleted.

18 changes: 18 additions & 0 deletions packages/electron-trpc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/electron-trpc/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 3 additions & 0 deletions www/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# www

## 0.0.2
2 changes: 1 addition & 1 deletion www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down