@geekmidas/events 10.0.0-alpha.99 → 10.0.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.
Files changed (352) hide show
  1. package/CHANGELOG.md +116 -0
  2. package/README.md +1 -46
  3. package/dist/BasicConnection-CQsJpx2J.d.cts +27 -0
  4. package/dist/BasicConnection-CQsJpx2J.d.cts.map +1 -0
  5. package/dist/BasicConnection-CxfNEvlb.cjs +48 -0
  6. package/dist/BasicConnection-CxfNEvlb.cjs.map +1 -0
  7. package/dist/BasicConnection-DcRelT64.d.mts +27 -0
  8. package/dist/BasicConnection-DcRelT64.d.mts.map +1 -0
  9. package/dist/BasicConnection-hl-Ogz3a.mjs +42 -0
  10. package/dist/BasicConnection-hl-Ogz3a.mjs.map +1 -0
  11. package/dist/BasicPublisher-C-hMX2Hy.d.mts +14 -0
  12. package/dist/BasicPublisher-C-hMX2Hy.d.mts.map +1 -0
  13. package/dist/BasicPublisher-CGMXg2I2.d.cts +14 -0
  14. package/dist/BasicPublisher-CGMXg2I2.d.cts.map +1 -0
  15. package/dist/BasicPublisher-CXAVKxgq.cjs +20 -0
  16. package/dist/BasicPublisher-CXAVKxgq.cjs.map +1 -0
  17. package/dist/BasicPublisher-DogbeHAH.mjs +14 -0
  18. package/dist/BasicPublisher-DogbeHAH.mjs.map +1 -0
  19. package/dist/BasicSubscriber-BJSZN22M.mjs +16 -0
  20. package/dist/BasicSubscriber-BJSZN22M.mjs.map +1 -0
  21. package/dist/BasicSubscriber-HzSJ_MbB.d.mts +14 -0
  22. package/dist/BasicSubscriber-HzSJ_MbB.d.mts.map +1 -0
  23. package/dist/BasicSubscriber-mVJRMXhZ.cjs +22 -0
  24. package/dist/BasicSubscriber-mVJRMXhZ.cjs.map +1 -0
  25. package/dist/BasicSubscriber-uW3IOyBj.d.cts +14 -0
  26. package/dist/BasicSubscriber-uW3IOyBj.d.cts.map +1 -0
  27. package/dist/EventConnection-4niMI6D8.d.mts +13 -0
  28. package/dist/EventConnection-4niMI6D8.d.mts.map +1 -0
  29. package/dist/EventConnection-BkA9FSVL.cjs +45 -0
  30. package/dist/EventConnection-BkA9FSVL.cjs.map +1 -0
  31. package/dist/EventConnection-Kr32GAzq.mjs +40 -0
  32. package/dist/EventConnection-Kr32GAzq.mjs.map +1 -0
  33. package/dist/EventConnection-dP42P87q.d.cts +13 -0
  34. package/dist/EventConnection-dP42P87q.d.cts.map +1 -0
  35. package/dist/EventConnection.cjs +5 -0
  36. package/dist/EventConnection.d.cts +3 -0
  37. package/dist/EventConnection.d.mts +3 -0
  38. package/dist/EventConnection.mjs +4 -0
  39. package/dist/PgBossConnection-B71ssr72.cjs +80 -0
  40. package/dist/PgBossConnection-B71ssr72.cjs.map +1 -0
  41. package/dist/PgBossConnection-Bj_Wo1lQ.mjs +74 -0
  42. package/dist/PgBossConnection-Bj_Wo1lQ.mjs.map +1 -0
  43. package/dist/PgBossConnection-DCfLGoHx.d.mts +32 -0
  44. package/dist/PgBossConnection-DCfLGoHx.d.mts.map +1 -0
  45. package/dist/PgBossConnection-oto_CAbP.d.cts +32 -0
  46. package/dist/PgBossConnection-oto_CAbP.d.cts.map +1 -0
  47. package/dist/PgBossPublisher-Bwo7qSoH.mjs +35 -0
  48. package/dist/PgBossPublisher-Bwo7qSoH.mjs.map +1 -0
  49. package/dist/PgBossPublisher-CqjigBVC.d.mts +20 -0
  50. package/dist/PgBossPublisher-CqjigBVC.d.mts.map +1 -0
  51. package/dist/PgBossPublisher-FTdYh58W.cjs +41 -0
  52. package/dist/PgBossPublisher-FTdYh58W.cjs.map +1 -0
  53. package/dist/PgBossPublisher-JIiB1zpA.d.cts +20 -0
  54. package/dist/PgBossPublisher-JIiB1zpA.d.cts.map +1 -0
  55. package/dist/PgBossSubscriber-BUiB1JKf.d.mts +24 -0
  56. package/dist/PgBossSubscriber-BUiB1JKf.d.mts.map +1 -0
  57. package/dist/PgBossSubscriber-BubVfuWm.cjs +52 -0
  58. package/dist/PgBossSubscriber-BubVfuWm.cjs.map +1 -0
  59. package/dist/PgBossSubscriber-Cozijfdj.d.cts +24 -0
  60. package/dist/PgBossSubscriber-Cozijfdj.d.cts.map +1 -0
  61. package/dist/PgBossSubscriber-DopATe80.mjs +46 -0
  62. package/dist/PgBossSubscriber-DopATe80.mjs.map +1 -0
  63. package/dist/Publisher-CKloIGh6.cjs +79 -0
  64. package/dist/Publisher-CKloIGh6.cjs.map +1 -0
  65. package/dist/Publisher-ChLTrUeP.mjs +74 -0
  66. package/dist/Publisher-ChLTrUeP.mjs.map +1 -0
  67. package/dist/Publisher-DDee6xau.d.cts +21 -0
  68. package/dist/Publisher-DDee6xau.d.cts.map +1 -0
  69. package/dist/Publisher-VHumMkrP.d.mts +21 -0
  70. package/dist/Publisher-VHumMkrP.d.mts.map +1 -0
  71. package/dist/Publisher.cjs +4 -0
  72. package/dist/Publisher.d.cts +3 -0
  73. package/dist/Publisher.d.mts +3 -0
  74. package/dist/Publisher.mjs +4 -0
  75. package/dist/RabbitMQConnection-BtKZjtZY.mjs +107 -0
  76. package/dist/RabbitMQConnection-BtKZjtZY.mjs.map +1 -0
  77. package/dist/RabbitMQConnection-DV9t3VYp.d.mts +44 -0
  78. package/dist/RabbitMQConnection-DV9t3VYp.d.mts.map +1 -0
  79. package/dist/RabbitMQConnection-DmMMosT4.cjs +113 -0
  80. package/dist/RabbitMQConnection-DmMMosT4.cjs.map +1 -0
  81. package/dist/RabbitMQConnection-jNME_eR7.d.cts +44 -0
  82. package/dist/RabbitMQConnection-jNME_eR7.d.cts.map +1 -0
  83. package/dist/RabbitMQPublisher-C94q6g8q.cjs +45 -0
  84. package/dist/RabbitMQPublisher-C94q6g8q.cjs.map +1 -0
  85. package/dist/RabbitMQPublisher-DKmgwqVj.d.mts +25 -0
  86. package/dist/RabbitMQPublisher-DKmgwqVj.d.mts.map +1 -0
  87. package/dist/RabbitMQPublisher-d257OHLa.d.cts +25 -0
  88. package/dist/RabbitMQPublisher-d257OHLa.d.cts.map +1 -0
  89. package/dist/RabbitMQPublisher-yUqWNq-P.mjs +39 -0
  90. package/dist/RabbitMQPublisher-yUqWNq-P.mjs.map +1 -0
  91. package/dist/RabbitMQSubscriber-BF7JGfYm.d.cts +27 -0
  92. package/dist/RabbitMQSubscriber-BF7JGfYm.d.cts.map +1 -0
  93. package/dist/RabbitMQSubscriber-BWniDtFs.mjs +56 -0
  94. package/dist/RabbitMQSubscriber-BWniDtFs.mjs.map +1 -0
  95. package/dist/RabbitMQSubscriber-CdbUy5mB.d.mts +27 -0
  96. package/dist/RabbitMQSubscriber-CdbUy5mB.d.mts.map +1 -0
  97. package/dist/RabbitMQSubscriber-DGEO-clQ.cjs +62 -0
  98. package/dist/RabbitMQSubscriber-DGEO-clQ.cjs.map +1 -0
  99. package/dist/SNSConnection-CAcbLQOy.cjs +76 -0
  100. package/dist/SNSConnection-CAcbLQOy.cjs.map +1 -0
  101. package/dist/SNSConnection-CG4iEwA8.d.mts +41 -0
  102. package/dist/SNSConnection-CG4iEwA8.d.mts.map +1 -0
  103. package/dist/SNSConnection-CVjH93lb.mjs +70 -0
  104. package/dist/SNSConnection-CVjH93lb.mjs.map +1 -0
  105. package/dist/SNSConnection-Dol9FuxA.d.cts +41 -0
  106. package/dist/SNSConnection-Dol9FuxA.d.cts.map +1 -0
  107. package/dist/SNSPublisher-CjlMS3Z2.mjs +41 -0
  108. package/dist/SNSPublisher-CjlMS3Z2.mjs.map +1 -0
  109. package/dist/SNSPublisher-D50dPCEh.d.mts +22 -0
  110. package/dist/SNSPublisher-D50dPCEh.d.mts.map +1 -0
  111. package/dist/SNSPublisher-DQunY4NM.d.cts +22 -0
  112. package/dist/SNSPublisher-DQunY4NM.d.cts.map +1 -0
  113. package/dist/SNSPublisher-DV_8GGsi.cjs +47 -0
  114. package/dist/SNSPublisher-DV_8GGsi.cjs.map +1 -0
  115. package/dist/SNSSubscriber-BWaCQFl6.mjs +139 -0
  116. package/dist/SNSSubscriber-BWaCQFl6.mjs.map +1 -0
  117. package/dist/SNSSubscriber-CUgHK4W2.d.mts +55 -0
  118. package/dist/SNSSubscriber-CUgHK4W2.d.mts.map +1 -0
  119. package/dist/SNSSubscriber-ZE_-Hsps.cjs +145 -0
  120. package/dist/SNSSubscriber-ZE_-Hsps.cjs.map +1 -0
  121. package/dist/SNSSubscriber-ZGJjhXFQ.d.cts +55 -0
  122. package/dist/SNSSubscriber-ZGJjhXFQ.d.cts.map +1 -0
  123. package/dist/SQSConnection-BtEkDha8.d.cts +41 -0
  124. package/dist/SQSConnection-BtEkDha8.d.cts.map +1 -0
  125. package/dist/SQSConnection-CT3S7_zP.mjs +70 -0
  126. package/dist/SQSConnection-CT3S7_zP.mjs.map +1 -0
  127. package/dist/SQSConnection-DVy43GCV.d.mts +41 -0
  128. package/dist/SQSConnection-DVy43GCV.d.mts.map +1 -0
  129. package/dist/SQSConnection-Y0mdVTcB.cjs +76 -0
  130. package/dist/SQSConnection-Y0mdVTcB.cjs.map +1 -0
  131. package/dist/SQSPublisher-B-32CC4G.mjs +57 -0
  132. package/dist/SQSPublisher-B-32CC4G.mjs.map +1 -0
  133. package/dist/SQSPublisher-CgUduk6H.cjs +63 -0
  134. package/dist/SQSPublisher-CgUduk6H.cjs.map +1 -0
  135. package/dist/SQSPublisher-kyl5HW3N.d.cts +25 -0
  136. package/dist/SQSPublisher-kyl5HW3N.d.cts.map +1 -0
  137. package/dist/SQSPublisher-qDE5Fp-N.d.mts +25 -0
  138. package/dist/SQSPublisher-qDE5Fp-N.d.mts.map +1 -0
  139. package/dist/SQSSubscriber-C4UA2hKq.cjs +120 -0
  140. package/dist/SQSSubscriber-C4UA2hKq.cjs.map +1 -0
  141. package/dist/SQSSubscriber-CDvaG4ij.d.cts +44 -0
  142. package/dist/SQSSubscriber-CDvaG4ij.d.cts.map +1 -0
  143. package/dist/SQSSubscriber-CQdSFzpe.mjs +114 -0
  144. package/dist/SQSSubscriber-CQdSFzpe.mjs.map +1 -0
  145. package/dist/SQSSubscriber-JfFuAAoP.d.mts +44 -0
  146. package/dist/SQSSubscriber-JfFuAAoP.d.mts.map +1 -0
  147. package/dist/Subscriber-CG_QUQZs.d.cts +21 -0
  148. package/dist/Subscriber-CG_QUQZs.d.cts.map +1 -0
  149. package/dist/Subscriber-CghW0A02.cjs +88 -0
  150. package/dist/Subscriber-CghW0A02.cjs.map +1 -0
  151. package/dist/Subscriber-DiYHmuF0.d.mts +21 -0
  152. package/dist/Subscriber-DiYHmuF0.d.mts.map +1 -0
  153. package/dist/Subscriber-bnkFtSvt.mjs +83 -0
  154. package/dist/Subscriber-bnkFtSvt.mjs.map +1 -0
  155. package/dist/Subscriber.cjs +4 -0
  156. package/dist/Subscriber.d.cts +3 -0
  157. package/dist/Subscriber.d.mts +3 -0
  158. package/dist/Subscriber.mjs +4 -0
  159. package/dist/basic/BasicConnection.cjs +4 -0
  160. package/dist/basic/BasicConnection.d.cts +3 -0
  161. package/dist/basic/BasicConnection.d.mts +3 -0
  162. package/dist/basic/BasicConnection.mjs +4 -0
  163. package/dist/basic/BasicPublisher.cjs +3 -0
  164. package/dist/basic/BasicPublisher.d.cts +4 -0
  165. package/dist/basic/BasicPublisher.d.mts +4 -0
  166. package/dist/basic/BasicPublisher.mjs +3 -0
  167. package/dist/basic/BasicSubscriber.cjs +3 -0
  168. package/dist/basic/BasicSubscriber.d.cts +4 -0
  169. package/dist/basic/BasicSubscriber.d.mts +4 -0
  170. package/dist/basic/BasicSubscriber.mjs +3 -0
  171. package/dist/basic/index.cjs +7 -100
  172. package/dist/basic/index.d.cts +5 -45
  173. package/dist/basic/index.d.mts +5 -45
  174. package/dist/basic/index.mjs +5 -96
  175. package/dist/{rolldown-runtime-C0BPl7ul.cjs → chunk-CUT6urMc.cjs} +10 -23
  176. package/dist/index.cjs +8 -87
  177. package/dist/index.d.cts +5 -102
  178. package/dist/index.d.mts +5 -102
  179. package/dist/index.mjs +5 -71
  180. package/dist/pgboss/PgBossConnection.cjs +4 -0
  181. package/dist/pgboss/PgBossConnection.d.cts +3 -0
  182. package/dist/pgboss/PgBossConnection.d.mts +3 -0
  183. package/dist/pgboss/PgBossConnection.mjs +4 -0
  184. package/dist/pgboss/PgBossPublisher.cjs +3 -0
  185. package/dist/pgboss/PgBossPublisher.d.cts +4 -0
  186. package/dist/pgboss/PgBossPublisher.d.mts +4 -0
  187. package/dist/pgboss/PgBossPublisher.mjs +3 -0
  188. package/dist/pgboss/PgBossSubscriber.cjs +3 -0
  189. package/dist/pgboss/PgBossSubscriber.d.cts +4 -0
  190. package/dist/pgboss/PgBossSubscriber.d.mts +4 -0
  191. package/dist/pgboss/PgBossSubscriber.mjs +3 -0
  192. package/dist/pgboss/index.cjs +7 -247
  193. package/dist/pgboss/index.d.cts +5 -107
  194. package/dist/pgboss/index.d.mts +5 -107
  195. package/dist/pgboss/index.mjs +5 -240
  196. package/dist/rabbitmq/RabbitMQConnection.cjs +4 -0
  197. package/dist/rabbitmq/RabbitMQConnection.d.cts +3 -0
  198. package/dist/rabbitmq/RabbitMQConnection.d.mts +3 -0
  199. package/dist/rabbitmq/RabbitMQConnection.mjs +4 -0
  200. package/dist/rabbitmq/RabbitMQPublisher.cjs +3 -0
  201. package/dist/rabbitmq/RabbitMQPublisher.d.cts +4 -0
  202. package/dist/rabbitmq/RabbitMQPublisher.d.mts +4 -0
  203. package/dist/rabbitmq/RabbitMQPublisher.mjs +3 -0
  204. package/dist/rabbitmq/RabbitMQSubscriber.cjs +3 -0
  205. package/dist/rabbitmq/RabbitMQSubscriber.d.cts +4 -0
  206. package/dist/rabbitmq/RabbitMQSubscriber.d.mts +4 -0
  207. package/dist/rabbitmq/RabbitMQSubscriber.mjs +3 -0
  208. package/dist/rabbitmq/index.cjs +7 -243
  209. package/dist/rabbitmq/index.d.cts +5 -92
  210. package/dist/rabbitmq/index.d.mts +5 -92
  211. package/dist/rabbitmq/index.mjs +5 -237
  212. package/dist/sns/SNSConnection.cjs +4 -0
  213. package/dist/sns/SNSConnection.d.cts +3 -0
  214. package/dist/sns/SNSConnection.d.mts +3 -0
  215. package/dist/sns/SNSConnection.mjs +4 -0
  216. package/dist/sns/SNSPublisher.cjs +3 -0
  217. package/dist/sns/SNSPublisher.d.cts +4 -0
  218. package/dist/sns/SNSPublisher.d.mts +4 -0
  219. package/dist/sns/SNSPublisher.mjs +3 -0
  220. package/dist/sns/SNSSubscriber.cjs +6 -0
  221. package/dist/sns/SNSSubscriber.d.cts +4 -0
  222. package/dist/sns/SNSSubscriber.d.mts +4 -0
  223. package/dist/sns/SNSSubscriber.mjs +6 -0
  224. package/dist/sns/index.cjs +9 -551
  225. package/dist/sns/index.d.cts +5 -273
  226. package/dist/sns/index.d.mts +5 -273
  227. package/dist/sns/index.mjs +7 -527
  228. package/dist/sqs/SQSConnection.cjs +4 -0
  229. package/dist/sqs/SQSConnection.d.cts +3 -0
  230. package/dist/sqs/SQSConnection.d.mts +3 -0
  231. package/dist/sqs/SQSConnection.mjs +4 -0
  232. package/dist/sqs/SQSPublisher.cjs +3 -0
  233. package/dist/sqs/SQSPublisher.d.cts +4 -0
  234. package/dist/sqs/SQSPublisher.d.mts +4 -0
  235. package/dist/sqs/SQSPublisher.mjs +3 -0
  236. package/dist/sqs/SQSSubscriber.cjs +3 -0
  237. package/dist/sqs/SQSSubscriber.d.cts +4 -0
  238. package/dist/sqs/SQSSubscriber.d.mts +4 -0
  239. package/dist/sqs/SQSSubscriber.mjs +3 -0
  240. package/dist/sqs/index.cjs +7 -35
  241. package/dist/sqs/index.d.cts +5 -118
  242. package/dist/sqs/index.d.mts +5 -118
  243. package/dist/sqs/index.mjs +5 -24
  244. package/dist/types-BrdcSEnd.mjs +18 -0
  245. package/dist/types-BrdcSEnd.mjs.map +1 -0
  246. package/dist/types-Byv8N9ma.cjs +24 -0
  247. package/dist/types-Byv8N9ma.cjs.map +1 -0
  248. package/dist/types-Dh9Jyinx.d.mts +67 -0
  249. package/dist/types-Dh9Jyinx.d.mts.map +1 -0
  250. package/dist/types-Dj23od3e.d.cts +67 -0
  251. package/dist/types-Dj23od3e.d.cts.map +1 -0
  252. package/dist/types.cjs +3 -0
  253. package/dist/types.d.cts +2 -0
  254. package/dist/types.d.mts +2 -0
  255. package/dist/types.mjs +3 -0
  256. package/package.json +12 -40
  257. package/src/EventConnection.ts +43 -0
  258. package/src/Publisher.ts +98 -0
  259. package/src/Subscriber.ts +113 -0
  260. package/src/__tests__/EventConnection.spec.ts +42 -0
  261. package/src/__tests__/Publisher.spec.ts +96 -0
  262. package/src/__tests__/Subscriber.spec.ts +109 -0
  263. package/src/basic/BasicConnection.ts +47 -0
  264. package/src/basic/BasicPublisher.ts +15 -0
  265. package/src/basic/BasicSubscriber.ts +21 -0
  266. package/src/basic/__tests__/BasicSubscriber.spec.ts +166 -0
  267. package/src/basic/index.ts +3 -0
  268. package/src/index.ts +25 -0
  269. package/src/pgboss/PgBossConnection.ts +91 -0
  270. package/src/pgboss/PgBossPublisher.ts +49 -0
  271. package/src/pgboss/PgBossSubscriber.ts +81 -0
  272. package/src/pgboss/__tests__/pgboss.spec.ts +196 -0
  273. package/src/pgboss/__tests__/setup.ts +21 -0
  274. package/src/pgboss/index.ts +5 -0
  275. package/src/rabbitmq/RabbitMQConnection.ts +148 -0
  276. package/src/rabbitmq/RabbitMQPublisher.ts +67 -0
  277. package/src/rabbitmq/RabbitMQSubscriber.ts +111 -0
  278. package/src/rabbitmq/__tests__/RabbitMQPublisher.spec.ts +378 -0
  279. package/src/rabbitmq/__tests__/RabbitMQSubscriber.spec.ts +292 -0
  280. package/src/rabbitmq/index.ts +6 -0
  281. package/src/sns/SNSConnection.ts +98 -0
  282. package/src/sns/SNSPublisher.ts +62 -0
  283. package/src/sns/SNSSubscriber.ts +218 -0
  284. package/src/sns/__tests__/SNS-SQS-Integration.spec.ts +389 -0
  285. package/src/sns/__tests__/SNSPublisher.spec.ts +449 -0
  286. package/src/sns/__tests__/SNSSubscriber.spec.ts +527 -0
  287. package/src/sns/index.ts +6 -0
  288. package/src/sqs/SQSConnection.ts +97 -0
  289. package/src/sqs/SQSPublisher.ts +105 -0
  290. package/src/sqs/SQSSubscriber.ts +181 -0
  291. package/src/sqs/__tests__/SQSPublisher.spec.ts +189 -0
  292. package/src/sqs/index.ts +6 -0
  293. package/src/types.ts +76 -0
  294. package/tsconfig.json +9 -0
  295. package/tsdown.config.ts +10 -0
  296. package/dist/SQSSubscriber-BEJBfNTe.mjs +0 -264
  297. package/dist/SQSSubscriber-BEJBfNTe.mjs.map +0 -1
  298. package/dist/SQSSubscriber-COTqWvOk.cjs +0 -288
  299. package/dist/SQSSubscriber-COTqWvOk.cjs.map +0 -1
  300. package/dist/basic/index.cjs.map +0 -1
  301. package/dist/basic/index.d.cts.map +0 -1
  302. package/dist/basic/index.d.mts.map +0 -1
  303. package/dist/basic/index.mjs.map +0 -1
  304. package/dist/index.cjs.map +0 -1
  305. package/dist/index.d.cts.map +0 -1
  306. package/dist/index.d.mts.map +0 -1
  307. package/dist/index.mjs.map +0 -1
  308. package/dist/pgboss/index.cjs.map +0 -1
  309. package/dist/pgboss/index.d.cts.map +0 -1
  310. package/dist/pgboss/index.d.mts.map +0 -1
  311. package/dist/pgboss/index.mjs.map +0 -1
  312. package/dist/rabbitmq/index.cjs.map +0 -1
  313. package/dist/rabbitmq/index.d.cts.map +0 -1
  314. package/dist/rabbitmq/index.d.mts.map +0 -1
  315. package/dist/rabbitmq/index.mjs.map +0 -1
  316. package/dist/registry-DIx25Q5s.d.cts +0 -255
  317. package/dist/registry-DIx25Q5s.d.cts.map +0 -1
  318. package/dist/registry-DIx25Q5s.d.mts +0 -255
  319. package/dist/registry-DIx25Q5s.d.mts.map +0 -1
  320. package/dist/registry-DXLY1Xf6.mjs +0 -99
  321. package/dist/registry-DXLY1Xf6.mjs.map +0 -1
  322. package/dist/registry-DlT36229.cjs +0 -122
  323. package/dist/registry-DlT36229.cjs.map +0 -1
  324. package/dist/rolldown-runtime-D7D4PA-g.mjs +0 -13
  325. package/dist/sns/index.cjs.map +0 -1
  326. package/dist/sns/index.d.cts.map +0 -1
  327. package/dist/sns/index.d.mts.map +0 -1
  328. package/dist/sns/index.mjs.map +0 -1
  329. package/dist/sns/snsUrl.cjs +0 -92
  330. package/dist/sns/snsUrl.cjs.map +0 -1
  331. package/dist/sns/snsUrl.d.cts +0 -57
  332. package/dist/sns/snsUrl.d.cts.map +0 -1
  333. package/dist/sns/snsUrl.d.mts +0 -57
  334. package/dist/sns/snsUrl.d.mts.map +0 -1
  335. package/dist/sns/snsUrl.mjs +0 -82
  336. package/dist/sns/snsUrl.mjs.map +0 -1
  337. package/dist/sqs/index.cjs.map +0 -1
  338. package/dist/sqs/index.d.cts.map +0 -1
  339. package/dist/sqs/index.d.mts.map +0 -1
  340. package/dist/sqs/index.mjs.map +0 -1
  341. package/dist/sqs/sqsUrl.cjs +0 -93
  342. package/dist/sqs/sqsUrl.cjs.map +0 -1
  343. package/dist/sqs/sqsUrl.d.cts +0 -56
  344. package/dist/sqs/sqsUrl.d.cts.map +0 -1
  345. package/dist/sqs/sqsUrl.d.mts +0 -56
  346. package/dist/sqs/sqsUrl.d.mts.map +0 -1
  347. package/dist/sqs/sqsUrl.mjs +0 -83
  348. package/dist/sqs/sqsUrl.mjs.map +0 -1
  349. package/dist/telemetry-DG3l807O.cjs +0 -309
  350. package/dist/telemetry-DG3l807O.cjs.map +0 -1
  351. package/dist/telemetry-DjjgJMul.mjs +0 -244
  352. package/dist/telemetry-DjjgJMul.mjs.map +0 -1
