@warlock.js/herald 4.0.166 → 4.0.171

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.
Files changed (153) hide show
  1. package/cjs/communicators/broker-registry.d.ts +155 -0
  2. package/cjs/communicators/broker-registry.d.ts.map +1 -0
  3. package/cjs/communicators/broker-registry.js +206 -0
  4. package/cjs/communicators/broker-registry.js.map +1 -0
  5. package/{esm/communicators/communicator.d.ts → cjs/communicators/broker.d.ts} +20 -20
  6. package/cjs/communicators/broker.d.ts.map +1 -0
  7. package/cjs/communicators/{communicator.js → broker.js} +12 -12
  8. package/cjs/communicators/broker.js.map +1 -0
  9. package/cjs/communicators/index.d.ts +2 -2
  10. package/cjs/communicators/index.d.ts.map +1 -1
  11. package/{esm/contracts/communicator-driver.contract.d.ts → cjs/contracts/broker-driver.contract.d.ts} +8 -8
  12. package/cjs/contracts/broker-driver.contract.d.ts.map +1 -0
  13. package/cjs/contracts/channel.contract.d.ts +6 -1
  14. package/cjs/contracts/channel.contract.d.ts.map +1 -1
  15. package/cjs/contracts/index.d.ts +1 -1
  16. package/cjs/contracts/index.d.ts.map +1 -1
  17. package/cjs/decorators/consumable.d.ts +2 -2
  18. package/cjs/decorators/consumable.d.ts.map +1 -1
  19. package/cjs/decorators/consumable.js +12 -12
  20. package/cjs/decorators/consumable.js.map +1 -1
  21. package/cjs/drivers/rabbitmq/rabbitmq-channel.d.ts +2 -1
  22. package/cjs/drivers/rabbitmq/rabbitmq-channel.d.ts.map +1 -1
  23. package/cjs/drivers/rabbitmq/rabbitmq-channel.js +4 -2
  24. package/cjs/drivers/rabbitmq/rabbitmq-channel.js.map +1 -1
  25. package/cjs/drivers/rabbitmq/rabbitmq-driver.d.ts +10 -8
  26. package/cjs/drivers/rabbitmq/rabbitmq-driver.d.ts.map +1 -1
  27. package/cjs/drivers/rabbitmq/rabbitmq-driver.js +11 -10
  28. package/cjs/drivers/rabbitmq/rabbitmq-driver.js.map +1 -1
  29. package/cjs/index.d.ts +7 -7
  30. package/cjs/index.d.ts.map +1 -1
  31. package/cjs/index.js +1 -1
  32. package/cjs/message-managers/event-consumer.d.ts +2 -1
  33. package/cjs/message-managers/event-consumer.d.ts.map +1 -1
  34. package/cjs/message-managers/event-consumer.js +7 -1
  35. package/cjs/message-managers/event-consumer.js.map +1 -1
  36. package/cjs/message-managers/event-message.d.ts +7 -4
  37. package/cjs/message-managers/event-message.d.ts.map +1 -1
  38. package/cjs/message-managers/event-message.js +8 -8
  39. package/cjs/message-managers/event-message.js.map +1 -1
  40. package/cjs/message-managers/prepare-consumer-subscription.d.ts +1 -1
  41. package/cjs/message-managers/prepare-consumer-subscription.d.ts.map +1 -1
  42. package/cjs/message-managers/prepare-consumer-subscription.js +4 -3
  43. package/cjs/message-managers/prepare-consumer-subscription.js.map +1 -1
  44. package/cjs/types/channel.types.d.ts +19 -0
  45. package/cjs/types/channel.types.d.ts.map +1 -0
  46. package/cjs/types/connection.types.d.ts +65 -0
  47. package/cjs/types/connection.types.d.ts.map +1 -0
  48. package/cjs/types/driver.types.d.ts +10 -0
  49. package/cjs/types/driver.types.d.ts.map +1 -0
  50. package/cjs/types/index.d.ts +8 -0
  51. package/cjs/types/index.d.ts.map +1 -0
  52. package/cjs/types/message.types.d.ts +34 -0
  53. package/cjs/types/message.types.d.ts.map +1 -0
  54. package/cjs/types/publish.types.d.ts +13 -0
  55. package/cjs/types/publish.types.d.ts.map +1 -0
  56. package/cjs/types/registry.types.d.ts +4 -0
  57. package/cjs/types/registry.types.d.ts.map +1 -0
  58. package/cjs/types/subscribe.types.d.ts +18 -0
  59. package/cjs/types/subscribe.types.d.ts.map +1 -0
  60. package/{esm/utils/connect-to-communicator.d.ts → cjs/utils/connect-to-broker.d.ts} +43 -41
  61. package/cjs/utils/connect-to-broker.d.ts.map +1 -0
  62. package/cjs/utils/{connect-to-communicator.js → connect-to-broker.js} +52 -50
  63. package/cjs/utils/connect-to-broker.js.map +1 -0
  64. package/cjs/utils/index.d.ts +1 -1
  65. package/cjs/utils/index.d.ts.map +1 -1
  66. package/esm/communicators/broker-registry.d.ts +155 -0
  67. package/esm/communicators/broker-registry.d.ts.map +1 -0
  68. package/esm/communicators/broker-registry.js +206 -0
  69. package/esm/communicators/broker-registry.js.map +1 -0
  70. package/{cjs/communicators/communicator.d.ts → esm/communicators/broker.d.ts} +20 -20
  71. package/esm/communicators/broker.d.ts.map +1 -0
  72. package/esm/communicators/{communicator.js → broker.js} +12 -12
  73. package/esm/communicators/broker.js.map +1 -0
  74. package/esm/communicators/index.d.ts +2 -2
  75. package/esm/communicators/index.d.ts.map +1 -1
  76. package/{cjs/contracts/communicator-driver.contract.d.ts → esm/contracts/broker-driver.contract.d.ts} +8 -8
  77. package/esm/contracts/broker-driver.contract.d.ts.map +1 -0
  78. package/esm/contracts/channel.contract.d.ts +6 -1
  79. package/esm/contracts/channel.contract.d.ts.map +1 -1
  80. package/esm/contracts/index.d.ts +1 -1
  81. package/esm/contracts/index.d.ts.map +1 -1
  82. package/esm/decorators/consumable.d.ts +2 -2
  83. package/esm/decorators/consumable.d.ts.map +1 -1
  84. package/esm/decorators/consumable.js +12 -12
  85. package/esm/decorators/consumable.js.map +1 -1
  86. package/esm/drivers/rabbitmq/rabbitmq-channel.d.ts +2 -1
  87. package/esm/drivers/rabbitmq/rabbitmq-channel.d.ts.map +1 -1
  88. package/esm/drivers/rabbitmq/rabbitmq-channel.js +4 -2
  89. package/esm/drivers/rabbitmq/rabbitmq-channel.js.map +1 -1
  90. package/esm/drivers/rabbitmq/rabbitmq-driver.d.ts +10 -8
  91. package/esm/drivers/rabbitmq/rabbitmq-driver.d.ts.map +1 -1
  92. package/esm/drivers/rabbitmq/rabbitmq-driver.js +11 -10
  93. package/esm/drivers/rabbitmq/rabbitmq-driver.js.map +1 -1
  94. package/esm/index.d.ts +7 -7
  95. package/esm/index.d.ts.map +1 -1
  96. package/esm/index.js +1 -1
  97. package/esm/message-managers/event-consumer.d.ts +2 -1
  98. package/esm/message-managers/event-consumer.d.ts.map +1 -1
  99. package/esm/message-managers/event-consumer.js +7 -1
  100. package/esm/message-managers/event-consumer.js.map +1 -1
  101. package/esm/message-managers/event-message.d.ts +7 -4
  102. package/esm/message-managers/event-message.d.ts.map +1 -1
  103. package/esm/message-managers/event-message.js +8 -8
  104. package/esm/message-managers/event-message.js.map +1 -1
  105. package/esm/message-managers/prepare-consumer-subscription.d.ts +1 -1
  106. package/esm/message-managers/prepare-consumer-subscription.d.ts.map +1 -1
  107. package/esm/message-managers/prepare-consumer-subscription.js +4 -3
  108. package/esm/message-managers/prepare-consumer-subscription.js.map +1 -1
  109. package/esm/types/channel.types.d.ts +19 -0
  110. package/esm/types/channel.types.d.ts.map +1 -0
  111. package/esm/types/connection.types.d.ts +65 -0
  112. package/esm/types/connection.types.d.ts.map +1 -0
  113. package/esm/types/driver.types.d.ts +10 -0
  114. package/esm/types/driver.types.d.ts.map +1 -0
  115. package/esm/types/index.d.ts +8 -0
  116. package/esm/types/index.d.ts.map +1 -0
  117. package/esm/types/message.types.d.ts +34 -0
  118. package/esm/types/message.types.d.ts.map +1 -0
  119. package/esm/types/publish.types.d.ts +13 -0
  120. package/esm/types/publish.types.d.ts.map +1 -0
  121. package/esm/types/registry.types.d.ts +4 -0
  122. package/esm/types/registry.types.d.ts.map +1 -0
  123. package/esm/types/subscribe.types.d.ts +18 -0
  124. package/esm/types/subscribe.types.d.ts.map +1 -0
  125. package/{cjs/utils/connect-to-communicator.d.ts → esm/utils/connect-to-broker.d.ts} +43 -41
  126. package/esm/utils/connect-to-broker.d.ts.map +1 -0
  127. package/esm/utils/{connect-to-communicator.js → connect-to-broker.js} +52 -50
  128. package/esm/utils/connect-to-broker.js.map +1 -0
  129. package/esm/utils/index.d.ts +1 -1
  130. package/esm/utils/index.d.ts.map +1 -1
  131. package/package.json +3 -3
  132. package/cjs/communicators/communicator-registry.d.ts +0 -155
  133. package/cjs/communicators/communicator-registry.d.ts.map +0 -1
  134. package/cjs/communicators/communicator-registry.js +0 -206
  135. package/cjs/communicators/communicator-registry.js.map +0 -1
  136. package/cjs/communicators/communicator.d.ts.map +0 -1
  137. package/cjs/communicators/communicator.js.map +0 -1
  138. package/cjs/contracts/communicator-driver.contract.d.ts.map +0 -1
  139. package/cjs/types.d.ts +0 -399
  140. package/cjs/types.d.ts.map +0 -1
  141. package/cjs/utils/connect-to-communicator.d.ts.map +0 -1
  142. package/cjs/utils/connect-to-communicator.js.map +0 -1
  143. package/esm/communicators/communicator-registry.d.ts +0 -155
  144. package/esm/communicators/communicator-registry.d.ts.map +0 -1
  145. package/esm/communicators/communicator-registry.js +0 -206
  146. package/esm/communicators/communicator-registry.js.map +0 -1
  147. package/esm/communicators/communicator.d.ts.map +0 -1
  148. package/esm/communicators/communicator.js.map +0 -1
  149. package/esm/contracts/communicator-driver.contract.d.ts.map +0 -1
  150. package/esm/types.d.ts +0 -399
  151. package/esm/types.d.ts.map +0 -1
  152. package/esm/utils/connect-to-communicator.d.ts.map +0 -1
  153. package/esm/utils/connect-to-communicator.js.map +0 -1
