felix-client 0.6.0-preview.3 → 0.6.0-preview.4
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/index.d.ts +13 -3
- package/package.json +6 -6
package/index.d.ts
CHANGED
|
@@ -26,9 +26,15 @@ export interface Event {
|
|
|
26
26
|
skippedBefore: bigint;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
/** The delivery `groupNack` hands back. A `GroupRecord` is one. */
|
|
30
|
+
export interface GroupDelivery {
|
|
31
|
+
offset: bigint;
|
|
32
|
+
attempts: number;
|
|
33
|
+
}
|
|
34
|
+
|
|
29
35
|
/** One record handed out by a consumer group. */
|
|
30
36
|
export interface GroupRecord {
|
|
31
|
-
/** What to pass to `groupAck`
|
|
37
|
+
/** What to pass to `groupAck` to settle this record. */
|
|
32
38
|
offset: bigint;
|
|
33
39
|
payload: Buffer;
|
|
34
40
|
/**
|
|
@@ -538,14 +544,18 @@ export declare class Client {
|
|
|
538
544
|
offset: bigint,
|
|
539
545
|
): Promise<void>;
|
|
540
546
|
|
|
541
|
-
/**
|
|
547
|
+
/**
|
|
548
|
+
* Return a record for redelivery without waiting out its timeout. Pass the
|
|
549
|
+
* record `groupPoll` returned: it names that delivery, and is refused once
|
|
550
|
+
* its claim has lapsed or the record has gone out again.
|
|
551
|
+
*/
|
|
542
552
|
groupNack(
|
|
543
553
|
tenantId: string,
|
|
544
554
|
namespace: string,
|
|
545
555
|
stream: string,
|
|
546
556
|
shard: number,
|
|
547
557
|
group: string,
|
|
548
|
-
|
|
558
|
+
record: GroupDelivery,
|
|
549
559
|
): Promise<void>;
|
|
550
560
|
|
|
551
561
|
/** Offsets this group gave up on after exhausting their attempts. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "felix-client",
|
|
3
|
-
"version": "0.6.0-preview.
|
|
3
|
+
"version": "0.6.0-preview.4",
|
|
4
4
|
"description": "Node.js/TypeScript bindings for the Felix client, over the Rust client rather than a reimplementation of it",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"felix",
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
"test": "node --test test/errors.test.mjs test/conformance.test.mjs"
|
|
55
55
|
},
|
|
56
56
|
"optionalDependencies": {
|
|
57
|
-
"felix-client-darwin-arm64": "0.6.0-preview.
|
|
58
|
-
"felix-client-darwin-x64": "0.6.0-preview.
|
|
59
|
-
"felix-client-linux-arm64-gnu": "0.6.0-preview.
|
|
60
|
-
"felix-client-linux-x64-gnu": "0.6.0-preview.
|
|
61
|
-
"felix-client-win32-x64-msvc": "0.6.0-preview.
|
|
57
|
+
"felix-client-darwin-arm64": "0.6.0-preview.4",
|
|
58
|
+
"felix-client-darwin-x64": "0.6.0-preview.4",
|
|
59
|
+
"felix-client-linux-arm64-gnu": "0.6.0-preview.4",
|
|
60
|
+
"felix-client-linux-x64-gnu": "0.6.0-preview.4",
|
|
61
|
+
"felix-client-win32-x64-msvc": "0.6.0-preview.4"
|
|
62
62
|
}
|
|
63
63
|
}
|