@lunora/do 1.0.0-alpha.297 → 1.0.0-alpha.299
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
|
@@ -1975,6 +1975,15 @@ declare abstract class ShardDO {
|
|
|
1975
1975
|
private readonly attachmentCache;
|
|
1976
1976
|
/** Sockets whose `serializeAttachment` already reports into {@link ShardDO.attachmentCache}. */
|
|
1977
1977
|
private readonly cacheWiredSockets;
|
|
1978
|
+
/**
|
|
1979
|
+
* Sockets whose attachment the runtime refused to grow by a table set: the sets were shed for a
|
|
1980
|
+
* registration, or a widening write threw. Near the size limit every push would otherwise retry a
|
|
1981
|
+
* refused serialize; the mark lifts when an unsubscribe makes the attachment smaller, and a wake
|
|
1982
|
+
* clears it, which costs one more attempt.
|
|
1983
|
+
*/
|
|
1984
|
+
private readonly tableSetsRefused;
|
|
1985
|
+
/** One-shot warning for the first socket that could not hold its table sets. */
|
|
1986
|
+
private tableSetsRefusedWarned;
|
|
1978
1987
|
/**
|
|
1979
1988
|
* Subscriptions whose refresh keeps throwing, so a deterministic failure is
|
|
1980
1989
|
* not re-run (and re-announced) on every write flush. In memory only, like
|
|
@@ -2277,6 +2286,27 @@ declare abstract class ShardDO {
|
|
|
2277
2286
|
* hibernation/restart — drives the `unused_index` runtime advisory.
|
|
2278
2287
|
*/
|
|
2279
2288
|
private readonly usedIndexes;
|
|
2289
|
+
/**
|
|
2290
|
+
* Successful request-log rows not yet written, in dispatch order, each already
|
|
2291
|
+
* deploy-attributed and timestamped at its dispatch. Written as one batch once it
|
|
2292
|
+
* holds `min(metricsFlushEvery(), REQUEST_LOG_MAX_BATCH)` entries or
|
|
2293
|
+
* {@link REQUEST_LOG_FLUSH_DELAY_MS} after the first entry arrived, whichever
|
|
2294
|
+
* comes first, and before any error or container row and every read of
|
|
2295
|
+
* `__lunora_reqlog__` (see {@link ShardDO.flushRequestLog}). So a success row is
|
|
2296
|
+
* written at most one batch or one second after its dispatch; an instance that
|
|
2297
|
+
* dies inside that window loses those SUCCESSFUL rows. Errors are never buffered.
|
|
2298
|
+
*
|
|
2299
|
+
* A live Logs/Issues view in production catches up on the next write-flush or
|
|
2300
|
+
* error, as it always has (a success never marked the table changed); a
|
|
2301
|
+
* success it re-reads may still sit here until its batch is written. Writing
|
|
2302
|
+
* through while such a view is open would need to know one is: the socket
|
|
2303
|
+
* table index keeps no per-table count, and those views are admin-wildcard
|
|
2304
|
+
* memos that match every table, so finding one is a scan over every socket
|
|
2305
|
+
* per dispatch.
|
|
2306
|
+
*/
|
|
2307
|
+
private readonly pendingRequestLog;
|
|
2308
|
+
/** Armed when the first entry enters an empty {@link ShardDO.pendingRequestLog}; any write of the buffer clears it. */
|
|
2309
|
+
private requestLogTimer;
|
|
2280
2310
|
/**
|
|
2281
2311
|
* Per-function counters and the coalesced durable delta. Built from thunks,
|
|
2282
2312
|
* so this field initializer can run before the constructor assigns `env`
|
|
@@ -4424,6 +4454,13 @@ declare abstract class ShardDO {
|
|
|
4424
4454
|
* as this request's. The dispatch path re-pins its own afterwards.
|
|
4425
4455
|
*/
|
|
4426
4456
|
protected restoreRequestScope(scope: RequestScope): void;
|
|
4457
|
+
/**
|
|
4458
|
+
* Write the buffered successful rows so a read of `__lunora_reqlog__` is never
|
|
4459
|
+
* stale: every reader of the table calls this first, as `flushUnwrittenMetrics`
|
|
4460
|
+
* does for the metric tables. Like every success write it does not mark the
|
|
4461
|
+
* table changed; other live views catch up on the next write-flush.
|
|
4462
|
+
*/
|
|
4463
|
+
protected flushRequestLog(): void;
|
|
4427
4464
|
/** The `connect` control frame: verify a pending socket, send its identity, and fire `onConnect` once. */
|
|
4428
4465
|
private handleConnectFrame;
|
|
4429
4466
|
/** A live-query `subscribe` frame: gate it, register it on the socket, and seed it. */
|
|
@@ -5303,7 +5340,7 @@ declare abstract class ShardDO {
|
|
|
5303
5340
|
* Best-effort, exactly like `recordFunctionCall`'s durable upsert: a SQL
|
|
5304
5341
|
* failure (e.g. a test double without a `sql` handle) must NEVER turn a
|
|
5305
5342
|
* served request into a failed one, so it is swallowed. Args are redacted
|
|
5306
|
-
* inside `
|
|
5343
|
+
* inside `buildRequestLogRow` so a raw value never reaches the table.
|
|
5307
5344
|
*
|
|
5308
5345
|
* The correlated fields all come from data the dispatch already holds, with
|
|
5309
5346
|
* no extra hot-path bookkeeping. `tablesWritten` is snapshotted from
|
|
@@ -5343,6 +5380,45 @@ declare abstract class ShardDO {
|
|
|
5343
5380
|
* `LUNORA_REQUEST_LOG_EMIT` so a hot shard doesn't emit a line per call.
|
|
5344
5381
|
*/
|
|
5345
5382
|
private persistRequestLog;
|
|
5383
|
+
/**
|
|
5384
|
+
* Write every buffered request-log row. Best-effort and never retried: the
|
|
5385
|
+
* buffer is emptied before the write, so a failing SQL handle drops the batch
|
|
5386
|
+
* instead of failing the request or growing the buffer forever. The exception is
|
|
5387
|
+
* a host refusal, see {@link ShardDO.keepRefusedRequestLogRows}.
|
|
5388
|
+
* @returns whether refused rows were put back; the newest row is then among them
|
|
5389
|
+
*/
|
|
5390
|
+
private writePendingRequestLog;
|
|
5391
|
+
/**
|
|
5392
|
+
* Re-run the live Logs/Issues subscriptions after a retried error row landed.
|
|
5393
|
+
* Merged straight into the refresh state, as the global poll tick does, rather
|
|
5394
|
+
* than through `recordChangedTable` + `flushChangedTables`: this can run from the
|
|
5395
|
+
* timer or inside another dispatch, and draining the shared changed-table set
|
|
5396
|
+
* there would take an in-flight dispatch's writes from it. Never throws.
|
|
5397
|
+
*/
|
|
5398
|
+
private refreshForRetriedErrorRows;
|
|
5399
|
+
/**
|
|
5400
|
+
* Put rows the host refused with `SHARD_UNAVAILABLE` back at the front of the
|
|
5401
|
+
* buffer and retry them on the timer. The Node host refuses SQL from any task but
|
|
5402
|
+
* the one holding an open transaction, so a flush that lands while a mutation
|
|
5403
|
+
* awaits (the timer, a query's count flush, a read) would otherwise lose the
|
|
5404
|
+
* batch. Nothing of a refused row was written, so retrying it cannot duplicate.
|
|
5405
|
+
*
|
|
5406
|
+
* The buffer stays bounded at {@link REQUEST_LOG_MAX_BATCH}: past it, the oldest
|
|
5407
|
+
* rows are dropped, successes before errors, and an error row is never dropped
|
|
5408
|
+
* while a success remains. The retry runs only while rows are buffered, and any
|
|
5409
|
+
* dispatch arriving meanwhile flushes as usual.
|
|
5410
|
+
*/
|
|
5411
|
+
private keepRefusedRequestLogRows;
|
|
5412
|
+
/**
|
|
5413
|
+
* Arm the one-shot {@link REQUEST_LOG_FLUSH_DELAY_MS} write of the buffer, unless
|
|
5414
|
+
* one is already pending: a burst arms one timer, never one per dispatch. The
|
|
5415
|
+
* write runs outside any request, so it swallows everything rather than throw
|
|
5416
|
+
* into the event loop. Like every success write it does not mark the table
|
|
5417
|
+
* changed; only landing an error row the host refused earlier refreshes (see
|
|
5418
|
+
* {@link ShardDO.refreshForRetriedErrorRows}). On Cloudflare a pending timer keeps the instance from hibernating
|
|
5419
|
+
* until it fires, at most this one delay per burst.
|
|
5420
|
+
*/
|
|
5421
|
+
private armRequestLogTimer;
|
|
5346
5422
|
/**
|
|
5347
5423
|
* Stamp the deploying Worker's version onto a request-log entry, so the
|
|
5348
5424
|
* durable row AND the emitted Workers-Logs event both carry it.
|
|
@@ -6484,6 +6560,33 @@ declare abstract class ShardDO {
|
|
|
6484
6560
|
* write-flush can diff against it.
|
|
6485
6561
|
*/
|
|
6486
6562
|
private seedSubscriptionMemo;
|
|
6563
|
+
/**
|
|
6564
|
+
* Lift `ws`'s `tableSetsRefused` mark ahead of a subscribe that replaces an id, which can shrink the
|
|
6565
|
+
* attachment enough to fit table sets again. Lifted before the write, so a write that has to shed the
|
|
6566
|
+
* sets marks the socket again; the returned call puts the mark back when that write fails and rolls back.
|
|
6567
|
+
*/
|
|
6568
|
+
private liftRefusedMark;
|
|
6569
|
+
private markTableSetsRefused;
|
|
6570
|
+
/**
|
|
6571
|
+
* Remove `subId`'s persisted table set, if it has one, so after a wake it counts as unknown and
|
|
6572
|
+
* re-runs. The attachment without the entry is smaller than the one the runtime holds, so it fits.
|
|
6573
|
+
*/
|
|
6574
|
+
private dropSubscriptionTables;
|
|
6575
|
+
/**
|
|
6576
|
+
* Fold the tables `subId`'s memo just recorded into the attachment's `subTables`, the
|
|
6577
|
+
* copy of its dependency set that outlives hibernation. Every memo table write goes
|
|
6578
|
+
* through here: the persisted set may over-cover a cold memo, never under-cover it.
|
|
6579
|
+
* Writes only when the set grows, so a steady subscription costs no attachment write.
|
|
6580
|
+
*
|
|
6581
|
+
* A memo that re-runs on every write (admin wildcard, `retryData`) leaves no entry, and
|
|
6582
|
+
* so does a widened set the runtime refuses to store: keeping the older, smaller set
|
|
6583
|
+
* would let a write to the newly read table skip the subscription after a wake. The
|
|
6584
|
+
* attachment without the entry is smaller than the one the runtime already holds, so
|
|
6585
|
+
* it fits. A socket the runtime refused once is not widened again until an unsubscribe
|
|
6586
|
+
* frees room (see `tableSetsRefused`). Never throws: a lost entry only costs a re-run
|
|
6587
|
+
* after the next wake.
|
|
6588
|
+
*/
|
|
6589
|
+
private persistSubscriptionTables;
|
|
6487
6590
|
/**
|
|
6488
6591
|
* Memoise `outcome` for `(ws, subId)` and push it to the socket, unless an
|
|
6489
6592
|
* identical result was already sent. Always refreshes the memo's table set
|
|
@@ -7013,9 +7116,15 @@ declare abstract class ShardDO {
|
|
|
7013
7116
|
private readAttachmentCopy;
|
|
7014
7117
|
/**
|
|
7015
7118
|
* Persist `value` as the socket's attachment and cache it; `undefined` clears
|
|
7016
|
-
* both. The caller must not mutate `value` afterwards.
|
|
7017
|
-
*
|
|
7018
|
-
*
|
|
7119
|
+
* both. The caller must not mutate `value` afterwards.
|
|
7120
|
+
*
|
|
7121
|
+
* The table sets in `subTables` are optional and share the size limit with
|
|
7122
|
+
* everything a socket must hold, so a write the runtime refuses is retried
|
|
7123
|
+
* once as a copy without them: a registration never fails for
|
|
7124
|
+
* their sake, and their subscriptions re-run after a wake until a run records
|
|
7125
|
+
* them again. `shedTableSets: false` refuses that retry, for the write that
|
|
7126
|
+
* only widens one set. A write that still fails drops the cache entry and
|
|
7127
|
+
* rethrows, so the next read decodes what storage actually holds.
|
|
7019
7128
|
*/
|
|
7020
7129
|
private writeAttachment;
|
|
7021
7130
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1975,6 +1975,15 @@ declare abstract class ShardDO {
|
|
|
1975
1975
|
private readonly attachmentCache;
|
|
1976
1976
|
/** Sockets whose `serializeAttachment` already reports into {@link ShardDO.attachmentCache}. */
|
|
1977
1977
|
private readonly cacheWiredSockets;
|
|
1978
|
+
/**
|
|
1979
|
+
* Sockets whose attachment the runtime refused to grow by a table set: the sets were shed for a
|
|
1980
|
+
* registration, or a widening write threw. Near the size limit every push would otherwise retry a
|
|
1981
|
+
* refused serialize; the mark lifts when an unsubscribe makes the attachment smaller, and a wake
|
|
1982
|
+
* clears it, which costs one more attempt.
|
|
1983
|
+
*/
|
|
1984
|
+
private readonly tableSetsRefused;
|
|
1985
|
+
/** One-shot warning for the first socket that could not hold its table sets. */
|
|
1986
|
+
private tableSetsRefusedWarned;
|
|
1978
1987
|
/**
|
|
1979
1988
|
* Subscriptions whose refresh keeps throwing, so a deterministic failure is
|
|
1980
1989
|
* not re-run (and re-announced) on every write flush. In memory only, like
|
|
@@ -2277,6 +2286,27 @@ declare abstract class ShardDO {
|
|
|
2277
2286
|
* hibernation/restart — drives the `unused_index` runtime advisory.
|
|
2278
2287
|
*/
|
|
2279
2288
|
private readonly usedIndexes;
|
|
2289
|
+
/**
|
|
2290
|
+
* Successful request-log rows not yet written, in dispatch order, each already
|
|
2291
|
+
* deploy-attributed and timestamped at its dispatch. Written as one batch once it
|
|
2292
|
+
* holds `min(metricsFlushEvery(), REQUEST_LOG_MAX_BATCH)` entries or
|
|
2293
|
+
* {@link REQUEST_LOG_FLUSH_DELAY_MS} after the first entry arrived, whichever
|
|
2294
|
+
* comes first, and before any error or container row and every read of
|
|
2295
|
+
* `__lunora_reqlog__` (see {@link ShardDO.flushRequestLog}). So a success row is
|
|
2296
|
+
* written at most one batch or one second after its dispatch; an instance that
|
|
2297
|
+
* dies inside that window loses those SUCCESSFUL rows. Errors are never buffered.
|
|
2298
|
+
*
|
|
2299
|
+
* A live Logs/Issues view in production catches up on the next write-flush or
|
|
2300
|
+
* error, as it always has (a success never marked the table changed); a
|
|
2301
|
+
* success it re-reads may still sit here until its batch is written. Writing
|
|
2302
|
+
* through while such a view is open would need to know one is: the socket
|
|
2303
|
+
* table index keeps no per-table count, and those views are admin-wildcard
|
|
2304
|
+
* memos that match every table, so finding one is a scan over every socket
|
|
2305
|
+
* per dispatch.
|
|
2306
|
+
*/
|
|
2307
|
+
private readonly pendingRequestLog;
|
|
2308
|
+
/** Armed when the first entry enters an empty {@link ShardDO.pendingRequestLog}; any write of the buffer clears it. */
|
|
2309
|
+
private requestLogTimer;
|
|
2280
2310
|
/**
|
|
2281
2311
|
* Per-function counters and the coalesced durable delta. Built from thunks,
|
|
2282
2312
|
* so this field initializer can run before the constructor assigns `env`
|
|
@@ -4424,6 +4454,13 @@ declare abstract class ShardDO {
|
|
|
4424
4454
|
* as this request's. The dispatch path re-pins its own afterwards.
|
|
4425
4455
|
*/
|
|
4426
4456
|
protected restoreRequestScope(scope: RequestScope): void;
|
|
4457
|
+
/**
|
|
4458
|
+
* Write the buffered successful rows so a read of `__lunora_reqlog__` is never
|
|
4459
|
+
* stale: every reader of the table calls this first, as `flushUnwrittenMetrics`
|
|
4460
|
+
* does for the metric tables. Like every success write it does not mark the
|
|
4461
|
+
* table changed; other live views catch up on the next write-flush.
|
|
4462
|
+
*/
|
|
4463
|
+
protected flushRequestLog(): void;
|
|
4427
4464
|
/** The `connect` control frame: verify a pending socket, send its identity, and fire `onConnect` once. */
|
|
4428
4465
|
private handleConnectFrame;
|
|
4429
4466
|
/** A live-query `subscribe` frame: gate it, register it on the socket, and seed it. */
|
|
@@ -5303,7 +5340,7 @@ declare abstract class ShardDO {
|
|
|
5303
5340
|
* Best-effort, exactly like `recordFunctionCall`'s durable upsert: a SQL
|
|
5304
5341
|
* failure (e.g. a test double without a `sql` handle) must NEVER turn a
|
|
5305
5342
|
* served request into a failed one, so it is swallowed. Args are redacted
|
|
5306
|
-
* inside `
|
|
5343
|
+
* inside `buildRequestLogRow` so a raw value never reaches the table.
|
|
5307
5344
|
*
|
|
5308
5345
|
* The correlated fields all come from data the dispatch already holds, with
|
|
5309
5346
|
* no extra hot-path bookkeeping. `tablesWritten` is snapshotted from
|
|
@@ -5343,6 +5380,45 @@ declare abstract class ShardDO {
|
|
|
5343
5380
|
* `LUNORA_REQUEST_LOG_EMIT` so a hot shard doesn't emit a line per call.
|
|
5344
5381
|
*/
|
|
5345
5382
|
private persistRequestLog;
|
|
5383
|
+
/**
|
|
5384
|
+
* Write every buffered request-log row. Best-effort and never retried: the
|
|
5385
|
+
* buffer is emptied before the write, so a failing SQL handle drops the batch
|
|
5386
|
+
* instead of failing the request or growing the buffer forever. The exception is
|
|
5387
|
+
* a host refusal, see {@link ShardDO.keepRefusedRequestLogRows}.
|
|
5388
|
+
* @returns whether refused rows were put back; the newest row is then among them
|
|
5389
|
+
*/
|
|
5390
|
+
private writePendingRequestLog;
|
|
5391
|
+
/**
|
|
5392
|
+
* Re-run the live Logs/Issues subscriptions after a retried error row landed.
|
|
5393
|
+
* Merged straight into the refresh state, as the global poll tick does, rather
|
|
5394
|
+
* than through `recordChangedTable` + `flushChangedTables`: this can run from the
|
|
5395
|
+
* timer or inside another dispatch, and draining the shared changed-table set
|
|
5396
|
+
* there would take an in-flight dispatch's writes from it. Never throws.
|
|
5397
|
+
*/
|
|
5398
|
+
private refreshForRetriedErrorRows;
|
|
5399
|
+
/**
|
|
5400
|
+
* Put rows the host refused with `SHARD_UNAVAILABLE` back at the front of the
|
|
5401
|
+
* buffer and retry them on the timer. The Node host refuses SQL from any task but
|
|
5402
|
+
* the one holding an open transaction, so a flush that lands while a mutation
|
|
5403
|
+
* awaits (the timer, a query's count flush, a read) would otherwise lose the
|
|
5404
|
+
* batch. Nothing of a refused row was written, so retrying it cannot duplicate.
|
|
5405
|
+
*
|
|
5406
|
+
* The buffer stays bounded at {@link REQUEST_LOG_MAX_BATCH}: past it, the oldest
|
|
5407
|
+
* rows are dropped, successes before errors, and an error row is never dropped
|
|
5408
|
+
* while a success remains. The retry runs only while rows are buffered, and any
|
|
5409
|
+
* dispatch arriving meanwhile flushes as usual.
|
|
5410
|
+
*/
|
|
5411
|
+
private keepRefusedRequestLogRows;
|
|
5412
|
+
/**
|
|
5413
|
+
* Arm the one-shot {@link REQUEST_LOG_FLUSH_DELAY_MS} write of the buffer, unless
|
|
5414
|
+
* one is already pending: a burst arms one timer, never one per dispatch. The
|
|
5415
|
+
* write runs outside any request, so it swallows everything rather than throw
|
|
5416
|
+
* into the event loop. Like every success write it does not mark the table
|
|
5417
|
+
* changed; only landing an error row the host refused earlier refreshes (see
|
|
5418
|
+
* {@link ShardDO.refreshForRetriedErrorRows}). On Cloudflare a pending timer keeps the instance from hibernating
|
|
5419
|
+
* until it fires, at most this one delay per burst.
|
|
5420
|
+
*/
|
|
5421
|
+
private armRequestLogTimer;
|
|
5346
5422
|
/**
|
|
5347
5423
|
* Stamp the deploying Worker's version onto a request-log entry, so the
|
|
5348
5424
|
* durable row AND the emitted Workers-Logs event both carry it.
|
|
@@ -6484,6 +6560,33 @@ declare abstract class ShardDO {
|
|
|
6484
6560
|
* write-flush can diff against it.
|
|
6485
6561
|
*/
|
|
6486
6562
|
private seedSubscriptionMemo;
|
|
6563
|
+
/**
|
|
6564
|
+
* Lift `ws`'s `tableSetsRefused` mark ahead of a subscribe that replaces an id, which can shrink the
|
|
6565
|
+
* attachment enough to fit table sets again. Lifted before the write, so a write that has to shed the
|
|
6566
|
+
* sets marks the socket again; the returned call puts the mark back when that write fails and rolls back.
|
|
6567
|
+
*/
|
|
6568
|
+
private liftRefusedMark;
|
|
6569
|
+
private markTableSetsRefused;
|
|
6570
|
+
/**
|
|
6571
|
+
* Remove `subId`'s persisted table set, if it has one, so after a wake it counts as unknown and
|
|
6572
|
+
* re-runs. The attachment without the entry is smaller than the one the runtime holds, so it fits.
|
|
6573
|
+
*/
|
|
6574
|
+
private dropSubscriptionTables;
|
|
6575
|
+
/**
|
|
6576
|
+
* Fold the tables `subId`'s memo just recorded into the attachment's `subTables`, the
|
|
6577
|
+
* copy of its dependency set that outlives hibernation. Every memo table write goes
|
|
6578
|
+
* through here: the persisted set may over-cover a cold memo, never under-cover it.
|
|
6579
|
+
* Writes only when the set grows, so a steady subscription costs no attachment write.
|
|
6580
|
+
*
|
|
6581
|
+
* A memo that re-runs on every write (admin wildcard, `retryData`) leaves no entry, and
|
|
6582
|
+
* so does a widened set the runtime refuses to store: keeping the older, smaller set
|
|
6583
|
+
* would let a write to the newly read table skip the subscription after a wake. The
|
|
6584
|
+
* attachment without the entry is smaller than the one the runtime already holds, so
|
|
6585
|
+
* it fits. A socket the runtime refused once is not widened again until an unsubscribe
|
|
6586
|
+
* frees room (see `tableSetsRefused`). Never throws: a lost entry only costs a re-run
|
|
6587
|
+
* after the next wake.
|
|
6588
|
+
*/
|
|
6589
|
+
private persistSubscriptionTables;
|
|
6487
6590
|
/**
|
|
6488
6591
|
* Memoise `outcome` for `(ws, subId)` and push it to the socket, unless an
|
|
6489
6592
|
* identical result was already sent. Always refreshes the memo's table set
|
|
@@ -7013,9 +7116,15 @@ declare abstract class ShardDO {
|
|
|
7013
7116
|
private readAttachmentCopy;
|
|
7014
7117
|
/**
|
|
7015
7118
|
* Persist `value` as the socket's attachment and cache it; `undefined` clears
|
|
7016
|
-
* both. The caller must not mutate `value` afterwards.
|
|
7017
|
-
*
|
|
7018
|
-
*
|
|
7119
|
+
* both. The caller must not mutate `value` afterwards.
|
|
7120
|
+
*
|
|
7121
|
+
* The table sets in `subTables` are optional and share the size limit with
|
|
7122
|
+
* everything a socket must hold, so a write the runtime refuses is retried
|
|
7123
|
+
* once as a copy without them: a registration never fails for
|
|
7124
|
+
* their sake, and their subscriptions re-run after a wake until a run records
|
|
7125
|
+
* them again. `shedTableSets: false` refuses that retry, for the write that
|
|
7126
|
+
* only widens one set. A write that still fails drops the cache entry and
|
|
7127
|
+
* rethrows, so the next read decodes what storage actually holds.
|
|
7019
7128
|
*/
|
|
7020
7129
|
private writeAttachment;
|
|
7021
7130
|
}
|
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-C9ZFrXD-.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};
|