@@ -0,0 +1,65 @@
1
+ /// <reference types="node" />
2
+ export type BaseConnectionOptions = {
3
+ name?: string;
4
+ isDefault?: boolean;
5
+ };
6
+ export type RabbitMQSocketOptions = {
7
+ keepAlive?: boolean | number;
8
+ noDelay?: boolean;
9
+ timeout?: number;
10
+ ca?: string | Buffer | Array<string | Buffer>;
11
+ cert?: string | Buffer;
12
+ key?: string | Buffer;
13
+ passphrase?: string;
14
+ servername?: string;
15
+ rejectUnauthorized?: boolean;
16
+ };
17
+ export type RabbitMQClientOptions = {
18
+ frameMax?: number;
19
+ channelMax?: number;
20
+ locale?: string;
21
+ socket?: RabbitMQSocketOptions;
22
+ };
23
+ export type RabbitMQConnectionOptions<TClientOptions extends RabbitMQClientOptions = RabbitMQClientOptions> = BaseConnectionOptions & {
24
+ driver: "rabbitmq";
25
+ host?: string;
26
+ port?: number;
27
+ username?: string;
28
+ password?: string;
29
+ vhost?: string;
30
+ uri?: string;
31
+ heartbeat?: number;
32
+ connectionTimeout?: number;
33
+ reconnect?: boolean;
34
+ reconnectDelay?: number;
35
+ prefetch?: number;
36
+ clientOptions?: TClientOptions;
37
+ };
38
+ export type KafkaClientOptions = {
39
+ retry?: {
40
+ initialRetryTime?: number;
41
+ retries?: number;
42
+ maxRetryTime?: number;
43
+ factor?: number;
44
+ multiplier?: number;
45
+ };
46
+ logLevel?: number;
47
+ logCreator?: any;
48
+ };
49
+ export type KafkaConnectionOptions<TClientOptions extends KafkaClientOptions = KafkaClientOptions> = BaseConnectionOptions & {
50
+ driver: "kafka";
51
+ brokers: string[];
52
+ clientId?: string;
53
+ connectionTimeout?: number;
54
+ requestTimeout?: number;
55
+ ssl?: boolean | object;
56
+ sasl?: {
57
+ mechanism: "plain" | "scram-sha-256" | "scram-sha-512";
58
+ username: string;
59
+ password: string;
60
+ };
61
+ clientOptions?: TClientOptions;
62
+ };
63
+ export type ConnectionOptions = RabbitMQConnectionOptions | KafkaConnectionOptions;
64
+ export type BrokerConfigurations<TClientOptions = any> = RabbitMQConnectionOptions<TClientOptions extends RabbitMQClientOptions ? TClientOptions : RabbitMQClientOptions> | KafkaConnectionOptions<TClientOptions extends KafkaClientOptions ? TClientOptions : KafkaClientOptions>;
65
+ //# sourceMappingURL=connection.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connection.types.d.ts","sourceRoot":"","sources":["../../src/types/connection.types.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,10 @@
1
+ export type BrokerDriverType = "rabbitmq" | "kafka" | "redis-streams" | "sqs";
2
+ export type BrokerEvent = "connected" | "disconnected" | "error" | "reconnecting";
3
+ export type BrokerEventListener = (...args: unknown[]) => void;
4
+ export type HealthCheckResult = {
5
+ healthy: boolean;
6
+ latency?: number;
7
+ error?: string;
8
+ details?: Record<string, unknown>;
9
+ };
10
+ //# sourceMappingURL=driver.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"driver.types.d.ts","sourceRoot":"","sources":["../../src/types/driver.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,OAAO,GAAG,eAAe,GAAG,KAAK,CAAC;AAE9E,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,cAAc,GAAG,OAAO,GAAG,cAAc,CAAC;AAElF,MAAM,MAAM,mBAAmB,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;AAE/D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC,CAAC"}
@@ -0,0 +1,8 @@
1
+ export * from "./channel.types";
2
+ export * from "./connection.types";
3
+ export * from "./driver.types";
4
+ export * from "./message.types";
5
+ export * from "./publish.types";
6
+ export * from "./registry.types";
7
+ export * from "./subscribe.types";
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,34 @@
1
+ export type MessageMetadata = {
2
+ messageId: string;
3
+ correlationId?: string;
4
+ replyTo?: string;
5
+ priority?: number;
6
+ timestamp: Date;
7
+ headers?: Record<string, string>;
8
+ retryCount?: number;
9
+ originalChannel?: string;
10
+ };
11
+ export type Message<TPayload = unknown> = {
12
+ readonly metadata: MessageMetadata;
13
+ readonly payload: TPayload;
14
+ readonly raw?: unknown;
15
+ };
16
+ export type MessageContext = {
17
+ ack(): Promise<void>;
18
+ nack(requeue?: boolean): Promise<void>;
19
+ reject(): Promise<void>;
20
+ reply<T>(payload: T): Promise<void>;
21
+ retry(delay?: number): Promise<void>;
22
+ };
23
+ export type Subscription = {
24
+ readonly id: string;
25
+ readonly channel: string;
26
+ readonly consumerTag?: string;
27
+ unsubscribe(): Promise<void>;
28
+ pause(): Promise<void>;
29
+ resume(): Promise<void>;
30
+ isActive(): boolean;
31
+ };
32
+ export type MessageHandler<TPayload = unknown> = (message: Message<TPayload>, ctx: MessageContext) => Promise<void> | void;
33
+ export type ResponseHandler<TPayload = unknown, TResponse = unknown> = (message: Message<TPayload>, ctx: MessageContext) => Promise<TResponse> | TResponse;
34
+ //# sourceMappingURL=message.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message.types.d.ts","sourceRoot":"","sources":["../../src/types/message.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,OAAO,CAAC,QAAQ,GAAG,OAAO,IAAI;IACxC,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAC;IACnC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC;IAC3B,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACrB,IAAI,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACvC,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACxB,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpC,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACvB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACxB,QAAQ,IAAI,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,cAAc,CAAC,QAAQ,GAAG,OAAO,IAAI,CAC/C,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,GAAG,EAAE,cAAc,KAChB,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAE1B,MAAM,MAAM,eAAe,CAAC,QAAQ,GAAG,OAAO,EAAE,SAAS,GAAG,OAAO,IAAI,CACrE,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,EAC1B,GAAG,EAAE,cAAc,KAChB,OAAO,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC"}
@@ -0,0 +1,13 @@
1
+ export type PublishOptions = {
2
+ priority?: number;
3
+ ttl?: number;
4
+ delay?: number;
5
+ headers?: Record<string, string>;
6
+ persistent?: boolean;
7
+ correlationId?: string;
8
+ expiration?: number;
9
+ };
10
+ export type RequestOptions = PublishOptions & {
11
+ timeout?: number;
12
+ };
13
+ //# sourceMappingURL=publish.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publish.types.d.ts","sourceRoot":"","sources":["../../src/types/publish.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,cAAc,GAAG;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Broker } from "../communicators/broker";
2
+ export type BrokerRegistryEvent = "registered" | "default-registered" | "connected" | "disconnected";
3
+ export type BrokerRegistryListener = (broker: Broker) => void;
4
+ //# sourceMappingURL=registry.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.types.d.ts","sourceRoot":"","sources":["../../src/types/registry.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,MAAM,mBAAmB,GAC3B,YAAY,GACZ,oBAAoB,GACpB,WAAW,GACX,cAAc,CAAC;AAEnB,MAAM,MAAM,sBAAsB,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC"}
@@ -0,0 +1,18 @@
1
+ export type RetryOptions = {
2
+ maxRetries: number;
3
+ delay: number | ((attempt: number) => number);
4
+ };
5
+ export type DeadLetterOptions = {
6
+ channel: string;
7
+ preserveOriginal?: boolean;
8
+ };
9
+ export type SubscribeOptions = {
10
+ consumerId?: string;
11
+ group?: string;
12
+ prefetch?: number;
13
+ autoAck?: boolean;
14
+ retry?: RetryOptions;
15
+ deadLetter?: DeadLetterOptions;
16
+ exclusive?: boolean;
17
+ };
18
+ //# sourceMappingURL=subscribe.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscribe.types.d.ts","sourceRoot":"","sources":["../../src/types/subscribe.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC;CAC/C,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC"}
@@ -1,26 +1,26 @@
1
- import { Communicator } from "../communicators";
1
+ import { Broker } from "../communicators";
2
2
  import type { ChannelContract } from "../contracts";
