@platformatic/kafka 2.10.0-alpha.1 → 2.11.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.
@@ -15,6 +15,10 @@ export declare const groupOptionsProperties: {
15
15
  type: string;
16
16
  minimum: number;
17
17
  };
18
+ heartbeatStallTimeout: {
19
+ type: string;
20
+ minimum: number;
21
+ };
18
22
  groupProtocol: {
19
23
  type: string;
20
24
  enum: ("consumer" | "classic")[];
@@ -160,6 +164,10 @@ export declare const groupOptionsSchema: {
160
164
  type: string;
161
165
  minimum: number;
162
166
  };
167
+ heartbeatStallTimeout: {
168
+ type: string;
169
+ minimum: number;
170
+ };
163
171
  groupProtocol: {
164
172
  type: string;
165
173
  enum: ("consumer" | "classic")[];
@@ -283,6 +291,10 @@ export declare const consumeOptionsSchema: {
283
291
  type: string;
284
292
  minimum: number;
285
293
  };
294
+ heartbeatStallTimeout: {
295
+ type: string;
296
+ minimum: number;
297
+ };
286
298
  groupProtocol: {
287
299
  type: string;
288
300
  enum: ("consumer" | "classic")[];
@@ -455,6 +467,10 @@ export declare const consumerOptionsSchema: {
455
467
  type: string;
456
468
  minimum: number;
457
469
  };
470
+ heartbeatStallTimeout: {
471
+ type: string;
472
+ minimum: number;
473
+ };
458
474
  groupProtocol: {
459
475
  type: string;
460
476
  enum: ("consumer" | "classic")[];
@@ -585,6 +601,10 @@ export declare const fetchOptionsSchema: {
585
601
  type: string;
586
602
  minimum: number;
587
603
  };
604
+ heartbeatStallTimeout: {
605
+ type: string;
606
+ minimum: number;
607
+ };
588
608
  groupProtocol: {
589
609
  type: string;
590
610
  enum: ("consumer" | "classic")[];
@@ -82,6 +82,7 @@ export interface GroupOptions {
82
82
  sessionTimeout?: number;
83
83
  rebalanceTimeout?: number;
84
84
  heartbeatInterval?: number;
85
+ heartbeatStallTimeout?: number;
85
86
  protocols?: GroupProtocolSubscription[];
86
87
  protocolsMetadata?: GroupProtocolsMetadataCallback;
87
88
  partitionAssigner?: GroupPartitionsAssigner;
@@ -92,6 +93,7 @@ export interface ConsumerGroupOptions {
92
93
  groupInstanceId?: string;
93
94
  groupRemoteAssignor?: string;
94
95
  rebalanceTimeout?: number;
96
+ heartbeatStallTimeout?: number;
95
97
  assignmentUserData?: Buffer;
96
98
  }
97
99
  export interface ConsumeBaseOptions<Key, Value, HeaderKey, HeaderValue> {
@@ -168,4 +170,9 @@ export interface ConsumerHeartbeatPayload {
168
170
  }
169
171
  export interface ConsumerHeartbeatErrorPayload extends ConsumerHeartbeatPayload {
170
172
  error: Error;
173
+ }
174
+ export interface ConsumerHeartbeatStalledPayload {
175
+ lastError?: Error;
176
+ lastHeartbeat: Date | null;
177
+ stalledFor: number;
171
178
  }
@@ -42,6 +42,7 @@ export declare class AuthenticationError extends GenericError {
42
42
  }
43
43
  export declare class NetworkError extends GenericError {
44
44
  static code: ErrorCode;
45
+ static isRetryable(error: Error | null | undefined): boolean;
45
46
  constructor(message: string, properties?: ErrorProperties);
46
47
  }
47
48
  export declare class ProtocolError extends GenericError {
@@ -33,11 +33,14 @@ export interface MessageJSON<Key = unknown, Value = unknown, HeaderKey = unknown
33
33
  partition: number;
34
34
  timestamp: string;
35
35
  offset: string;
36
+ leaderEpoch: number;
36
37
  metadata: Record<string, unknown>;
37
38
  }
38
39
  export interface Message<Key = Buffer, Value = Buffer, HeaderKey = Buffer, HeaderValue = Buffer> extends Required<MessageBase<Key, Value>> {
39
40
  headers: Map<HeaderKey, HeaderValue>;
41
+ headerEntries: Array<[HeaderKey, HeaderValue]>;
40
42
  offset: bigint;
43
+ leaderEpoch: number;
41
44
  metadata: Record<string, unknown>;
42
45
  commit(callback?: (error?: Error) => void): void | Promise<void>;
43
46
  toJSON(): MessageJSON<Key, Value, HeaderKey, HeaderValue>;
@@ -2,6 +2,7 @@ export declare const kInstance: unique symbol;
2
2
  export declare const kRefreshOffsetsAndFetch: unique symbol;
3
3
  export declare const kAutocommit: unique symbol;
4
4
  export declare const kGetFetchNode: unique symbol;
5
+ export declare const kDeserializationError: unique symbol;
5
6
  export declare const kTransaction: unique symbol;
6
7
  export declare const kTransactionPrepare: unique symbol;
7
8
  export declare const kTransactionAddPartitions: unique symbol;
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  export const name = "@platformatic/kafka";
2
- export const version = "2.10.0-alpha.1";
2
+ export const version = "2.11.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/kafka",
3
- "version": "2.10.0-alpha.1",
3
+ "version": "2.11.0",
4
4
  "description": "Modern and performant client for Apache Kafka",
5
5
  "homepage": "https://github.com/platformatic/kafka",
6
6
  "author": "Platformatic Inc. <oss@platformatic.dev> (https://platformatic.dev)",