@livestore/common 0.0.54-dev.17 → 0.0.54-dev.19
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/debug-info.d.ts +8 -8
- package/dist/debug-info.d.ts.map +1 -1
- package/dist/debug-info.js +4 -7
- package/dist/debug-info.js.map +1 -1
- package/dist/devtools/devtools-messages.d.ts +29 -9
- package/dist/devtools/devtools-messages.d.ts.map +1 -1
- package/dist/devtools/devtools-messages.js +19 -10
- package/dist/devtools/devtools-messages.js.map +1 -1
- package/package.json +3 -3
- package/src/debug-info.ts +4 -9
- package/src/devtools/devtools-messages.ts +22 -11
- package/dist/devtools/index copy.d.ts +0 -214
- package/dist/devtools/index copy.d.ts.map +0 -1
- package/dist/devtools/index copy.js +0 -137
- package/dist/devtools/index copy.js.map +0 -1
package/dist/debug-info.d.ts
CHANGED
|
@@ -21,38 +21,38 @@ export declare const DebugInfo: Schema.Struct<{
|
|
|
21
21
|
slowQueries: Schema.transform<Schema.Struct<{
|
|
22
22
|
size: typeof Schema.Number;
|
|
23
23
|
items: Schema.Array$<Schema.Schema<{
|
|
24
|
+
readonly queryStr: string;
|
|
24
25
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
25
26
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
26
27
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
27
|
-
readonly queryStr: string;
|
|
28
28
|
readonly durationMs: number;
|
|
29
29
|
readonly rowsCount: number | undefined;
|
|
30
30
|
readonly queriedTables: ReadonlySet<string>;
|
|
31
31
|
readonly startTimePerfNow: number;
|
|
32
32
|
}, {
|
|
33
|
+
readonly queryStr: string;
|
|
33
34
|
readonly bindValues: readonly (string | number | readonly number[] | null)[] | {
|
|
34
35
|
readonly [x: string]: string | number | readonly number[] | null;
|
|
35
36
|
} | undefined;
|
|
36
|
-
readonly queryStr: string;
|
|
37
37
|
readonly durationMs: number;
|
|
38
38
|
readonly rowsCount: number | undefined;
|
|
39
39
|
readonly queriedTables: readonly string[];
|
|
40
40
|
readonly startTimePerfNow: number;
|
|
41
41
|
}, never>>;
|
|
42
42
|
}>, Schema.Schema<BoundArray<{
|
|
43
|
+
readonly queryStr: string;
|
|
43
44
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
44
45
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
45
46
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
46
|
-
readonly queryStr: string;
|
|
47
47
|
readonly durationMs: number;
|
|
48
48
|
readonly rowsCount: number | undefined;
|
|
49
49
|
readonly queriedTables: ReadonlySet<string>;
|
|
50
50
|
readonly startTimePerfNow: number;
|
|
51
51
|
}>, BoundArray<{
|
|
52
|
+
readonly queryStr: string;
|
|
52
53
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
53
54
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
54
55
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
55
|
-
readonly queryStr: string;
|
|
56
56
|
readonly durationMs: number;
|
|
57
57
|
readonly rowsCount: number | undefined;
|
|
58
58
|
readonly queriedTables: ReadonlySet<string>;
|
|
@@ -70,38 +70,38 @@ export declare const MutableDebugInfo: Schema.mutable<Schema.Struct<{
|
|
|
70
70
|
slowQueries: Schema.transform<Schema.Struct<{
|
|
71
71
|
size: typeof Schema.Number;
|
|
72
72
|
items: Schema.Array$<Schema.Schema<{
|
|
73
|
+
readonly queryStr: string;
|
|
73
74
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
74
75
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
75
76
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
76
|
-
readonly queryStr: string;
|
|
77
77
|
readonly durationMs: number;
|
|
78
78
|
readonly rowsCount: number | undefined;
|
|
79
79
|
readonly queriedTables: ReadonlySet<string>;
|
|
80
80
|
readonly startTimePerfNow: number;
|
|
81
81
|
}, {
|
|
82
|
+
readonly queryStr: string;
|
|
82
83
|
readonly bindValues: readonly (string | number | readonly number[] | null)[] | {
|
|
83
84
|
readonly [x: string]: string | number | readonly number[] | null;
|
|
84
85
|
} | undefined;
|
|
85
|
-
readonly queryStr: string;
|
|
86
86
|
readonly durationMs: number;
|
|
87
87
|
readonly rowsCount: number | undefined;
|
|
88
88
|
readonly queriedTables: readonly string[];
|
|
89
89
|
readonly startTimePerfNow: number;
|
|
90
90
|
}, never>>;
|
|
91
91
|
}>, Schema.Schema<BoundArray<{
|
|
92
|
+
readonly queryStr: string;
|
|
92
93
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
93
94
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
94
95
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
95
|
-
readonly queryStr: string;
|
|
96
96
|
readonly durationMs: number;
|
|
97
97
|
readonly rowsCount: number | undefined;
|
|
98
98
|
readonly queriedTables: ReadonlySet<string>;
|
|
99
99
|
readonly startTimePerfNow: number;
|
|
100
100
|
}>, BoundArray<{
|
|
101
|
+
readonly queryStr: string;
|
|
101
102
|
readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
|
|
102
103
|
readonly [x: string]: string | number | Uint8Array | null;
|
|
103
104
|
}) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
|
|
104
|
-
readonly queryStr: string;
|
|
105
105
|
readonly durationMs: number;
|
|
106
106
|
readonly rowsCount: number | undefined;
|
|
107
107
|
readonly queriedTables: ReadonlySet<string>;
|
package/dist/debug-info.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug-info.d.ts","sourceRoot":"","sources":["../src/debug-info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAE7D,OAAO,EAAE,UAAU,EAAE,MA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O,gBAAgB,CAAC,IAAI,CAAA"}
|
package/dist/debug-info.js
CHANGED
|
@@ -9,13 +9,7 @@ export const SlowQueryInfo = Schema.Struct({
|
|
|
9
9
|
queriedTables: Schema.ReadonlySet(Schema.String),
|
|
10
10
|
startTimePerfNow: Schema.Number,
|
|
11
11
|
});
|
|
12
|
-
const BoundArraySchemaFromSelf = (
|
|
13
|
-
identifier: `BoundArrayFromSelf`,
|
|
14
|
-
pretty: () => (_) => `BoundArray(${_.length})`,
|
|
15
|
-
arbitrary: () => (fc) => fc.anything(),
|
|
16
|
-
equivalence: () => (a, b) => a === b,
|
|
17
|
-
});
|
|
18
|
-
const BoundArraySchemaFromSelf_ = (item) => Schema.declare([item], {
|
|
12
|
+
const BoundArraySchemaFromSelf = (item) => Schema.declare([item], {
|
|
19
13
|
decode: (item) => (input, parseOptions, ast) => {
|
|
20
14
|
if (input instanceof BoundArray) {
|
|
21
15
|
const elements = ParseResult.decodeUnknown(Schema.Array(item))([...input], parseOptions);
|
|
@@ -32,6 +26,9 @@ const BoundArraySchemaFromSelf_ = (item) => Schema.declare([item], {
|
|
|
32
26
|
},
|
|
33
27
|
}, {
|
|
34
28
|
description: `BoundArray<${Schema.format(item)}>`,
|
|
29
|
+
pretty: () => (_) => `BoundArray(${_.length})`,
|
|
30
|
+
arbitrary: () => (fc) => fc.anything(),
|
|
31
|
+
equivalence: () => (a, b) => a === b,
|
|
35
32
|
});
|
|
36
33
|
const BoundArraySchema = (elSchema) => Schema.transform(Schema.Struct({
|
|
37
34
|
size: Schema.Number,
|
package/dist/debug-info.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug-info.js","sourceRoot":"","sources":["../src/debug-info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAE7D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,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.TaggedStruct<"LSD.MutationBroadcast", {
|
|
107
107
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
108
|
-
requestId: typeof Schema.String;
|
|
109
108
|
mutationEventEncoded: Schema.Struct<{
|
|
110
109
|
mutation: typeof Schema.String;
|
|
111
110
|
args: typeof Schema.Any;
|
|
@@ -115,6 +114,26 @@ declare const MutationBroadcast_base: Schema.TaggedStruct<"LSD.MutationBroadcast
|
|
|
115
114
|
}>;
|
|
116
115
|
export declare class MutationBroadcast extends MutationBroadcast_base {
|
|
117
116
|
}
|
|
117
|
+
declare const RunMutationReq_base: Schema.TaggedStruct<"LSD.RunMutationReq", {
|
|
118
|
+
liveStoreVersion: Schema.Literal<[string]>;
|
|
119
|
+
requestId: typeof Schema.String;
|
|
120
|
+
channelId: typeof Schema.String;
|
|
121
|
+
mutationEventEncoded: Schema.Struct<{
|
|
122
|
+
mutation: typeof Schema.String;
|
|
123
|
+
args: typeof Schema.Any;
|
|
124
|
+
id: typeof Schema.String;
|
|
125
|
+
}>;
|
|
126
|
+
persisted: typeof Schema.Boolean;
|
|
127
|
+
}>;
|
|
128
|
+
export declare class RunMutationReq extends RunMutationReq_base {
|
|
129
|
+
}
|
|
130
|
+
declare const RunMutationRes_base: Schema.TaggedStruct<"LSD.RunMutationRes", {
|
|
131
|
+
liveStoreVersion: Schema.Literal<[string]>;
|
|
132
|
+
requestId: typeof Schema.String;
|
|
133
|
+
channelId: typeof Schema.String;
|
|
134
|
+
}>;
|
|
135
|
+
export declare class RunMutationRes extends RunMutationRes_base {
|
|
136
|
+
}
|
|
118
137
|
declare const MutationLogReq_base: Schema.TaggedStruct<"LSD.MutationLogReq", {
|
|
119
138
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
120
139
|
requestId: typeof Schema.String;
|
|
@@ -125,6 +144,7 @@ export declare class MutationLogReq extends MutationLogReq_base {
|
|
|
125
144
|
declare const MutationLogRes_base: Schema.TaggedStruct<"LSD.MutationLogRes", {
|
|
126
145
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
127
146
|
requestId: typeof Schema.String;
|
|
147
|
+
channelId: typeof Schema.String;
|
|
128
148
|
mutationLog: Schema.Schema<Uint8Array, readonly number[], never>;
|
|
129
149
|
}>;
|
|
130
150
|
export declare class MutationLogRes extends MutationLogRes_base {
|
|
@@ -202,7 +222,7 @@ declare const ResetAllDataRes_base: Schema.TaggedStruct<"LSD.ResetAllDataRes", {
|
|
|
202
222
|
}>;
|
|
203
223
|
export declare class ResetAllDataRes extends ResetAllDataRes_base {
|
|
204
224
|
}
|
|
205
|
-
declare const
|
|
225
|
+
declare const NetworkStatusChanged_base: Schema.TaggedStruct<"LSD.NetworkStatusChanged", {
|
|
206
226
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
207
227
|
channelId: typeof Schema.String;
|
|
208
228
|
networkStatus: Schema.Struct<{
|
|
@@ -210,12 +230,12 @@ declare const NetworkStatusBroadcast_base: Schema.TaggedStruct<"LSD.NetworkStatu
|
|
|
210
230
|
timestampMs: typeof Schema.Number;
|
|
211
231
|
}>;
|
|
212
232
|
}>;
|
|
213
|
-
export declare class
|
|
233
|
+
export declare class NetworkStatusChanged extends NetworkStatusChanged_base {
|
|
214
234
|
}
|
|
215
|
-
declare const
|
|
235
|
+
declare const DevtoolsReady_base: Schema.TaggedStruct<"LSD.DevtoolsReady", {
|
|
216
236
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
217
237
|
}>;
|
|
218
|
-
export declare class
|
|
238
|
+
export declare class DevtoolsReady extends DevtoolsReady_base {
|
|
219
239
|
}
|
|
220
240
|
declare const DevtoolsConnected_base: Schema.TaggedStruct<"LSD.DevtoolsConnected", {
|
|
221
241
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
@@ -223,11 +243,11 @@ declare const DevtoolsConnected_base: Schema.TaggedStruct<"LSD.DevtoolsConnected
|
|
|
223
243
|
}>;
|
|
224
244
|
export declare class DevtoolsConnected extends DevtoolsConnected_base {
|
|
225
245
|
}
|
|
226
|
-
declare const
|
|
246
|
+
declare const AppHostReady_base: Schema.TaggedStruct<"LSD.AppHostReady", {
|
|
227
247
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
228
248
|
channelId: typeof Schema.String;
|
|
229
249
|
}>;
|
|
230
|
-
export declare class
|
|
250
|
+
export declare class AppHostReady extends AppHostReady_base {
|
|
231
251
|
}
|
|
232
252
|
declare const Disconnect_base: Schema.TaggedStruct<"LSD.Disconnect", {
|
|
233
253
|
liveStoreVersion: Schema.Literal<[string]>;
|
|
@@ -236,9 +256,9 @@ declare const Disconnect_base: Schema.TaggedStruct<"LSD.Disconnect", {
|
|
|
236
256
|
}>;
|
|
237
257
|
export declare class Disconnect extends Disconnect_base {
|
|
238
258
|
}
|
|
239
|
-
export declare const MessageToAppHost: Schema.Union<[typeof SnapshotReq, typeof MutationLogReq, typeof DebugInfoReq, typeof DebugInfoResetReq, typeof DebugInfoRerunQueryReq, typeof SignalsSubscribe, typeof SignalsUnsubscribe, typeof LiveQueriesSubscribe, typeof LiveQueriesUnsubscribe, typeof ResetAllDataReq, typeof
|
|
259
|
+
export declare const MessageToAppHost: Schema.Union<[typeof SnapshotReq, typeof MutationLogReq, typeof DebugInfoReq, typeof DebugInfoResetReq, typeof DebugInfoRerunQueryReq, typeof SignalsSubscribe, typeof SignalsUnsubscribe, typeof LiveQueriesSubscribe, typeof LiveQueriesUnsubscribe, typeof ResetAllDataReq, typeof DevtoolsReady, typeof Disconnect, typeof DevtoolsConnected, typeof RunMutationReq]>;
|
|
240
260
|
export type MessageToAppHost = typeof MessageToAppHost.Type;
|
|
241
|
-
export declare const MessageFromAppHost: Schema.Union<[typeof SnapshotRes, typeof MutationLogRes, typeof DebugInfoRes, typeof DebugInfoResetRes, typeof DebugInfoRerunQueryRes, typeof SignalsRes, typeof LiveQueriesRes, typeof ResetAllDataRes, typeof Disconnect, typeof MutationBroadcast, typeof
|
|
261
|
+
export declare const MessageFromAppHost: Schema.Union<[typeof SnapshotRes, typeof MutationLogRes, typeof DebugInfoRes, typeof DebugInfoResetRes, typeof DebugInfoRerunQueryRes, typeof SignalsRes, typeof LiveQueriesRes, typeof ResetAllDataRes, typeof Disconnect, typeof MutationBroadcast, typeof AppHostReady, typeof NetworkStatusChanged, typeof RunMutationRes]>;
|
|
242
262
|
export type MessageFromAppHost = typeof MessageFromAppHost.Type;
|
|
243
263
|
export declare const makeBroadcastChannels: () => {
|
|
244
264
|
fromAppHost: BroadcastChannel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devtools-messages.d.ts","sourceRoot":"","sources":["../../src/devtools/devtools-messages.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;;;;;;AAYhD,qBAAa,WAAY,SAAQ,gBAI/B;CAAG;;;;;;AAEL,qBAAa,WAAY,SAAQ,gBAI/B;CAAG;;;;;;AAEL,qBAAa,YAAa,SAAQ,iBAIhC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEL,qBAAa,YAAa,SAAQ,iBAIhC;CAAG;;;;;;AAEL,qBAAa,iBAAkB,SAAQ,sBAIrC;CAAG;;;;;AAEL,qBAAa,iBAAkB,SAAQ,sBAGrC;CAAG;;;;;;;;;AAEL,qBAAa,sBAAuB,SAAQ,2BAO1C;CAAG;;;;;AAEL,qBAAa,sBAAuB,SAAQ,2BAG1C;CAAG
|
|
1
|
+
{"version":3,"file":"devtools-messages.d.ts","sourceRoot":"","sources":["../../src/devtools/devtools-messages.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;;;;;;AAYhD,qBAAa,WAAY,SAAQ,gBAI/B;CAAG;;;;;;AAEL,qBAAa,WAAY,SAAQ,gBAI/B;CAAG;;;;;;AAEL,qBAAa,YAAa,SAAQ,iBAIhC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE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gB,GAAG,OAAO,gBAAgB,CAAC,IAAI,CAAA;AAE3D,eAAO,MAAM,kBAAkB,iUAc9B,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,IAAI,CAAA;AAG/D,eAAO,MAAM,qBAAqB;;;CAGhC,CAAA"}
|
|
@@ -57,12 +57,25 @@ export class DebugInfoRerunQueryRes extends Schema.TaggedStruct('LSD.DebugInfoRe
|
|
|
57
57
|
}) {
|
|
58
58
|
}
|
|
59
59
|
export class MutationBroadcast extends Schema.TaggedStruct('LSD.MutationBroadcast', {
|
|
60
|
+
liveStoreVersion,
|
|
61
|
+
mutationEventEncoded: mutationEventSchemaEncodedAny,
|
|
62
|
+
persisted: Schema.Boolean,
|
|
63
|
+
}) {
|
|
64
|
+
}
|
|
65
|
+
export class RunMutationReq extends Schema.TaggedStruct('LSD.RunMutationReq', {
|
|
60
66
|
liveStoreVersion,
|
|
61
67
|
requestId,
|
|
68
|
+
channelId,
|
|
62
69
|
mutationEventEncoded: mutationEventSchemaEncodedAny,
|
|
63
70
|
persisted: Schema.Boolean,
|
|
64
71
|
}) {
|
|
65
72
|
}
|
|
73
|
+
export class RunMutationRes extends Schema.TaggedStruct('LSD.RunMutationRes', {
|
|
74
|
+
liveStoreVersion,
|
|
75
|
+
requestId,
|
|
76
|
+
channelId,
|
|
77
|
+
}) {
|
|
78
|
+
}
|
|
66
79
|
export class MutationLogReq extends Schema.TaggedStruct('LSD.MutationLogReq', {
|
|
67
80
|
liveStoreVersion,
|
|
68
81
|
requestId,
|
|
@@ -72,6 +85,7 @@ export class MutationLogReq extends Schema.TaggedStruct('LSD.MutationLogReq', {
|
|
|
72
85
|
export class MutationLogRes extends Schema.TaggedStruct('LSD.MutationLogRes', {
|
|
73
86
|
liveStoreVersion,
|
|
74
87
|
requestId,
|
|
88
|
+
channelId,
|
|
75
89
|
mutationLog: Schema.Uint8Array,
|
|
76
90
|
}) {
|
|
77
91
|
}
|
|
@@ -134,13 +148,13 @@ export class ResetAllDataRes extends Schema.TaggedStruct('LSD.ResetAllDataRes',
|
|
|
134
148
|
requestId,
|
|
135
149
|
}) {
|
|
136
150
|
}
|
|
137
|
-
export class
|
|
151
|
+
export class NetworkStatusChanged extends Schema.TaggedStruct('LSD.NetworkStatusChanged', {
|
|
138
152
|
liveStoreVersion,
|
|
139
153
|
channelId,
|
|
140
154
|
networkStatus: NetworkStatus,
|
|
141
155
|
}) {
|
|
142
156
|
}
|
|
143
|
-
export class
|
|
157
|
+
export class DevtoolsReady extends Schema.TaggedStruct('LSD.DevtoolsReady', {
|
|
144
158
|
liveStoreVersion,
|
|
145
159
|
}) {
|
|
146
160
|
}
|
|
@@ -149,7 +163,7 @@ export class DevtoolsConnected extends Schema.TaggedStruct('LSD.DevtoolsConnecte
|
|
|
149
163
|
channelId,
|
|
150
164
|
}) {
|
|
151
165
|
}
|
|
152
|
-
export class
|
|
166
|
+
export class AppHostReady extends Schema.TaggedStruct('LSD.AppHostReady', {
|
|
153
167
|
liveStoreVersion,
|
|
154
168
|
channelId,
|
|
155
169
|
}) {
|
|
@@ -160,13 +174,8 @@ export class Disconnect extends Schema.TaggedStruct('LSD.Disconnect', {
|
|
|
160
174
|
channelId,
|
|
161
175
|
}) {
|
|
162
176
|
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
// }) {}
|
|
166
|
-
export const MessageToAppHost = Schema.Union(SnapshotReq, MutationLogReq, DebugInfoReq, DebugInfoResetReq, DebugInfoRerunQueryReq, SignalsSubscribe, SignalsUnsubscribe, LiveQueriesSubscribe, LiveQueriesUnsubscribe, ResetAllDataReq, DevtoolsReadyBroadcast, Disconnect, DevtoolsConnected);
|
|
167
|
-
export const MessageFromAppHost = Schema.Union(SnapshotRes, MutationLogRes, DebugInfoRes, DebugInfoResetRes, DebugInfoRerunQueryRes, SignalsRes, LiveQueriesRes, ResetAllDataRes, Disconnect,
|
|
168
|
-
// SchemaChanged,
|
|
169
|
-
MutationBroadcast, AppHostReadyBroadcast, NetworkStatusBroadcast);
|
|
177
|
+
export const MessageToAppHost = Schema.Union(SnapshotReq, MutationLogReq, DebugInfoReq, DebugInfoResetReq, DebugInfoRerunQueryReq, SignalsSubscribe, SignalsUnsubscribe, LiveQueriesSubscribe, LiveQueriesUnsubscribe, ResetAllDataReq, DevtoolsReady, Disconnect, DevtoolsConnected, RunMutationReq);
|
|
178
|
+
export const MessageFromAppHost = Schema.Union(SnapshotRes, MutationLogRes, DebugInfoRes, DebugInfoResetRes, DebugInfoRerunQueryRes, SignalsRes, LiveQueriesRes, ResetAllDataRes, Disconnect, MutationBroadcast, AppHostReady, NetworkStatusChanged, RunMutationRes);
|
|
170
179
|
// TODO make specific over app key
|
|
171
180
|
export const makeBroadcastChannels = () => ({
|
|
172
181
|
fromAppHost: new BroadcastChannel(`livestore-devtools-from-app-host`),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devtools-messages.js","sourceRoot":"","sources":["../../src/devtools/devtools-messages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,gCAAgC,CAAA;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAGhD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,EAAE,6BAA6B,EAAE,MAAM,wBAAwB,CAAA;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAE/C,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAA;AAC/B,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAA;AAC/B,MAAM,gBAAgB,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAA;AAEnD,MAAM,OAAO,WAAY,SAAQ,MAAM,CAAC,YAAY,CAAC,iBAAiB,EAAE;IACtE,gBAAgB;IAChB,SAAS;IACT,SAAS;CACV,CAAC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V,cAAc,EACd,eAAe,EACf,UAAU,EACV,iBAAiB,EACjB,YAAY,EACZ,oBAAoB,EACpB,cAAc,CACf,CAAA;AAID,kCAAkC;AAClC,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,EAAE,CAAC,CAAC;IAC1C,WAAW,EAAE,IAAI,gBAAgB,CAAC,kCAAkC,CAAC;IACrE,SAAS,EAAE,IAAI,gBAAgB,CAAC,gCAAgC,CAAC;CAClE,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livestore/common",
|
|
3
|
-
"version": "0.0.54-dev.
|
|
3
|
+
"version": "0.0.54-dev.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@opentelemetry/api": "^1.9.0",
|
|
36
|
-
"@livestore/utils": "0.0.54-dev.
|
|
37
|
-
"effect-db-schema": "0.0.54-dev.
|
|
36
|
+
"@livestore/utils": "0.0.54-dev.19",
|
|
37
|
+
"effect-db-schema": "0.0.54-dev.19"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"vitest": "^1.6.0"
|
package/src/debug-info.ts
CHANGED
|
@@ -21,15 +21,7 @@ export const SlowQueryInfo = Schema.Struct({
|
|
|
21
21
|
startTimePerfNow: Schema.Number,
|
|
22
22
|
})
|
|
23
23
|
|
|
24
|
-
const BoundArraySchemaFromSelf = <
|
|
25
|
-
Schema.declare((_): _ is BoundArray<ItemDecoded> => _ instanceof BoundArray, {
|
|
26
|
-
identifier: `BoundArrayFromSelf`,
|
|
27
|
-
pretty: () => (_) => `BoundArray(${_.length})`,
|
|
28
|
-
arbitrary: () => (fc) => fc.anything() as any,
|
|
29
|
-
equivalence: () => (a, b) => a === b,
|
|
30
|
-
}) as any as Schema.Schema<BoundArray<ItemDecoded>, BoundArray<ItemEncoded>>
|
|
31
|
-
|
|
32
|
-
const BoundArraySchemaFromSelf_ = <A, I, R>(
|
|
24
|
+
const BoundArraySchemaFromSelf = <A, I, R>(
|
|
33
25
|
item: Schema.Schema<A, I, R>,
|
|
34
26
|
): Schema.Schema<BoundArray<A>, BoundArray<I>, R> =>
|
|
35
27
|
Schema.declare(
|
|
@@ -52,6 +44,9 @@ const BoundArraySchemaFromSelf_ = <A, I, R>(
|
|
|
52
44
|
},
|
|
53
45
|
{
|
|
54
46
|
description: `BoundArray<${Schema.format(item)}>`,
|
|
47
|
+
pretty: () => (_) => `BoundArray(${_.length})`,
|
|
48
|
+
arbitrary: () => (fc) => fc.anything() as any,
|
|
49
|
+
equivalence: () => (a, b) => a === b,
|
|
55
50
|
},
|
|
56
51
|
)
|
|
57
52
|
|
|
@@ -61,12 +61,25 @@ export class DebugInfoRerunQueryRes extends Schema.TaggedStruct('LSD.DebugInfoRe
|
|
|
61
61
|
}) {}
|
|
62
62
|
|
|
63
63
|
export class MutationBroadcast extends Schema.TaggedStruct('LSD.MutationBroadcast', {
|
|
64
|
+
liveStoreVersion,
|
|
65
|
+
mutationEventEncoded: mutationEventSchemaEncodedAny,
|
|
66
|
+
persisted: Schema.Boolean,
|
|
67
|
+
}) {}
|
|
68
|
+
|
|
69
|
+
export class RunMutationReq extends Schema.TaggedStruct('LSD.RunMutationReq', {
|
|
64
70
|
liveStoreVersion,
|
|
65
71
|
requestId,
|
|
72
|
+
channelId,
|
|
66
73
|
mutationEventEncoded: mutationEventSchemaEncodedAny,
|
|
67
74
|
persisted: Schema.Boolean,
|
|
68
75
|
}) {}
|
|
69
76
|
|
|
77
|
+
export class RunMutationRes extends Schema.TaggedStruct('LSD.RunMutationRes', {
|
|
78
|
+
liveStoreVersion,
|
|
79
|
+
requestId,
|
|
80
|
+
channelId,
|
|
81
|
+
}) {}
|
|
82
|
+
|
|
70
83
|
export class MutationLogReq extends Schema.TaggedStruct('LSD.MutationLogReq', {
|
|
71
84
|
liveStoreVersion,
|
|
72
85
|
requestId,
|
|
@@ -76,6 +89,7 @@ export class MutationLogReq extends Schema.TaggedStruct('LSD.MutationLogReq', {
|
|
|
76
89
|
export class MutationLogRes extends Schema.TaggedStruct('LSD.MutationLogRes', {
|
|
77
90
|
liveStoreVersion,
|
|
78
91
|
requestId,
|
|
92
|
+
channelId,
|
|
79
93
|
mutationLog: Schema.Uint8Array,
|
|
80
94
|
}) {}
|
|
81
95
|
|
|
@@ -140,13 +154,13 @@ export class ResetAllDataRes extends Schema.TaggedStruct('LSD.ResetAllDataRes',
|
|
|
140
154
|
requestId,
|
|
141
155
|
}) {}
|
|
142
156
|
|
|
143
|
-
export class
|
|
157
|
+
export class NetworkStatusChanged extends Schema.TaggedStruct('LSD.NetworkStatusChanged', {
|
|
144
158
|
liveStoreVersion,
|
|
145
159
|
channelId,
|
|
146
160
|
networkStatus: NetworkStatus,
|
|
147
161
|
}) {}
|
|
148
162
|
|
|
149
|
-
export class
|
|
163
|
+
export class DevtoolsReady extends Schema.TaggedStruct('LSD.DevtoolsReady', {
|
|
150
164
|
liveStoreVersion,
|
|
151
165
|
}) {}
|
|
152
166
|
|
|
@@ -155,7 +169,7 @@ export class DevtoolsConnected extends Schema.TaggedStruct('LSD.DevtoolsConnecte
|
|
|
155
169
|
channelId,
|
|
156
170
|
}) {}
|
|
157
171
|
|
|
158
|
-
export class
|
|
172
|
+
export class AppHostReady extends Schema.TaggedStruct('LSD.AppHostReady', {
|
|
159
173
|
liveStoreVersion,
|
|
160
174
|
channelId,
|
|
161
175
|
}) {}
|
|
@@ -166,10 +180,6 @@ export class Disconnect extends Schema.TaggedStruct('LSD.Disconnect', {
|
|
|
166
180
|
channelId,
|
|
167
181
|
}) {}
|
|
168
182
|
|
|
169
|
-
// export class SchemaChanged extends Schema.TaggedStruct('LSD.SchemaChanged', {
|
|
170
|
-
// requestId,
|
|
171
|
-
// }) {}
|
|
172
|
-
|
|
173
183
|
export const MessageToAppHost = Schema.Union(
|
|
174
184
|
SnapshotReq,
|
|
175
185
|
MutationLogReq,
|
|
@@ -181,9 +191,10 @@ export const MessageToAppHost = Schema.Union(
|
|
|
181
191
|
LiveQueriesSubscribe,
|
|
182
192
|
LiveQueriesUnsubscribe,
|
|
183
193
|
ResetAllDataReq,
|
|
184
|
-
|
|
194
|
+
DevtoolsReady,
|
|
185
195
|
Disconnect,
|
|
186
196
|
DevtoolsConnected,
|
|
197
|
+
RunMutationReq,
|
|
187
198
|
)
|
|
188
199
|
|
|
189
200
|
export type MessageToAppHost = typeof MessageToAppHost.Type
|
|
@@ -198,10 +209,10 @@ export const MessageFromAppHost = Schema.Union(
|
|
|
198
209
|
LiveQueriesRes,
|
|
199
210
|
ResetAllDataRes,
|
|
200
211
|
Disconnect,
|
|
201
|
-
// SchemaChanged,
|
|
202
212
|
MutationBroadcast,
|
|
203
|
-
|
|
204
|
-
|
|
213
|
+
AppHostReady,
|
|
214
|
+
NetworkStatusChanged,
|
|
215
|
+
RunMutationRes,
|
|
205
216
|
)
|
|
206
217
|
|
|
207
218
|
export type MessageFromAppHost = typeof MessageFromAppHost.Type
|