@delight-rpc/electron 0.2.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/README.md +14 -2
- package/lib/client.d.ts +2 -2
- package/lib/client.js +10 -21
- package/lib/client.js.map +1 -1
- package/lib/server.js +26 -16
- package/lib/server.js.map +1 -1
- package/package.json +15 -16
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.1.1](https://github.com/delight-rpc/electron/compare/v1.1.0...v1.1.1) (2021-12-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* error ([2b51b3a](https://github.com/delight-rpc/electron/commit/2b51b3a7fab84ee6414e832b6e374a0437509c01))
|
|
11
|
+
|
|
12
|
+
## [1.1.0](https://github.com/delight-rpc/electron/compare/v1.0.0...v1.1.0) (2021-12-02)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* stop starting and closing MessagePort ([22d509a](https://github.com/delight-rpc/electron/commit/22d509ace6e3ffbdf4f99a8269f9cfd712f410cb))
|
|
18
|
+
|
|
19
|
+
## [1.0.0](https://github.com/delight-rpc/electron/compare/v0.2.1...v1.0.0) (2021-11-19)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### ⚠ BREAKING CHANGES
|
|
23
|
+
|
|
24
|
+
* peerDependencies changed
|
|
25
|
+
- delight-rpc^1.1.1
|
|
26
|
+
- electron^16.0.1
|
|
27
|
+
|
|
28
|
+
* upgrade dependencies ([2693bdc](https://github.com/delight-rpc/electron/commit/2693bdcfa7db80237abdd639ac83b79697e1fbc5))
|
|
29
|
+
|
|
30
|
+
### [0.2.1](https://github.com/delight-rpc/electron/compare/v0.2.0...v0.2.1) (2021-11-16)
|
|
31
|
+
|
|
5
32
|
## [0.2.0](https://github.com/delight-rpc/electron/compare/v0.1.1...v0.2.0) (2021-11-13)
|
|
6
33
|
|
|
7
34
|
|
package/README.md
CHANGED
|
@@ -22,6 +22,8 @@ await app.whenReady()
|
|
|
22
22
|
|
|
23
23
|
ipcMain.on('message-port', async event => {
|
|
24
24
|
const [port] = event.ports
|
|
25
|
+
|
|
26
|
+
port.start()
|
|
25
27
|
const [client] = createClientInMain<IAPI>(port)
|
|
26
28
|
await client.echo('hello world')
|
|
27
29
|
})
|
|
@@ -53,6 +55,8 @@ const api: IAPI = {
|
|
|
53
55
|
// create the MessageChannel in the renderer,
|
|
54
56
|
// because its script file is always executed last.
|
|
55
57
|
const channel = new MessageChannel()
|
|
58
|
+
|
|
59
|
+
channel.port1.start()
|
|
56
60
|
createServerInRenderer(api, channel.port1)
|
|
57
61
|
window.postMessage('message-port', '*', [channel.port2])
|
|
58
62
|
```
|
|
@@ -78,6 +82,8 @@ await app.whenReady()
|
|
|
78
82
|
|
|
79
83
|
ipcMain.on('message-port', async event => {
|
|
80
84
|
const [port] = event.ports
|
|
85
|
+
|
|
86
|
+
port.start()
|
|
81
87
|
createServerInMain(api, port)
|
|
82
88
|
})
|
|
83
89
|
|
|
@@ -103,6 +109,8 @@ import { createClientInRenderer } from '@delight-rpc/electron'
|
|
|
103
109
|
// because its script file is always executed last.
|
|
104
110
|
const channel = new MessageChannel()
|
|
105
111
|
window.postMessage('message-port', '*', [channel.port2])
|
|
112
|
+
|
|
113
|
+
channel.port1.start()
|
|
106
114
|
const [client] = createClientInRenderer(api, channel.port1)
|
|
107
115
|
await client.echo('hello world')
|
|
108
116
|
```
|
|
@@ -160,6 +168,8 @@ const api: IAPI = {
|
|
|
160
168
|
window.addEventListener('message', async event => {
|
|
161
169
|
if (event.data === 'message-port') {
|
|
162
170
|
const [port] = event.ports
|
|
171
|
+
|
|
172
|
+
port.start()
|
|
163
173
|
createServerInRenderer(api, port)
|
|
164
174
|
}
|
|
165
175
|
})
|
|
@@ -172,6 +182,8 @@ import { createClientInRenderer } from '@delight-rpc/electron'
|
|
|
172
182
|
window.addEventListener('message', async event => {
|
|
173
183
|
if (event.data === 'message-port') {
|
|
174
184
|
const [port] = event.ports
|
|
185
|
+
|
|
186
|
+
port.start()
|
|
175
187
|
const [client] = createClientInRenderer<IAPI>(port)
|
|
176
188
|
await client.echo('hello world')
|
|
177
189
|
}
|
|
@@ -185,14 +197,14 @@ window.ready()
|
|
|
185
197
|
```ts
|
|
186
198
|
function createClientInMain<IAPI extends object>(
|
|
187
199
|
port: Electron.MessagePortMain
|
|
188
|
-
): [client: DelightRPC.
|
|
200
|
+
): [client: DelightRPC.ClientProxy<IAPI>, close: () => void]
|
|
189
201
|
```
|
|
190
202
|
|
|
191
203
|
### createClientInRenderer
|
|
192
204
|
```ts
|
|
193
205
|
function createClientInRenderer<IAPI extends object>(
|
|
194
206
|
port: MessagePort
|
|
195
|
-
): [client: DelightRPC.
|
|
207
|
+
): [client: DelightRPC.ClientProxy<IAPI>, close: () => void]
|
|
196
208
|
```
|
|
197
209
|
|
|
198
210
|
### createServerInMain
|
package/lib/client.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as DelightRPC from 'delight-rpc';
|
|
2
2
|
import Electron from 'electron';
|
|
3
3
|
import { CustomError } from '@blackglory/errors';
|
|
4
|
-
export declare function createClientInMain<IAPI extends object>(port: Electron.MessagePortMain): [client: DelightRPC.
|
|
5
|
-
export declare function createClientInRenderer<IAPI extends object>(port: MessagePort): [client: DelightRPC.
|
|
4
|
+
export declare function createClientInMain<IAPI extends object>(port: Electron.MessagePortMain): [client: DelightRPC.ClientProxy<IAPI>, close: () => void];
|
|
5
|
+
export declare function createClientInRenderer<IAPI extends object>(port: MessagePort): [client: DelightRPC.ClientProxy<IAPI>, close: () => void];
|
|
6
6
|
export declare class ClientClosed extends CustomError {
|
|
7
7
|
}
|
package/lib/client.js
CHANGED
|
@@ -21,28 +21,25 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.ClientClosed = exports.createClientInRenderer = exports.createClientInMain = void 0;
|
|
23
23
|
const DelightRPC = __importStar(require("delight-rpc"));
|
|
24
|
-
const types_1 = require("@blackglory/types");
|
|
25
24
|
const extra_promise_1 = require("extra-promise");
|
|
26
25
|
const errors_1 = require("@blackglory/errors");
|
|
27
26
|
function createClientInMain(port) {
|
|
28
27
|
const pendings = {};
|
|
29
28
|
port.addListener('message', handler);
|
|
30
|
-
|
|
31
|
-
const client = DelightRPC.createClient(async function request(jsonRpc) {
|
|
29
|
+
const client = DelightRPC.createClient(async function send(request) {
|
|
32
30
|
const res = new extra_promise_1.Deferred();
|
|
33
|
-
pendings[
|
|
31
|
+
pendings[request.id] = res;
|
|
34
32
|
try {
|
|
35
|
-
port.postMessage(
|
|
33
|
+
port.postMessage(request);
|
|
36
34
|
return await res;
|
|
37
35
|
}
|
|
38
36
|
finally {
|
|
39
|
-
delete pendings[
|
|
37
|
+
delete pendings[request.id];
|
|
40
38
|
}
|
|
41
39
|
});
|
|
42
40
|
return [client, close];
|
|
43
41
|
function close() {
|
|
44
42
|
port.removeListener('message', handler);
|
|
45
|
-
port.close();
|
|
46
43
|
for (const [key, deferred] of Object.entries(pendings)) {
|
|
47
44
|
deferred.reject(new ClientClosed());
|
|
48
45
|
delete pendings[key];
|
|
@@ -50,34 +47,29 @@ function createClientInMain(port) {
|
|
|
50
47
|
}
|
|
51
48
|
function handler(event) {
|
|
52
49
|
const res = event.data;
|
|
53
|
-
if ((
|
|
50
|
+
if (DelightRPC.isResult(res) || DelightRPC.isError(res)) {
|
|
54
51
|
pendings[res.id].resolve(res);
|
|
55
52
|
}
|
|
56
|
-
else if ((0, types_1.isJsonRpcError)(res)) {
|
|
57
|
-
pendings[res.id].reject(res);
|
|
58
|
-
}
|
|
59
53
|
}
|
|
60
54
|
}
|
|
61
55
|
exports.createClientInMain = createClientInMain;
|
|
62
56
|
function createClientInRenderer(port) {
|
|
63
57
|
const pendings = {};
|
|
64
58
|
port.addEventListener('message', handler);
|
|
65
|
-
|
|
66
|
-
const client = DelightRPC.createClient(async function request(jsonRpc) {
|
|
59
|
+
const client = DelightRPC.createClient(async function send(request) {
|
|
67
60
|
const res = new extra_promise_1.Deferred();
|
|
68
|
-
pendings[
|
|
61
|
+
pendings[request.id] = res;
|
|
69
62
|
try {
|
|
70
|
-
port.postMessage(
|
|
63
|
+
port.postMessage(request);
|
|
71
64
|
return await res;
|
|
72
65
|
}
|
|
73
66
|
finally {
|
|
74
|
-
delete pendings[
|
|
67
|
+
delete pendings[request.id];
|
|
75
68
|
}
|
|
76
69
|
});
|
|
77
70
|
return [client, close];
|
|
78
71
|
function close() {
|
|
79
72
|
port.removeEventListener('message', handler);
|
|
80
|
-
port.close();
|
|
81
73
|
for (const [key, deferred] of Object.entries(pendings)) {
|
|
82
74
|
deferred.reject(new ClientClosed());
|
|
83
75
|
delete pendings[key];
|
|
@@ -85,12 +77,9 @@ function createClientInRenderer(port) {
|
|
|
85
77
|
}
|
|
86
78
|
function handler(event) {
|
|
87
79
|
const res = event.data;
|
|
88
|
-
if ((
|
|
80
|
+
if (DelightRPC.isResult(res) || DelightRPC.isError(res)) {
|
|
89
81
|
pendings[res.id].resolve(res);
|
|
90
82
|
}
|
|
91
|
-
else if ((0, types_1.isJsonRpcError)(res)) {
|
|
92
|
-
pendings[res.id].reject(res);
|
|
93
|
-
}
|
|
94
83
|
}
|
|
95
84
|
}
|
|
96
85
|
exports.createClientInRenderer = createClientInRenderer;
|
package/lib/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,wDAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":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D,oCAAgD"}
|
package/lib/server.js
CHANGED
|
@@ -1,19 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
2
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
22
|
exports.createServerInRenderer = exports.createServerInMain = void 0;
|
|
4
|
-
const
|
|
5
|
-
const delight_rpc_1 = require("delight-rpc");
|
|
23
|
+
const DelightRPC = __importStar(require("delight-rpc"));
|
|
6
24
|
function createServerInMain(api, port) {
|
|
7
25
|
port.addListener('message', handler);
|
|
8
|
-
port.
|
|
9
|
-
return () => {
|
|
10
|
-
port.removeListener('message', handler);
|
|
11
|
-
port.close();
|
|
12
|
-
};
|
|
26
|
+
return () => port.removeListener('message', handler);
|
|
13
27
|
async function handler(event) {
|
|
14
28
|
const req = event.data;
|
|
15
|
-
if (
|
|
16
|
-
const result = await
|
|
29
|
+
if (DelightRPC.isRequest(req)) {
|
|
30
|
+
const result = await DelightRPC.createResponse(api, req);
|
|
17
31
|
port.postMessage(result);
|
|
18
32
|
}
|
|
19
33
|
}
|
|
@@ -21,15 +35,11 @@ function createServerInMain(api, port) {
|
|
|
21
35
|
exports.createServerInMain = createServerInMain;
|
|
22
36
|
function createServerInRenderer(api, port) {
|
|
23
37
|
port.addEventListener('message', handler);
|
|
24
|
-
port.
|
|
25
|
-
return () => {
|
|
26
|
-
port.removeEventListener('message', handler);
|
|
27
|
-
port.close();
|
|
28
|
-
};
|
|
38
|
+
return () => port.removeEventListener('message', handler);
|
|
29
39
|
async function handler(event) {
|
|
30
40
|
const req = event.data;
|
|
31
|
-
if (
|
|
32
|
-
const result = await
|
|
41
|
+
if (DelightRPC.isRequest(req)) {
|
|
42
|
+
const result = await DelightRPC.createResponse(api, req);
|
|
33
43
|
port.postMessage(result);
|
|
34
44
|
}
|
|
35
45
|
}
|
package/lib/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,wDAAyC;AAGzC,SAAgB,kBAAkB,CAChC,GAAS,EACT,IAA8B;IAE9B,IAAI,CAAC,WAAW,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;IACpC,OAAO,GAAG,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;IAEpD,KAAK,UAAU,OAAO,CAAC,KAA4B;QACjD,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAA;QACtB,IAAI,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;YAC7B,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;YAExD,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;SACzB;IACH,CAAC;AACH,CAAC;AAfD,gDAeC;AAED,SAAgB,sBAAsB,CACpC,GAAS,EACT,IAAiB;IAEjB,IAAI,CAAC,gBAAgB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;IACzC,OAAO,GAAG,EAAE,CAAC,IAAI,CAAC,mBAAmB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAA;IAEzD,KAAK,UAAU,OAAO,CAAC,KAAmB;QACxC,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAA;QACtB,IAAI,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE;YAC7B,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;YAExD,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;SACzB;IACH,CAAC;AACH,CAAC;AAfD,wDAeC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delight-rpc/electron",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"files": [
|
|
@@ -31,33 +31,32 @@
|
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@blackglory/jest-matchers": "^0.1.21",
|
|
34
|
-
"@commitlint/cli": "^
|
|
35
|
-
"@commitlint/config-conventional": "^
|
|
36
|
-
"@types/jest": "^27.0.
|
|
37
|
-
"@types/node": "^16.11.
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
39
|
-
"@typescript-eslint/parser": "^5.
|
|
34
|
+
"@commitlint/cli": "^15.0.0",
|
|
35
|
+
"@commitlint/config-conventional": "^15.0.0",
|
|
36
|
+
"@types/jest": "^27.0.3",
|
|
37
|
+
"@types/node": "^16.11.11",
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "^5.5.0",
|
|
39
|
+
"@typescript-eslint/parser": "^5.5.0",
|
|
40
40
|
"cross-env": "^7.0.3",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
41
|
+
"delight-rpc": "^1.1.1",
|
|
42
|
+
"electron": "^16.0.1",
|
|
43
|
+
"eslint": "8.4.0",
|
|
43
44
|
"husky": "4",
|
|
44
|
-
"jest": "^27.3
|
|
45
|
+
"jest": "^27.4.3",
|
|
45
46
|
"npm-run-all": "^4.1.5",
|
|
46
47
|
"rimraf": "^3.0.2",
|
|
47
48
|
"standard-version": "^9.3.2",
|
|
48
49
|
"ts-jest": "^27.0.7",
|
|
49
50
|
"ts-node": "^10.4.0",
|
|
50
51
|
"tscpaths": "^0.0.9",
|
|
51
|
-
"typescript": "^4.
|
|
52
|
+
"typescript": "^4.5.2"
|
|
52
53
|
},
|
|
53
54
|
"dependencies": {
|
|
54
55
|
"@blackglory/errors": "^1.1.2",
|
|
55
|
-
"
|
|
56
|
-
"delight-rpc": "^0.1.21",
|
|
57
|
-
"extra-promise": "^0.19.1",
|
|
58
|
-
"justypes": "^0.1.6"
|
|
56
|
+
"extra-promise": "^0.19.4"
|
|
59
57
|
},
|
|
60
58
|
"peerDependencies": {
|
|
61
|
-
"
|
|
59
|
+
"delight-rpc": "^1.1.1",
|
|
60
|
+
"electron": "^16.0.1"
|
|
62
61
|
}
|
|
63
62
|
}
|