@delight-rpc/child-process 0.4.5 → 0.5.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
@@ -23,7 +23,7 @@ const api: IAPI = {
23
23
  }
24
24
  }
25
25
 
26
- createServer(api, process)
26
+ createServer(api, process)
27
27
 
28
28
  // main.ts
29
29
  import { fork } from 'child_process'
@@ -69,7 +69,7 @@ function createClient<IAPI extends object>(
69
69
  process: ChildProcess | NodeJS.Process
70
70
  , options?: {
71
71
  parameterValidators?: DelightRPC.ParameterValidators<IAPI>
72
- expectedVersion?: `${number}.${number}.${number}`
72
+ expectedVersion?: string
73
73
  channel?: string
74
74
  }
75
75
  ): [client: DelightRPC.ClientProxy<IAPI>, close: () => void]
@@ -80,7 +80,7 @@ function createClient<IAPI extends object>(
80
80
  function createBatchClient(
81
81
  process: ChildProcess | NodeJS.Process
82
82
  , options?: {
83
- expectedVersion?: `${number}.${number}.${number}`
83
+ expectedVersion?: string
84
84
  channel?: string
85
85
  }
86
86
  ): [client: DelightRPC.BatchClient, close: () => void]
package/lib/client.d.ts CHANGED
@@ -5,11 +5,11 @@ import { ChildProcess } from 'child_process';
5
5
  import { CustomError } from '@blackglory/errors';
6
6
  export declare function createClient<IAPI extends object>(process: ChildProcess | NodeJS.Process, { parameterValidators, expectedVersion, channel }?: {
7
7
  parameterValidators?: DelightRPC.ParameterValidators<IAPI>;
8
- expectedVersion?: `${number}.${number}.${number}`;
8
+ expectedVersion?: string;
9
9
  channel?: string;
10
10
  }): [client: DelightRPC.ClientProxy<IAPI>, close: () => void];
11
11
  export declare function createBatchClient(process: ChildProcess | NodeJS.Process, { expectedVersion, channel }?: {
12
- expectedVersion?: `${number}.${number}.${number}`;
12
+ expectedVersion?: string;
13
13
  channel?: string;
14
14
  }): [client: DelightRPC.BatchClient, close: () => void];
15
15
  export declare class ClientClosed extends CustomError {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delight-rpc/child-process",
3
- "version": "0.4.5",
3
+ "version": "0.5.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "files": [
@@ -30,32 +30,35 @@
30
30
  }
31
31
  },
32
32
  "devDependencies": {
33
- "@blackglory/jest-matchers": "^0.3.1",
34
- "@commitlint/cli": "^17.0.2",
35
- "@commitlint/config-conventional": "^17.0.2",
36
- "@types/jest": "^27.5.1",
33
+ "@blackglory/jest-matchers": "^0.5.0",
34
+ "@commitlint/cli": "^17.3.0",
35
+ "@commitlint/config-conventional": "^17.3.0",
36
+ "@types/jest": "^29.2.4",
37
37
  "@types/node": "14",
38
- "@typescript-eslint/eslint-plugin": "^5.29.0",
39
- "@typescript-eslint/parser": "^5.29.0",
38
+ "@typescript-eslint/eslint-plugin": "^5.46.1",
39
+ "@typescript-eslint/parser": "^5.46.1",
40
40
  "cross-env": "^7.0.3",
41
- "eslint": "8.18.0",
41
+ "delight-rpc": "^5.0.0",
42
+ "eslint": "8.29.0",
42
43
  "husky": "4",
43
- "jest": "^27.5.1",
44
+ "jest": "^29.3.1",
44
45
  "npm-run-all": "^4.1.5",
45
46
  "return-style": "^1.0.0",
46
47
  "rimraf": "^3.0.2",
47
48
  "standard-version": "^9.5.0",
48
- "ts-jest": "^27.1.4",
49
- "ts-node": "^10.8.1",
50
- "ts-patch": "^2.0.1",
49
+ "ts-jest": "^29.0.3",
50
+ "ts-node": "^10.9.1",
51
+ "ts-patch": "^2.1.0",
51
52
  "typescript": "^4.7.4",
52
- "typescript-transform-paths": "^3.3.1"
53
+ "typescript-transform-paths": "^3.4.4"
53
54
  },
54
55
  "dependencies": {
55
- "@blackglory/errors": "^2.2.1",
56
- "@blackglory/prelude": "^0.1.2",
57
- "@delight-rpc/protocol": "^2.2.0",
58
- "delight-rpc": "^4.2.4",
59
- "extra-promise": "^2.2.0"
56
+ "@blackglory/errors": "^2.3.0",
57
+ "@blackglory/prelude": "^0.1.8",
58
+ "@delight-rpc/protocol": "^3.0.0",
59
+ "extra-promise": "^4.4.0"
60
+ },
61
+ "peerDependencies": {
62
+ "delight-rpc": "^5.0.0"
60
63
  }
61
64
  }