@delight-rpc/electron 4.0.3 → 5.0.0

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/README.md CHANGED
@@ -199,7 +199,7 @@ function createClientInMain<IAPI extends object>(
199
199
  port: Electron.MessagePortMain
200
200
  , options?: {
201
201
  parameterValidators?: DelightRPC.ParameterValidators<IAPI>
202
- expectedVersion?: `${number}.${number}.${number}`
202
+ expectedVersion?: string
203
203
  channel?: string
204
204
  }
205
205
  ): [client: DelightRPC.ClientProxy<IAPI>, close: () => void]
@@ -211,7 +211,7 @@ function createClientInRenderer<IAPI extends object>(
211
211
  port: MessagePort
212
212
  , options?: {
213
213
  parameterValidators?: DelightRPC.ParameterValidators<IAPI>
214
- expectedVersion?: `${number}.${number}.${number}`
214
+ expectedVersion?: string
215
215
  channel?: string
216
216
  }
217
217
  ): [client: DelightRPC.ClientProxy<IAPI>, close: () => void]
@@ -222,7 +222,7 @@ function createClientInRenderer<IAPI extends object>(
222
222
  function createBatchClientInMain(
223
223
  port: Electron.MessagePortMain
224
224
  , options?: {
225
- expectedVersion?: `${number}.${number}.${number}`
225
+ expectedVersion?: string
226
226
  channel?: string
227
227
  }
228
228
  ): [client: DelightRPC.BatchClient, close: () => void]
@@ -233,7 +233,7 @@ function createBatchClientInMain(
233
233
  function createBatchClientInRenderer(
234
234
  port: MessagePort
235
235
  , options?: {
236
- expectedVersion?: `${number}.${number}.${number}`
236
+ expectedVersion?: string
237
237
  channel?: string
238
238
  }
239
239
  ): [client: DelightRPC.BatchClient, close: () => void]
package/lib/client.d.ts CHANGED
@@ -3,20 +3,20 @@ import Electron from 'electron';
3
3
  import { CustomError } from '@blackglory/errors';
4
4
  export declare function createClientInMain<IAPI extends object>(port: Electron.MessagePortMain, { parameterValidators, expectedVersion, channel }?: {
5
5
  parameterValidators?: DelightRPC.ParameterValidators<IAPI>;
6
- expectedVersion?: `${number}.${number}.${number}`;
6
+ expectedVersion?: string;
7
7
  channel?: string;
8
8
  }): [client: DelightRPC.ClientProxy<IAPI>, close: () => void];
9
9
  export declare function createClientInRenderer<IAPI extends object>(port: MessagePort, { parameterValidators, expectedVersion, channel }?: {
10
10
  parameterValidators?: DelightRPC.ParameterValidators<IAPI>;
11
- expectedVersion?: `${number}.${number}.${number}`;
11
+ expectedVersion?: string;
12
12
  channel?: string;
13
13
  }): [client: DelightRPC.ClientProxy<IAPI>, close: () => void];
14
14
  export declare function createBatchClientInMain(port: Electron.MessagePortMain, { expectedVersion, channel }?: {
15
- expectedVersion?: `${number}.${number}.${number}`;
15
+ expectedVersion?: string;
16
16
  channel?: string;
17
17
  }): [client: DelightRPC.BatchClient, close: () => void];
18
18
  export declare function createBatchClientInRenderer(port: MessagePort, { expectedVersion, channel }?: {
19
- expectedVersion?: `${number}.${number}.${number}`;
19
+ expectedVersion?: string;
20
20
  channel?: string;
21
21
  }): [client: DelightRPC.BatchClient, close: () => void];
22
22
  export declare class ClientClosed extends CustomError {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delight-rpc/electron",
3
- "version": "4.0.3",
3
+ "version": "5.0.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "files": [
@@ -31,33 +31,33 @@
31
31
  }
32
32
  },
33
33
  "devDependencies": {
34
- "@blackglory/jest-matchers": "^0.3.1",
35
- "@commitlint/cli": "^17.0.2",
36
- "@commitlint/config-conventional": "^17.0.2",
37
- "@types/jest": "^27.5.1",
38
- "@typescript-eslint/eslint-plugin": "^5.29.0",
39
- "@typescript-eslint/parser": "^5.29.0",
34
+ "@blackglory/jest-matchers": "^0.5.0",
35
+ "@commitlint/cli": "^17.3.0",
36
+ "@commitlint/config-conventional": "^17.3.0",
37
+ "@types/jest": "^29.2.4",
38
+ "@typescript-eslint/eslint-plugin": "^5.46.1",
39
+ "@typescript-eslint/parser": "^5.46.1",
40
40
  "cross-env": "^7.0.3",
41
- "delight-rpc": "^4.2.1",
41
+ "delight-rpc": "^5.0.0",
42
42
  "electron": "^16.0.7",
43
- "eslint": "8.18.0",
43
+ "eslint": "8.29.0",
44
44
  "husky": "4",
45
- "jest": "^27.5.1",
45
+ "jest": "^29.3.1",
46
46
  "npm-run-all": "^4.1.5",
47
47
  "rimraf": "^3.0.2",
48
48
  "standard-version": "^9.5.0",
49
- "ts-jest": "^27.1.4",
49
+ "ts-jest": "^29.0.3",
50
50
  "tscpaths": "^0.0.9",
51
51
  "typescript": "^4.7.4"
52
52
  },
53
53
  "dependencies": {
54
- "@blackglory/errors": "^2.2.1",
55
- "@blackglory/prelude": "^0.1.2",
56
- "@delight-rpc/protocol": "^2.2.0",
57
- "extra-promise": "^2.2.0"
54
+ "@blackglory/errors": "^2.3.0",
55
+ "@blackglory/prelude": "^0.1.8",
56
+ "@delight-rpc/protocol": "^3.0.0",
57
+ "extra-promise": "^4.4.0"
58
58
  },
59
59
  "peerDependencies": {
60
- "delight-rpc": "^4.2.1",
60
+ "delight-rpc": "^5.0.0",
61
61
  "electron": "^16.0.1"
62
62
  }
63
63
  }