@livestore/sync-cf 0.3.0 → 0.3.1
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 +201 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/cf-worker/durable-object.d.ts +51 -55
- package/dist/cf-worker/durable-object.d.ts.map +1 -1
- package/package.json +4 -3
|
@@ -6,62 +6,58 @@ export interface Env {
|
|
|
6
6
|
DB: D1Database;
|
|
7
7
|
ADMIN_SECRET: string;
|
|
8
8
|
}
|
|
9
|
-
export declare const eventlogTable: State.SQLite.TableDef<{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
nullable: false;
|
|
17
|
-
primaryKey: true;
|
|
18
|
-
};
|
|
19
|
-
readonly parentSeqNum: {
|
|
20
|
-
columnType: "integer";
|
|
21
|
-
schema: Schema.Schema<number & import("effect/Brand").Brand<"GlobalEventSequenceNumber">, number, never>;
|
|
22
|
-
default: Option.None<never>;
|
|
23
|
-
nullable: false;
|
|
24
|
-
primaryKey: false;
|
|
25
|
-
};
|
|
26
|
-
readonly name: {
|
|
27
|
-
columnType: "text";
|
|
28
|
-
schema: Schema.Schema<string, string, never>;
|
|
29
|
-
default: Option.None<never>;
|
|
30
|
-
nullable: false;
|
|
31
|
-
primaryKey: false;
|
|
32
|
-
};
|
|
33
|
-
readonly args: {
|
|
34
|
-
columnType: "text";
|
|
35
|
-
schema: Schema.Schema<any, string | null, never>;
|
|
36
|
-
default: Option.None<never>;
|
|
37
|
-
nullable: true;
|
|
38
|
-
primaryKey: false;
|
|
39
|
-
};
|
|
40
|
-
readonly createdAt: {
|
|
41
|
-
columnType: "text";
|
|
42
|
-
schema: Schema.Schema<string, string, never>;
|
|
43
|
-
default: Option.None<never>;
|
|
44
|
-
nullable: false;
|
|
45
|
-
primaryKey: false;
|
|
46
|
-
};
|
|
47
|
-
readonly clientId: {
|
|
48
|
-
columnType: "text";
|
|
49
|
-
schema: Schema.Schema<string, string, never>;
|
|
50
|
-
default: Option.None<never>;
|
|
51
|
-
nullable: false;
|
|
52
|
-
primaryKey: false;
|
|
53
|
-
};
|
|
54
|
-
readonly sessionId: {
|
|
55
|
-
columnType: "text";
|
|
56
|
-
schema: Schema.Schema<string, string, never>;
|
|
57
|
-
default: Option.None<never>;
|
|
58
|
-
nullable: false;
|
|
59
|
-
primaryKey: false;
|
|
60
|
-
};
|
|
9
|
+
export declare const eventlogTable: State.SQLite.TableDef<State.SQLite.SqliteTableDefForInput<"eventlog_${PERSISTENCE_FORMAT_VERSION}_${storeId}", {
|
|
10
|
+
readonly seqNum: {
|
|
11
|
+
columnType: "integer";
|
|
12
|
+
schema: Schema.Schema<number & import("effect/Brand").Brand<"GlobalEventSequenceNumber">, number, never>;
|
|
13
|
+
default: Option.None<never>;
|
|
14
|
+
nullable: false;
|
|
15
|
+
primaryKey: true;
|
|
61
16
|
};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
17
|
+
readonly parentSeqNum: {
|
|
18
|
+
columnType: "integer";
|
|
19
|
+
schema: Schema.Schema<number & import("effect/Brand").Brand<"GlobalEventSequenceNumber">, number, never>;
|
|
20
|
+
default: Option.None<never>;
|
|
21
|
+
nullable: false;
|
|
22
|
+
primaryKey: false;
|
|
23
|
+
};
|
|
24
|
+
readonly name: {
|
|
25
|
+
columnType: "text";
|
|
26
|
+
schema: Schema.Schema<string, string, never>;
|
|
27
|
+
default: Option.None<never>;
|
|
28
|
+
nullable: false;
|
|
29
|
+
primaryKey: false;
|
|
30
|
+
};
|
|
31
|
+
readonly args: {
|
|
32
|
+
columnType: "text";
|
|
33
|
+
schema: Schema.Schema<any, string | null, never>;
|
|
34
|
+
default: Option.None<never>;
|
|
35
|
+
nullable: true;
|
|
36
|
+
primaryKey: false;
|
|
37
|
+
};
|
|
38
|
+
/** ISO date format. Currently only used for debugging purposes. */
|
|
39
|
+
readonly createdAt: {
|
|
40
|
+
columnType: "text";
|
|
41
|
+
schema: Schema.Schema<string, string, never>;
|
|
42
|
+
default: Option.None<never>;
|
|
43
|
+
nullable: false;
|
|
44
|
+
primaryKey: false;
|
|
45
|
+
};
|
|
46
|
+
readonly clientId: {
|
|
47
|
+
columnType: "text";
|
|
48
|
+
schema: Schema.Schema<string, string, never>;
|
|
49
|
+
default: Option.None<never>;
|
|
50
|
+
nullable: false;
|
|
51
|
+
primaryKey: false;
|
|
52
|
+
};
|
|
53
|
+
readonly sessionId: {
|
|
54
|
+
columnType: "text";
|
|
55
|
+
schema: Schema.Schema<string, string, never>;
|
|
56
|
+
default: Option.None<never>;
|
|
57
|
+
nullable: false;
|
|
58
|
+
primaryKey: false;
|
|
59
|
+
};
|
|
60
|
+
}>, {
|
|
65
61
|
isClientDocumentTable: false;
|
|
66
62
|
requiredInsertColumnNames: "createdAt" | "name" | "seqNum" | "parentSeqNum" | "clientId" | "sessionId";
|
|
67
63
|
}, Schema.Schema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"durable-object.d.ts","sourceRoot":"","sources":["../../src/cf-worker/durable-object.ts"],"names":[],"mappings":"AACA,OAAO,EAA4C,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAE1F,OAAO,EAAE,MAAM,EAAoB,MAAM,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAClF,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAElD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAG5C,MAAM,WAAW,GAAG;IAClB,EAAE,EAAE,UAAU,CAAA;IACd,YAAY,EAAE,MAAM,CAAA;CACrB;AAQD,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"durable-object.d.ts","sourceRoot":"","sources":["../../src/cf-worker/durable-object.ts"],"names":[],"mappings":"AACA,OAAO,EAA4C,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAE1F,OAAO,EAAE,MAAM,EAAoB,MAAM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GAAG,aAAa,CAAC,GAAG,CAAC,CAAA;CAC5D,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,sBAmP/B,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livestore/sync-cf",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"exports": {
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@livestore/common": "0.3.
|
|
18
|
-
"@livestore/utils": "0.3.
|
|
17
|
+
"@livestore/common": "0.3.1",
|
|
18
|
+
"@livestore/utils": "0.3.1"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@cloudflare/workers-types": "^4.20250303.0"
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"package.json",
|
|
27
27
|
"README.md"
|
|
28
28
|
],
|
|
29
|
+
"license": "Apache-2.0",
|
|
29
30
|
"publishConfig": {
|
|
30
31
|
"access": "public"
|
|
31
32
|
},
|