@newhomestar/sdk 0.7.6 → 0.7.7

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/dist/events.d.ts CHANGED
@@ -305,7 +305,7 @@ export declare function withInboundEvent(db: any, msg: InboundMessage, handler:
305
305
  *
306
306
  * ## Connection lifecycle
307
307
  *
308
- * - Opens `GET /events/queue/stream?queue_name={queueName}` (SSE)
308
+ * - Opens `GET /events/queue/stream?queue={queueName}` (SSE)
309
309
  * - On message: routes → withInboundEvent() → ACK (or NACK on failure)
310
310
  * - On keepalive (`: keepalive`): no action needed
311
311
  * - On close/error: reconnects with exponential backoff (1s → 2s → 4s → ... → max)
package/dist/events.js CHANGED
@@ -610,7 +610,7 @@ export async function withInboundEvent(db, msg, handler) {
610
610
  *
611
611
  * ## Connection lifecycle
612
612
  *
613
- * - Opens `GET /events/queue/stream?queue_name={queueName}` (SSE)
613
+ * - Opens `GET /events/queue/stream?queue={queueName}` (SSE)
614
614
  * - On message: routes → withInboundEvent() → ACK (or NACK on failure)
615
615
  * - On keepalive (`: keepalive`): no action needed
616
616
  * - On close/error: reconnects with exponential backoff (1s → 2s → 4s → ... → max)
@@ -777,7 +777,7 @@ export function startInboundConsumer(db, options) {
777
777
  /** Main loop: connect, consume, reconnect */
778
778
  async function _connect() {
779
779
  while (!abort.signal.aborted) {
780
- const streamUrl = `${eventsUrl}/events/queue/stream?queue_name=${encodeURIComponent(queueName)}&vt=${vt}`;
780
+ const streamUrl = `${eventsUrl}/events/queue/stream?queue=${encodeURIComponent(queueName)}&vt=${vt}`;
781
781
  try {
782
782
  console.log(`[nova/events] Connecting to SSE queue "${queueName}" ` +
783
783
  `(attempt ${reconnectAttempt + 1})…`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newhomestar/sdk",
3
- "version": "0.7.6",
3
+ "version": "0.7.7",
4
4
  "description": "Type-safe SDK for building Nova pipelines (workers & functions)",
5
5
  "homepage": "https://github.com/newhomestar/nova-node-sdk#readme",
6
6
  "bugs": {