3
3
  import { EventConsumerClass, EventMessage } from "../message-managers";
4
4
  import type { ChannelOptions, ConnectionOptions } from "../types";
5
5
  /**
6
- * Connect to a message broker and register the communicator.
6
+ * Connect to a message broker and register it.
7
7
  *
8
8
  * This is a high-level utility function that simplifies connection setup
9
9
  * for most projects. It handles driver instantiation, connection,
10
- * communicator creation, and automatic registration.
10
+ * broker creation, and automatic registration.
11
11
  *
12
12
  * **Supported Drivers:**
13
13
  * - `rabbitmq` (default) - RabbitMQ/AMQP driver
14
14
  * - `kafka` - Apache Kafka driver (coming soon)
15
15
  *
16
16
  * @param options - Connection configuration options
17
- * @returns A connected and registered Communicator instance
17
+ * @returns A connected and registered Broker instance
18
18
  * @throws {Error} If connection fails or driver is not implemented
19
19
  *
20
20
  * @example
21
21
  * ```typescript
22
22
  * // RabbitMQ connection
23
- * const communicator = await connectToCommunicator({
23
+ * const broker = await connectToBroker({
24
24
  * driver: "rabbitmq",
25
25
  * host: "localhost",
26
26
  * port: 5672,
@@ -28,55 +28,55 @@ import type { ChannelOptions, ConnectionOptions } from "../types";
28
28
  * password: "guest",
29
29
  * });
30
30
  *
31
- * // Use the communicator
32
- * await communicator.channel("user.created").publish({ userId: 1 });
31
+ * // Use the broker
32
+ * await broker.channel("user.created").publish({ userId: 1 });
33
33
  * ```
34
34
  *
35
35
  * @example
36
36
  * ```typescript
37
- * // Multiple communicators
38
- * await connectToCommunicator({
37
+ * // Multiple brokers
38
+ * await connectToBroker({
39
39
  * driver: "rabbitmq",
40
40
  * name: "notifications",
41
41
  * isDefault: true,
42
42
  * host: process.env.RABBITMQ_HOST,
43
43
  * });
44
44
  *
45
- * await connectToCommunicator({
45
+ * await connectToBroker({
46
46
  * driver: "rabbitmq",
47
47
  * name: "analytics",
48
48
  * host: process.env.ANALYTICS_RABBITMQ_HOST,
49
49
  * });
50
50
  *
51
- * // Use default communicator
52
- * communicators().channel("notifications").publish({ ... });
51
+ * // Use default broker
52
+ * herald().channel("notifications").publish({ ... });
53
53
  *
54
- * // Use specific communicator
55
- * communicators("analytics").channel("events").publish({ ... });
54
+ * // Use specific broker
55
+ * herald("analytics").channel("events").publish({ ... });
56
56
  * ```
57
57
  */
