@livestore/common 0.0.54-dev.21 → 0.0.54-dev.23

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.
Files changed (52) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/__tests__/fixture.d.ts +0 -2
  3. package/dist/__tests__/fixture.d.ts.map +1 -1
  4. package/dist/adapter-types.d.ts +75 -16
  5. package/dist/adapter-types.d.ts.map +1 -1
  6. package/dist/adapter-types.js +18 -0
  7. package/dist/adapter-types.js.map +1 -1
  8. package/dist/debug-info.d.ts +8 -8
  9. package/dist/devtools/devtools-messages.d.ts +54 -35
  10. package/dist/devtools/devtools-messages.d.ts.map +1 -1
  11. package/dist/devtools/devtools-messages.js +38 -28
  12. package/dist/devtools/devtools-messages.js.map +1 -1
  13. package/dist/devtools/devtools-window-message.d.ts +26 -0
  14. package/dist/devtools/devtools-window-message.d.ts.map +1 -0
  15. package/dist/devtools/devtools-window-message.js +30 -0
  16. package/dist/devtools/devtools-window-message.js.map +1 -0
  17. package/dist/devtools/index.d.ts +1 -0
  18. package/dist/devtools/index.d.ts.map +1 -1
  19. package/dist/devtools/index.js +1 -0
  20. package/dist/devtools/index.js.map +1 -1
  21. package/dist/index.d.ts +1 -0
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +1 -0
  24. package/dist/index.js.map +1 -1
  25. package/dist/rehydrate-from-mutationlog.d.ts +8 -3
  26. package/dist/rehydrate-from-mutationlog.d.ts.map +1 -1
  27. package/dist/rehydrate-from-mutationlog.js +71 -56
  28. package/dist/rehydrate-from-mutationlog.js.map +1 -1
  29. package/dist/schema/system-tables.d.ts +0 -5
  30. package/dist/schema/system-tables.d.ts.map +1 -1
  31. package/dist/schema/table-def.d.ts +0 -2
  32. package/dist/schema/table-def.d.ts.map +1 -1
  33. package/dist/schema/table-def.js +0 -1
  34. package/dist/schema/table-def.js.map +1 -1
  35. package/dist/schema-management/migrations.d.ts +9 -4
  36. package/dist/schema-management/migrations.d.ts.map +1 -1
  37. package/dist/schema-management/migrations.js +24 -13
  38. package/dist/schema-management/migrations.js.map +1 -1
  39. package/dist/version.d.ts +2 -0
  40. package/dist/version.d.ts.map +1 -0
  41. package/dist/version.js +3 -0
  42. package/dist/version.js.map +1 -0
  43. package/package.json +3 -3
  44. package/src/adapter-types.ts +53 -15
  45. package/src/devtools/devtools-messages.ts +67 -47
  46. package/src/devtools/devtools-window-message.ts +25 -0
  47. package/src/devtools/index.ts +1 -0
  48. package/src/index.ts +1 -0
  49. package/src/rehydrate-from-mutationlog.ts +100 -64
  50. package/src/schema/table-def.ts +0 -4
  51. package/src/schema-management/migrations.ts +104 -84
  52. package/src/version.ts +3 -0
@@ -24,7 +24,6 @@ export declare const todos: DbSchema.TableDef<DbSchema.SqliteDsl.TableDefinition
24
24
  };
