@livestore/common 0.0.0-snapshot-aed277ba0960f72b8d464508961ab4aec1881230 → 0.0.0-snapshot-7bcbc24bb8873481e482d982636957f0c1f791f6
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/__tests__/fixture.d.ts +6 -6
- package/dist/adapter-types.d.ts +39 -16
- package/dist/adapter-types.d.ts.map +1 -1
- package/dist/adapter-types.js +12 -0
- package/dist/adapter-types.js.map +1 -1
- package/dist/derived-mutations.js +3 -3
- package/dist/derived-mutations.js.map +1 -1
- package/dist/devtools/devtools-messages-client-session.d.ts +23 -23
- package/dist/devtools/devtools-messages-common.d.ts +19 -6
- package/dist/devtools/devtools-messages-common.d.ts.map +1 -1
- package/dist/devtools/devtools-messages-common.js +14 -0
- package/dist/devtools/devtools-messages-common.js.map +1 -1
- package/dist/devtools/devtools-messages-leader.d.ts +94 -75
- package/dist/devtools/devtools-messages-leader.d.ts.map +1 -1
- package/dist/devtools/devtools-messages-leader.js +18 -17
- package/dist/devtools/devtools-messages-leader.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/leader-thread/LeaderSyncProcessor.d.ts.map +1 -1
- package/dist/leader-thread/LeaderSyncProcessor.js +50 -35
- package/dist/leader-thread/LeaderSyncProcessor.js.map +1 -1
- package/dist/leader-thread/apply-mutation.d.ts.map +1 -1
- package/dist/leader-thread/apply-mutation.js +8 -6
- package/dist/leader-thread/apply-mutation.js.map +1 -1
- package/dist/leader-thread/leader-worker-devtools.d.ts.map +1 -1
- package/dist/leader-thread/leader-worker-devtools.js +26 -18
- package/dist/leader-thread/leader-worker-devtools.js.map +1 -1
- package/dist/leader-thread/make-leader-thread-layer.d.ts.map +1 -1
- package/dist/leader-thread/make-leader-thread-layer.js +23 -6
- package/dist/leader-thread/make-leader-thread-layer.js.map +1 -1
- package/dist/leader-thread/mutationlog.d.ts +1 -1
- package/dist/leader-thread/mutationlog.d.ts.map +1 -1
- package/dist/leader-thread/mutationlog.js +7 -5
- package/dist/leader-thread/mutationlog.js.map +1 -1
- package/dist/leader-thread/pull-queue-set.d.ts.map +1 -1
- package/dist/leader-thread/recreate-db.d.ts +4 -2
- package/dist/leader-thread/recreate-db.d.ts.map +1 -1
- package/dist/leader-thread/recreate-db.js +12 -7
- package/dist/leader-thread/recreate-db.js.map +1 -1
- package/dist/leader-thread/types.d.ts +19 -7
- package/dist/leader-thread/types.d.ts.map +1 -1
- package/dist/leader-thread/types.js +1 -1
- package/dist/leader-thread/types.js.map +1 -1
- package/dist/rehydrate-from-mutationlog.d.ts.map +1 -1
- package/dist/rehydrate-from-mutationlog.js +8 -6
- package/dist/rehydrate-from-mutationlog.js.map +1 -1
- package/dist/schema/EventId.d.ts +10 -9
- package/dist/schema/EventId.d.ts.map +1 -1
- package/dist/schema/EventId.js +14 -11
- package/dist/schema/EventId.js.map +1 -1
- package/dist/schema/EventId.test.js +3 -3
- package/dist/schema/EventId.test.js.map +1 -1
- package/dist/schema/MutationEvent.d.ts +37 -12
- package/dist/schema/MutationEvent.d.ts.map +1 -1
- package/dist/schema/MutationEvent.js +20 -4
- package/dist/schema/MutationEvent.js.map +1 -1
- package/dist/schema/mutations.d.ts +4 -8
- package/dist/schema/mutations.d.ts.map +1 -1
- package/dist/schema/mutations.js +2 -2
- package/dist/schema/mutations.js.map +1 -1
- package/dist/schema/system-tables.d.ts +38 -20
- package/dist/schema/system-tables.d.ts.map +1 -1
- package/dist/schema/system-tables.js +9 -6
- package/dist/schema/system-tables.js.map +1 -1
- package/dist/schema/table-def.d.ts +7 -7
- package/dist/schema/table-def.d.ts.map +1 -1
- package/dist/schema/table-def.js +2 -2
- package/dist/schema/table-def.js.map +1 -1
- package/dist/schema-management/migrations.d.ts +2 -2
- package/dist/schema-management/migrations.d.ts.map +1 -1
- package/dist/schema-management/migrations.js +6 -1
- package/dist/schema-management/migrations.js.map +1 -1
- package/dist/sync/ClientSessionSyncProcessor.d.ts.map +1 -1
- package/dist/sync/ClientSessionSyncProcessor.js +20 -5
- package/dist/sync/ClientSessionSyncProcessor.js.map +1 -1
- package/dist/sync/next/facts.js +1 -1
- package/dist/sync/next/facts.js.map +1 -1
- package/dist/sync/next/history-dag-common.d.ts +2 -0
- package/dist/sync/next/history-dag-common.d.ts.map +1 -1
- package/dist/sync/next/history-dag-common.js +3 -1
- package/dist/sync/next/history-dag-common.js.map +1 -1
- package/dist/sync/next/history-dag.d.ts.map +1 -1
- package/dist/sync/next/history-dag.js +1 -1
- package/dist/sync/next/history-dag.js.map +1 -1
- package/dist/sync/next/rebase-events.d.ts +3 -1
- package/dist/sync/next/rebase-events.d.ts.map +1 -1
- package/dist/sync/next/rebase-events.js +5 -3
- package/dist/sync/next/rebase-events.js.map +1 -1
- package/dist/sync/next/test/compact-events.calculator.test.js +12 -12
- package/dist/sync/next/test/compact-events.calculator.test.js.map +1 -1
- package/dist/sync/next/test/compact-events.test.js +30 -30
- package/dist/sync/next/test/compact-events.test.js.map +1 -1
- package/dist/sync/next/test/mutation-fixtures.d.ts +1 -1
- package/dist/sync/next/test/mutation-fixtures.d.ts.map +1 -1
- package/dist/sync/next/test/mutation-fixtures.js +9 -7
- package/dist/sync/next/test/mutation-fixtures.js.map +1 -1
- package/dist/sync/sync.d.ts +2 -2
- package/dist/sync/syncstate.d.ts +9 -9
- package/dist/sync/syncstate.js +6 -6
- package/dist/sync/syncstate.js.map +1 -1
- package/dist/sync/syncstate.test.js +18 -16
- package/dist/sync/syncstate.test.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/src/adapter-types.ts +33 -15
- package/src/derived-mutations.ts +3 -3
- package/src/devtools/devtools-messages-common.ts +34 -0
- package/src/devtools/devtools-messages-leader.ts +28 -18
- package/src/index.ts +1 -1
- package/src/leader-thread/LeaderSyncProcessor.ts +59 -38
- package/src/leader-thread/apply-mutation.ts +15 -5
- package/src/leader-thread/leader-worker-devtools.ts +33 -19
- package/src/leader-thread/make-leader-thread-layer.ts +28 -8
- package/src/leader-thread/mutationlog.ts +8 -6
- package/src/leader-thread/recreate-db.ts +18 -9
- package/src/leader-thread/types.ts +20 -5
- package/src/rehydrate-from-mutationlog.ts +8 -6
- package/src/schema/EventId.test.ts +3 -3
- package/src/schema/EventId.ts +20 -16
- package/src/schema/MutationEvent.ts +31 -6
- package/src/schema/mutations.ts +6 -19
- package/src/schema/system-tables.ts +9 -6
- package/src/schema/table-def.ts +8 -8
- package/src/schema-management/migrations.ts +9 -5
- package/src/sync/ClientSessionSyncProcessor.ts +25 -6
- package/src/sync/next/facts.ts +1 -1
- package/src/sync/next/history-dag-common.ts +5 -1
- package/src/sync/next/history-dag.ts +1 -1
- package/src/sync/next/rebase-events.ts +8 -2
- package/src/sync/next/test/compact-events.calculator.test.ts +12 -12
- package/src/sync/next/test/compact-events.test.ts +30 -30
- package/src/sync/next/test/mutation-fixtures.ts +10 -6
- package/src/sync/syncstate.test.ts +19 -17
- package/src/sync/syncstate.ts +6 -6
- package/src/version.ts +1 -1
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Schema } from '@livestore/utils/effect';
|
|
2
2
|
import { UnexpectedError } from '../adapter-types.js';
|
|
3
|
+
import * as SyncState from '../sync/syncstate.js';
|
|
4
|
+
import { liveStoreVersion } from './devtools-messages-common.js';
|
|
3
5
|
declare const ResetAllDataReq_base: Schema.Struct<{
|
|
4
6
|
_tag: Schema.tag<"LSD.Leader.ResetAllDataReq">;
|
|
5
7
|
} & {
|
|
6
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
8
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
7
9
|
} & {
|
|
8
10
|
clientId: typeof Schema.String;
|
|
9
11
|
} & {
|
|
@@ -13,21 +15,10 @@ declare const ResetAllDataReq_base: Schema.Struct<{
|
|
|
13
15
|
}>;
|
|
14
16
|
export declare class ResetAllDataReq extends ResetAllDataReq_base {
|
|
15
17
|
}
|
|
16
|
-
declare const ResetAllDataRes_base: Schema.Struct<{
|
|
17
|
-
_tag: Schema.tag<"LSD.Leader.ResetAllDataRes">;
|
|
18
|
-
} & {
|
|
19
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.11"]>;
|
|
20
|
-
} & {
|
|
21
|
-
clientId: typeof Schema.String;
|
|
22
|
-
} & {
|
|
23
|
-
requestId: typeof Schema.String;
|
|
24
|
-
}>;
|
|
25
|
-
export declare class ResetAllDataRes extends ResetAllDataRes_base {
|
|
26
|
-
}
|
|
27
18
|
declare const DatabaseFileInfoReq_base: Schema.Struct<{
|
|
28
19
|
_tag: Schema.tag<"LSD.Leader.DatabaseFileInfoReq">;
|
|
29
20
|
} & {
|
|
30
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
21
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
31
22
|
} & {
|
|
32
23
|
clientId: typeof Schema.String;
|
|
33
24
|
} & {
|
|
@@ -49,7 +40,7 @@ export declare class DatabaseFileInfo extends DatabaseFileInfo_base {
|
|
|
49
40
|
declare const DatabaseFileInfoRes_base: Schema.Struct<{
|
|
50
41
|
_tag: Schema.tag<"LSD.Leader.DatabaseFileInfoRes">;
|
|
51
42
|
} & {
|
|
52
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
43
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
53
44
|
} & {
|
|
54
45
|
clientId: typeof Schema.String;
|
|
55
46
|
} & {
|
|
@@ -63,7 +54,7 @@ export declare class DatabaseFileInfoRes extends DatabaseFileInfoRes_base {
|
|
|
63
54
|
declare const NetworkStatusSubscribe_base: Schema.Struct<{
|
|
64
55
|
_tag: Schema.tag<"LSD.Leader.NetworkStatusSubscribe">;
|
|
65
56
|
} & {
|
|
66
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
57
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
67
58
|
} & {
|
|
68
59
|
clientId: typeof Schema.String;
|
|
69
60
|
} & {
|
|
@@ -74,7 +65,7 @@ export declare class NetworkStatusSubscribe extends NetworkStatusSubscribe_base
|
|
|
74
65
|
declare const NetworkStatusUnsubscribe_base: Schema.Struct<{
|
|
75
66
|
_tag: Schema.tag<"LSD.Leader.NetworkStatusUnsubscribe">;
|
|
76
67
|
} & {
|
|
77
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
68
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
78
69
|
} & {
|
|
79
70
|
clientId: typeof Schema.String;
|
|
80
71
|
} & {
|
|
@@ -85,7 +76,7 @@ export declare class NetworkStatusUnsubscribe extends NetworkStatusUnsubscribe_b
|
|
|
85
76
|
declare const NetworkStatusRes_base: Schema.Struct<{
|
|
86
77
|
_tag: Schema.tag<"LSD.Leader.NetworkStatusRes">;
|
|
87
78
|
} & {
|
|
88
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
79
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
89
80
|
} & {
|
|
90
81
|
clientId: typeof Schema.String;
|
|
91
82
|
} & {
|
|
@@ -94,6 +85,7 @@ declare const NetworkStatusRes_base: Schema.Struct<{
|
|
|
94
85
|
networkStatus: Schema.Struct<{
|
|
95
86
|
isConnected: typeof Schema.Boolean;
|
|
96
87
|
timestampMs: typeof Schema.Number;
|
|
88
|
+
latchClosed: typeof Schema.Boolean;
|
|
97
89
|
}>;
|
|
98
90
|
}>;
|
|
99
91
|
export declare class NetworkStatusRes extends NetworkStatusRes_base {
|
|
@@ -101,7 +93,7 @@ export declare class NetworkStatusRes extends NetworkStatusRes_base {
|
|
|
101
93
|
declare const SyncingInfoReq_base: Schema.Struct<{
|
|
102
94
|
_tag: Schema.tag<"LSD.Leader.SyncingInfoReq">;
|
|
103
95
|
} & {
|
|
104
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
96
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
105
97
|
} & {
|
|
106
98
|
clientId: typeof Schema.String;
|
|
107
99
|
} & {
|
|
@@ -118,7 +110,7 @@ export declare class SyncingInfo extends SyncingInfo_base {
|
|
|
118
110
|
declare const SyncingInfoRes_base: Schema.Struct<{
|
|
119
111
|
_tag: Schema.tag<"LSD.Leader.SyncingInfoRes">;
|
|
120
112
|
} & {
|
|
121
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
113
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
122
114
|
} & {
|
|
123
115
|
clientId: typeof Schema.String;
|
|
124
116
|
} & {
|
|
@@ -131,7 +123,7 @@ export declare class SyncingInfoRes extends SyncingInfoRes_base {
|
|
|
131
123
|
declare const SyncHistorySubscribe_base: Schema.Struct<{
|
|
132
124
|
_tag: Schema.tag<"LSD.Leader.SyncHistorySubscribe">;
|
|
133
125
|
} & {
|
|
134
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
126
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
135
127
|
} & {
|
|
136
128
|
clientId: typeof Schema.String;
|
|
137
129
|
} & {
|
|
@@ -142,7 +134,7 @@ export declare class SyncHistorySubscribe extends SyncHistorySubscribe_base {
|
|
|
142
134
|
declare const SyncHistoryUnsubscribe_base: Schema.Struct<{
|
|
143
135
|
_tag: Schema.tag<"LSD.Leader.SyncHistoryUnsubscribe">;
|
|
144
136
|
} & {
|
|
145
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
137
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
146
138
|
} & {
|
|
147
139
|
clientId: typeof Schema.String;
|
|
148
140
|
} & {
|
|
@@ -153,7 +145,7 @@ export declare class SyncHistoryUnsubscribe extends SyncHistoryUnsubscribe_base
|
|
|
153
145
|
declare const SyncHistoryRes_base: Schema.Struct<{
|
|
154
146
|
_tag: Schema.tag<"LSD.Leader.SyncHistoryRes">;
|
|
155
147
|
} & {
|
|
156
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
148
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
157
149
|
} & {
|
|
158
150
|
clientId: typeof Schema.String;
|
|
159
151
|
} & {
|
|
@@ -164,6 +156,7 @@ declare const SyncHistoryRes_base: Schema.Struct<{
|
|
|
164
156
|
args: typeof Schema.Any;
|
|
165
157
|
id: Schema.BrandSchema<number & import("effect/Brand").Brand<"GlobalEventId">, number, never>;
|
|
166
158
|
parentId: Schema.BrandSchema<number & import("effect/Brand").Brand<"GlobalEventId">, number, never>;
|
|
159
|
+
clientId: typeof Schema.String;
|
|
167
160
|
}>;
|
|
168
161
|
metadata: Schema.Option<Schema.Schema<Schema.JsonValue, Schema.JsonValue, never>>;
|
|
169
162
|
}>;
|
|
@@ -172,7 +165,7 @@ export declare class SyncHistoryRes extends SyncHistoryRes_base {
|
|
|
172
165
|
declare const SyncHeadSubscribe_base: Schema.Struct<{
|
|
173
166
|
_tag: Schema.tag<"LSD.Leader.SyncHeadSubscribe">;
|
|
174
167
|
} & {
|
|
175
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
168
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
176
169
|
} & {
|
|
177
170
|
clientId: typeof Schema.String;
|
|
178
171
|
} & {
|
|
@@ -183,7 +176,7 @@ export declare class SyncHeadSubscribe extends SyncHeadSubscribe_base {
|
|
|
183
176
|
declare const SyncHeadUnsubscribe_base: Schema.Struct<{
|
|
184
177
|
_tag: Schema.tag<"LSD.Leader.SyncHeadUnsubscribe">;
|
|
185
178
|
} & {
|
|
186
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
179
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
187
180
|
} & {
|
|
188
181
|
clientId: typeof Schema.String;
|
|
189
182
|
} & {
|
|
@@ -194,7 +187,7 @@ export declare class SyncHeadUnsubscribe extends SyncHeadUnsubscribe_base {
|
|
|
194
187
|
declare const SyncHeadRes_base: Schema.Struct<{
|
|
195
188
|
_tag: Schema.tag<"LSD.Leader.SyncHeadRes">;
|
|
196
189
|
} & {
|
|
197
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
190
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
198
191
|
} & {
|
|
199
192
|
clientId: typeof Schema.String;
|
|
200
193
|
} & {
|
|
@@ -202,11 +195,11 @@ declare const SyncHeadRes_base: Schema.Struct<{
|
|
|
202
195
|
} & {
|
|
203
196
|
local: Schema.Struct<{
|
|
204
197
|
global: Schema.BrandSchema<number & import("effect/Brand").Brand<"GlobalEventId">, number, never>;
|
|
205
|
-
|
|
198
|
+
client: Schema.BrandSchema<number & import("effect/Brand").Brand<"ClientEventId">, number, never>;
|
|
206
199
|
}>;
|
|
207
200
|
upstream: Schema.Struct<{
|
|
208
201
|
global: Schema.BrandSchema<number & import("effect/Brand").Brand<"GlobalEventId">, number, never>;
|
|
209
|
-
|
|
202
|
+
client: Schema.BrandSchema<number & import("effect/Brand").Brand<"ClientEventId">, number, never>;
|
|
210
203
|
}>;
|
|
211
204
|
}>;
|
|
212
205
|
export declare class SyncHeadRes extends SyncHeadRes_base {
|
|
@@ -214,7 +207,7 @@ export declare class SyncHeadRes extends SyncHeadRes_base {
|
|
|
214
207
|
declare const SnapshotReq_base: Schema.Struct<{
|
|
215
208
|
_tag: Schema.tag<"LSD.Leader.SnapshotReq">;
|
|
216
209
|
} & {
|
|
217
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
210
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
218
211
|
} & {
|
|
219
212
|
clientId: typeof Schema.String;
|
|
220
213
|
} & {
|
|
@@ -225,7 +218,7 @@ export declare class SnapshotReq extends SnapshotReq_base {
|
|
|
225
218
|
declare const SnapshotRes_base: Schema.Struct<{
|
|
226
219
|
_tag: Schema.tag<"LSD.Leader.SnapshotRes">;
|
|
227
220
|
} & {
|
|
228
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
221
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
229
222
|
} & {
|
|
230
223
|
clientId: typeof Schema.String;
|
|
231
224
|
} & {
|
|
@@ -238,7 +231,7 @@ export declare class SnapshotRes extends SnapshotRes_base {
|
|
|
238
231
|
declare const LoadDatabaseFileReq_base: Schema.Struct<{
|
|
239
232
|
_tag: Schema.tag<"LSD.Leader.LoadDatabaseFileReq">;
|
|
240
233
|
} & {
|
|
241
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
234
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
242
235
|
} & {
|
|
243
236
|
clientId: typeof Schema.String;
|
|
244
237
|
} & {
|
|
@@ -251,7 +244,7 @@ export declare class LoadDatabaseFileReq extends LoadDatabaseFileReq_base {
|
|
|
251
244
|
declare const LoadDatabaseFileRes_base: Schema.Struct<{
|
|
252
245
|
_tag: Schema.tag<"LSD.Leader.LoadDatabaseFileRes">;
|
|
253
246
|
} & {
|
|
254
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
247
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
255
248
|
} & {
|
|
256
249
|
clientId: typeof Schema.String;
|
|
257
250
|
} & {
|
|
@@ -261,49 +254,35 @@ declare const LoadDatabaseFileRes_base: Schema.Struct<{
|
|
|
261
254
|
}>;
|
|
262
255
|
export declare class LoadDatabaseFileRes extends LoadDatabaseFileRes_base {
|
|
263
256
|
}
|
|
264
|
-
declare const
|
|
265
|
-
_tag: Schema.tag<"LSD.Leader.
|
|
257
|
+
declare const SyncPull_base: Schema.Struct<{
|
|
258
|
+
_tag: Schema.tag<"LSD.Leader.SyncPull">;
|
|
266
259
|
} & {
|
|
267
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
260
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
268
261
|
} & {
|
|
269
|
-
|
|
270
|
-
mutation: typeof Schema.String;
|
|
271
|
-
args: typeof Schema.Any;
|
|
272
|
-
id: Schema.Struct<{
|
|
273
|
-
global: Schema.BrandSchema<number & import("effect/Brand").Brand<"GlobalEventId">, number, never>;
|
|
274
|
-
local: Schema.BrandSchema<number & import("effect/Brand").Brand<"LocalEventId">, number, never>;
|
|
275
|
-
}>;
|
|
276
|
-
parentId: Schema.Struct<{
|
|
277
|
-
global: Schema.BrandSchema<number & import("effect/Brand").Brand<"GlobalEventId">, number, never>;
|
|
278
|
-
local: Schema.BrandSchema<number & import("effect/Brand").Brand<"LocalEventId">, number, never>;
|
|
279
|
-
}>;
|
|
280
|
-
}>;
|
|
262
|
+
payload: Schema.Union<[typeof SyncState.PayloadUpstreamRebase, typeof SyncState.PayloadUpstreamAdvance]>;
|
|
281
263
|
}>;
|
|
282
|
-
export declare class
|
|
264
|
+
export declare class SyncPull extends SyncPull_base {
|
|
283
265
|
}
|
|
284
266
|
declare const RunMutationReq_base: Schema.Struct<{
|
|
285
267
|
_tag: Schema.tag<"LSD.Leader.RunMutationReq">;
|
|
286
268
|
} & {
|
|
287
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
269
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
288
270
|
} & {
|
|
289
271
|
clientId: typeof Schema.String;
|
|
290
272
|
} & {
|
|
291
273
|
requestId: typeof Schema.String;
|
|
292
274
|
} & {
|
|
293
|
-
mutationEventEncoded: Schema.
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
}
|
|
297
|
-
readonly mutation: string;
|
|
298
|
-
readonly args: any;
|
|
299
|
-
}, never>;
|
|
275
|
+
mutationEventEncoded: Schema.Struct<{
|
|
276
|
+
mutation: typeof Schema.String;
|
|
277
|
+
args: typeof Schema.Any;
|
|
278
|
+
}>;
|
|
300
279
|
}>;
|
|
301
280
|
export declare class RunMutationReq extends RunMutationReq_base {
|
|
302
281
|
}
|
|
303
282
|
declare const RunMutationRes_base: Schema.Struct<{
|
|
304
283
|
_tag: Schema.tag<"LSD.Leader.RunMutationRes">;
|
|
305
284
|
} & {
|
|
306
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
285
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
307
286
|
} & {
|
|
308
287
|
clientId: typeof Schema.String;
|
|
309
288
|
} & {
|
|
@@ -314,7 +293,7 @@ export declare class RunMutationRes extends RunMutationRes_base {
|
|
|
314
293
|
declare const MutationLogReq_base: Schema.Struct<{
|
|
315
294
|
_tag: Schema.tag<"LSD.Leader.MutationLogReq">;
|
|
316
295
|
} & {
|
|
317
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
296
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
318
297
|
} & {
|
|
319
298
|
clientId: typeof Schema.String;
|
|
320
299
|
} & {
|
|
@@ -325,7 +304,7 @@ export declare class MutationLogReq extends MutationLogReq_base {
|
|
|
325
304
|
declare const MutationLogRes_base: Schema.Struct<{
|
|
326
305
|
_tag: Schema.tag<"LSD.Leader.MutationLogRes">;
|
|
327
306
|
} & {
|
|
328
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
307
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
329
308
|
} & {
|
|
330
309
|
clientId: typeof Schema.String;
|
|
331
310
|
} & {
|
|
@@ -338,7 +317,7 @@ export declare class MutationLogRes extends MutationLogRes_base {
|
|
|
338
317
|
declare const Ping_base: Schema.Struct<{
|
|
339
318
|
_tag: Schema.tag<"LSD.Leader.Ping">;
|
|
340
319
|
} & {
|
|
341
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
320
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
342
321
|
} & {
|
|
343
322
|
clientId: typeof Schema.String;
|
|
344
323
|
} & {
|
|
@@ -349,7 +328,7 @@ export declare class Ping extends Ping_base {
|
|
|
349
328
|
declare const Pong_base: Schema.Struct<{
|
|
350
329
|
_tag: Schema.tag<"LSD.Leader.Pong">;
|
|
351
330
|
} & {
|
|
352
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
331
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
353
332
|
} & {
|
|
354
333
|
clientId: typeof Schema.String;
|
|
355
334
|
} & {
|
|
@@ -360,7 +339,7 @@ export declare class Pong extends Pong_base {
|
|
|
360
339
|
declare const Disconnect_base: Schema.Struct<{
|
|
361
340
|
_tag: Schema.tag<"LSD.Leader.Disconnect">;
|
|
362
341
|
} & {
|
|
363
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
342
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
364
343
|
} & {
|
|
365
344
|
clientId: typeof Schema.String;
|
|
366
345
|
} & {
|
|
@@ -368,20 +347,39 @@ declare const Disconnect_base: Schema.Struct<{
|
|
|
368
347
|
}>;
|
|
369
348
|
export declare class Disconnect extends Disconnect_base {
|
|
370
349
|
}
|
|
371
|
-
declare const
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
350
|
+
export declare const SetSyncLatch: {
|
|
351
|
+
Request: Schema.TaggedStruct<"LSD.Leader.SetSyncLatch.Request", {
|
|
352
|
+
closeLatch: typeof Schema.Boolean;
|
|
353
|
+
} & {
|
|
354
|
+
readonly requestId: typeof Schema.String;
|
|
355
|
+
readonly liveStoreVersion: typeof liveStoreVersion;
|
|
356
|
+
readonly clientId: typeof Schema.String;
|
|
357
|
+
}>;
|
|
358
|
+
Response: Schema.TaggedStruct<"LSD.Leader.SetSyncLatch.Response", {
|
|
359
|
+
readonly requestId: typeof Schema.String;
|
|
360
|
+
readonly liveStoreVersion: typeof liveStoreVersion;
|
|
361
|
+
readonly clientId: typeof Schema.String;
|
|
362
|
+
}>;
|
|
363
|
+
};
|
|
364
|
+
export declare const ResetAllData: {
|
|
365
|
+
Request: Schema.TaggedStruct<"LSD.Leader.ResetAllData.Request", {
|
|
366
|
+
mode: Schema.Literal<["all-data", "only-app-db"]>;
|
|
367
|
+
} & {
|
|
368
|
+
readonly requestId: typeof Schema.String;
|
|
369
|
+
readonly liveStoreVersion: typeof liveStoreVersion;
|
|
370
|
+
readonly clientId: typeof Schema.String;
|
|
371
|
+
}>;
|
|
372
|
+
Response: Schema.TaggedStruct<"LSD.Leader.ResetAllData.Response", {
|
|
373
|
+
readonly requestId: typeof Schema.String;
|
|
374
|
+
readonly liveStoreVersion: typeof liveStoreVersion;
|
|
375
|
+
readonly clientId: typeof Schema.String;
|
|
376
|
+
}>;
|
|
377
|
+
};
|
|
380
378
|
declare const DatabaseFileInfo__base: Schema.TaggedRequestClass<DatabaseFileInfo_, "LSD.Leader.DatabaseFileInfo", {
|
|
381
379
|
readonly _tag: Schema.tag<"LSD.Leader.DatabaseFileInfo">;
|
|
382
380
|
} & {
|
|
383
381
|
requestId: typeof Schema.String;
|
|
384
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
382
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
385
383
|
}, typeof DatabaseFileInfo, typeof UnexpectedError>;
|
|
386
384
|
export declare class DatabaseFileInfo_ extends DatabaseFileInfo__base {
|
|
387
385
|
}
|
|
@@ -389,18 +387,39 @@ declare const NetworkStatus__base: Schema.TaggedRequestClass<NetworkStatus_, "LS
|
|
|
389
387
|
readonly _tag: Schema.tag<"LSD.Leader.NetworkStatus">;
|
|
390
388
|
} & {
|
|
391
389
|
requestId: typeof Schema.String;
|
|
392
|
-
liveStoreVersion: Schema.Literal<["0.3.0-dev.
|
|
390
|
+
liveStoreVersion: Schema.Literal<["0.3.0-dev.12"]>;
|
|
393
391
|
}, Schema.Struct<{
|
|
394
392
|
isConnected: typeof Schema.Boolean;
|
|
395
393
|
timestampMs: typeof Schema.Number;
|
|
394
|
+
latchClosed: typeof Schema.Boolean;
|
|
396
395
|
}>, typeof UnexpectedError>;
|
|
397
396
|
export declare class NetworkStatus_ extends NetworkStatus__base {
|
|
398
397
|
}
|
|
399
|
-
export declare const MessageToApp_: Schema.Union<[typeof
|
|
398
|
+
export declare const MessageToApp_: Schema.Union<[typeof DatabaseFileInfo_, typeof NetworkStatus_]>;
|
|
400
399
|
export type MessageToApp_ = typeof MessageToApp_.Type;
|
|
401
|
-
export declare const MessageToApp: Schema.Union<[typeof SnapshotReq, typeof LoadDatabaseFileReq, typeof MutationLogReq,
|
|
400
|
+
export declare const MessageToApp: Schema.Union<[typeof SnapshotReq, typeof LoadDatabaseFileReq, typeof MutationLogReq, Schema.TaggedStruct<"LSD.Leader.ResetAllData.Request", {
|
|
401
|
+
mode: Schema.Literal<["all-data", "only-app-db"]>;
|
|
402
|
+
} & {
|
|
403
|
+
readonly requestId: typeof Schema.String;
|
|
404
|
+
readonly liveStoreVersion: typeof liveStoreVersion;
|
|
405
|
+
readonly clientId: typeof Schema.String;
|
|
406
|
+
}>, typeof NetworkStatusSubscribe, typeof NetworkStatusUnsubscribe, typeof Disconnect, typeof RunMutationReq, typeof Ping, typeof DatabaseFileInfoReq, typeof SyncHistorySubscribe, typeof SyncHistoryUnsubscribe, typeof SyncingInfoReq, typeof SyncHeadSubscribe, typeof SyncHeadUnsubscribe, Schema.TaggedStruct<"LSD.Leader.SetSyncLatch.Request", {
|
|
407
|
+
closeLatch: typeof Schema.Boolean;
|
|
408
|
+
} & {
|
|
409
|
+
readonly requestId: typeof Schema.String;
|
|
410
|
+
readonly liveStoreVersion: typeof liveStoreVersion;
|
|
411
|
+
readonly clientId: typeof Schema.String;
|
|
412
|
+
}>]>;
|
|
402
413
|
export type MessageToApp = typeof MessageToApp.Type;
|
|
403
|
-
export declare const MessageFromApp: Schema.Union<[typeof SnapshotRes, typeof LoadDatabaseFileRes, typeof MutationLogRes, typeof
|
|
414
|
+
export declare const MessageFromApp: Schema.Union<[typeof SnapshotRes, typeof LoadDatabaseFileRes, typeof MutationLogRes, typeof Disconnect, typeof SyncPull, typeof NetworkStatusRes, typeof RunMutationRes, typeof Pong, typeof DatabaseFileInfoRes, typeof SyncHistoryRes, typeof SyncingInfoRes, typeof SyncHeadRes, Schema.TaggedStruct<"LSD.Leader.ResetAllData.Response", {
|
|
415
|
+
readonly requestId: typeof Schema.String;
|
|
416
|
+
readonly liveStoreVersion: typeof liveStoreVersion;
|
|
417
|
+
readonly clientId: typeof Schema.String;
|
|
418
|
+
}>, Schema.TaggedStruct<"LSD.Leader.SetSyncLatch.Response", {
|
|
419
|
+
readonly requestId: typeof Schema.String;
|
|
420
|
+
readonly liveStoreVersion: typeof liveStoreVersion;
|
|
421
|
+
readonly clientId: typeof Schema.String;
|
|
422
|
+
}>]>;
|
|
404
423
|
export type MessageFromApp = typeof MessageFromApp.Type;
|
|
405
424
|
export {};
|
|
406
425
|
//# sourceMappingURL=devtools-messages-leader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devtools-messages-leader.d.ts","sourceRoot":"","sources":["../../src/devtools/devtools-messages-leader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAgB,MAAM,yBAAyB,CAAA;AAE9D,OAAO,EAAiB,eAAe,EAAE,MAAM,qBAAqB,CAAA
|
|
1
|
+
{"version":3,"file":"devtools-messages-leader.d.ts","sourceRoot":"","sources":["../../src/devtools/devtools-messages-leader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAgB,MAAM,yBAAyB,CAAA;AAE9D,OAAO,EAA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AE1D,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC,IAAI,CAAA"}
|
|
@@ -2,13 +2,12 @@ import { Schema, Transferable } from '@livestore/utils/effect';
|
|
|
2
2
|
import { NetworkStatus, UnexpectedError } from '../adapter-types.js';
|
|
3
3
|
import { EventId } from '../schema/mod.js';
|
|
4
4
|
import * as MutationEvent from '../schema/MutationEvent.js';
|
|
5
|
-
import
|
|
5
|
+
import * as SyncState from '../sync/syncstate.js';
|
|
6
|
+
import { LeaderReqResMessage, liveStoreVersion, LSDMessage, LSDReqResMessage, requestId, } from './devtools-messages-common.js';
|
|
6
7
|
export class ResetAllDataReq extends LSDReqResMessage('LSD.Leader.ResetAllDataReq', {
|
|
7
8
|
mode: Schema.Literal('all-data', 'only-app-db'),
|
|
8
9
|
}) {
|
|
9
10
|
}
|
|
10
|
-
export class ResetAllDataRes extends LSDReqResMessage('LSD.Leader.ResetAllDataRes', {}) {
|
|
11
|
-
}
|
|
12
11
|
export class DatabaseFileInfoReq extends LSDReqResMessage('LSD.Leader.DatabaseFileInfoReq', {}) {
|
|
13
12
|
}
|
|
14
13
|
export class DatabaseFileInfo extends Schema.Struct({
|
|
@@ -73,13 +72,13 @@ export class LoadDatabaseFileRes extends LSDReqResMessage('LSD.Leader.LoadDataba
|
|
|
73
72
|
}) {
|
|
74
73
|
}
|
|
75
74
|
// TODO refactor this to use push/pull semantics
|
|
76
|
-
export class
|
|
77
|
-
|
|
75
|
+
export class SyncPull extends LSDMessage('LSD.Leader.SyncPull', {
|
|
76
|
+
payload: SyncState.PayloadUpstream,
|
|
78
77
|
}) {
|
|
79
78
|
}
|
|
80
79
|
// TODO refactor this to use push/pull semantics
|
|
81
80
|
export class RunMutationReq extends LSDReqResMessage('LSD.Leader.RunMutationReq', {
|
|
82
|
-
mutationEventEncoded: MutationEvent.
|
|
81
|
+
mutationEventEncoded: MutationEvent.PartialAnyEncoded,
|
|
83
82
|
}) {
|
|
84
83
|
}
|
|
85
84
|
export class RunMutationRes extends LSDReqResMessage('LSD.Leader.RunMutationRes', {}) {
|
|
@@ -96,17 +95,19 @@ export class Pong extends LSDReqResMessage('LSD.Leader.Pong', {}) {
|
|
|
96
95
|
}
|
|
97
96
|
export class Disconnect extends LSDReqResMessage('LSD.Leader.Disconnect', {}) {
|
|
98
97
|
}
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
export const SetSyncLatch = LeaderReqResMessage('LSD.Leader.SetSyncLatch', {
|
|
99
|
+
payload: {
|
|
100
|
+
closeLatch: Schema.Boolean,
|
|
101
|
+
},
|
|
102
|
+
success: {},
|
|
103
|
+
});
|
|
104
|
+
export const ResetAllData = LeaderReqResMessage('LSD.Leader.ResetAllData', {
|
|
101
105
|
payload: {
|
|
102
106
|
mode: Schema.Literal('all-data', 'only-app-db'),
|
|
103
|
-
requestId,
|
|
104
|
-
liveStoreVersion,
|
|
105
107
|
},
|
|
106
|
-
success:
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
108
|
+
success: {},
|
|
109
|
+
});
|
|
110
|
+
// TODO move to `Schema.TaggedRequest` once new RPC is ready https://github.com/Effect-TS/effect/pull/4362
|
|
110
111
|
export class DatabaseFileInfo_ extends Schema.TaggedRequest()('LSD.Leader.DatabaseFileInfo', {
|
|
111
112
|
payload: {
|
|
112
113
|
requestId,
|
|
@@ -125,8 +126,8 @@ export class NetworkStatus_ extends Schema.TaggedRequest()('LSD.Leader.NetworkSt
|
|
|
125
126
|
failure: UnexpectedError,
|
|
126
127
|
}) {
|
|
127
128
|
}
|
|
128
|
-
export const MessageToApp_ = Schema.Union(
|
|
129
|
+
export const MessageToApp_ = Schema.Union(DatabaseFileInfo_, NetworkStatus_);
|
|
129
130
|
//
|
|
130
|
-
export const MessageToApp = Schema.Union(SnapshotReq, LoadDatabaseFileReq, MutationLogReq,
|
|
131
|
-
export const MessageFromApp = Schema.Union(SnapshotRes, LoadDatabaseFileRes, MutationLogRes,
|
|
131
|
+
export const MessageToApp = Schema.Union(SnapshotReq, LoadDatabaseFileReq, MutationLogReq, ResetAllData.Request, NetworkStatusSubscribe, NetworkStatusUnsubscribe, Disconnect, RunMutationReq, Ping, DatabaseFileInfoReq, SyncHistorySubscribe, SyncHistoryUnsubscribe, SyncingInfoReq, SyncHeadSubscribe, SyncHeadUnsubscribe, SetSyncLatch.Request).annotations({ identifier: 'LSD.Leader.MessageToApp' });
|
|
132
|
+
export const MessageFromApp = Schema.Union(SnapshotRes, LoadDatabaseFileRes, MutationLogRes, Disconnect, SyncPull, NetworkStatusRes, RunMutationRes, Pong, DatabaseFileInfoRes, SyncHistoryRes, SyncingInfoRes, SyncHeadRes, ResetAllData.Response, SetSyncLatch.Response).annotations({ identifier: 'LSD.Leader.MessageFromApp' });
|
|
132
133
|
//# sourceMappingURL=devtools-messages-leader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devtools-messages-leader.js","sourceRoot":"","sources":["../../src/devtools/devtools-messages-leader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAE9D,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,KAAK,aAAa,MAAM,4BAA4B,CAAA;AAC3D,OAAO,
|
|
1
|
+
{"version":3,"file":"devtools-messages-leader.js","sourceRoot":"","sources":["../../src/devtools/devtools-messages-leader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAE9D,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC1C,OAAO,KAAK,aAAa,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAA;AACjD,OAAO,EACL,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* from './debug-info.js';
|
|
|
13
13
|
export * from './bounded-collections.js';
|
|
14
14
|
export * from './version.js';
|
|
15
15
|
export * from './query-builder/mod.js';
|
|
16
|
-
export * from './sync/syncstate.js';
|
|
16
|
+
export * as SyncState from './sync/syncstate.js';
|
|
17
17
|
export * from './otel.js';
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,mCAAmC,CAAA;AACjD,cAAc,eAAe,CAAA;AAC7B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAA;AAC/C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,0BAA0B,CAAA;AACxC,cAAc,cAAc,CAAA;AAC5B,cAAc,wBAAwB,CAAA;AACtC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,mCAAmC,CAAA;AACjD,cAAc,eAAe,CAAA;AAC7B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAA;AAC/C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,0BAA0B,CAAA;AACxC,cAAc,cAAc,CAAA;AAC5B,cAAc,wBAAwB,CAAA;AACtC,OAAO,KAAK,SAAS,MAAM,qBAAqB,CAAA;AAChD,cAAc,WAAW,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -13,6 +13,6 @@ export * from './debug-info.js';
|
|
|
13
13
|
export * from './bounded-collections.js';
|
|
14
14
|
export * from './version.js';
|
|
15
15
|
export * from './query-builder/mod.js';
|
|
16
|
-
export * from './sync/syncstate.js';
|
|
16
|
+
export * as SyncState from './sync/syncstate.js';
|
|
17
17
|
export * from './otel.js';
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,mCAAmC,CAAA;AACjD,cAAc,eAAe,CAAA;AAC7B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAA;AAC/C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,0BAA0B,CAAA;AACxC,cAAc,cAAc,CAAA;AAC5B,cAAc,wBAAwB,CAAA;AACtC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,mCAAmC,CAAA;AACjD,cAAc,eAAe,CAAA;AAC7B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,iCAAiC,CAAA;AAC/C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAA;AAC/C,cAAc,iBAAiB,CAAA;AAC/B,cAAc,0BAA0B,CAAA;AACxC,cAAc,cAAc,CAAA;AAC5B,cAAc,wBAAwB,CAAA;AACtC,OAAO,KAAK,SAAS,MAAM,qBAAqB,CAAA;AAChD,cAAc,WAAW,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LeaderSyncProcessor.d.ts","sourceRoot":"","sources":["../../src/leader-thread/LeaderSyncProcessor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAc,KAAK,EAAU,MAAM,yBAAyB,CAAA;AACxE,OAAO,EAGL,MAAM,EAUP,MAAM,yBAAyB,CAAA;AAGhC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,KAAK,EAAE,eAAe,EAA2B,MAAM,kBAAkB,CAAA;AAehF,OAAO,KAAK,EAAE,0BAA0B,EAAmB,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAQlG;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,uBAAuB,sEAKjC;IACD,MAAM,EAAE,eAAe,CAAA;IACvB,yFAAyF;IACzF,SAAS,EAAE,OAAO,CAAA;IAClB,aAAa,EAAE,QAAQ,CAAA;IACvB,0BAA0B,EAAE,0BAA0B,CAAA;CACvD,KAAG,MAAM,CAAC,MAAM,CAAC,mBAAmB,EAAE,eAAe,EAAE,KAAK,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"LeaderSyncProcessor.d.ts","sourceRoot":"","sources":["../../src/leader-thread/LeaderSyncProcessor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAc,KAAK,EAAU,MAAM,yBAAyB,CAAA;AACxE,OAAO,EAGL,MAAM,EAUP,MAAM,yBAAyB,CAAA;AAGhC,OAAO,KAAK,EAAE,QAAQ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