58
- export declare function connectToCommunicator(options: ConnectionOptions): Promise<Communicator>;
58
+ export declare function connectToBroker(options: ConnectionOptions): Promise<Broker>;
59
59
  /**
60
- * Get a communicator by name or the default one.
60
+ * Get a broker by name or the default one.
61
61
  *
62
- * This is the main entry point for using communicators in your application.
62
+ * This is the main entry point for using brokers in your application.
63
+ * Named after the package — `herald()` carries your messages!
63
64
  *
64
- * @param name - Optional communicator name (uses default if not provided)
65
- * @returns Communicator instance
66
- * @throws MissingCommunicatorError if communicator not found
65
+ * @param name - Optional broker name (uses default if not provided)
66
+ * @returns Broker instance
67
+ * @throws MissingBrokerError if broker not found
67
68
  *
68
69
  * @example
69
- * ```typescript
70
- * // Get default communicator
71
- * const channel = communicators().channel("user.created");
70
+ * // Get default broker
71
+ * const channel = herald().channel("user.created");
72
72
  * await channel.publish({ userId: 1 });
73
73
  *
74
- * // Get specific communicator
75
- * const analyticsChannel = communicators("analytics").channel("events");
74
+ * // Get specific broker
75
+ * const analyticsChannel = herald("analytics").channel("events");
76
76
  * await analyticsChannel.publish({ event: "page_view" });
77
77
  *
78
78
  * // Subscribe to messages
79
- * communicators()
79
+ * herald()
80
80
  * .channel<UserPayload>("user.created")
81
81
  * .subscribe(async (message, ctx) => {
82
82
  * console.log("User created:", message.payload);
@@ -84,25 +84,30 @@ export declare function connectToCommunicator(options: ConnectionOptions): Promi
84
84
  * });
85
85
  * ```
86
86
  */