@@ -0,0 +1,166 @@
1
+ import { describe, expect, it } from 'vitest';
2
+ import type { PublishableMessage } from '../../types';
3
+ import { BasicConnection } from '../BasicConnection';
4
+ import { BasicPublisher } from '../BasicPublisher';
5
+ import { BasicSubscriber } from '../BasicSubscriber';
6
+
7
+ type TestMessage = PublishableMessage<'user.created' | 'user.updated', any>;
8
+
9
+ describe('BasicSubscriber', () => {
10
+ it('should receive published messages', async () => {
11
+ const connection = new BasicConnection();
12
+ await connection.connect();
13
+
14
+ const publisher = new BasicPublisher<TestMessage>(connection);
15
+ const subscriber = new BasicSubscriber<TestMessage>(connection);
16
+
17
+ const receivedMessages: TestMessage[] = [];
18
+
19
+ await subscriber.subscribe(['user.created'], async (message) => {
20
+ receivedMessages.push(message);
21
+ });
22
+
23
+ await publisher.publish([
24
+ { type: 'user.created', payload: { userId: '123' } },
25
+ ]);
26
+
27
+ // Give event emitter time to process
28
+ await new Promise((resolve) => setTimeout(resolve, 10));
29
+
30
+ expect(receivedMessages).toHaveLength(1);
31
+ expect(receivedMessages[0]).toEqual({
32
+ type: 'user.created',
33
+ payload: { userId: '123' },
34
+ });
35
+
36
+ await connection.close();
37
+ });
38
+
39
+ it('should receive multiple message types', async () => {
40
+ const connection = new BasicConnection();
41
+ await connection.connect();
42
+
43
+ const publisher = new BasicPublisher<TestMessage>(connection);
44
+ const subscriber = new BasicSubscriber<TestMessage>(connection);
45
+
46
+ const receivedMessages: TestMessage[] = [];
47
+
48
+ await subscriber.subscribe(
49
+ ['user.created', 'user.updated'],
50
+ async (message) => {
51
+ receivedMessages.push(message);
52
+ },
53
+ );
54
+
55
+ await publisher.publish([
56
+ { type: 'user.created', payload: { userId: '1' } },
57
+ { type: 'user.updated', payload: { userId: '2' } },
58
+ { type: 'user.created', payload: { userId: '3' } },
59
+ ]);
60
+
61
+ // Give event emitter time to process
62
+ await new Promise((resolve) => setTimeout(resolve, 10));
63
+
64
+ expect(receivedMessages).toHaveLength(3);
65
+ expect(receivedMessages[0].type).toBe('user.created');
66
+ expect(receivedMessages[1].type).toBe('user.updated');
67
+ expect(receivedMessages[2].type).toBe('user.created');
68
+
69
+ await connection.close();
70
+ });
71
+
72
+ it('should only receive subscribed message types', async () => {
73
+ const connection = new BasicConnection();
74
+ await connection.connect();
75
+
76
+ const publisher = new BasicPublisher<TestMessage>(connection);
77
+ const subscriber = new BasicSubscriber<TestMessage>(connection);
78
+
79
+ const receivedMessages: TestMessage[] = [];
80
+
81
+ // Only subscribe to user.created
82
+ await subscriber.subscribe(['user.created'], async (message) => {
83
+ receivedMessages.push(message);
84
+ });
85
+
86
+ await publisher.publish([
87
+ { type: 'user.created', payload: { userId: '1' } },
88
+ { type: 'user.updated', payload: { userId: '2' } },
89
+ { type: 'user.created', payload: { userId: '3' } },
90
+ ]);
91
+
92
+ // Give event emitter time to process
93
+ await new Promise((resolve) => setTimeout(resolve, 10));
94
+
95
+ expect(receivedMessages).toHaveLength(2);
96
+ expect(receivedMessages.every((m) => m.type === 'user.created')).toBe(true);
97
+
98
+ await connection.close();
99
+ });
100
+
101
+ it('should handle multiple subscribers on same connection', async () => {
102
+ const connection = new BasicConnection();
103
+ await connection.connect();
104
+
105
+ const publisher = new BasicPublisher<TestMessage>(connection);
106
+ const subscriber1 = new BasicSubscriber<TestMessage>(connection);
107
+ const subscriber2 = new BasicSubscriber<TestMessage>(connection);
108
+
109
+ const messages1: TestMessage[] = [];
110
+ const messages2: TestMessage[] = [];
111
+
112
+ await subscriber1.subscribe(['user.created'], async (message) => {
113
+ messages1.push(message);
114
+ });
115
+
116
+ await subscriber2.subscribe(['user.created'], async (message) => {
117
+ messages2.push(message);
118
+ });
119
+
120
+ await publisher.publish([
121
+ { type: 'user.created', payload: { userId: '123' } },
122
+ ]);
123
+
124
+ // Give event emitter time to process
125
+ await new Promise((resolve) => setTimeout(resolve, 10));
126
+
127
+ // Both subscribers should receive the message
128
+ expect(messages1).toHaveLength(1);
129
+ expect(messages2).toHaveLength(1);
130
+
131
+ await connection.close();
132
+ });
133
+
134
+ it('should handle async listener errors gracefully', async () => {
135
+ const connection = new BasicConnection();
136
+ await connection.connect();
137
+
138
+ const publisher = new BasicPublisher<TestMessage>(connection);
139
+ const subscriber = new BasicSubscriber<TestMessage>(connection);
140
+
141
+ const receivedMessages: TestMessage[] = [];
142
+
143
+ await subscriber.subscribe(['user.created'], async (message) => {
144
+ if (message.payload.userId === '2') {
145
+ throw new Error('Test error');
146
+ }
147
+ receivedMessages.push(message);
148
+ });
149
+
150
+ await publisher.publish([
151
+ { type: 'user.created', payload: { userId: '1' } },
152
+ { type: 'user.created', payload: { userId: '2' } },
153
+ { type: 'user.created', payload: { userId: '3' } },
154
+ ]);
155
+
156
+ // Give event emitter time to process
157
+ await new Promise((resolve) => setTimeout(resolve, 10));
158
+
159
+ // Should receive messages 1 and 3 (2 throws error)
160
+ expect(receivedMessages).toHaveLength(2);
161
+ expect(receivedMessages[0].payload.userId).toBe('1');
162
+ expect(receivedMessages[1].payload.userId).toBe('3');
163
+
164
+ await connection.close();
165
+ });
166
+ });
@@ -0,0 +1,3 @@
1
+ export { BasicConnection } from './BasicConnection';
2
+ export { BasicPublisher } from './BasicPublisher';
3
+ export { BasicSubscriber } from './BasicSubscriber';
package/src/index.ts ADDED
@@ -0,0 +1,25 @@
1
+ // Generic types and interfaces
2
+
3
+ export { EventConnectionFactory } from './EventConnection';
4
+ export type { EventPublisherConnectionString } from './Publisher';
5
+
6
+ // Generic factories
7
+ export { Publisher } from './Publisher';
8
+ export type { EventSubscriberConnectionString } from './Subscriber';
9
+
10
+ export { Subscriber } from './Subscriber';
11
+ export type {
12
+ EventConnection,
13
+ EventPublisher,
14
+ EventSubscriber,
15
+ ExtractPublisherMessage,
16
+ MappedEvent,
17
+ PublishableMessage,
18
+ } from './types';
19
+ export { EventPublisherType } from './types';
20
+
21
+ // Specific integrations should be imported via subpaths:
22
+ // - @geekmidas/events/basic
23
+ // - @geekmidas/events/rabbitmq
24
+ // - @geekmidas/events/sqs
25
+ // - @geekmidas/events/sns
@@ -0,0 +1,91 @@
1
+ import { PgBoss } from 'pg-boss';
2
+ import type { EventConnection } from '../types';
3
+ import { EventPublisherType } from '../types';
4
+
5
+ export interface PgBossConnectionConfig {
6
+ connectionString: string;
7
+ schema?: string;
8
+ }
9
+
10
+ export class PgBossConnection implements EventConnection {
11
+ readonly type = EventPublisherType.PgBoss;
12
+ private boss?: PgBoss;
13
+ private connecting?: Promise<void>;
14
+
15
+ constructor(private config: PgBossConnectionConfig) {}
16
+
17
+ /**
18
+ * Create a PgBossConnection from a connection string.
19
+ * Format: pgboss://user:pass@host:5432/database?schema=pgboss
20
+ */
21
+ static async fromConnectionString(
22
+ connectionString: string,
23
+ ): Promise<PgBossConnection> {
24
+ const url = new URL(connectionString);
25
+ const params = url.searchParams;
26
+
27
+ const postgresUrl = `postgres://${url.username ? `${url.username}:${url.password}@` : ''}${url.host}${url.pathname}`;
28
+
29
+ const config: PgBossConnectionConfig = {
30
+ connectionString: postgresUrl,
31
+ schema: params.get('schema') || undefined,
32
+ };
33
+
34
+ const connection = new PgBossConnection(config);
35
+ await connection.connect();
36
+ return connection;
37
+ }
38
+
39
+ async connect(): Promise<void> {
40
+ if (this.boss) return;
41
+
42
+ if (this.connecting) {
43
+ await this.connecting;
44
+ return;
45
+ }
46
+
47
+ this.connecting = (async () => {
48
+ try {
49
+ const boss = new PgBoss({
50
+ connectionString: this.config.connectionString,
51
+ ...(this.config.schema && { schema: this.config.schema }),
52
+ });
53
+
54
+ await boss.start();
55
+ this.boss = boss;
56
+ } catch (error) {
57
+ this.cleanup();
58
+ throw error;
59
+ }
60
+ })();
61
+
62
+ await this.connecting;
63
+ this.connecting = undefined;
64
+ }
65
+
66
+ async close(): Promise<void> {
67
+ try {
68
+ await this.boss?.stop({ graceful: true });
69
+ } catch {
70
+ // Ignore errors during close
71
+ } finally {
72
+ this.cleanup();
73
+ }
74
+ }
75
+
76
+ isConnected(): boolean {
77
+ return !!this.boss;
78
+ }
79
+
80
+ private cleanup(): void {
81
+ this.boss = undefined;
82
+ this.connecting = undefined;
83
+ }
84
+
85
+ /**
86
+ * Get the underlying pg-boss instance for publishing/subscribing
87
+ */
88
+ get instance(): PgBoss | undefined {
89
+ return this.boss;
90
+ }
91
+ }
@@ -0,0 +1,49 @@
1
+ import type { EventPublisher, PublishableMessage } from '../types';
2
+ import type { PgBossConnection } from './PgBossConnection';
3
+
4
+ export class PgBossPublisher<TMessage extends PublishableMessage<string, any>>
5
+ implements EventPublisher<TMessage>
6
+ {
7
+ constructor(private connection: PgBossConnection) {}
8
+
9
+ /**
10
+ * Create a PgBossPublisher from a connection string.
11
+ * Format: pgboss://user:pass@host:5432/database?schema=pgboss
12
+ */
13
+ static async fromConnectionString<
14
+ TMessage extends PublishableMessage<string, any>,
15
+ >(connectionString: string): Promise<PgBossPublisher<TMessage>> {
16
+ const { PgBossConnection } = await import('./PgBossConnection');
17
+ const connection =
18
+ await PgBossConnection.fromConnectionString(connectionString);
19
+ return new PgBossPublisher<TMessage>(connection);
20
+ }
21
+
22
+ async publish(messages: TMessage[]): Promise<void> {
23
+ if (!this.connection.isConnected()) {
24
+ await this.connection.connect();
25
+ }
26
+
27
+ const boss = this.connection.instance;
28
+ if (!boss) {
29
+ throw new Error('PgBoss instance not initialized');
30
+ }
31
+
32
+ // Group jobs by queue name (v11+ requires per-queue insert calls)
33
+ const groups = new Map<string, { data: TMessage['payload'] }[]>();
34
+ for (const m of messages) {
35
+ const list = groups.get(m.type) ?? [];
36
+ list.push({ data: m.payload });
37
+ groups.set(m.type, list);
38
+ }
39
+
40
+ for (const [name, jobs] of groups) {
41
+ await boss.createQueue(name);
42
+ await boss.insert(name, jobs);
43
+ }
44
+ }
45
+
46
+ async close(): Promise<void> {
47
+ // Publisher doesn't own the connection
48
+ }
49
+ }
@@ -0,0 +1,81 @@
1
+ import type { EventSubscriber, PublishableMessage } from '../types';
2
+ import type { PgBossConnection } from './PgBossConnection';
3
+
4
+ export interface PgBossSubscriberOptions {
5
+ batchSize?: number;
6
+ pollingIntervalSeconds?: number;
7
+ }
8
+
9
+ export class PgBossSubscriber<TMessage extends PublishableMessage<string, any>>
10
+ implements EventSubscriber<TMessage>
11
+ {
12
+ constructor(
13
+ private connection: PgBossConnection,
14
+ private options: PgBossSubscriberOptions = {},
15
+ ) {}
16
+
17
+ /**
18
+ * Create a PgBossSubscriber from a connection string.
19
+ * Format: pgboss://user:pass@host:5432/database?schema=pgboss&batchSize=5
20
+ */
21
+ static async fromConnectionString<
22
+ TMessage extends PublishableMessage<string, any>,
23
+ >(connectionString: string): Promise<PgBossSubscriber<TMessage>> {
24
+ const url = new URL(connectionString);
25
+ const params = url.searchParams;
26
+
27
+ const { PgBossConnection } = await import('./PgBossConnection');
28
+ const connection =
29
+ await PgBossConnection.fromConnectionString(connectionString);
30
+
31
+ const options: PgBossSubscriberOptions = {
32
+ batchSize: params.get('batchSize')
33
+ ? Number.parseInt(params.get('batchSize')!, 10)
34
+ : undefined,
35
+ pollingIntervalSeconds: params.get('pollingIntervalSeconds')
36
+ ? Number.parseInt(params.get('pollingIntervalSeconds')!, 10)
37
+ : undefined,
38
+ };
39
+
40
+ return new PgBossSubscriber<TMessage>(connection, options);
41
+ }
42
+
43
+ async subscribe(
44
+ messages: TMessage['type'][],
45
+ listener: (payload: TMessage) => Promise<void>,
46
+ ): Promise<void> {
47
+ if (!this.connection.isConnected()) {
48
+ await this.connection.connect();
49
+ }
50
+
51
+ const boss = this.connection.instance;
52
+ if (!boss) {
53
+ throw new Error('PgBoss instance not initialized');
54
+ }
55
+
56
+ for (const messageType of messages) {
57
+ await boss.createQueue(messageType);
58
+ await boss.work(
59
+ messageType,
60
+ {
61
+ ...(this.options.batchSize && {
62
+ batchSize: this.options.batchSize,
63
+ }),
64
+ ...(this.options.pollingIntervalSeconds && {
65
+ pollingIntervalSeconds: this.options.pollingIntervalSeconds,
66
+ }),
67
+ },
68
+ async (jobs) => {
69
+ for (const job of jobs) {
70
+ const fullMessage = {
71
+ type: job.name,
72
+ payload: job.data,
73
+ } as TMessage;
74
+
75
+ await listener(fullMessage);
76
+ }
77
+ },
78
+ );
79
+ }
80
+ }
81
+ }
@@ -0,0 +1,196 @@
1
+ import { afterAll, beforeAll, describe, expect, it } from 'vitest';
2
+ import type { PublishableMessage } from '../../types';
3
+ import { PgBossConnection } from '../PgBossConnection';
4
+ import { PgBossPublisher } from '../PgBossPublisher';
5
+ import { PgBossSubscriber } from '../PgBossSubscriber';
6
+ import { dropSchemas } from './setup';
7
+
8
+ type TestMessage =
9
+ | PublishableMessage<'user.created', { userId: string }>
10
+ | PublishableMessage<'user.updated', { userId: string; name: string }>;
11
+
12
+ const POSTGRES_URL = 'postgres://geekmidas:geekmidas@localhost:5432/geekmidas';
13
+ const PGBOSS_CONNECTION_STRING =
14
+ 'pgboss://geekmidas:geekmidas@localhost:5432/geekmidas?schema=pgboss_test';
15
+
16
+ const TEST_SCHEMAS = [
17
+ 'pgboss_conn_test',
18
+ 'pgboss_conn_test2',
19
+ 'pgboss_test',
20
+ 'pgboss_pub_test',
21
+ 'pgboss_sub_test',
22
+ ];
23
+
24
+ beforeAll(async () => {
25
+ await dropSchemas(POSTGRES_URL, TEST_SCHEMAS);
26
+ });
27
+
28
+ const uniqueQueue = () =>
29
+ `test-${Date.now()}-${Math.random().toString(36).substring(7)}`;
30
+
31
+ describe('PgBossConnection', () => {
32
+ it('should connect and report connected status', async () => {
33
+ const connection = new PgBossConnection({
34
+ connectionString: POSTGRES_URL,
35
+ schema: 'pgboss_conn_test',
36
+ });
37
+
38
+ expect(connection.isConnected()).toBe(false);
39
+ expect(connection.instance).toBeUndefined();
40
+
41
+ await connection.connect();
42
+
43
+ expect(connection.isConnected()).toBe(true);
44
+ expect(connection.instance).toBeDefined();
45
+
46
+ await connection.close();
47
+
48
+ expect(connection.isConnected()).toBe(false);
49
+ });
50
+
51
+ it('should not reconnect if already connected', async () => {
52
+ const connection = new PgBossConnection({
53
+ connectionString: POSTGRES_URL,
54
+ schema: 'pgboss_conn_test2',
55
+ });
56
+
57
+ await connection.connect();
58
+ const firstInstance = connection.instance;
59
+
60
+ await connection.connect();
61
+ expect(connection.instance).toBe(firstInstance);
62
+
63
+ await connection.close();
64
+ });
65
+
66
+ it('should parse connection string correctly', async () => {
67
+ const connection = await PgBossConnection.fromConnectionString(
68
+ PGBOSS_CONNECTION_STRING,
69
+ );
70
+
71
+ expect(connection.isConnected()).toBe(true);
72
+ expect(connection.instance).toBeDefined();
73
+
74
+ await connection.close();
75
+ });
76
+ });
77
+
78
+ describe('PgBossPublisher', () => {
79
+ let connection: PgBossConnection;
80
+
81
+ beforeAll(async () => {
82
+ connection = new PgBossConnection({
83
+ connectionString: POSTGRES_URL,
84
+ schema: 'pgboss_pub_test',
85
+ });
86
+ await connection.connect();
87
+ });
88
+
89
+ afterAll(async () => {
90
+ await connection.close();
91
+ });
92
+
93
+ it('should publish messages without errors', async () => {
94
+ const publisher = new PgBossPublisher<TestMessage>(connection);
95
+
96
+ await publisher.publish([
97
+ { type: uniqueQueue() as any, payload: { userId: '1' } },
98
+ ]);
99
+ });
100
+
101
+ it('should publish multiple messages with different types', async () => {
102
+ const publisher = new PgBossPublisher<TestMessage>(connection);
103
+ const queue1 = uniqueQueue() as any;
104
+ const queue2 = uniqueQueue() as any;
105
+
106
+ await publisher.publish([
107
+ { type: queue1, payload: { userId: '1' } },
108
+ { type: queue1, payload: { userId: '2' } },
109
+ { type: queue2, payload: { userId: '3', name: 'Alice' } },
110
+ ]);
111
+ });
112
+
113
+ it('should create publisher from connection string', async () => {
114
+ const publisher = await PgBossPublisher.fromConnectionString<TestMessage>(
115
+ PGBOSS_CONNECTION_STRING,
116
+ );
117
+
118
+ expect(publisher).toBeInstanceOf(PgBossPublisher);
119
+ });
120
+ });
121
+
122
+ describe('PgBossSubscriber', () => {
123
+ let connection: PgBossConnection;
124
+
125
+ beforeAll(async () => {
126
+ connection = new PgBossConnection({
127
+ connectionString: POSTGRES_URL,
128
+ schema: 'pgboss_sub_test',
129
+ });
130
+ await connection.connect();
131
+ });
132
+
133
+ afterAll(async () => {
134
+ await connection.close();
135
+ });
136
+
137
+ it('should receive published messages', async () => {
138
+ const queueName = uniqueQueue() as any;
139
+ const publisher = new PgBossPublisher<TestMessage>(connection);
140
+ const subscriber = new PgBossSubscriber<TestMessage>(connection, {
141
+ pollingIntervalSeconds: 1,
142
+ });
143
+
144
+ const received: TestMessage[] = [];
145
+
146
+ await subscriber.subscribe([queueName], async (message) => {
147
+ received.push(message);
148
+ });
149
+
150
+ await publisher.publish([{ type: queueName, payload: { userId: '42' } }]);
151
+
152
+ // Wait for pg-boss to poll and deliver
153
+ await new Promise((resolve) => setTimeout(resolve, 3000));
154
+
155
+ expect(received.length).toBe(1);
156
+ expect(received[0]).toEqual({
157
+ type: queueName,
158
+ payload: { userId: '42' },
159
+ });
160
+ });
161
+
162
+ it('should subscribe to multiple message types', async () => {
163
+ const queue1 = uniqueQueue() as any;
164
+ const queue2 = uniqueQueue() as any;
165
+ const publisher = new PgBossPublisher<TestMessage>(connection);
166
+ const subscriber = new PgBossSubscriber<TestMessage>(connection, {
167
+ pollingIntervalSeconds: 1,
168
+ });
169
+
170
+ const received: TestMessage[] = [];
171
+
172
+ await subscriber.subscribe([queue1, queue2], async (message) => {
173
+ received.push(message);
174
+ });
175
+
176
+ await publisher.publish([
177
+ { type: queue1, payload: { userId: '1' } },
178
+ { type: queue2, payload: { userId: '2', name: 'Bob' } },
179
+ ]);
180
+
181
+ await new Promise((resolve) => setTimeout(resolve, 3000));
182
+
183
+ expect(received.length).toBe(2);
184
+ expect(received.map((m) => m.payload)).toEqual(
185
+ expect.arrayContaining([{ userId: '1' }, { userId: '2', name: 'Bob' }]),
186
+ );
187
+ });
188
+
189
+ it('should create subscriber from connection string with options', async () => {
190
+ const subscriber = await PgBossSubscriber.fromConnectionString<TestMessage>(
191
+ `${PGBOSS_CONNECTION_STRING}&batchSize=10`,
192
+ );
193
+
194
+ expect(subscriber).toBeInstanceOf(PgBossSubscriber);
195
+ });
196
+ });
@@ -0,0 +1,21 @@
1
+ import { Client } from 'pg';
2
+
3
+ /**
4
+ * Drop the named schemas if they exist. Run before pg-boss tests so that
5
+ * pg-boss's contractor performs a fresh `create` rather than attempting to
6
+ * migrate from a stale layout left behind by an older pg-boss version.
7
+ */
8
+ export async function dropSchemas(
9
+ connectionString: string,
10
+ schemas: string[],
11
+ ): Promise<void> {
12
+ const client = new Client({ connectionString });
13
+ await client.connect();
14
+ try {
15
+ for (const schema of schemas) {
16
+ await client.query(`DROP SCHEMA IF EXISTS "${schema}" CASCADE`);
17
+ }
18
+ } finally {
19
+ await client.end();
20
+ }
21
+ }
@@ -0,0 +1,5 @@
1
+ export type { PgBossConnectionConfig } from './PgBossConnection';
2
+ export { PgBossConnection } from './PgBossConnection';
3
+ export { PgBossPublisher } from './PgBossPublisher';
4
+ export type { PgBossSubscriberOptions } from './PgBossSubscriber';
5
+ export { PgBossSubscriber } from './PgBossSubscriber';