@lunora/queue 1.0.0-alpha.4 → 1.0.0-alpha.5
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/LICENSE.md
CHANGED
|
@@ -103,3 +103,9 @@ Unless required by applicable law or agreed to in writing, software distributed
|
|
|
103
103
|
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
104
104
|
CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
|
105
105
|
specific language governing permissions and limitations under the License.
|
|
106
|
+
|
|
107
|
+
<!-- DEPENDENCIES -->
|
|
108
|
+
<!-- /DEPENDENCIES -->
|
|
109
|
+
|
|
110
|
+
<!-- TYPE_DEPENDENCIES -->
|
|
111
|
+
<!-- /TYPE_DEPENDENCIES -->
|
package/dist/index.d.mts
CHANGED
|
@@ -198,7 +198,7 @@ interface CapturedQueueMessage {
|
|
|
198
198
|
attempts: number;
|
|
199
199
|
/** The message body (JSON-encoded + capped by the catcher). */
|
|
200
200
|
body: unknown;
|
|
201
|
-
/** `true` when this
|
|
201
|
+
/** `true` when this failed delivery was the message's last (its retries are exhausted — the broker dead-letters it). */
|
|
202
202
|
deadLettered: boolean;
|
|
203
203
|
/** Handler error message when `outcome` is `error`; absent otherwise. */
|
|
204
204
|
error?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -198,7 +198,7 @@ interface CapturedQueueMessage {
|
|
|
198
198
|
attempts: number;
|
|
199
199
|
/** The message body (JSON-encoded + capped by the catcher). */
|
|
200
200
|
body: unknown;
|
|
201
|
-
/** `true` when this
|
|
201
|
+
/** `true` when this failed delivery was the message's last (its retries are exhausted — the broker dead-letters it). */
|
|
202
202
|
deadLettered: boolean;
|
|
203
203
|
/** Handler error message when `outcome` is `error`; absent otherwise. */
|
|
204
204
|
error?: string;
|
package/dist/index.mjs
CHANGED
|
@@ -2,5 +2,5 @@ export { createQueueCaptureSink, shouldCaptureQueue } from './packem_shared/crea
|
|
|
2
2
|
export { createQueueContext } from './packem_shared/createQueueContext-D0XCdCsd.mjs';
|
|
3
3
|
export { default as createQueues } from './packem_shared/createQueues-14-vSICK.mjs';
|
|
4
4
|
export { defineQueue, isQueueDefinition, queueBindingName, queueDefaultName } from './packem_shared/defineQueue-D40gREfg.mjs';
|
|
5
|
-
export { dispatchQueueBatch } from './packem_shared/dispatchQueueBatch-
|
|
5
|
+
export { dispatchQueueBatch } from './packem_shared/dispatchQueueBatch-BjWnrUuU.mjs';
|
|
6
6
|
export { createQueueRunContext } from './packem_shared/createQueueRunContext-_2hD-TK7.mjs';
|
package/dist/packem_shared/{dispatchQueueBatch-D4zU7C-C.mjs → dispatchQueueBatch-BjWnrUuU.mjs}
RENAMED
|
@@ -83,7 +83,7 @@ const buildCaptureRecords = (harness, entry, queue, threw, handlerError) => {
|
|
|
83
83
|
return {
|
|
84
84
|
attempts,
|
|
85
85
|
body: message.body,
|
|
86
|
-
deadLettered: outcome !== "ack" && attempts
|
|
86
|
+
deadLettered: outcome !== "ack" && attempts > maxRetries,
|
|
87
87
|
error: outcome === "error" ? errorMessage : void 0,
|
|
88
88
|
exportName: entry.exportName,
|
|
89
89
|
messageId: message.id,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/queue",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.5",
|
|
4
4
|
"description": "Cloudflare Queues for Lunora: defineQueue producers + consumers, the ctx.queues surface, and the generated queue() worker handler",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"background-jobs",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@lunora/errors": "1.0.0-alpha.
|
|
47
|
+
"@lunora/errors": "1.0.0-alpha.2"
|
|
48
48
|
},
|
|
49
49
|
"engines": {
|
|
50
50
|
"node": "^22.15.0 || >=24.11.0"
|