87
- export declare function communicators(name?: string): Communicator;
87
+ export declare function herald(name?: string): Broker;
88
88
  /**
89
- * Get channel instance for the given name from default communicator
89
+ * Get channel instance for the given name from default broker.
90
+ *
91
+ * Shorthand for `herald().channel(name, options)`.
92
+ *
90
93
  * @param name - Channel name
94
+ * @param options - Optional channel options
91
95
  * @returns Channel instance
92
- * @throws MissingCommunicatorError if communicator not found
96
+ * @throws MissingBrokerError if broker not found
93
97
  *
94
98
  * @example
95
99
  * ```typescript
96
- * const channel = communicatorChannel("user.created");
100
+ * const channel = heraldChannel("user.created");
97
101
  * await channel.publish({ userId: 1 });
98
102
  * ```
99
103
  */
100
- export declare function communicatorChannel<TPayload = unknown>(name: string, options?: ChannelOptions<TPayload>): ChannelContract<TPayload>;
104
+ export declare function heraldChannel<TPayload = unknown>(name: string, options?: ChannelOptions<TPayload>): ChannelContract<TPayload>;
101
105
  /**
102
- * Publish the given
106
+ * Publish an EventMessage to the default broker.
107
+ *
103
108
  * @param event - Event message to publish
104
109
  * @returns Promise that resolves when the event is published
105
- * @throws Error if the event is not published
110
+ * @throws Error if the broker is not connected
106
111
  *
107
112
  * @example
108
113
  * ```typescript
@@ -111,19 +116,16 @@ export declare function communicatorChannel<TPayload = unknown>(name: string, op
111
116
  */
