@delight-rpc/electron 4.0.1 → 4.0.2

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
@@ -247,7 +247,7 @@ function createServerInMain<IAPI extends object>(
247
247
  port: Electron.MessagePortMain
248
248
  parameterValidators?: DelightRPC.ParameterValidators<IAPI>
249
249
  version?: `${number}.${number}.${number}`
250
- channel?: string
250
+ channel?: string | RegExp | AnyChannel
251
251
  ownPropsOnly?: boolean
252
252
  }
253
253
  ): () => void
@@ -261,7 +261,7 @@ function createServerInRenderer<IAPI extends object>(
261
261
  , options?: {
262
262
  parameterValidators?: DelightRPC.ParameterValidators<IAPI>
263
263
  version?: `${number}.${number}.${number}`
264
- channel?: string
264
+ channel?: string | RegExp | AnyChannel
265
265
  ownPropsOnly?: boolean
266
266
  }
267
267
  ): () => void
package/lib/server.d.ts CHANGED
@@ -3,12 +3,12 @@ import Electron from 'electron';
3
3
  export declare function createServerInMain<IAPI extends object>(api: DelightRPC.ImplementationOf<IAPI>, port: Electron.MessagePortMain, { parameterValidators, version, channel, ownPropsOnly }?: {
4
4
  parameterValidators?: DelightRPC.ParameterValidators<IAPI>;
5
5
  version?: `${number}.${number}.${number}`;
6
- channel?: string;
6
+ channel?: string | RegExp | typeof DelightRPC.AnyChannel;
7
7
  ownPropsOnly?: boolean;
8
8
  }): () => void;
9
9
  export declare function createServerInRenderer<IAPI extends object>(api: DelightRPC.ImplementationOf<IAPI>, port: MessagePort, { parameterValidators, version, channel, ownPropsOnly }?: {
10
10
  parameterValidators?: DelightRPC.ParameterValidators<IAPI>;
11
11
  version?: `${number}.${number}.${number}`;
12
- channel?: string;
12
+ channel?: string | RegExp | typeof DelightRPC.AnyChannel;
13
13
  ownPropsOnly?: boolean;
14
14
  }): () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delight-rpc/electron",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "files": [
@@ -31,15 +31,15 @@
31
31
  },
32
32
  "devDependencies": {
33
33
  "@blackglory/jest-matchers": "^0.3.1",
34
- "@commitlint/cli": "^17.0.0",
35
- "@commitlint/config-conventional": "^17.0.0",
34
+ "@commitlint/cli": "^17.0.2",
35
+ "@commitlint/config-conventional": "^17.0.2",
36
36
  "@types/jest": "^27.5.1",
37
- "@typescript-eslint/eslint-plugin": "^5.25.0",
38
- "@typescript-eslint/parser": "^5.25.0",
37
+ "@typescript-eslint/eslint-plugin": "^5.29.0",
38
+ "@typescript-eslint/parser": "^5.29.0",
39
39
  "cross-env": "^7.0.3",
40
- "delight-rpc": "^4.1.0",
40
+ "delight-rpc": "^4.2.1",
41
41
  "electron": "^16.0.7",
42
- "eslint": "8.16.0",
42
+ "eslint": "8.18.0",
43
43
  "husky": "4",
44
44
  "jest": "^27.5.1",
45
45
  "npm-run-all": "^4.1.5",
@@ -47,16 +47,16 @@
47
47
  "standard-version": "^9.5.0",
48
48
  "ts-jest": "^27.1.4",
49
49
  "tscpaths": "^0.0.9",
50
- "typescript": "^4.6.4"
50
+ "typescript": "^4.7.4"
51
51
  },
52
52
  "dependencies": {
53
53
  "@blackglory/errors": "^2.2.1",
54
- "@blackglory/prelude": "^0.1.1",
54
+ "@blackglory/prelude": "^0.1.2",
55
55
  "@delight-rpc/protocol": "^2.2.0",
56
- "extra-promise": "^2.0.0"
56
+ "extra-promise": "^2.2.0"
57
57
  },
58
58
  "peerDependencies": {
59
- "delight-rpc": "^4.1.0",
59
+ "delight-rpc": "^4.2.1",
60
60
  "electron": "^16.0.1"
61
61
  }
62
62
  }