@vercel/queue 0.1.5 → 0.1.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/README.md +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -573,7 +573,7 @@ All error types:
|
|
|
573
573
|
| Parameter | Default | Min | Max | Notes |
|
|
574
574
|
| ------------------ | ------------ | --- | ------------ | ----------------------------------- |
|
|
575
575
|
| `retentionSeconds` | 86,400 (24h) | 60 | 604,800 (7d) | Message TTL |
|
|
576
|
-
| `delaySeconds` | 0 | 0 |
|
|
576
|
+
| `delaySeconds` | 0 | 0 | 604,800 (7d) | Cannot exceed retention |
|
|
577
577
|
| `idempotencyKey` | — | — | — | Dedup window: `min(retention, 24h)` |
|
|
578
578
|
|
|
579
579
|
#### Receiving Messages
|
|
@@ -621,7 +621,7 @@ import { send } from "@vercel/queue";
|
|
|
621
621
|
const { messageId } = await send("my-topic", payload, {
|
|
622
622
|
idempotencyKey: "unique-key", // Dedup window: min(retention, 24h)
|
|
623
623
|
retentionSeconds: 3600, // Message TTL (default: 86400, max: 604800)
|
|
624
|
-
delaySeconds: 60, // Delay before visible (default: 0, max:
|
|
624
|
+
delaySeconds: 60, // Delay before visible (default: 0, max: 7d)
|
|
625
625
|
headers: { "X-Custom": "val" }, // Custom headers
|
|
626
626
|
region: "sfo1", // Override the auto-detected region for this send
|
|
627
627
|
});
|
package/dist/index.d.mts
CHANGED
|
@@ -268,7 +268,7 @@ interface SendOptions {
|
|
|
268
268
|
* The message will not be visible to consumers until the delay has passed.
|
|
269
269
|
* @default 0
|
|
270
270
|
* @minimum 0
|
|
271
|
-
* @maximum
|
|
271
|
+
* @maximum 604800 (7 days, cannot exceed retentionSeconds)
|
|
272
272
|
*/
|
|
273
273
|
delaySeconds?: number;
|
|
274
274
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -268,7 +268,7 @@ interface SendOptions {
|
|
|
268
268
|
* The message will not be visible to consumers until the delay has passed.
|
|
269
269
|
* @default 0
|
|
270
270
|
* @minimum 0
|
|
271
|
-
* @maximum
|
|
271
|
+
* @maximum 604800 (7 days, cannot exceed retentionSeconds)
|
|
272
272
|
*/
|
|
273
273
|
delaySeconds?: number;
|
|
274
274
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1640,7 +1640,7 @@ Cause: ${cause}`
|
|
|
1640
1640
|
}
|
|
1641
1641
|
console.debug("[VQS Debug] Request:", JSON.stringify(logData, null, 2));
|
|
1642
1642
|
}
|
|
1643
|
-
init.headers.set("User-Agent", `@vercel/queue/${"0.1.
|
|
1643
|
+
init.headers.set("User-Agent", `@vercel/queue/${"0.1.7"}`);
|
|
1644
1644
|
init.headers.set("Vqs-Client-Ts", (/* @__PURE__ */ new Date()).toISOString());
|
|
1645
1645
|
const fetchInit = this.dispatcher ? { ...init, dispatcher: this.dispatcher } : init;
|
|
1646
1646
|
const response = await fetch(url, fetchInit);
|