@vercel/queue 0.0.0-alpha.10 → 0.0.0-alpha.11

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 (2) hide show
  1. package/README.md +7 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -148,7 +148,10 @@ Configure which topics and consumers your API route handles:
148
148
  {
149
149
  "type": "queue/v1beta",
150
150
  "topic": "my-topic",
151
- "consumer": "my-consumer"
151
+ "consumer": "my-consumer",
152
+ "maxAttempts": 3, // Optional: Maximum number of delivery attempts (default: 3)
153
+ "retryAfterSeconds": 60, // Optional: Delay between retries (default: 60)
154
+ "initialDelaySeconds": 0 // Optional: Initial delay before first delivery (default: 0)
152
155
  },
153
156
  {
154
157
  "type": "queue/v1beta",
@@ -158,7 +161,9 @@ Configure which topics and consumers your API route handles:
158
161
  {
159
162
  "type": "queue/v1beta",
160
163
  "topic": "order-events",
161
- "consumer": "analytics"
164
+ "consumer": "analytics",
165
+ "maxAttempts": 5, // Retry up to 5 times
166
+ "retryAfterSeconds": 300 // Wait 5 minutes between retries
162
167
  }
163
168
  ]
164
169
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vercel/queue",
3
- "version": "0.0.0-alpha.10",
4
- "access": "restricted",
3
+ "version": "0.0.0-alpha.11",
4
+ "access": "public",
5
5
  "description": "A Node.js library for interacting with the Vercel Queue Service API",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.mjs",