@lunora/do 1.0.0-alpha.294 → 1.0.0-alpha.295
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
CHANGED
|
@@ -3228,8 +3228,12 @@ declare abstract class ShardDO {
|
|
|
3228
3228
|
* Rows applied before it are ALREADY COMMITTED — the writer commits per row —
|
|
3229
3229
|
* so the caller must flush on the failure path too; {@link handleBulkRowOp}
|
|
3230
3230
|
* owns that, alongside every other admin arm's flush.
|
|
3231
|
+
*
|
|
3232
|
+
* `apply` resolves `false` for a row it skipped (one that vanished between the
|
|
3233
|
+
* scan and its turn); `count` reports written rows only, while the cursor and
|
|
3234
|
+
* `hasMore` still follow the scanned ids.
|
|
3231
3235
|
*/
|
|
3232
|
-
protected runShardBulkRowOp(args: RunShardBulkRowArgs, apply: (id: string) => Promise<
|
|
3236
|
+
protected runShardBulkRowOp(args: RunShardBulkRowArgs, apply: (id: string) => Promise<boolean>, after?: string): Promise<RunShardBulkRowResult>;
|
|
3233
3237
|
/**
|
|
3234
3238
|
* Count, for the row identified by `rowId`, how many rows precede it under
|
|
3235
3239
|
* `index` within `partitionKey` on this shard (`before`) and the partition's
|
|
@@ -3556,7 +3560,10 @@ declare abstract class ShardDO {
|
|
|
3556
3560
|
* or a `"next"` push so `fetch` proceeds to the authoritative handler. Records
|
|
3557
3561
|
* the function call on the short-circuit paths so metrics stay attributed.
|
|
3558
3562
|
*/
|
|
3559
|
-
protected rejectNonNextMutation(functionPath: string, mutatorClass: ClientMutationClass | undefined, dispatchStartedAt: number
|
|
3563
|
+
protected rejectNonNextMutation(functionPath: string, mutatorClass: ClientMutationClass | undefined, dispatchStartedAt: number, dispatchCollectors: {
|
|
3564
|
+
indexHits: Set<string>;
|
|
3565
|
+
scannedTables: Set<string>;
|
|
3566
|
+
}): Response | undefined;
|
|
3560
3567
|
/**
|
|
3561
3568
|
* Respond to a dispatch that hit the `(identity, mutationId)` idempotency
|
|
3562
3569
|
* cache. Records the (zero-work) function call, then: for a `"next"` custom
|
|
@@ -3566,7 +3573,10 @@ declare abstract class ShardDO {
|
|
|
3566
3573
|
* result with a stale watermark and the client reports every later seq as a
|
|
3567
3574
|
* gap forever); for everything else, return the bare cached `{ result }`.
|
|
3568
3575
|
*/
|
|
3569
|
-
protected respondFromIdempotencyCache(functionPath: string, dispatchStartedAt: number, mutatorClass: ClientMutationClass | undefined, cachedValue: unknown
|
|
3576
|
+
protected respondFromIdempotencyCache(functionPath: string, dispatchStartedAt: number, mutatorClass: ClientMutationClass | undefined, cachedValue: unknown, dispatchCollectors: {
|
|
3577
|
+
indexHits: Set<string>;
|
|
3578
|
+
scannedTables: Set<string>;
|
|
3579
|
+
}): Response;
|
|
3570
3580
|
/**
|
|
3571
3581
|
* The CDC cursor a just-committed plain mutation landed at — the post-write
|
|
3572
3582
|
* high-watermark, on the same scale as the `cursor` on `data`/`delta` frames.
|
|
@@ -6529,6 +6539,11 @@ declare abstract class ShardDO {
|
|
|
6529
6539
|
floor?: number;
|
|
6530
6540
|
tables: string[];
|
|
6531
6541
|
} | undefined>;
|
|
6542
|
+
/**
|
|
6543
|
+
* Whether `table` holds a row with `id`: `true`/`false` when the probe runs,
|
|
6544
|
+
* `undefined` when it cannot (a missing table included) — unknown, not absent.
|
|
6545
|
+
*/
|
|
6546
|
+
private shardRowExists;
|
|
6532
6547
|
/**
|
|
6533
6548
|
* The `.global()` tables whose writes by other shards this one learns of from the global
|
|
6534
6549
|
* changelog on its poll tick. Empty without a changelog (CDC off): there is then nothing a tick
|
|
@@ -6603,7 +6618,12 @@ declare abstract class ShardDO {
|
|
|
6603
6618
|
* @returns this dispatch's trace anchor and its transaction-headroom tracker
|
|
6604
6619
|
*/
|
|
6605
6620
|
private beginDispatch;
|
|
6606
|
-
/**
|
|
6621
|
+
/**
|
|
6622
|
+
* Clear every per-request field {@link ShardDO.beginDispatch} stamped. The
|
|
6623
|
+
* collector fields are cleared only while they still point at THIS dispatch's
|
|
6624
|
+
* objects: a concurrent dispatch that began meanwhile owns them now, and
|
|
6625
|
+
* clearing would silently stop its collection.
|
|
6626
|
+
*/
|
|
6607
6627
|
private endDispatch;
|
|
6608
6628
|
/**
|
|
6609
6629
|
* Open one `.global()` poll tick: ask the global changelog what moved since
|
package/dist/index.d.ts
CHANGED
|
@@ -3228,8 +3228,12 @@ declare abstract class ShardDO {
|
|
|
3228
3228
|
* Rows applied before it are ALREADY COMMITTED — the writer commits per row —
|
|
3229
3229
|
* so the caller must flush on the failure path too; {@link handleBulkRowOp}
|
|
3230
3230
|
* owns that, alongside every other admin arm's flush.
|
|
3231
|
+
*
|
|
3232
|
+
* `apply` resolves `false` for a row it skipped (one that vanished between the
|
|
3233
|
+
* scan and its turn); `count` reports written rows only, while the cursor and
|
|
3234
|
+
* `hasMore` still follow the scanned ids.
|
|
3231
3235
|
*/
|
|
3232
|
-
protected runShardBulkRowOp(args: RunShardBulkRowArgs, apply: (id: string) => Promise<
|
|
3236
|
+
protected runShardBulkRowOp(args: RunShardBulkRowArgs, apply: (id: string) => Promise<boolean>, after?: string): Promise<RunShardBulkRowResult>;
|
|
3233
3237
|
/**
|
|
3234
3238
|
* Count, for the row identified by `rowId`, how many rows precede it under
|
|
3235
3239
|
* `index` within `partitionKey` on this shard (`before`) and the partition's
|
|
@@ -3556,7 +3560,10 @@ declare abstract class ShardDO {
|
|
|
3556
3560
|
* or a `"next"` push so `fetch` proceeds to the authoritative handler. Records
|
|
3557
3561
|
* the function call on the short-circuit paths so metrics stay attributed.
|
|
3558
3562
|
*/
|
|
3559
|
-
protected rejectNonNextMutation(functionPath: string, mutatorClass: ClientMutationClass | undefined, dispatchStartedAt: number
|
|
3563
|
+
protected rejectNonNextMutation(functionPath: string, mutatorClass: ClientMutationClass | undefined, dispatchStartedAt: number, dispatchCollectors: {
|
|
3564
|
+
indexHits: Set<string>;
|
|
3565
|
+
scannedTables: Set<string>;
|
|
3566
|
+
}): Response | undefined;
|
|
3560
3567
|
/**
|
|
3561
3568
|
* Respond to a dispatch that hit the `(identity, mutationId)` idempotency
|
|
3562
3569
|
* cache. Records the (zero-work) function call, then: for a `"next"` custom
|
|
@@ -3566,7 +3573,10 @@ declare abstract class ShardDO {
|
|
|
3566
3573
|
* result with a stale watermark and the client reports every later seq as a
|
|
3567
3574
|
* gap forever); for everything else, return the bare cached `{ result }`.
|
|
3568
3575
|
*/
|
|
3569
|
-
protected respondFromIdempotencyCache(functionPath: string, dispatchStartedAt: number, mutatorClass: ClientMutationClass | undefined, cachedValue: unknown
|
|
3576
|
+
protected respondFromIdempotencyCache(functionPath: string, dispatchStartedAt: number, mutatorClass: ClientMutationClass | undefined, cachedValue: unknown, dispatchCollectors: {
|
|
3577
|
+
indexHits: Set<string>;
|
|
3578
|
+
scannedTables: Set<string>;
|
|
3579
|
+
}): Response;
|
|
3570
3580
|
/**
|
|
3571
3581
|
* The CDC cursor a just-committed plain mutation landed at — the post-write
|
|
3572
3582
|
* high-watermark, on the same scale as the `cursor` on `data`/`delta` frames.
|
|
@@ -6529,6 +6539,11 @@ declare abstract class ShardDO {
|
|
|
6529
6539
|
floor?: number;
|
|
6530
6540
|
tables: string[];
|
|
6531
6541
|
} | undefined>;
|
|
6542
|
+
/**
|
|
6543
|
+
* Whether `table` holds a row with `id`: `true`/`false` when the probe runs,
|
|
6544
|
+
* `undefined` when it cannot (a missing table included) — unknown, not absent.
|
|
6545
|
+
*/
|
|
6546
|
+
private shardRowExists;
|
|
6532
6547
|
/**
|
|
6533
6548
|
* The `.global()` tables whose writes by other shards this one learns of from the global
|
|
6534
6549
|
* changelog on its poll tick. Empty without a changelog (CDC off): there is then nothing a tick
|
|
@@ -6603,7 +6618,12 @@ declare abstract class ShardDO {
|
|
|
6603
6618
|
* @returns this dispatch's trace anchor and its transaction-headroom tracker
|
|
6604
6619
|
*/
|
|
6605
6620
|
private beginDispatch;
|
|
6606
|
-
/**
|
|
6621
|
+
/**
|
|
6622
|
+
* Clear every per-request field {@link ShardDO.beginDispatch} stamped. The
|
|
6623
|
+
* collector fields are cleared only while they still point at THIS dispatch's
|
|
6624
|
+
* objects: a concurrent dispatch that began meanwhile owns them now, and
|
|
6625
|
+
* clearing would silently stop its collection.
|
|
6626
|
+
*/
|
|
6607
6627
|
private endDispatch;
|
|
6608
6628
|
/**
|
|
6609
6629
|
* Open one `.global()` poll tick: ask the global changelog what moved since
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{AdminRevocationDO as a}from"./packem_shared/AdminRevocationDO-DHjoZWfF.mjs";import{installDeliveryFence as t}from"./packem_shared/installDeliveryFence-B6M9KOnb.mjs";import{MERGED_ROLES as S,mergeDurableObjects as i,roleNamespace as l}from"./packem_shared/MERGED_ROLES-BAMAmIcW.mjs";import{serveRelationFanout as n}from"./packem_shared/serveRelationFanout-Bms_fuoY.mjs";import{SESSION_DO_TTL_DEFAULT as d,SessionDO as p}from"./packem_shared/SESSION_DO_TTL_DEFAULT-DSvTwRjc.mjs";import{ROOT_DO_SIZE_WARN_BYTES as D,ROOT_SHARD_NAME as O,ShardDO as E}from"./packem_shared/ROOT_DO_SIZE_WARN_BYTES-
|
|
1
|
+
import{AdminRevocationDO as a}from"./packem_shared/AdminRevocationDO-DHjoZWfF.mjs";import{installDeliveryFence as t}from"./packem_shared/installDeliveryFence-B6M9KOnb.mjs";import{MERGED_ROLES as S,mergeDurableObjects as i,roleNamespace as l}from"./packem_shared/MERGED_ROLES-BAMAmIcW.mjs";import{serveRelationFanout as n}from"./packem_shared/serveRelationFanout-Bms_fuoY.mjs";import{SESSION_DO_TTL_DEFAULT as d,SessionDO as p}from"./packem_shared/SESSION_DO_TTL_DEFAULT-DSvTwRjc.mjs";import{ROOT_DO_SIZE_WARN_BYTES as D,ROOT_SHARD_NAME as O,ShardDO as E}from"./packem_shared/ROOT_DO_SIZE_WARN_BYTES-ALVGgqTd.mjs";import{SHARD_REGISTRY_DO_NAME as h,ShardRegistryDO as x,hostedShardRegistry as f}from"./packem_shared/SHARD_REGISTRY_DO_NAME-Dbh8JQJQ.mjs";import{createStableIdFactory as A,createStableRandomFactory as I}from"./packem_shared/createStableIdFactory-DPDT_chw.mjs";import{createShardAlarms as b,createShardDirectory as M,createShardHost as N,createShardKvStore as g,createShardPlatform as y,createSocketHost as k,createWorkerPlatform as F}from"@lunora/platform-cloudflare";import{REPROJECTION_MIGRATION_PREFIX as L,UNVOUCHABLE_DEP as v,applyCdcChanges as H,assertShapeShardable as P,backfillSearchIndexes as j,backfillVectorIndexes as U,buildReprojectionMigration as w,clearMemoryTables as G,countLegacyRows as V,createReadFootprint as B,createShardCtxDb as W,exportShardRows as Y,importShardRows as J,isSourceDue as K,markUnvouchableReads as X,pullExternalSourceIncrementalTick as Z,pullExternalSourceTick as q,reprojectionMigrationId as z,reprojectionTables as Q,runDataMigration as $,runShardMigrations as ee,subscriptionListDeltas as re}from"@lunora/shard-engine";import{A as oe}from"./packem_shared/admin-token-DrufJIZV.mjs";export{oe as ADMIN_REVOCATION_DO_NAME,a as AdminRevocationDO,S as MERGED_ROLES,L as REPROJECTION_MIGRATION_PREFIX,D as ROOT_DO_SIZE_WARN_BYTES,O as ROOT_SHARD_NAME,d as SESSION_DO_TTL_DEFAULT,h as SHARD_REGISTRY_DO_NAME,p as SessionDO,E as ShardDO,x as ShardRegistryDO,v as UNVOUCHABLE_DEP,H as applyCdcChanges,P as assertShapeShardable,j as backfillSearchIndexes,U as backfillVectorIndexes,w as buildReprojectionMigration,G as clearMemoryTables,V as countLegacyRows,B as createReadFootprint,b as createShardAlarms,W as createShardCtxDb,M as createShardDirectory,N as createShardHost,g as createShardKvStore,y as createShardPlatform,k as createSocketHost,A as createStableIdFactory,I as createStableRandomFactory,F as createWorkerPlatform,Y as exportShardRows,f as hostedShardRegistry,J as importShardRows,t as installDeliveryFence,K as isSourceDue,X as markUnvouchableReads,i as mergeDurableObjects,Z as pullExternalSourceIncrementalTick,q as pullExternalSourceTick,z as reprojectionMigrationId,Q as reprojectionTables,l as roleNamespace,$ as runDataMigration,ee as runShardMigrations,n as serveRelationFanout,re as subscriptionListDeltas};
|