112
117
  export declare function publishEvent<TPayload = Record<string, any>>(event: EventMessage<TPayload>): Promise<void>;
113
118
  /**
114
- * Subscribe the given consumer to the default communicator
119
+ * Subscribe an EventConsumer class to the default broker.
120
+ *
115
121
  * @param Consumer - Event consumer class
116
- * @returns Function to unsubscribe the consumer
117
- * @throws Error if the consumer is not subscribed
122
+ * @returns Unsubscribe function
123
+ * @throws MissingBrokerError if broker not found
118
124
  *
119
125
  * @example
120
126
  * ```typescript
121
127
  * await subscribeConsumer(UserUpdatedConsumer);
122
- * });
123
- *
124
- * // Unsubscribe
125
- * await unsubscribeConsumer(UserUpdatedConsumer);
126
128
  * ```
127
129
  */
128
130
  export declare function subscribeConsumer<TPayload = Record<string, any>>(Consumer: EventConsumerClass<TPayload>): Promise<() => void>;
129
- //# sourceMappingURL=connect-to-communicator.d.ts.map
131
+ //# sourceMappingURL=connect-to-broker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connect-to-broker.d.ts","sourceRoot":"","sources":["../../src/utils/connect-to-broker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAkB,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAwB,eAAe,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAA6B,MAAM,UAAU,CAAC;AAE7F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CA+CjF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAE5C;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAAC,QAAQ,GAAG,OAAO,EAC9C,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,GACjC,eAAe,CAAC,QAAQ,CAAC,CAE3B;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,YAAY,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,YAAY,CAAC,QAAQ,CAAC,iBAE/F;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,iBAAiB,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACpE,QAAQ,EAAE,kBAAkB,CAAC,QAAQ,CAAC,uBAGvC"}
@@ -1,22 +1,22 @@
1
- import {communicatorRegistry}from'../communicators/communicator-registry.js';/**
2
- * Connect to a message broker and register the communicator.
1
+ import {brokerRegistry}from'../communicators/broker-registry.js';/**
2
+ * Connect to a message broker and register it.
3
3
  *
4
4
  * This is a high-level utility function that simplifies connection setup
5
5
  * for most projects. It handles driver instantiation, connection,
6
- * communicator creation, and automatic registration.
6
+ * broker creation, and automatic registration.
7
7
  *
8
8
  * **Supported Drivers:**
9
9
  * - `rabbitmq` (default) - RabbitMQ/AMQP driver
10
10
  * - `kafka` - Apache Kafka driver (coming soon)
11
11
  *
12
12
  * @param options - Connection configuration options
13
- * @returns A connected and registered Communicator instance
13
+ * @returns A connected and registered Broker instance
14
14
  * @throws {Error} If connection fails or driver is not implemented
15
15
  *
16
16
  * @example
17
17
  * ```typescript
18
18
  * // RabbitMQ connection
19
- * const communicator = await connectToCommunicator({
19
+ * const broker = await connectToBroker({
20
20
  * driver: "rabbitmq",
21
21
  * host: "localhost",
22
22
  * port: 5672,
@@ -24,37 +24,37 @@ import {communicatorRegistry}from'../communicators/communicator-registry.js';/**
24
24
  * password: "guest",
25
25
  * });
26
26
  *
27
- * // Use the communicator
28
- * await communicator.channel("user.created").publish({ userId: 1 });
27
+ * // Use the broker
28
+ * await broker.channel("user.created").publish({ userId: 1 });
29
29
  * ```
30
30
  *
31
31
  * @example
32
32
  * ```typescript
33
- * // Multiple communicators
34
- * await connectToCommunicator({
33
+ * // Multiple brokers
34
+ * await connectToBroker({
35
35
  * driver: "rabbitmq",
36
36
  * name: "notifications",
37
37
  * isDefault: true,
38
38
  * host: process.env.RABBITMQ_HOST,
39
39
  * });
40
40
  *
41
- * await connectToCommunicator({
41
+ * await connectToBroker({
42
42
  * driver: "rabbitmq",
43
43
  * name: "analytics",
44
44
  * host: process.env.ANALYTICS_RABBITMQ_HOST,
45
45
  * });
46
46
  *
47
- * // Use default communicator
48
- * communicators().channel("notifications").publish({ ... });
47
+ * // Use default broker
48
+ * herald().channel("notifications").publish({ ... });
49
49
  *
50
- * // Use specific communicator
51
- * communicators("analytics").channel("events").publish({ ... });
50
+ * // Use specific broker
51
+ * herald("analytics").channel("events").publish({ ... });
52
52
  * ```
53
53
  */
