@livestore/common 0.0.0-snapshot-5a6440f111a5a7c2441a649866587d5d51e22820.1 → 0.0.0-snapshot-5a6440f111a5a7c2441a649866587d5d51e22820.2
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/.tsbuildinfo +1 -1
- package/dist/devtools/devtools-messages-client-session.d.ts +8 -8
- package/dist/leader-thread/leader-worker-devtools.d.ts +1 -1
- package/dist/schema/EventDef.d.ts +2 -2
- package/dist/schema/EventId.test.js +1 -1
- package/dist/schema/EventId.test.js.map +1 -1
- package/dist/schema/LiveStoreEvent.d.ts +5 -5
- package/dist/schema/state/sqlite/client-document-def.d.ts +4 -4
- package/dist/schema/state/sqlite/system-tables.d.ts +2 -2
- package/package.json +4 -3
- package/src/schema/EventId.test.ts +1 -1
- package/tsconfig.json +1 -1
|
@@ -23,38 +23,38 @@ declare const DebugInfoRes_base: Schema.Struct<{
|
|
|
23
23
|
slowQueries: Schema.transform<Schema.Struct<{
|
|
24
24
|
size: typeof Schema.Number;
|
|
25
25
|
items: Schema.Array$<Schema.Schema<{
|
|
26
|
+
readonly queryStr: string;
|
|
26
27
|
readonly bindValues: ((readonly (string | number | Uint8Array<ArrayBufferLike> | null)[] | {
|
|
27
28
|
readonly [x: string]: string | number | Uint8Array<ArrayBufferLike> | null;
|
|
28
29
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
29
|
-
readonly queryStr: string;
|
|
30
30
|
readonly durationMs: number;
|
|
31
31
|
readonly rowsCount: number | undefined;
|
|
32
32
|
readonly queriedTables: ReadonlySet<string>;
|
|
33
33
|
readonly startTimePerfNow: number;
|
|
34
34
|
}, {
|
|
35
|
+
readonly queryStr: string;
|
|
35
36
|
readonly bindValues: readonly (string | number | readonly number[] | null)[] | {
|
|
36
37
|
readonly [x: string]: string | number | readonly number[] | null;
|
|
37
38
|
} | undefined;
|
|
38
|
-
readonly queryStr: string;
|
|
39
39
|
readonly durationMs: number;
|
|
40
40
|
readonly rowsCount: number | undefined;
|
|
41
41
|
readonly queriedTables: readonly string[];
|
|
42
42
|
readonly startTimePerfNow: number;
|
|
43
43
|
}, never>>;
|
|
44
44
|
}>, Schema.Schema<import("../bounded-collections.js").BoundArray<{
|
|
45
|
+
readonly queryStr: string;
|
|
45
46
|
readonly bindValues: ((readonly (string | number | Uint8Array<ArrayBufferLike> | null)[] | {
|
|
46
47
|
readonly [x: string]: string | number | Uint8Array<ArrayBufferLike> | null;
|
|
47
48
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
48
|
-
readonly queryStr: string;
|
|
49
49
|
readonly durationMs: number;
|
|
50
50
|
readonly rowsCount: number | undefined;
|
|
51
51
|
readonly queriedTables: ReadonlySet<string>;
|
|
52
52
|
readonly startTimePerfNow: number;
|
|
53
53
|
}>, import("../bounded-collections.js").BoundArray<{
|
|
54
|
+
readonly queryStr: string;
|
|
54
55
|
readonly bindValues: ((readonly (string | number | Uint8Array<ArrayBufferLike> | null)[] | {
|
|
55
56
|
readonly [x: string]: string | number | Uint8Array<ArrayBufferLike> | null;
|
|
56
57
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
57
|
-
readonly queryStr: string;
|
|
58
58
|
readonly durationMs: number;
|
|
59
59
|
readonly rowsCount: number | undefined;
|
|
60
60
|
readonly queriedTables: ReadonlySet<string>;
|
|
@@ -96,38 +96,38 @@ declare const DebugInfoHistoryRes_base: Schema.Struct<{
|
|
|
96
96
|
slowQueries: Schema.transform<Schema.Struct<{
|
|
97
97
|
size: typeof Schema.Number;
|
|
98
98
|
items: Schema.Array$<Schema.Schema<{
|
|
99
|
+
readonly queryStr: string;
|
|
99
100
|
readonly bindValues: ((readonly (string | number | Uint8Array<ArrayBufferLike> | null)[] | {
|
|
100
101
|
readonly [x: string]: string | number | Uint8Array<ArrayBufferLike> | null;
|
|
101
102
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
102
|
-
readonly queryStr: string;
|
|
103
103
|
readonly durationMs: number;
|
|
104
104
|
readonly rowsCount: number | undefined;
|
|
105
105
|
readonly queriedTables: ReadonlySet<string>;
|
|
106
106
|
readonly startTimePerfNow: number;
|
|
107
107
|
}, {
|
|
108
|
+
readonly queryStr: string;
|
|
108
109
|
readonly bindValues: readonly (string | number | readonly number[] | null)[] | {
|
|
109
110
|
readonly [x: string]: string | number | readonly number[] | null;
|
|
110
111
|
} | undefined;
|
|
111
|
-
readonly queryStr: string;
|
|
112
112
|
readonly durationMs: number;
|
|
113
113
|
readonly rowsCount: number | undefined;
|
|
114
114
|
readonly queriedTables: readonly string[];
|
|
115
115
|
readonly startTimePerfNow: number;
|
|
116
116
|
}, never>>;
|
|
117
117
|
}>, Schema.Schema<import("../bounded-collections.js").BoundArray<{
|
|
118
|
+
readonly queryStr: string;
|
|
118
119
|
readonly bindValues: ((readonly (string | number | Uint8Array<ArrayBufferLike> | null)[] | {
|
|
119
120
|
readonly [x: string]: string | number | Uint8Array<ArrayBufferLike> | null;
|
|
120
121
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
121
|
-
readonly queryStr: string;
|
|
122
122
|
readonly durationMs: number;
|
|
123
123
|
readonly rowsCount: number | undefined;
|
|
124
124
|
readonly queriedTables: ReadonlySet<string>;
|
|
125
125
|
readonly startTimePerfNow: number;
|
|
126
126
|
}>, import("../bounded-collections.js").BoundArray<{
|
|
127
|
+
readonly queryStr: string;
|
|
127
128
|
readonly bindValues: ((readonly (string | number | Uint8Array<ArrayBufferLike> | null)[] | {
|
|
128
129
|
readonly [x: string]: string | number | Uint8Array<ArrayBufferLike> | null;
|
|
129
130
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
130
|
-
readonly queryStr: string;
|
|
131
131
|
readonly durationMs: number;
|
|
132
132
|
readonly rowsCount: number | undefined;
|
|
133
133
|
readonly queriedTables: ReadonlySet<string>;
|
|
@@ -2,5 +2,5 @@ import { Effect } from '@livestore/utils/effect';
|
|
|
2
2
|
import { UnexpectedError } from '../index.js';
|
|
3
3
|
import type { DevtoolsOptions } from './types.js';
|
|
4
4
|
import { LeaderThreadCtx } from './types.js';
|
|
5
|
-
export declare const bootDevtools: (options: DevtoolsOptions) => Effect.Effect<void, UnexpectedError,
|
|
5
|
+
export declare const bootDevtools: (options: DevtoolsOptions) => Effect.Effect<void, UnexpectedError, import("effect/Scope").Scope | LeaderThreadCtx | import("@effect/platform/HttpClient").HttpClient>;
|
|
6
6
|
//# sourceMappingURL=leader-worker-devtools.d.ts.map
|
|
@@ -107,10 +107,10 @@ export declare const materializers: <TInputRecord extends Record<string, EventDe
|
|
|
107
107
|
name: TEventName;
|
|
108
108
|
}>>; };
|
|
109
109
|
export declare const rawSqlEvent: EventDef<"livestore.RawSql", {
|
|
110
|
-
readonly sql: string;
|
|
111
110
|
readonly bindValues?: {
|
|
112
111
|
readonly [x: string]: any;
|
|
113
112
|
} | undefined;
|
|
113
|
+
readonly sql: string;
|
|
114
114
|
readonly writeTables?: ReadonlySet<string> | undefined;
|
|
115
115
|
}, {
|
|
116
116
|
readonly sql: string;
|
|
@@ -120,10 +120,10 @@ export declare const rawSqlEvent: EventDef<"livestore.RawSql", {
|
|
|
120
120
|
readonly writeTables?: readonly string[] | undefined;
|
|
121
121
|
}, true>;
|
|
122
122
|
export declare const rawSqlMaterializer: Materializer<EventDef<"livestore.RawSql", {
|
|
123
|
-
readonly sql: string;
|
|
124
123
|
readonly bindValues?: {
|
|
125
124
|
readonly [x: string]: any;
|
|
126
125
|
} | undefined;
|
|
126
|
+
readonly sql: string;
|
|
127
127
|
readonly writeTables?: ReadonlySet<string> | undefined;
|
|
128
128
|
}, {
|
|
129
129
|
readonly sql: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventId.test.js","sourceRoot":"","sources":["../../src/schema/EventId.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"EventId.test.js","sourceRoot":"","sources":["../../src/schema/EventId.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE/B,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAElC,MAAM,CAAC,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IAC9B,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,GAAG,EAAE;QAC3B,MAAM,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAA;QACpD,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAA;QACjF,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAA;IAClF,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -126,8 +126,8 @@ declare const EncodedWithMeta_base: Schema.Class<EncodedWithMeta, {
|
|
|
126
126
|
sessionId: typeof Schema.String;
|
|
127
127
|
meta: Schema.PropertySignature<":", {
|
|
128
128
|
sessionChangeset: {
|
|
129
|
-
readonly debug?: any;
|
|
130
129
|
readonly _tag: "sessionChangeset";
|
|
130
|
+
readonly debug?: any;
|
|
131
131
|
readonly data: Uint8Array<ArrayBufferLike>;
|
|
132
132
|
} | {
|
|
133
133
|
readonly _tag: "no-op";
|
|
@@ -148,8 +148,8 @@ declare const EncodedWithMeta_base: Schema.Class<EncodedWithMeta, {
|
|
|
148
148
|
syncMetadata: {
|
|
149
149
|
readonly _tag: "None";
|
|
150
150
|
} | {
|
|
151
|
-
readonly _tag: "Some";
|
|
152
151
|
readonly value: Schema.JsonValue;
|
|
152
|
+
readonly _tag: "Some";
|
|
153
153
|
};
|
|
154
154
|
} | undefined, true, never>;
|
|
155
155
|
}, Schema.Struct.Encoded<{
|
|
@@ -167,8 +167,8 @@ declare const EncodedWithMeta_base: Schema.Class<EncodedWithMeta, {
|
|
|
167
167
|
sessionId: typeof Schema.String;
|
|
168
168
|
meta: Schema.PropertySignature<":", {
|
|
169
169
|
sessionChangeset: {
|
|
170
|
-
readonly debug?: any;
|
|
171
170
|
readonly _tag: "sessionChangeset";
|
|
171
|
+
readonly debug?: any;
|
|
172
172
|
readonly data: Uint8Array<ArrayBufferLike>;
|
|
173
173
|
} | {
|
|
174
174
|
readonly _tag: "no-op";
|
|
@@ -189,8 +189,8 @@ declare const EncodedWithMeta_base: Schema.Class<EncodedWithMeta, {
|
|
|
189
189
|
syncMetadata: {
|
|
190
190
|
readonly _tag: "None";
|
|
191
191
|
} | {
|
|
192
|
-
readonly _tag: "Some";
|
|
193
192
|
readonly value: Schema.JsonValue;
|
|
193
|
+
readonly _tag: "Some";
|
|
194
194
|
};
|
|
195
195
|
} | undefined, true, never>;
|
|
196
196
|
}>, never, {
|
|
@@ -214,8 +214,8 @@ declare const EncodedWithMeta_base: Schema.Class<EncodedWithMeta, {
|
|
|
214
214
|
} & {
|
|
215
215
|
readonly meta?: {
|
|
216
216
|
sessionChangeset: {
|
|
217
|
-
readonly debug?: any;
|
|
218
217
|
readonly _tag: "sessionChangeset";
|
|
218
|
+
readonly debug?: any;
|
|
219
219
|
readonly data: Uint8Array<ArrayBufferLike>;
|
|
220
220
|
} | {
|
|
221
221
|
readonly _tag: "no-op";
|
|
@@ -28,18 +28,18 @@ export declare const deriveEventAndMaterializer: ({ name, valueSchema, defaultVa
|
|
|
28
28
|
partialSet: boolean;
|
|
29
29
|
}) => {
|
|
30
30
|
eventDef: EventDef<`${string}Set`, {
|
|
31
|
-
readonly id: string | typeof SessionIdSymbol;
|
|
32
31
|
readonly value: any;
|
|
33
|
-
}, {
|
|
34
32
|
readonly id: string | typeof SessionIdSymbol;
|
|
33
|
+
}, {
|
|
35
34
|
readonly value: any;
|
|
35
|
+
readonly id: string | typeof SessionIdSymbol;
|
|
36
36
|
}, true>;
|
|
37
37
|
materializer: Materializer<EventDef<`${string}Set`, {
|
|
38
|
-
readonly id: string | typeof SessionIdSymbol;
|
|
39
38
|
readonly value: any;
|
|
40
|
-
}, {
|
|
41
39
|
readonly id: string | typeof SessionIdSymbol;
|
|
40
|
+
}, {
|
|
42
41
|
readonly value: any;
|
|
42
|
+
readonly id: string | typeof SessionIdSymbol;
|
|
43
43
|
}, true>>;
|
|
44
44
|
};
|
|
45
45
|
export declare const tableIsClientDocumentTable: <TTableDef extends TableDefBase>(tableDef: TTableDef) => tableDef is TTableDef & {
|
|
@@ -401,7 +401,7 @@ export declare const eventlogMetaTable: import("./table-def.js").TableDef<{
|
|
|
401
401
|
ast: import("./db-schema/ast/sqlite.js").Table;
|
|
402
402
|
}, {
|
|
403
403
|
isClientDocumentTable: false;
|
|
404
|
-
requiredInsertColumnNames: "
|
|
404
|
+
requiredInsertColumnNames: "name" | "schemaHash" | "idGlobal" | "idClient" | "parentIdGlobal" | "parentIdClient" | "argsJson" | "clientId" | "sessionId" | "syncMetadataJson";
|
|
405
405
|
}, Schema.Schema<{
|
|
406
406
|
readonly idGlobal: number & import("effect/Brand").Brand<"GlobalEventId">;
|
|
407
407
|
readonly idClient: number & import("effect/Brand").Brand<"ClientEventId">;
|
|
@@ -527,7 +527,7 @@ export declare const eventlogSystemTables: (import("./table-def.js").TableDef<{
|
|
|
527
527
|
ast: import("./db-schema/ast/sqlite.js").Table;
|
|
528
528
|
}, {
|
|
529
529
|
isClientDocumentTable: false;
|
|
530
|
-
requiredInsertColumnNames: "
|
|
530
|
+
requiredInsertColumnNames: "name" | "schemaHash" | "idGlobal" | "idClient" | "parentIdGlobal" | "parentIdClient" | "argsJson" | "clientId" | "sessionId" | "syncMetadataJson";
|
|
531
531
|
}, Schema.Schema<{
|
|
532
532
|
readonly idGlobal: number & import("effect/Brand").Brand<"GlobalEventId">;
|
|
533
533
|
readonly idClient: number & import("effect/Brand").Brand<"ClientEventId">;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livestore/common",
|
|
3
|
-
"version": "0.0.0-snapshot-5a6440f111a5a7c2441a649866587d5d51e22820.
|
|
3
|
+
"version": "0.0.0-snapshot-5a6440f111a5a7c2441a649866587d5d51e22820.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"exports": {
|
|
@@ -54,10 +54,11 @@
|
|
|
54
54
|
"graphology": "0.26.0-alpha1",
|
|
55
55
|
"graphology-dag": "0.4.1",
|
|
56
56
|
"graphology-types": "0.24.8",
|
|
57
|
-
"@livestore/utils": "0.0.0-snapshot-5a6440f111a5a7c2441a649866587d5d51e22820.
|
|
57
|
+
"@livestore/utils": "0.0.0-snapshot-5a6440f111a5a7c2441a649866587d5d51e22820.2"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"vitest": "^3.1.1"
|
|
60
|
+
"vitest": "^3.1.1",
|
|
61
|
+
"@livestore/utils-dev": "0.0.0-snapshot-5a6440f111a5a7c2441a649866587d5d51e22820.2"
|
|
61
62
|
},
|
|
62
63
|
"publishConfig": {
|
|
63
64
|
"access": "public"
|
package/tsconfig.json
CHANGED