@milaboratories/pl-client 2.11.6 → 2.11.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/pl-client",
3
- "version": "2.11.6",
3
+ "version": "2.11.8",
4
4
  "engines": {
5
5
  "node": ">=20.3.0"
6
6
  },
@@ -21,25 +21,25 @@
21
21
  ],
22
22
  "dependencies": {
23
23
  "@grpc/grpc-js": "~1.13.4",
24
- "@protobuf-ts/grpc-transport": "2.11.0",
25
- "@protobuf-ts/runtime": "2.11.0",
26
- "@protobuf-ts/runtime-rpc": "2.11.0",
24
+ "@protobuf-ts/grpc-transport": "2.11.1",
25
+ "@protobuf-ts/runtime": "2.11.1",
26
+ "@protobuf-ts/runtime-rpc": "2.11.1",
27
27
  "canonicalize": "~2.1.0",
28
28
  "denque": "^2.1.0",
29
29
  "lru-cache": "^11.1.0",
30
30
  "https-proxy-agent": "^7.0.6",
31
31
  "long": "^5.3.2",
32
- "undici": "~7.10.0",
32
+ "undici": "~7.13.0",
33
33
  "utility-types": "^3.11.0",
34
- "yaml": "^2.7.0",
35
- "@milaboratories/pl-http": "^1.1.4",
34
+ "yaml": "^2.8.0",
35
+ "@milaboratories/pl-http": "^1.1.5",
36
36
  "@milaboratories/ts-helpers": "^1.4.3"
37
37
  },
38
38
  "devDependencies": {
39
39
  "typescript": "~5.6.3",
40
40
  "vite": "^6.3.5",
41
41
  "@types/node": "~20.16.15",
42
- "@protobuf-ts/plugin": "2.11.0",
42
+ "@protobuf-ts/plugin": "2.11.1",
43
43
  "@types/http-proxy": "^1.17.16",
44
44
  "@types/jest": "^29.5.14",
45
45
  "jest": "^29.7.0",
@@ -1,3 +1,5 @@
1
+ import type { ExponentialBackoffRetryOptions } from '@milaboratories/ts-helpers';
2
+
1
3
  /** Base configuration structure for PL client */
2
4
  export interface PlClientConfig {
3
5
  /** Port and host of remote pl server */
@@ -93,6 +95,14 @@ export const DEFAULT_RETRY_EXPONENTIAL_BACKOFF_MULTIPLIER = 1.5; // + 50% on eac
93
95
  export const DEFAULT_RETRY_LINEAR_BACKOFF_STEP = 50; // + 50 ms
94
96
  export const DEFAULT_RETRY_JITTER = 0.3; // 30%
95
97
 
98
+ export const DefaultRetryOptions: ExponentialBackoffRetryOptions = {
99
+ type: 'exponentialBackoff',
100
+ maxAttempts: DEFAULT_RETRY_MAX_ATTEMPTS,
101
+ initialDelay: DEFAULT_RETRY_INITIAL_DELAY,
102
+ backoffMultiplier: DEFAULT_RETRY_EXPONENTIAL_BACKOFF_MULTIPLIER,
103
+ jitter: DEFAULT_RETRY_JITTER,
104
+ };
105
+
96
106
  type PlConfigOverrides = Partial<
97
107
  Pick<
98
108
  PlClientConfig,