25
25
  }>, false, {
26
26
  isSingleton: false;
27
- dynamicRegistration: false;
28
27
  disableAutomaticIdColumn: false;
29
28
  deriveMutations: {
30
29
  enabled: true;
@@ -54,7 +53,6 @@ export declare const appConfig: DbSchema.TableDef<DbSchema.SqliteDsl.TableDefini
54
53
  id: DbSchema.SqliteDsl.ColumnDefinition<"singleton", "singleton">;
55
54
  }>, true, {
56
55
  isSingleton: true;
57
- dynamicRegistration: false;
58
56
  disableAutomaticIdColumn: false;
59
57
  deriveMutations: {
60
58
  enabled: true;
@@ -1 +1 @@
1
- {"version":3,"file":"fixture.d.ts","sourceRoot":"","sources":["../../src/__tests__/fixture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAEhD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAE7C,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAQjB,CAAA;AAOD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAGpB,CAAA"}
1
+ {"version":3,"file":"fixture.d.ts","sourceRoot":"","sources":["../../src/__tests__/fixture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAEhD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAE7C,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAQjB,CAAA;AAOD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAGpB,CAAA"}
@@ -1,6 +1,5 @@
1
- import type { Stream, SubscriptionRef, TRef } from '@livestore/utils/effect';
1
+ import type { Effect, Queue, Stream, SubscriptionRef } from '@livestore/utils/effect';
2
2
  import { Schema } from '@livestore/utils/effect';
3
- import type * as otel from '@opentelemetry/api';
4
3
  import type { LiveStoreSchema, MutationEvent } from './schema/index.js';
5
4
  import type { PreparedBindValues } from './util.js';
6
5
  export interface PreparedStatement {
@@ -18,7 +17,6 @@ export type InMemoryDatabase = {
18
17
  _tag: 'InMemoryDatabase';
19
18
  prepare(queryStr: string): PreparedStatement;
20
19
  execute(queryStr: string, bindValues: PreparedBindValues | undefined): GetRowsChangedCount;
21
- dangerouslyReset(): Promise<void>;
22
20
  export(): Uint8Array;
23
21
  };
24
22
  export type ResetMode = 'all-data' | 'only-app-db';
@@ -30,28 +28,69 @@ export type NetworkStatus = {
30
28
  isConnected: boolean;
31
29
  timestampMs: number;
32
30
  };
31
+ export declare const BootStateProgress: Schema.Struct<{
32
+ done: typeof Schema.Number;
33
+ total: typeof Schema.Number;
34
+ }>;
35
+ export declare const BootStatus: Schema.Union<[Schema.Struct<{
36
+ stage: Schema.Literal<["loading"]>;
37
+ }>, Schema.Struct<{
38
+ stage: Schema.Literal<["migrating"]>;
39
+ progress: Schema.Struct<{
40
+ done: typeof Schema.Number;
41
+ total: typeof Schema.Number;
42
+ }>;
43
+ }>, Schema.Struct<{
44
+ stage: Schema.Literal<["rehydrating"]>;
45
+ progress: Schema.Struct<{
46
+ done: typeof Schema.Number;
47
+ total: typeof Schema.Number;
48
+ }>;
49
+ }>, Schema.Struct<{
50
+ stage: Schema.Literal<["syncing"]>;
51
+ progress: Schema.Struct<{
52
+ done: typeof Schema.Number;
53
+ total: typeof Schema.Number;
54
+ }>;
55
+ }>, Schema.Struct<{
56
+ stage: Schema.Literal<["done"]>;
57
+ }>]>;
58
+ export type BootStatus = typeof BootStatus.Type;
33
59
  export type Coordinator = {
60
+ isShutdownRef: {
61
+ current: boolean;
62
+ };
34
63
  devtools: {
64
+ enabled: boolean;
35
65
  channelId: string;
66
+ /**
67
+ * Returns a dedicated message port for the store which is established over the message port passed in
68
+ */
69
+ connect: (options: {
70
+ port: MessagePort;
71
+ connectionId: string;
72
+ }) => Effect.Effect<{
73
+ storeMessagePort: MessagePort;
74
+ }, UnexpectedError>;
36
75
  };
37
- hasLock: TRef.TRef<boolean>;
38
- syncMutations: Stream.Stream<MutationEvent.AnyEncoded>;
39
- execute(queryStr: string, bindValues: PreparedBindValues | undefined, span: otel.Span | undefined): Promise<void>;
76
+ lockStatus: SubscriptionRef.SubscriptionRef<LockStatus>;
77
+ syncMutations: Stream.Stream<MutationEvent.AnyEncoded, UnexpectedError>;
78
+ execute(queryStr: string, bindValues: PreparedBindValues | undefined): Effect.Effect<void, UnexpectedError>;
40
79
  mutate(mutationEventEncoded: MutationEvent.Any, options: {
41
- span: otel.Span;
42
80
  persisted: boolean;
43
- }): Promise<void>;
44
- dangerouslyReset(mode: ResetMode): Promise<void>;
45
- export(span: otel.Span | undefined): Promise<Uint8Array | undefined>;
81
+ }): Effect.Effect<void, UnexpectedError>;
82
+ dangerouslyReset(mode: ResetMode): Effect.Effect<void, UnexpectedError>;
83
+ export: Effect.Effect<Uint8Array | undefined, UnexpectedError>;
46
84
  /**
47
85
  * This is different from `export` since in `getInitialSnapshot` is usually the place for migrations etc to happen
48
86
  */
49
- getInitialSnapshot(): Promise<Uint8Array>;
50
- getMutationLogData(): Promise<Uint8Array>;
51
- shutdown(): Promise<void>;
87
+ getInitialSnapshot: Effect.Effect<Uint8Array, UnexpectedError>;
88
+ getMutationLogData: Effect.Effect<Uint8Array, UnexpectedError>;
89
+ shutdown: Effect.Effect<void, UnexpectedError>;
52
90
  networkStatus: SubscriptionRef.SubscriptionRef<NetworkStatus>;
53
91
  };
54
92
  export type GetRowsChangedCount = () => number;
93
+ export type LockStatus = 'has-lock' | 'no-lock';
55
94
  export type BootDb = {
56
95
  _tag: 'BootDb';
57
96
  execute(queryStr: string, bindValues?: PreparedBindValues): void;
@@ -59,6 +98,25 @@ export type BootDb = {
59
98
  select<T>(queryStr: string, bindValues?: PreparedBindValues): ReadonlyArray<T>;
60
99
  txn(callback: () => void): void;
61
100
  };
101
+ declare const UnexpectedError_base: Schema.TaggedErrorClass<UnexpectedError, "LiveStore.UnexpectedError", {
102
+ readonly _tag: Schema.PropertySignature<":", "LiveStore.UnexpectedError", never, ":", "LiveStore.UnexpectedError", true, never>;
103
+ } & {
104
+ cause: typeof Schema.AnyError;
105
+ }>;
106
+ export declare class UnexpectedError extends UnexpectedError_base {
107
+ }
108
+ declare const SqliteError_base: Schema.TaggedErrorClass<SqliteError, "LiveStore.SqliteError", {
109
+ readonly _tag: Schema.PropertySignature<":", "LiveStore.SqliteError", never, ":", "LiveStore.SqliteError", true, never>;
110
+ } & {
111
+ sql: typeof Schema.String;
112
+ bindValues: Schema.Record$<typeof Schema.String, typeof Schema.Any>;
113
+ /** The SQLite result code */
114
+ code: typeof Schema.Number;
115
+ /** The original SQLite3 error */
116
+ cause: typeof Schema.AnyError;
117
+ }>;
118
+ export declare class SqliteError extends SqliteError_base {
119
+ }
62
120
  export type MigrationOptions<TSchema extends LiveStoreSchema = LiveStoreSchema> = MigrationOptionsFromMutationLog<TSchema> | {
63
121
  strategy: 'hard-reset';
64
122
  hooks?: Partial<MigrationHooks>;
@@ -90,8 +148,9 @@ export type MigrationOptionsFromMutationLog<TSchema extends LiveStoreSchema = Li
90
148
  };
91
149
  };
92
150
  export type StoreAdapterFactory = (opts: {
93
- otelTracer: otel.Tracer;
94
- otelContext: otel.Context;
95
151
  schema: LiveStoreSchema;
96
- }) => StoreAdapter | Promise<StoreAdapter>;
152
+ devtoolsEnabled: boolean;
153
+ bootStatusQueue: Queue.Queue<BootStatus>;
154
+ }) => Effect.Effect<StoreAdapter, UnexpectedError>;
155
+ export {};
97
156
  //# sourceMappingURL=adapter-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"adapter-types.d.ts","sourceRoot":"","sources":["../src/adapter-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAA;AAC5E,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAChD,OAAO,KAAK,KAAK,IAAI,MAAM,oBAAoB,CAAA;AAE/C,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACvE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAEnD,MAAM,WAAW,iBAAiB;IAChC,OAAO,CAAC,UAAU,EAAE,kBAAkB,GAAG,SAAS,GAAG,mBAAmB,CAAA;IACxE,MAAM,CAAC,CAAC,EAAE,UAAU,EAAE,kBAAkB,GAAG,SAAS,GAAG,aAAa,CAAC,CAAC,CAAC,CAAA;IACvE,QAAQ,IAAI,IAAI,CAAA;CACjB;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,+CAA+C;IAC/C,MAAM,EAAE,gBAAgB,CAAA;IACxB,8EAA8E;IAC9E,WAAW,EAAE,WAAW,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,kBAAkB,CAAA;IACxB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB,CAAA;IAC5C,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,kBAAkB,GAAG,SAAS,GAAG,mBAAmB,CA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,CAAC,EAAE;QACR,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAA;KACnD,CAAA;CACF,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE;IACvC,MAAM,EAAE,eAAe,CAAA;IACvB,eAAe,EAAE,OAAO,CAAA;IACxB,eAAe,EAAE,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,CAAA;CACzC,KAAK,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,CAAA"}
@@ -3,4 +3,22 @@ export const NetworkStatus = Schema.Struct({
3
3
  isConnected: Schema.Boolean,
4
4
  timestampMs: Schema.Number,
5
5
  });
6
+ export const BootStateProgress = Schema.Struct({
7
+ done: Schema.Number,
8
+ total: Schema.Number,
9
+ });
10
+ export const BootStatus = Schema.Union(Schema.Struct({ stage: Schema.Literal('loading') }), Schema.Struct({ stage: Schema.Literal('migrating'), progress: BootStateProgress }), Schema.Struct({ stage: Schema.Literal('rehydrating'), progress: BootStateProgress }), Schema.Struct({ stage: Schema.Literal('syncing'), progress: BootStateProgress }), Schema.Struct({ stage: Schema.Literal('done') }));
11
+ export class UnexpectedError extends Schema.TaggedError()('LiveStore.UnexpectedError', {
12
+ cause: Schema.AnyError,
13
+ }) {
14
+ }
15
+ export class SqliteError extends Schema.TaggedError()('LiveStore.SqliteError', {
16
+ sql: Schema.String,
17
+ bindValues: Schema.Record(Schema.String, Schema.Any),
18
+ /** The SQLite result code */
19
+ code: Schema.Number,
20
+ /** The original SQLite3 error */
21
+ cause: Schema.AnyError,
22
+ }) {
23
+ }
6
24
  //# sourceMappingURL=adapter-types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"adapter-types.js","sourceRoot":"","sources":["../src/adapter-types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AA6BhD,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC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AE;IACtG,KAAK,EAAE,MAAM,CAAC,QAAQ;CACvB,CAAC;CAAG;AAEL,MAAM,OAAO,WAAY,SAAQ,MAAM,CAAC,WAAW,EAAe,CAAC,uBAAuB,EAAE;IAC1F,GAAG,EAAE,MAAM,CAAC,MAAM;IAClB,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,CAAC;IACpD,6BAA6B;IAC7B,IAAI,EAAE,MAAM,CAAC,MAAM;IACnB,iCAAiC;IACjC,KAAK,EAAE,MAAM,CAAC,QAAQ;CACvB,CAAC;CAAG"}
@@ -25,38 +25,38 @@ export declare const DebugInfo: Schema.Struct<{
25
25
  slowQueries: Schema.transform<Schema.Struct<{
26
26
  size: typeof Schema.Number;
27
27
  items: Schema.Array$<Schema.Schema<{
28
- readonly queryStr: string;
29
28
  readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
30
29
  readonly [x: string]: string | number | Uint8Array | null;
31
30
  }) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
31
+ readonly queryStr: string;
32
32
  readonly durationMs: number;
33
33
  readonly rowsCount: number | undefined;
34
34
  readonly queriedTables: ReadonlySet<string>;
35
35
  readonly startTimePerfNow: number;
36
36
  }, {
37
- readonly queryStr: string;
38
37
  readonly bindValues: readonly (string | number | readonly number[] | null)[] | {
39
38
  readonly [x: string]: string | number | readonly number[] | null;
40
39
  } | undefined;
40
+ readonly queryStr: string;
41
41
  readonly durationMs: number;
42
42
  readonly rowsCount: number | undefined;
43
43
  readonly queriedTables: readonly string[];
44
44
  readonly startTimePerfNow: number;
45
45
  }, never>>;
46
46
  }>, Schema.Schema<BoundArray<{
47
- readonly queryStr: string;
48
47
  readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
49
48
  readonly [x: string]: string | number | Uint8Array | null;
50
49
  }) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