54
- async function connectToCommunicator(options) {
54
+ async function connectToBroker(options) {
55
55
  // Default values
56
56
  const driverType = options.driver ?? "rabbitmq";
57
- const communicatorName = options.name ?? "default";
57
+ const brokerName = options.name ?? "default";
58
58
  const isDefault = options.isDefault ?? true;
59
59
  // Create driver based on type
60
60
  let driver;
@@ -74,9 +74,9 @@ async function connectToCommunicator(options) {
74
74
  default:
75
75
  throw new Error(`Unknown driver: "${driverType}". Supported drivers: rabbitmq, kafka`);
76
76
  }
77
- // Create communicator
78
- const communicator = communicatorRegistry.register({
79
- name: communicatorName,
77
+ // Create broker
78
+ const broker = brokerRegistry.register({
79
+ name: brokerName,
80
80
  driver,
81
81
  isDefault,
82
82
  });
@@ -87,29 +87,29 @@ async function connectToCommunicator(options) {
87
87
  catch (error) {
88
88
  throw new Error(`Failed to connect to ${driverType}: ${error instanceof Error ? error.message : String(error)}`);
89
89
  }
90
- return communicator;
90
+ return broker;
91
91
  }
92
92
  /**
93
- * Get a communicator by name or the default one.
93
+ * Get a broker by name or the default one.
94
94
  *
95
- * This is the main entry point for using communicators in your application.
95
+ * This is the main entry point for using brokers in your application.
96
+ * Named after the package — `herald()` carries your messages!
96
97
  *
97
- * @param name - Optional communicator name (uses default if not provided)
98
- * @returns Communicator instance
99
- * @throws MissingCommunicatorError if communicator not found
98
+ * @param name - Optional broker name (uses default if not provided)
99
+ * @returns Broker instance
100
+ * @throws MissingBrokerError if broker not found
100
101
  *
101
102
  * @example
102
- * ```typescript
103
- * // Get default communicator
104
- * const channel = communicators().channel("user.created");
103
+ * // Get default broker
104
+ * const channel = herald().channel("user.created");
105
105
  * await channel.publish({ userId: 1 });
106
106
  *
107
- * // Get specific communicator
108
- * const analyticsChannel = communicators("analytics").channel("events");
107
+ * // Get specific broker
108
+ * const analyticsChannel = herald("analytics").channel("events");
109
109
  * await analyticsChannel.publish({ event: "page_view" });
110
110
  *
111
111
  * // Subscribe to messages
112
- * communicators()
112
+ * herald()
113
113
  * .channel<UserPayload>("user.created")
114
114
  * .subscribe(async (message, ctx) => {
115
115
  * console.log("User created:", message.payload);
@@ -117,29 +117,34 @@ async function connectToCommunicator(options) {
117
117
  * });
118
118
  * ```
119
119
  */
120
- function communicators(name) {
121
- return communicatorRegistry.get(name);
120
+ function herald(name) {
121
+ return brokerRegistry.get(name);
122
122
  }
123
123
  /**
124
- * Get channel instance for the given name from default communicator
124
+ * Get channel instance for the given name from default broker.
125
+ *
126
+ * Shorthand for `herald().channel(name, options)`.
127
+ *
125
128
  * @param name - Channel name
129
+ * @param options - Optional channel options
126
130
  * @returns Channel instance
127
- * @throws MissingCommunicatorError if communicator not found
131
+ * @throws MissingBrokerError if broker not found
128
132
  *
129
133
  * @example
130
134
  * ```typescript
131
- * const channel = communicatorChannel("user.created");
135
+ * const channel = heraldChannel("user.created");
132
136
  * await channel.publish({ userId: 1 });
133
137
  * ```
134
138
  */
135
- function communicatorChannel(name, options) {
136
- return communicators().channel(name, options);
139
+ function heraldChannel(name, options) {
140
+ return herald().channel(name, options);
137
141
  }
138
142
  /**
139
- * Publish the given
143
+ * Publish an EventMessage to the default broker.
144
+ *
140
145
  * @param event - Event message to publish
141
146
  * @returns Promise that resolves when the event is published
142
- * @throws Error if the event is not published
147
+ * @throws Error if the broker is not connected
143
148
  *
144
149
  * @example
145
150
  * ```typescript
@@ -147,23 +152,20 @@ function communicatorChannel(name, options) {
147
152
  * ```
148
153
  */
149
154
  async function publishEvent(event) {
150
- return communicators().publish(event);
155
+ return herald().publish(event);
151
156
  }
152
157
  /**
153
- * Subscribe the given consumer to the default communicator
158
+ * Subscribe an EventConsumer class to the default broker.
159
+ *
154
160
  * @param Consumer - Event consumer class
155
- * @returns Function to unsubscribe the consumer
156
- * @throws Error if the consumer is not subscribed
161
+ * @returns Unsubscribe function
162
+ * @throws MissingBrokerError if broker not found
157
163
  *
158
164
  * @example
159
165
  * ```typescript
160
166
  * await subscribeConsumer(UserUpdatedConsumer);
161
- * });
162
- *
163
- * // Unsubscribe
164
- * await unsubscribeConsumer(UserUpdatedConsumer);
165
167
  * ```
166
168
  */
167
169
  async function subscribeConsumer(Consumer) {
168
- return communicators().subscribe(Consumer);
169
- }export{communicatorChannel,communicators,connectToCommunicator,publishEvent,subscribeConsumer};//# sourceMappingURL=connect-to-communicator.js.map
170
+ return herald().subscribe(Consumer);
171
+ }export{connectToBroker,herald,heraldChannel,publishEvent,subscribeConsumer};//# sourceMappingURL=connect-to-broker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connect-to-broker.js","sources":["../../src/utils/connect-to-broker.ts"],"sourcesContent":[null],"names":[],"mappings":"iEAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoDG;AACI,eAAe,eAAe,CAAC,OAA0B,EAAA;;AAE9D,IAAA,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,IAAI,UAAU,CAAC;AAChD,IAAA,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,IAAI,SAAS,CAAC;AAC7C,IAAA,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,IAAI,CAAC;;AAG5C,IAAA,IAAI,MAA4B,CAAC;AAEjC,IAAA,QAAQ,UAAU;QAChB,KAAK,UAAU,EAAE;YACf,MAAM,aAAa,GAAG,OAAoC,CAAC;;YAE3D,MAAM,EAAE,cAAc,EAAE,GAAG,MAAM,OAAO,wCAAqC,CAAC,CAAC;AAC/E,YAAA,MAAM,GAAG,IAAI,cAAc,CAAC,aAAa,CAAC,CAAC;YAC3C,MAAM;AACP,SAAA;QAED,KAAK,OAAO,EAAE;;;AAGZ,YAAA,MAAM,IAAI,KAAK,CACb,iFAAiF,CAClF,CAAC;AACH,SAAA;AAED,QAAA;AACE,YAAA,MAAM,IAAI,KAAK,CAAC,oBAAoB,UAAU,CAAA,qCAAA,CAAuC,CAAC,CAAC;AAC1F,KAAA;;AAGD,IAAA,MAAM,MAAM,GAAG,cAAc,CAAC,QAAQ,CAAC;AACrC,QAAA,IAAI,EAAE,UAAU;QAChB,MAAM;QACN,SAAS;AACV,KAAA,CAAC,CAAC;;IAGH,IAAI;AACF,QAAA,MAAM,MAAM,CAAC,OAAO,EAAE,CAAC;AACxB,KAAA;AAAC,IAAA,OAAO,KAAK,EAAE;QACd,MAAM,IAAI,KAAK,CACb,CAAwB,qBAAA,EAAA,UAAU,KAAK,KAAK,YAAY,KAAK,GAAG,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,CAAE,CAAA,CAChG,CAAC;AACH,KAAA;AAED,IAAA,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BG;AACG,SAAU,MAAM,CAAC,IAAa,EAAA;AAClC,IAAA,OAAO,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AAClC,CAAC;AAED;;;;;;;;;;;;;;;AAeG;AACa,SAAA,aAAa,CAC3B,IAAY,EACZ,OAAkC,EAAA;IAElC,OAAO,MAAM,EAAE,CAAC,OAAO,CAAW,IAAI,EAAE,OAAO,CAAC,CAAC;AACnD,CAAC;AAED;;;;;;;;;;;AAWG;AACI,eAAe,YAAY,CAAiC,KAA6B,EAAA;AAC9F,IAAA,OAAO,MAAM,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AACjC,CAAC;AAED;;;;;;;;;;;AAWG;AACI,eAAe,iBAAiB,CACrC,QAAsC,EAAA;AAEtC,IAAA,OAAO,MAAM,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;AACtC"}
@@ -1,2 +1,2 @@
1
- export * from "./connect-to-communicator";
1
+ export * from "./connect-to-broker";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@warlock.js/herald",
3
- "version": "4.0.166",
3
+ "version": "4.0.171",
4
4
  "description": "Message bus/communicators for RabbitMQ, Kafka, and more",
5
5
  "main": "./cjs/index.js",
6
6
  "dependencies": {
7
7
  "@mongez/copper": "^1.0.1",
8
8
  "@mongez/events": "^2.1.0",
9
9
  "@mongez/reinforcements": "^2.3.17",
10
- "@warlock.js/logger": "4.0.166",
11
- "@warlock.js/seal": "4.0.166"
10
+ "@warlock.js/logger": "4.0.171",
11
+ "@warlock.js/seal": "4.0.171"
12
12
  },
13
13
  "scripts": {
14
14
  "update": "npx ncu -u",