@procedures/client 0.6.0 → 0.8.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/CHANGELOG.md +66 -0
- package/README.md +63 -7
- package/dist/.tsbuildinfo +1 -1
- package/dist/adapters/http/client/transport.d.ts +5 -0
- package/dist/adapters/http/client/transport.d.ts.map +1 -1
- package/dist/adapters/http/client/transport.js +10 -4
- package/dist/adapters/http/client/transport.js.map +1 -1
- package/dist/adapters/http/server/ndjson.d.ts +73 -0
- package/dist/adapters/http/server/ndjson.d.ts.map +1 -0
- package/dist/adapters/http/server/ndjson.js +228 -0
- package/dist/adapters/http/server/ndjson.js.map +1 -0
- package/dist/adapters/http/server/transport.d.ts +15 -4
- package/dist/adapters/http/server/transport.d.ts.map +1 -1
- package/dist/adapters/http/server/transport.js +29 -69
- package/dist/adapters/http/server/transport.js.map +1 -1
- package/dist/adapters/http/server/types.d.ts +15 -0
- package/dist/adapters/http/server/types.d.ts.map +1 -1
- package/dist/adapters/sequence.d.ts +14 -0
- package/dist/adapters/sequence.d.ts.map +1 -1
- package/dist/adapters/sequence.js +16 -0
- package/dist/adapters/sequence.js.map +1 -1
- package/dist/adapters/websocket/client/transport.d.ts +7 -3
- package/dist/adapters/websocket/client/transport.d.ts.map +1 -1
- package/dist/adapters/websocket/client/transport.js +9 -3
- package/dist/adapters/websocket/client/transport.js.map +1 -1
- package/dist/adapters/websocket/server/transport.d.ts +10 -0
- package/dist/adapters/websocket/server/transport.d.ts.map +1 -1
- package/dist/adapters/websocket/server/transport.js +22 -2
- package/dist/adapters/websocket/server/transport.js.map +1 -1
- package/dist/browser.d.ts +5 -5
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +4 -3
- package/dist/browser.js.map +1 -1
- package/dist/client/errors/registry.d.ts.map +1 -1
- package/dist/client/errors/registry.js +1 -0
- package/dist/client/errors/registry.js.map +1 -1
- package/dist/client/middleware/retry.d.ts +4 -0
- package/dist/client/middleware/retry.d.ts.map +1 -1
- package/dist/client/middleware/retry.js +86 -78
- package/dist/client/middleware/retry.js.map +1 -1
- package/dist/events/bus.d.ts +32 -14
- package/dist/events/bus.d.ts.map +1 -1
- package/dist/events/bus.js +119 -65
- package/dist/events/bus.js.map +1 -1
- package/dist/events/index.d.ts +3 -2
- package/dist/events/index.d.ts.map +1 -1
- package/dist/events/index.js.map +1 -1
- package/dist/events/publisher.d.ts.map +1 -1
- package/dist/events/publisher.js +20 -6
- package/dist/events/publisher.js.map +1 -1
- package/dist/events/remote.d.ts +80 -18
- package/dist/events/remote.d.ts.map +1 -1
- package/dist/events/remote.js +448 -58
- package/dist/events/remote.js.map +1 -1
- package/dist/events/types.d.ts +13 -2
- package/dist/events/types.d.ts.map +1 -1
- package/dist/node.d.ts +6 -0
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js +5 -0
- package/dist/node.js.map +1 -1
- package/dist/procedures/caller.d.ts +33 -0
- package/dist/procedures/caller.d.ts.map +1 -0
- package/dist/procedures/caller.js +27 -0
- package/dist/procedures/caller.js.map +1 -0
- package/dist/procedures/collection/index.d.ts +2 -2
- package/dist/procedures/collection/index.d.ts.map +1 -1
- package/dist/procedures/collection/index.js +1 -1
- package/dist/procedures/collection/index.js.map +1 -1
- package/dist/procedures/collection/procedures.d.ts.map +1 -1
- package/dist/procedures/collection/procedures.js +21 -1
- package/dist/procedures/collection/procedures.js.map +1 -1
- package/dist/procedures/collection/schemas.d.ts +9 -0
- package/dist/procedures/collection/schemas.d.ts.map +1 -1
- package/dist/procedures/collection/schemas.js +28 -0
- package/dist/procedures/collection/schemas.js.map +1 -1
- package/dist/procedures/collection/storage.d.ts +6 -0
- package/dist/procedures/collection/storage.d.ts.map +1 -1
- package/dist/procedures/index.d.ts +3 -1
- package/dist/procedures/index.d.ts.map +1 -1
- package/dist/procedures/index.js +2 -0
- package/dist/procedures/index.js.map +1 -1
- package/dist/procedures/invoke.d.ts.map +1 -1
- package/dist/procedures/invoke.js +3 -0
- package/dist/procedures/invoke.js.map +1 -1
- package/dist/procedures/types.d.ts +50 -0
- package/dist/procedures/types.d.ts.map +1 -1
- package/dist/procedures/types.js.map +1 -1
- package/dist/protocol.d.ts +1 -1
- package/dist/protocol.d.ts.map +1 -1
- package/dist/protocol.js +1 -0
- package/dist/protocol.js.map +1 -1
- package/dist/server/procedure-server.d.ts +41 -5
- package/dist/server/procedure-server.d.ts.map +1 -1
- package/dist/server/procedure-server.js +94 -9
- package/dist/server/procedure-server.js.map +1 -1
- package/dist/timers.d.ts +9 -0
- package/dist/timers.d.ts.map +1 -1
- package/dist/timers.js +6 -1
- package/dist/timers.js.map +1 -1
- package/package.json +1 -1
- package/src/adapters/http/client/transport.ts +10 -4
- package/src/adapters/http/server/ndjson.ts +259 -0
- package/src/adapters/http/server/transport.ts +31 -69
- package/src/adapters/http/server/types.ts +17 -0
- package/src/adapters/sequence.ts +18 -0
- package/src/adapters/websocket/client/transport.ts +9 -3
- package/src/adapters/websocket/server/transport.ts +23 -2
- package/src/browser.ts +9 -2
- package/src/client/errors/registry.ts +1 -0
- package/src/client/middleware/retry.ts +89 -78
- package/src/events/bus.ts +141 -73
- package/src/events/index.ts +3 -0
- package/src/events/publisher.ts +23 -6
- package/src/events/remote.ts +575 -73
- package/src/events/types.ts +15 -2
- package/src/node.ts +6 -0
- package/src/procedures/caller.ts +45 -0
- package/src/procedures/collection/index.ts +3 -0
- package/src/procedures/collection/procedures.ts +22 -0
- package/src/procedures/collection/schemas.ts +37 -0
- package/src/procedures/collection/storage.ts +6 -0
- package/src/procedures/index.ts +4 -0
- package/src/procedures/invoke.ts +2 -0
- package/src/procedures/types.ts +53 -0
- package/src/protocol.ts +3 -1
- package/src/server/procedure-server.ts +111 -11
- package/src/timers.ts +15 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publisher.js","sourceRoot":"","sources":["../../src/events/publisher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,E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,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;QAC5H,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QAC5B,OAAO,YAAY,CAAC,cAAc,EAAE,CAAC;IACvC,CAAC;CACF"}
|
package/dist/events/remote.d.ts
CHANGED
|
@@ -10,13 +10,21 @@
|
|
|
10
10
|
* - `remoteEvents()` gives an async iterator of the events.
|
|
11
11
|
* - `subscribeRemote()` calls a handler for each event, and gives the unsubscribe function.
|
|
12
12
|
*
|
|
13
|
+
* The subscribers of the same topics with the same options on one transport share one call: one
|
|
14
|
+
* wire subscription with a reference count. The last unsubscribe sends the cancel. Each subscriber
|
|
15
|
+
* has its own queue, its own `seq`, its own `ready` and its own end.
|
|
16
|
+
*
|
|
13
17
|
* After a failure that a retry can repair (a closed connection, `UNAVAILABLE`, `TIMEOUT`), the
|
|
14
|
-
* subscriber sends the call again after a backoff
|
|
15
|
-
*
|
|
18
|
+
* subscriber sends the call again after a backoff, at most `maxAttempts` times without a
|
|
19
|
+
* confirmation. The delivery is at most once: the events between the failure and the new
|
|
20
|
+
* confirmation are lost. Each other error ends the subscription.
|
|
16
21
|
*
|
|
17
|
-
* This file imports only types and the
|
|
22
|
+
* This file imports only types, the backoff, the clock and the durations, so a page or a worker
|
|
23
|
+
* that subscribes stays small.
|
|
18
24
|
*/
|
|
19
25
|
import type { Transport } from "../client/types.js";
|
|
26
|
+
import { type Clock } from "../clock.js";
|
|
27
|
+
import { type Duration } from "../duration.js";
|
|
20
28
|
/** The path of the procedure of a subscription. */
|
|
21
29
|
export declare const EVENTS_SUBSCRIBE_PATH: readonly ["events", "subscribe"];
|
|
22
30
|
/** The input of `events.subscribe`. */
|
|
@@ -46,18 +54,49 @@ export interface RemoteEvent<T = unknown> {
|
|
|
46
54
|
readonly topic: string;
|
|
47
55
|
/** The data of the event, after a trip as JSON. */
|
|
48
56
|
readonly data: T;
|
|
49
|
-
/**
|
|
57
|
+
/**
|
|
58
|
+
* The number of the event for this subscriber, from 1. A resubscribe starts again at 1. A
|
|
59
|
+
* subscriber that joins a shared subscription also starts at 1.
|
|
60
|
+
*/
|
|
50
61
|
readonly seq: number;
|
|
51
|
-
/** The number of events that
|
|
62
|
+
/** The number of events that this subscriber lost immediately before this one: 0 without a loss. */
|
|
52
63
|
readonly dropped: number;
|
|
53
64
|
/** The id of the subscription. It stays the same after a resubscribe. */
|
|
54
65
|
readonly subscription: string;
|
|
55
66
|
}
|
|
56
67
|
/**
|
|
57
68
|
* The handler of the events of a subscription. When it gives a promise, the subscriber waits for
|
|
58
|
-
* it before the next event
|
|
69
|
+
* it before the next event. A slow handler holds the credit of its subscription only when no
|
|
70
|
+
* other subscriber of its shared subscription waits.
|
|
59
71
|
*/
|
|
60
72
|
export type RemoteEventHandler<T = unknown> = (data: T, event: RemoteEvent<T>) => void | Promise<void>;
|
|
73
|
+
/**
|
|
74
|
+
* The backoff before each resubscribe try: an exponential backoff with jitter. The names are the
|
|
75
|
+
* names of the `reconnect` options of `WebSocketTransport`. Each time is a `Duration`.
|
|
76
|
+
*/
|
|
77
|
+
export interface ResubscribeBackoff {
|
|
78
|
+
/**
|
|
79
|
+
* The delay before the first resubscribe try, for example `ms(250)`.
|
|
80
|
+
* @default ms(250)
|
|
81
|
+
*/
|
|
82
|
+
initialDelay?: Duration | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* The longest delay before a resubscribe try.
|
|
85
|
+
* @default seconds(30)
|
|
86
|
+
*/
|
|
87
|
+
maxDelay?: Duration | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* The factor of the delay from one try to the next.
|
|
90
|
+
* @default 2
|
|
91
|
+
*/
|
|
92
|
+
backoffMultiplier?: number | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* The random part of each delay, from 0 to 1. With 1 (full jitter), the delay is a random time
|
|
95
|
+
* from 0 to the backoff. 0 gives the backoff exactly.
|
|
96
|
+
* @default 1
|
|
97
|
+
*/
|
|
98
|
+
jitter?: number | undefined;
|
|
99
|
+
}
|
|
61
100
|
/** The options of a subscription. */
|
|
62
101
|
export interface RemoteEventsOptions {
|
|
63
102
|
/** When this signal aborts, the subscription ends: the transport sends a cancel. */
|
|
@@ -69,11 +108,24 @@ export interface RemoteEventsOptions {
|
|
|
69
108
|
*/
|
|
70
109
|
resubscribe?: boolean | undefined;
|
|
71
110
|
/**
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
111
|
+
* The number of resubscribe tries after a failure, one after the other without a confirmation.
|
|
112
|
+
* Each confirmation starts the count again. When the tries run out, the subscription ends with a
|
|
113
|
+
* `SubscriptionError` that has the code of the last failure. 0 is the same as `resubscribe: false`.
|
|
114
|
+
* The WebSocket transport uses the `reconnect.maxAttempts` of its options (default `Infinity`).
|
|
115
|
+
* @default 10 (with the default backoff, at most approximately two minutes of waits)
|
|
116
|
+
*/
|
|
117
|
+
maxAttempts?: number | undefined;
|
|
118
|
+
/**
|
|
119
|
+
* The backoff before each resubscribe try. A plain number or a function throws a `TypeError`.
|
|
120
|
+
* The WebSocket transport uses its reconnect backoff when the options give none.
|
|
121
|
+
* @default { initialDelay: ms(250), maxDelay: seconds(30), backoffMultiplier: 2, jitter: 1 }
|
|
122
|
+
*/
|
|
123
|
+
backoff?: ResubscribeBackoff | undefined;
|
|
124
|
+
/**
|
|
125
|
+
* The clock of the backoff. A test gives the `fakeClock` of `@mark1russell7/service/testing`.
|
|
126
|
+
* The default is the clock of the platform. The WebSocket transport uses its own clock.
|
|
75
127
|
*/
|
|
76
|
-
|
|
128
|
+
clock?: Clock | undefined;
|
|
77
129
|
/** This function gets the topics of each confirmation: the first one, and one after each resubscribe. */
|
|
78
130
|
onSubscribed?: ((topics: readonly string[]) => void) | undefined;
|
|
79
131
|
/** The metadata of the call, for example a trace. */
|
|
@@ -83,8 +135,9 @@ export interface RemoteEventsOptions {
|
|
|
83
135
|
export interface SubscribeOptions extends RemoteEventsOptions {
|
|
84
136
|
/**
|
|
85
137
|
* This function gets the error that ends the subscription: a refusal (`TOPIC_NOT_FOUND`,
|
|
86
|
-
* `FORBIDDEN`), an older publisher (`NOT_FOUND`),
|
|
87
|
-
*
|
|
138
|
+
* `FORBIDDEN`), an older publisher (`NOT_FOUND`), a topic that the host cleared
|
|
139
|
+
* (`TOPIC_CLEARED`), a transport that closed, or the last failure after `maxAttempts` tries. An
|
|
140
|
+
* unsubscribe is not an error.
|
|
88
141
|
*/
|
|
89
142
|
onError?: ((error: SubscriptionError) => void) | undefined;
|
|
90
143
|
}
|
|
@@ -118,8 +171,9 @@ export declare class SubscriptionError extends Error {
|
|
|
118
171
|
}
|
|
119
172
|
/**
|
|
120
173
|
* The parts that a transport adds to its subscriptions. The WebSocket transport waits for its
|
|
121
|
-
* connection, uses its reconnect backoff,
|
|
122
|
-
* event to its `onEvent` option.
|
|
174
|
+
* connection, uses its reconnect backoff, its `maxAttempts` and its clock, ends its subscriptions
|
|
175
|
+
* at `close()`, and gives each event to its `onEvent` option. A shared subscription uses the
|
|
176
|
+
* hooks of its first subscriber.
|
|
123
177
|
*/
|
|
124
178
|
export interface SubscriptionHooks {
|
|
125
179
|
/** When this signal aborts, each subscription ends without an error. */
|
|
@@ -129,8 +183,12 @@ export interface SubscriptionHooks {
|
|
|
129
183
|
* closed. After a lost connection, the subscriber waits for it, not for a backoff.
|
|
130
184
|
*/
|
|
131
185
|
readonly ready?: ((signal: AbortSignal) => Promise<void>) | undefined;
|
|
132
|
-
/** The backoff, when the options give none. */
|
|
186
|
+
/** The backoff in milliseconds before resubscribe try `attempt` (from 1), when the options give none. */
|
|
133
187
|
readonly backoff?: ((attempt: number) => number) | undefined;
|
|
188
|
+
/** The number of resubscribe tries, when the options give none. */
|
|
189
|
+
readonly maxAttempts?: number | undefined;
|
|
190
|
+
/** The clock of the backoff, when the options give none. */
|
|
191
|
+
readonly clock?: Clock | undefined;
|
|
134
192
|
/** This function gets each event of each subscription. */
|
|
135
193
|
readonly onEvent?: ((event: RemoteEvent) => void) | undefined;
|
|
136
194
|
/** False: no resubscribe, whatever the options say (a server cannot reach a closed connection). */
|
|
@@ -140,25 +198,29 @@ export interface SubscriptionHooks {
|
|
|
140
198
|
export type EventTransport = Pick<Transport, "send">;
|
|
141
199
|
/**
|
|
142
200
|
* This function gives the events of a subscription to topics of the bus of the other side. The
|
|
143
|
-
* iteration
|
|
144
|
-
*
|
|
201
|
+
* iteration joins the subscription, so it sends the call when no subscriber shares one. A `break`
|
|
202
|
+
* of the reader, or the abort of the signal, leaves it: the last subscriber sends the cancel. An
|
|
203
|
+
* error that ends the subscription ends the iteration with a `SubscriptionError`.
|
|
145
204
|
*
|
|
146
205
|
* @param transport - The transport to the publisher: HTTP, WebSocket, a message port, local
|
|
147
206
|
* @param topics - One topic, or a list of 1 to 64 topics
|
|
148
|
-
* @param options - The signal, the resubscribe, the
|
|
207
|
+
* @param options - The signal, the resubscribe rules, the clock and the confirmation handler
|
|
149
208
|
* @param hooks - The parts that a transport adds (its connection, its backoff, its `onEvent`)
|
|
209
|
+
* @throws TypeError - When `backoff` or `maxAttempts` is not valid, for example a plain number of milliseconds
|
|
150
210
|
*/
|
|
151
211
|
export declare function remoteEvents<T = unknown>(transport: EventTransport, topics: string | readonly string[], options?: RemoteEventsOptions, hooks?: SubscriptionHooks): AsyncIterable<RemoteEvent<T>>;
|
|
152
212
|
/**
|
|
153
213
|
* This function subscribes to topics of the bus of the other side, and calls the handler for each
|
|
154
214
|
* event in order. It gives the unsubscribe function, with the `ready` promise of the first
|
|
155
215
|
* confirmation. An error of the handler goes to `console.error`, and the subscription goes on.
|
|
216
|
+
* The subscribers of the same topics with the same options on one transport share one call.
|
|
156
217
|
*
|
|
157
218
|
* @param transport - The transport to the publisher
|
|
158
219
|
* @param topics - One topic, or a list of 1 to 64 topics
|
|
159
220
|
* @param handler - The handler of each event: it gets the data and the event
|
|
160
221
|
* @param options - The options of `remoteEvents()`, and the `onError` handler of the end
|
|
161
222
|
* @param hooks - The parts that a transport adds
|
|
223
|
+
* @throws TypeError - When `backoff` or `maxAttempts` is not valid, for example a plain number of milliseconds
|
|
162
224
|
*/
|
|
163
225
|
export declare function subscribeRemote<T = unknown>(transport: EventTransport, topics: string | readonly string[], handler: RemoteEventHandler<T>, options?: SubscribeOptions, hooks?: SubscriptionHooks): Subscription;
|
|
164
226
|
//# sourceMappingURL=remote.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote.d.ts","sourceRoot":"","sources":["../../src/events/remote.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"remote.d.ts","sourceRoot":"","sources":["../../src/events/remote.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAiC,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEnF,OAAO,EAAa,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAQ,KAAK,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAErD,mDAAmD;AACnD,eAAO,MAAM,qBAAqB,EAAE,SAAS,CAAC,QAAQ,EAAE,WAAW,CAAmD,CAAC;AAKvH,uCAAuC;AACvC,MAAM,WAAW,cAAc;IAC7B,6DAA6D;IAC7D,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;CACpC;AAED;;;GAGG;AACH,MAAM,MAAM,SAAS,GACjB;IAAE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GACnE;IACE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,oFAAoF;IACpF,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,mFAAmF;IACnF,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM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