50
+ readonly queryStr: string;
51
51
  readonly durationMs: number;
52
52
  readonly rowsCount: number | undefined;
53
53
  readonly queriedTables: ReadonlySet<string>;
54
54
  readonly startTimePerfNow: number;
55
55
  }>, BoundArray<{
56
- readonly queryStr: string;
57
56
  readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
58
57
  readonly [x: string]: string | number | Uint8Array | null;
59
58
  }) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
59
+ readonly queryStr: string;
60
60
  readonly durationMs: number;
61
61
  readonly rowsCount: number | undefined;
62
62
  readonly queriedTables: ReadonlySet<string>;
@@ -74,38 +74,38 @@ export declare const MutableDebugInfo: Schema.mutable<Schema.Struct<{
74
74
  slowQueries: Schema.transform<Schema.Struct<{
75
75
  size: typeof Schema.Number;
76
76
  items: Schema.Array$<Schema.Schema<{
77
- readonly queryStr: string;
78
77
  readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
79
78
  readonly [x: string]: string | number | Uint8Array | null;
80
79
  }) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
80
+ readonly queryStr: string;
81
81
  readonly durationMs: number;
82
82
  readonly rowsCount: number | undefined;
83
83
  readonly queriedTables: ReadonlySet<string>;
84
84
  readonly startTimePerfNow: number;
85
85
  }, {
86
- readonly queryStr: string;
87
86
  readonly bindValues: readonly (string | number | readonly number[] | null)[] | {
88
87
  readonly [x: string]: string | number | readonly number[] | null;
89
88
  } | undefined;
89
+ readonly queryStr: string;
90
90
  readonly durationMs: number;
91
91
  readonly rowsCount: number | undefined;
92
92
  readonly queriedTables: readonly string[];
93
93
  readonly startTimePerfNow: number;
94
94
  }, never>>;
