@lunora/platform 1.0.0-alpha.4 → 1.0.0-alpha.6
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/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -417,15 +417,15 @@ interface MessageSendRequestLike<Body = unknown> {
|
|
|
417
417
|
delaySeconds?: number;
|
|
418
418
|
}
|
|
419
419
|
/**
|
|
420
|
-
* Minimal structural projection of workers-types' `Queue
|
|
420
|
+
* Minimal structural projection of workers-types' `Queue<Body>` (the producer
|
|
421
421
|
* binding). The real binding's `send`/`sendBatch` resolve to a metadata object;
|
|
422
|
-
* we widen the return to `Promise
|
|
422
|
+
* we widen the return to `Promise<unknown>` so a plain-object fake satisfies it.
|
|
423
423
|
*/
|
|
424
424
|
interface QueueBindingLike<Body = unknown> {
|
|
425
425
|
send: (message: Body, options?: QueueSendOptions) => Promise<unknown>;
|
|
426
426
|
sendBatch: (messages: Iterable<MessageSendRequestLike<Body>>, options?: QueueSendBatchOptions) => Promise<unknown>;
|
|
427
427
|
}
|
|
428
|
-
/** Structural mirror of workers-types' `Message
|
|
428
|
+
/** Structural mirror of workers-types' `Message<Body>` (one delivered message). */
|
|
429
429
|
interface MessageLike<Body = unknown> {
|
|
430
430
|
/** Acknowledge this message so it is not redelivered. */
|
|
431
431
|
ack: () => void;
|
|
@@ -436,7 +436,7 @@ interface MessageLike<Body = unknown> {
|
|
|
436
436
|
retry: (options?: QueueRetryOptions) => void;
|
|
437
437
|
readonly timestamp: Date;
|
|
438
438
|
}
|
|
439
|
-
/** Structural mirror of workers-types' `MessageBatch
|
|
439
|
+
/** Structural mirror of workers-types' `MessageBatch<Body>` handed to a consumer. */
|
|
440
440
|
interface MessageBatchLike<Body = unknown> {
|
|
441
441
|
/** Acknowledge every message in the batch. */
|
|
442
442
|
ackAll: () => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -417,15 +417,15 @@ interface MessageSendRequestLike<Body = unknown> {
|
|
|
417
417
|
delaySeconds?: number;
|
|
418
418
|
}
|
|
419
419
|
/**
|
|
420
|
-
* Minimal structural projection of workers-types' `Queue
|
|
420
|
+
* Minimal structural projection of workers-types' `Queue<Body>` (the producer
|
|
421
421
|
* binding). The real binding's `send`/`sendBatch` resolve to a metadata object;
|
|
422
|
-
* we widen the return to `Promise
|
|
422
|
+
* we widen the return to `Promise<unknown>` so a plain-object fake satisfies it.
|
|
423
423
|
*/
|
|
424
424
|
interface QueueBindingLike<Body = unknown> {
|
|
425
425
|
send: (message: Body, options?: QueueSendOptions) => Promise<unknown>;
|
|
426
426
|
sendBatch: (messages: Iterable<MessageSendRequestLike<Body>>, options?: QueueSendBatchOptions) => Promise<unknown>;
|
|
427
427
|
}
|
|
428
|
-
/** Structural mirror of workers-types' `Message
|
|
428
|
+
/** Structural mirror of workers-types' `Message<Body>` (one delivered message). */
|
|
429
429
|
interface MessageLike<Body = unknown> {
|
|
430
430
|
/** Acknowledge this message so it is not redelivered. */
|
|
431
431
|
ack: () => void;
|
|
@@ -436,7 +436,7 @@ interface MessageLike<Body = unknown> {
|
|
|
436
436
|
retry: (options?: QueueRetryOptions) => void;
|
|
437
437
|
readonly timestamp: Date;
|
|
438
438
|
}
|
|
439
|
-
/** Structural mirror of workers-types' `MessageBatch
|
|
439
|
+
/** Structural mirror of workers-types' `MessageBatch<Body>` handed to a consumer. */
|
|
440
440
|
interface MessageBatchLike<Body = unknown> {
|
|
441
441
|
/** Acknowledge every message in the batch. */
|
|
442
442
|
ackAll: () => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/platform",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.6",
|
|
4
4
|
"description": "Provider-neutral host contracts for Lunora: shard/socket/directory/scheduler interfaces, binding projections, and the platform capability matrix",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|