@byok-sdk/cloud-do 0.30.2 → 0.32.0
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/README.md +12 -10
- package/dist/cloud-state.d.ts +0 -4
- package/dist/index.js +39 -3875
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -4,14 +4,16 @@ This package hosts a pi-durable session in a Cloudflare Durable Object.
|
|
|
4
4
|
It provides native SQLite storage, inline tools, wake and inbox processing,
|
|
5
5
|
usage limits, settlement hooks, and transcript reads.
|
|
6
6
|
|
|
7
|
-
The current stable release is 0.
|
|
7
|
+
The current stable release is 0.31.0, in the nine-package release set,
|
|
8
8
|
published on npm `latest`. From 0.28.2, keys carries the same version. The npm
|
|
9
|
-
registry
|
|
10
|
-
packages. See the [release notes](../../docs/releases/v0.
|
|
11
|
-
The earlier stable releases were 0.30.
|
|
12
|
-
(published 2026-10-23, UTC), 0.28.3 and 0.28.2 (published
|
|
13
|
-
0.28.1 / keys 0.13.1 (published 2026-10-21, UTC) and
|
|
14
|
-
(published 2026-10-20, UTC); see the
|
|
9
|
+
registry readback of 2026-10-29 (UTC) lists 0.31.0 as `latest` for all nine
|
|
10
|
+
packages. See the [release notes](../../docs/releases/v0.31.0.md).
|
|
11
|
+
The earlier stable releases were 0.30.2 (published 2026-10-26, UTC), 0.30.1
|
|
12
|
+
and 0.30.0 (published 2026-10-24, UTC), 0.29.0 (published 2026-10-23, UTC), 0.28.3 and 0.28.2 (published
|
|
13
|
+
2026-10-22, UTC), 0.28.1 / keys 0.13.1 (published 2026-10-21, UTC) and
|
|
14
|
+
0.28.0 / keys 0.13.0 (published 2026-10-20, UTC); see the
|
|
15
|
+
[0.30.2 release notes](../../docs/releases/v0.30.2.md), the
|
|
16
|
+
[0.30.1 release notes](../../docs/releases/v0.30.1.md), the
|
|
15
17
|
[0.30.0 release notes](../../docs/releases/v0.30.0.md), the
|
|
16
18
|
[0.29.0 release notes](../../docs/releases/v0.29.0.md), the
|
|
17
19
|
[0.28.3 release notes](../../docs/releases/v0.28.3.md), the
|
|
@@ -40,12 +42,12 @@ The package needs Node 24.22.1 or later for build tooling.
|
|
|
40
42
|
|
|
41
43
|
## Install and subclass
|
|
42
44
|
|
|
43
|
-
The following install example names the unpublished 0.
|
|
44
|
-
Use 0.
|
|
45
|
+
The following install example names the unpublished 0.32.0 source candidate.
|
|
46
|
+
Use 0.31.0 until publication is confirmed.
|
|
45
47
|
Use an installed package to verify the consumer path.
|
|
46
48
|
|
|
47
49
|
~~~sh
|
|
48
|
-
npm install @byok-sdk/cloud-do@0.
|
|
50
|
+
npm install @byok-sdk/cloud-do@0.32.0
|
|
49
51
|
npm install --save-dev @cloudflare/workers-types
|
|
50
52
|
~~~
|
|
51
53
|
|
package/dist/cloud-state.d.ts
CHANGED
|
@@ -36,7 +36,6 @@ export interface RunRow extends ExecutionRow {
|
|
|
36
36
|
admittedSeqs: string | null;
|
|
37
37
|
settlementAck: number | null;
|
|
38
38
|
revision: number | null;
|
|
39
|
-
membershipPending: number | null;
|
|
40
39
|
}
|
|
41
40
|
export interface TranscriptCursor {
|
|
42
41
|
horizon: number;
|
|
@@ -155,7 +154,6 @@ export declare class CloudState {
|
|
|
155
154
|
constructor(storage: DurableObjectStorage);
|
|
156
155
|
private rows;
|
|
157
156
|
ensureSchema(): void;
|
|
158
|
-
private migrate;
|
|
159
157
|
readInboxItem(seq: number): InboxRow | undefined;
|
|
160
158
|
run(conversationId: number): RunRow | undefined;
|
|
161
159
|
unsettledRuns(): RunRow[];
|
|
@@ -164,8 +162,6 @@ export declare class CloudState {
|
|
|
164
162
|
private stamp;
|
|
165
163
|
claimedSeqs(id: number): number[];
|
|
166
164
|
markInputDurable(id: number, seqs: readonly number[]): void;
|
|
167
|
-
pendingBackfills(before?: number): RunRow[];
|
|
168
|
-
applyBackfill(id: number, seqs: readonly number[]): void;
|
|
169
165
|
unackedRuns(): RunRow[];
|
|
170
166
|
ackSettlement(id: number, guard: CloudOperationGuard, now?: number): boolean;
|
|
171
167
|
/** Read-only preflight also works before this DO has initialized its schema. */
|