95
95
  }>, Schema.Schema<BoundArray<{
96
- readonly queryStr: string;
97
96
  readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
98
97
  readonly [x: string]: string | number | Uint8Array | null;
99
98
  }) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
99
+ readonly queryStr: string;
100
100
  readonly durationMs: number;
101
101
  readonly rowsCount: number | undefined;
102
102
  readonly queriedTables: ReadonlySet<string>;
103
103
  readonly startTimePerfNow: number;
104
104
  }>, BoundArray<{
105
- readonly queryStr: string;
106
105
  readonly bindValues: ((readonly (string | number | Uint8Array | null)[] | {
107
106
  readonly [x: string]: string | number | Uint8Array | null;
108
107
  }) & import("effect/Brand").Brand<"PreparedBindValues">) | undefined;
108
+ readonly queryStr: string;
109
109
  readonly durationMs: number;
110
110
  readonly rowsCount: number | undefined;
111
111
  readonly queriedTables: ReadonlySet<string>;
@@ -13,27 +13,28 @@ declare const SnapshotRes_base: Schema.Struct<{
13
13
  } & {
14
14
  liveStoreVersion: Schema.Literal<[string]>;
15
15
  requestId: typeof Schema.String;
16
- snapshot: Schema.Schema<Uint8Array, readonly number[], never>;
16
+ snapshot: Schema.Schema<Uint8Array, Uint8Array, never>;
17
17
  }>;
18
18
  export declare class SnapshotRes extends SnapshotRes_base {
19
19
  }
20
- declare const LoadSnapshotReq_base: Schema.Struct<{
21
- _tag: Schema.tag<"LSD.LoadSnapshotReq">;
20
+ declare const LoadDatabaseFileReq_base: Schema.Struct<{
21
+ _tag: Schema.tag<"LSD.LoadDatabaseFileReq">;
22
22
  } & {
23
23
  liveStoreVersion: Schema.Literal<[string]>;
24
24
  requestId: typeof Schema.String;
25
25
  channelId: typeof Schema.String;
26
- snapshot: Schema.Schema<Uint8Array, readonly number[], never>;
26
+ data: Schema.Schema<Uint8Array, Uint8Array, never>;
27
27
  }>;
28
- export declare class LoadSnapshotReq extends LoadSnapshotReq_base {
28
+ export declare class LoadDatabaseFileReq extends LoadDatabaseFileReq_base {
29
29
  }
30
- declare const LoadSnapshotRes_base: Schema.Struct<{
31
- _tag: Schema.tag<"LSD.LoadSnapshotRes">;
30
+ declare const LoadDatabaseFileRes_base: Schema.Struct<{
31
+ _tag: Schema.tag<"LSD.LoadDatabaseFileRes">;
32
32
  } & {
33
33
  liveStoreVersion: Schema.Literal<[string]>;
34
34
  requestId: typeof Schema.String;
35
+ status: Schema.Literal<["ok", "unsupported-file", "unsupported-database"]>;
35
36
  }>;
36
- export declare class LoadSnapshotRes extends LoadSnapshotRes_base {
37
+ export declare class LoadDatabaseFileRes extends LoadDatabaseFileRes_base {
37
38
  }
38
39
  declare const DebugInfoReq_base: Schema.Struct<{
39
40
  _tag: Schema.tag<"LSD.DebugInfoReq">;
@@ -189,28 +190,10 @@ declare const MutationLogRes_base: Schema.Struct<{
189
190
  liveStoreVersion: Schema.Literal<[string]>;
190
191
  requestId: typeof Schema.String;
191
192
  channelId: typeof Schema.String;
192
- mutationLog: Schema.Schema<Uint8Array, readonly number[], never>;
193
+ mutationLog: Schema.Schema<Uint8Array, Uint8Array, never>;
193
194
  }>;
194
195
  export declare class MutationLogRes extends MutationLogRes_base {
195
196
  }
196
- declare const LoadMutationLogReq_base: Schema.Struct<{
197
- _tag: Schema.tag<"LSD.LoadMutationLogReq">;
198
- } & {
199
- liveStoreVersion: Schema.Literal<[string]>;
200
- requestId: typeof Schema.String;
201
- channelId: typeof Schema.String;
202
- mutationLog: Schema.Schema<Uint8Array, readonly number[], never>;
203
- }>;
204
- export declare class LoadMutationLogReq extends LoadMutationLogReq_base {
205
- }
206
- declare const LoadMutationLogRes_base: Schema.Struct<{
207
- _tag: Schema.tag<"LSD.LoadMutationLogRes">;
208
- } & {
209
- liveStoreVersion: Schema.Literal<[string]>;
210
- requestId: typeof Schema.String;
211
- }>;
212
- export declare class LoadMutationLogRes extends LoadMutationLogRes_base {
213
- }
214
197
  declare const ReactivityGraphSubscribe_base: Schema.Struct<{
215
198
  _tag: Schema.tag<"LSD.ReactivityGraphSubscribe">;
216
199
  } & {
@@ -300,6 +283,25 @@ declare const ResetAllDataRes_base: Schema.Struct<{
300
283
  }>;
301
284
  export declare class ResetAllDataRes extends ResetAllDataRes_base {
302
285
  }
286
+ declare const MessagePortForStoreReq_base: Schema.Struct<{
287
+ _tag: Schema.tag<"LSD.MessagePortForStoreReq">;
288
+ } & {
289
+ liveStoreVersion: Schema.Literal<[string]>;
290
+ requestId: typeof Schema.String;
291
+ channelId: typeof Schema.String;
292
+ }>;
293
+ export declare class MessagePortForStoreReq extends MessagePortForStoreReq_base {
294
+ }
295
+ declare const MessagePortForStoreRes_base: Schema.Struct<{
296
+ _tag: Schema.tag<"LSD.MessagePortForStoreRes">;
297
+ } & {
298
+ liveStoreVersion: Schema.Literal<[string]>;
299
+ requestId: typeof Schema.String;
300
+ channelId: typeof Schema.String;
301
+ port: Schema.Schema<MessagePort, MessagePort, never>;
302
+ }>;
303
+ export declare class MessagePortForStoreRes extends MessagePortForStoreRes_base {
304
+ }
303
305
  declare const NetworkStatusChanged_base: Schema.Struct<{
304
306
  _tag: Schema.tag<"LSD.NetworkStatusChanged">;
305
307
  } & {
@@ -344,13 +346,30 @@ declare const Disconnect_base: Schema.Struct<{
344
346
  }>;
345
347
  export declare class Disconnect extends Disconnect_base {
346
348
  }
347
- export declare const MessageToAppHost: Schema.Union<[typeof SnapshotReq, typeof LoadSnapshotReq, typeof MutationLogReq, typeof LoadMutationLogReq, typeof DebugInfoReq, typeof DebugInfoResetReq, typeof DebugInfoRerunQueryReq, typeof ReactivityGraphSubscribe, typeof ReactivityGraphUnsubscribe, typeof LiveQueriesSubscribe, typeof LiveQueriesUnsubscribe, typeof ResetAllDataReq, typeof DevtoolsReady, typeof Disconnect, typeof DevtoolsConnected, typeof RunMutationReq]>;
348
- export type MessageToAppHost = typeof MessageToAppHost.Type;
349
- export declare const MessageFromAppHost: Schema.Union<[typeof SnapshotRes, typeof LoadSnapshotRes, typeof MutationLogRes, typeof LoadMutationLogRes, typeof DebugInfoRes, typeof DebugInfoResetRes, typeof DebugInfoRerunQueryRes, typeof ReactivityGraphRes, typeof LiveQueriesRes, typeof ResetAllDataRes, typeof Disconnect, typeof MutationBroadcast, typeof AppHostReady, typeof NetworkStatusChanged, typeof RunMutationRes]>;
350
- export type MessageFromAppHost = typeof MessageFromAppHost.Type;
351
- export declare const makeBroadcastChannels: () => {
352
- fromAppHost: BroadcastChannel;
353
- toAppHost: BroadcastChannel;
354
- };
349
+ declare const Ping_base: Schema.Struct<{
350
+ _tag: Schema.tag<"LSD.Ping">;
351
+ } & {
352
+ liveStoreVersion: Schema.Literal<[string]>;
353
+ requestId: typeof Schema.String;
354
+ channelId: typeof Schema.String;
355
+ }>;
356
+ export declare class Ping extends Ping_base {
357
+ }
358
+ declare const Pong_base: Schema.Struct<{
359
+ _tag: Schema.tag<"LSD.Pong">;
360
+ } & {
361
+ liveStoreVersion: Schema.Literal<[string]>;
362
+ requestId: typeof Schema.String;
363
+ }>;
364
+ export declare class Pong extends Pong_base {
365
+ }
366
+ export declare const MessageToAppHostCoordinator: Schema.Union<[typeof SnapshotReq, typeof LoadDatabaseFileReq, typeof MutationLogReq, typeof ResetAllDataReq, typeof MessagePortForStoreRes, typeof DevtoolsReady, typeof Disconnect, typeof DevtoolsConnected, typeof RunMutationReq, typeof Ping]>;
367
+ export type MessageToAppHostCoordinator = typeof MessageToAppHostCoordinator.Type;
368
+ export declare const MessageToAppHostStore: Schema.Union<[typeof DebugInfoReq, typeof DebugInfoResetReq, typeof DebugInfoRerunQueryReq, typeof ReactivityGraphSubscribe, typeof ReactivityGraphUnsubscribe, typeof LiveQueriesSubscribe, typeof LiveQueriesUnsubscribe]>;
369
+ export type MessageToAppHostStore = typeof MessageToAppHostStore.Type;
370
+ export declare const MessageFromAppHostCoordinator: Schema.Union<[typeof SnapshotRes, typeof LoadDatabaseFileRes, typeof MutationLogRes, typeof ResetAllDataRes, typeof MessagePortForStoreReq, typeof Disconnect, typeof MutationBroadcast, typeof AppHostReady, typeof NetworkStatusChanged, typeof RunMutationRes, typeof Pong]>;
371
+ export type MessageFromAppHostCoordinator = typeof MessageFromAppHostCoordinator.Type;
372
+ export declare const MessageFromAppHostStore: Schema.Union<[typeof DebugInfoRes, typeof DebugInfoResetRes, typeof DebugInfoRerunQueryRes, typeof ReactivityGraphRes, typeof LiveQueriesRes]>;
373
+ export type MessageFromAppHostStore = typeof MessageFromAppHostStore.Type;
355
374
  export {};
356
375
  //# source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,oBAAqB,SAAQ,yBAIgB;CAAG;;;;;;AAE7D,qBAAa,aAAc,SAAQ,kBAEgB;CAAG;;;;;;;AAEtD,qBAAa,iBAAkB,SAAQ,sBAGgB;CAAG;;;;;;;AAE1D,qBAAa,YAAa,SAAQ,iBAGgB;CAAG;;;;;;;;AAErD,qBAAa,UAAW,SAAQ,eAIgB;CAAG;;;;;;;;AAEnD,qBAAa,IAAK,SAAQ,SAIgB;CAAG;;;;;;;AAE7C,qBAAa,IAAK,SAAQ,SAGgB;CAAG;AAE7C,eAAO,MAAM,2BAA2B,qPAWwB,CAAA;AAEhE,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,IAAI,CAAA;AAEjF,eAAO,MAAM,qBAAqB,8NASwB,CAAA;AAE1D,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAA;AAErE,eAAO,MAAM,6BAA6B,iRAYwB,CAAA;AAElE,MAAM,MAAM,6BAA6B,GAAG,OAAO,6BAA6B,CAAC,IAAI,CAAA;AAErF,eAAO,MAAM,uBAAuB,gJAOwB,CAAA;AAE5D,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,IAAI,CAAA"}
@@ -1,9 +1,9 @@
1
- import { version as pkgVersion } from '@livestore/common/package.json';
2
- import { Schema } from '@livestore/utils/effect';
1
+ import { Schema, Transferable } from '@livestore/utils/effect';
3
2
  import { NetworkStatus } from '../adapter-types.js';
4
3
  import { DebugInfo } from '../debug-info.js';
5
4
  import { mutationEventSchemaEncodedAny } from '../schema/mutations.js';
6
5
  import { PreparedBindValues } from '../util.js';
6
+ import { liveStoreVersion as pkgVersion } from '../version.js';
7
7
  const requestId = Schema.String;
8
8
  const channelId = Schema.String;
9
9
  const liveStoreVersion = Schema.Literal(pkgVersion);
@@ -16,20 +16,21 @@ export class SnapshotReq extends Schema.TaggedStruct('LSD.SnapshotReq', {
16
16
  export class SnapshotRes extends Schema.TaggedStruct('LSD.SnapshotRes', {
17
17
  liveStoreVersion,
18
18
  requestId,
19
- snapshot: Schema.Uint8Array,
19
+ snapshot: Transferable.Uint8Array,
20
20
  }).annotations({ identifier: 'LSD.SnapshotRes' }) {
21
21
  }
22
- export class LoadSnapshotReq extends Schema.TaggedStruct('LSD.LoadSnapshotReq', {
22
+ export class LoadDatabaseFileReq extends Schema.TaggedStruct('LSD.LoadDatabaseFileReq', {
23
23
  liveStoreVersion,
24
24
  requestId,
25
25
  channelId,
26
- snapshot: Schema.Uint8Array,
27
- }).annotations({ identifier: 'LSD.LoadSnapshotReq' }) {
26
+ data: Transferable.Uint8Array,
27
+ }).annotations({ identifier: 'LSD.LoadDatabaseFileReq' }) {
28
28
  }
29
- export class LoadSnapshotRes extends Schema.TaggedStruct('LSD.LoadSnapshotRes', {
29
+ export class LoadDatabaseFileRes extends Schema.TaggedStruct('LSD.LoadDatabaseFileRes', {
30
30
  liveStoreVersion,
31
31
  requestId,
32
- }).annotations({ identifier: 'LSD.LoadSnapshotRes' }) {
32
+ status: Schema.Literal('ok', 'unsupported-file', 'unsupported-database'),
33
+ }).annotations({ identifier: 'LSD.LoadDatabaseFileRes' }) {
33
34
  }
34
35
  export class DebugInfoReq extends Schema.TaggedStruct('LSD.DebugInfoReq', {
35
36
  liveStoreVersion,
@@ -98,21 +99,9 @@ export class MutationLogRes extends Schema.TaggedStruct('LSD.MutationLogRes', {
98
99
  liveStoreVersion,
99
100
  requestId,
100
101
  channelId,
101
- mutationLog: Schema.Uint8Array,
102
+ mutationLog: Transferable.Uint8Array,
102
103
  }).annotations({ identifier: 'LSD.MutationLogRes' }) {
103
104
  }
104
- export class LoadMutationLogReq extends Schema.TaggedStruct('LSD.LoadMutationLogReq', {
105
- liveStoreVersion,
106
- requestId,
107
- channelId,
108
- mutationLog: Schema.Uint8Array,
109
- }).annotations({ identifier: 'LSD.LoadMutationLogReq' }) {
110
- }
111
- export class LoadMutationLogRes extends Schema.TaggedStruct('LSD.LoadMutationLogRes', {
112
- liveStoreVersion,
113
- requestId,
114
- }).annotations({ identifier: 'LSD.LoadMutationLogRes' }) {
115
- }
116
105
  export class ReactivityGraphSubscribe extends Schema.TaggedStruct('LSD.ReactivityGraphSubscribe', {
117
106
  liveStoreVersion,
118
107
  requestId,
@@ -172,6 +161,19 @@ export class ResetAllDataRes extends Schema.TaggedStruct('LSD.ResetAllDataRes',
172
161
  requestId,
173
162
  }).annotations({ identifier: 'LSD.ResetAllDataRes' }) {
174
163
  }
164
+ export class MessagePortForStoreReq extends Schema.TaggedStruct('LSD.MessagePortForStoreReq', {
165
+ liveStoreVersion,
166
+ requestId,
167
+ channelId,
168
+ }).annotations({ identifier: 'LSD.MessagePortForStoreReq' }) {
169
+ }
170
+ export class MessagePortForStoreRes extends Schema.TaggedStruct('LSD.MessagePortForStoreRes', {
171
+ liveStoreVersion,
172
+ requestId,
173
+ channelId,
174
+ port: Transferable.MessagePort,
175
+ }).annotations({ identifier: 'LSD.MessagePortForStoreRes' }) {
176
+ }
175
177
  export class NetworkStatusChanged extends Schema.TaggedStruct('LSD.NetworkStatusChanged', {
176
178
  liveStoreVersion,
177
179
  channelId,
@@ -198,11 +200,19 @@ export class Disconnect extends Schema.TaggedStruct('LSD.Disconnect', {
198
200
  channelId,
199
201
  }).annotations({ identifier: 'LSD.Disconnect' }) {
200
202
  }
201
- export const MessageToAppHost = Schema.Union(SnapshotReq, LoadSnapshotReq, MutationLogReq, LoadMutationLogReq, DebugInfoReq, DebugInfoResetReq, DebugInfoRerunQueryReq, ReactivityGraphSubscribe, ReactivityGraphUnsubscribe, LiveQueriesSubscribe, LiveQueriesUnsubscribe, ResetAllDataReq, DevtoolsReady, Disconnect, DevtoolsConnected, RunMutationReq).annotations({ identifier: 'LSD.MessageToAppHost' });
202
- export const MessageFromAppHost = Schema.Union(SnapshotRes, LoadSnapshotRes, MutationLogRes, LoadMutationLogRes, DebugInfoRes, DebugInfoResetRes, DebugInfoRerunQueryRes, ReactivityGraphRes, LiveQueriesRes, ResetAllDataRes, Disconnect, MutationBroadcast, AppHostReady, NetworkStatusChanged, RunMutationRes).annotations({ identifier: 'LSD.MessageFromAppHost' });
203
- // TODO make specific over app key
204
- export const makeBroadcastChannels = () => ({
205
- fromAppHost: new BroadcastChannel(`livestore-devtools-from-app-host`),
206
- toAppHost: new BroadcastChannel(`livestore-devtools-to-app-host`),
207
- });
203
+ export class Ping extends Schema.TaggedStruct('LSD.Ping', {
204
+ liveStoreVersion,
205
+ requestId,
206
+ channelId,
207
+ }).annotations({ identifier: 'LSD.Ping' }) {
208
+ }
209
+ export class Pong extends Schema.TaggedStruct('LSD.Pong', {
210
+ liveStoreVersion,
211
+ requestId,
212
+ }).annotations({ identifier: 'LSD.Pong' }) {
213
+ }
214
+ export const MessageToAppHostCoordinator = Schema.Union(SnapshotReq, LoadDatabaseFileReq, MutationLogReq, ResetAllDataReq, MessagePortForStoreRes, DevtoolsReady, Disconnect, DevtoolsConnected, RunMutationReq, Ping).annotations({ identifier: 'LSD.MessageToAppHostCoordinator' });
215
+ export const MessageToAppHostStore = Schema.Union(DebugInfoReq, DebugInfoResetReq, DebugInfoRerunQueryReq, ReactivityGraphSubscribe, ReactivityGraphUnsubscribe, LiveQueriesSubscribe, LiveQueriesUnsubscribe).annotations({ identifier: 'LSD.MessageToAppHostStore' });
216
+ export const MessageFromAppHostCoordinator = Schema.Union(SnapshotRes, LoadDatabaseFileRes, MutationLogRes, ResetAllDataRes, MessagePortForStoreReq, Disconnect, MutationBroadcast, AppHostReady, NetworkStatusChanged, RunMutationRes, Pong).annotations({ identifier: 'LSD.MessageFromAppHostCoordinator' });
217
+ export const MessageFromAppHostStore = Schema.Union(DebugInfoRes, DebugInfoResetRes, DebugInfoRerunQueryRes, ReactivityGraphRes, LiveQueriesRes).annotations({ identifier: 'LSD.MessageFromAppHostStore' });
208
218
  //# sourceMappingURL=devtools-messages.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"devtools-messages.js","sourceRoot":"","sources":["../../src/devtools/devtools-messages.ts"],"names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AG,MAAM,CAAC,KAAK,CAC/C,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,EACxB,0BAA0B,EAC1B,oBAAoB,EACpB,sBAAsB,CAEvB,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,2BAA2B,EAAE,CAAC,CAAA;AAI1D,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC,KAAK,CACvD,WAAW,EACX,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,UAAU,EACV,iBAAiB,EACjB,YAAY,EACZ,oBAAoB,EACpB,cAAc,EACd,IAAI,CACL,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,mCAAmC,EAAE,CAAC,CAAA;AAIlE,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,KAAK,CACjD,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,cAAc,CAEf,CAAC,WAAW,CAAC,EAAE,UAAU,EAAE,6BAA6B,EAAE,CAAC,CAAA"}
@@ -0,0 +1,26 @@
1
+ import { Schema } from '@livestore/utils/effect';
2
+ export declare namespace DevtoolsWindowMessage {
3
+ const MessagePortReady_base: Schema.TaggedStruct<"LSD.WindowMessage.MessagePortForStore", {
4
+ port: Schema.Schema<MessagePort, MessagePort, never>;
5
+ channelId: typeof Schema.String;
6
+ }>;
7
+ /** Message is being created in contentscript-iframe, sent to contentscript and then sent to Store */
8
+ export class MessagePortReady extends MessagePortReady_base {
9
+ }
10
+ const ContentscriptListening_base: Schema.TaggedStruct<"LSD.WindowMessage.ContentscriptListening", {}>;
11
+ export class ContentscriptListening extends ContentscriptListening_base {
12
+ }
13
+ const StoreReady_base: Schema.TaggedStruct<"LSD.WindowMessage.StoreReady", {
14
+ channelId: typeof Schema.String;
15
+ }>;
16
+ export class StoreReady extends StoreReady_base {
17
+ }
18
+ const MessageForStore_base: Schema.Union<[typeof MessagePortReady, typeof ContentscriptListening]>;
19
+ export class MessageForStore extends MessageForStore_base {
20
+ }
21
+ const MessageForContentscript_base: typeof StoreReady;
22
+ export class MessageForContentscript extends MessageForContentscript_base {
23
+ }
24
+ export {};
25
+ }
26
+ //# sourceMappingURL=devtools-window-message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devtools-window-message.d.ts","sourceRoot":"","sources":["../../src/devtools/devtools-window-message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAgB,MAAM,yBAAyB,CAAA;AAI9D,yBAAiB,qBAAqB,CAAC;;;;;IACrC,qGAAqG;IACrG,MAAM,OAAO,gBAAiB,SAAQ,qBAGpC;KAAG;;IAEL,MAAM,OAAO,sBAAuB,SAAQ,2BAAmE;KAAG;;;;IAMlH,MAAM,OAAO,UAAW,SAAQ,eAE9B;KAAG;;IAEL,MAAM,OAAO,eAAgB,SAAQ,oBAAsD;KAAG;;IAE9F,MAAM,OAAO,uBAAwB,SAAQ,4BAAwB;KAAG;;CACzE"}