@checkstack/backend 0.3.0 → 0.3.1

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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @checkstack/backend
2
2
 
3
+ ## 0.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [9a27800]
8
+ - @checkstack/queue-api@0.0.6
9
+ - @checkstack/backend-api@0.3.1
10
+ - @checkstack/signal-backend@0.1.1
11
+
3
12
  ## 0.3.0
4
13
 
5
14
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/backend",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "bun --env-file=../../.env --watch src/index.ts",
@@ -109,7 +109,7 @@ export class QueueManagerImpl implements QueueManager {
109
109
  return;
110
110
  }
111
111
 
112
- const queue = plugin.createQueue<T>(name, this.activeConfig);
112
+ const queue = plugin.createQueue<T>(name, this.activeConfig, this.logger);
113
113
  proxy.switchDelegate(queue).catch((error) => {
114
114
  this.logger.error(`Failed to initialize queue '${name}'`, error);
115
115
  });
@@ -141,7 +141,11 @@ export class QueueManagerImpl implements QueueManager {
141
141
  // 3. Test connection
142
142
  this.logger.info("🔍 Testing queue connection...");
143
143
  try {
144
- const testQueue = newPlugin.createQueue("__connection_test__", config);
144
+ const testQueue = newPlugin.createQueue(
145
+ "__connection_test__",
146
+ config,
147
+ this.logger
148
+ );
145
149
  await testQueue.testConnection();
146
150
  await testQueue.stop();
147
151
  this.logger.info("✅ Connection test successful");
@@ -185,7 +189,7 @@ export class QueueManagerImpl implements QueueManager {
185
189
  // 8. Create new queues and switch delegates
186
190
  this.logger.info("🔄 Switching to new backend...");
187
191
  for (const [name, proxy] of this.queueProxies.entries()) {
188
- const newQueue = newPlugin.createQueue(name, config);
192
+ const newQueue = newPlugin.createQueue(name, config, this.logger);
189
193
  await proxy.switchDelegate(newQueue);
190
194
  }
191
195
 
@@ -342,7 +346,7 @@ export class QueueManagerImpl implements QueueManager {
342
346
  // Stop and switch all queues
343
347
  for (const [name, proxy] of this.queueProxies.entries()) {
344
348
  try {
345
- const newQueue = plugin.createQueue(name, config);
349
+ const newQueue = plugin.createQueue(name, config, this.logger);
346
350
  await proxy.switchDelegate(newQueue);
347
351
  } catch (error) {
348
352
  this.logger.error(`Failed to switch queue '${name}'`, error);