@livestore/sync-cf 0.4.0-dev.13 → 0.4.0-dev.14

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.
@@ -4,5 +4,5 @@ import { DoCtx } from '../layer.ts';
4
4
  export declare const createHttpRpcHandler: ({ request, responseHeaders, }: {
5
5
  request: CfTypes.Request;
6
6
  responseHeaders?: Record<string, string>;
7
- }) => Effect.Effect<CfTypes.Response, import("effect/Cause").TimeoutException, import("effect/Scope").Scope | DoCtx>;
7
+ }) => Effect.Effect<CfTypes.Response, import("effect/Cause").TimeoutException, DoCtx | import("effect/Scope").Scope>;
8
8
  //# sourceMappingURL=http-rpc-server.d.ts.map
@@ -88,7 +88,12 @@ export type DurableObjectId = string;
88
88
  */
89
89
  export declare const PERSISTENCE_FORMAT_VERSION = 7;
90
90
  export declare const encodeOutgoingMessage: (a: {
91
+ readonly backendId: string;
91
92
  readonly batch: readonly {
93
+ readonly metadata: import("effect/Option").Option<{
94
+ readonly createdAt: string;
95
+ readonly _tag: "SyncMessage.SyncMetadata";
96
+ }>;
92
97
  readonly eventEncoded: {
93
98
  readonly name: string;
94
99
  readonly args: any;
@@ -97,10 +102,6 @@ export declare const encodeOutgoingMessage: (a: {
97
102
  readonly clientId: string;
98
103
  readonly sessionId: string;
99
104
  };
100
- readonly metadata: import("effect/Option").Option<{
101
- readonly _tag: "SyncMessage.SyncMetadata";
102
- readonly createdAt: string;
103
- }>;
104
105
  }[];
105
106
  readonly pageInfo: {
106
107
  readonly _tag: "MoreUnknown";
@@ -110,16 +111,15 @@ export declare const encodeOutgoingMessage: (a: {
110
111
  } | {
111
112
  readonly _tag: "NoMore";
112
113
  };
113
- readonly backendId: string;
114
114
  } | {} | {
115
115
  readonly _tag: "SyncMessage.Pong";
116
116
  } | {
117
117
  readonly _tag: "SyncMessage.AdminResetRoomResponse";
118
118
  } | {
119
- readonly _tag: "SyncMessage.AdminInfoResponse";
120
119
  readonly info: {
121
120
  readonly durableObjectId: string;
122
121
  };
122
+ readonly _tag: "SyncMessage.AdminInfoResponse";
123
123
  }, overrideOptions?: import("effect/SchemaAST").ParseOptions) => string;
124
124
  export declare const encodeIncomingMessage: (a: {
125
125
  readonly cursor: import("effect/Option").Option<{
@@ -127,6 +127,7 @@ export declare const encodeIncomingMessage: (a: {
127
127
  readonly eventSequenceNumber: number & import("effect/Brand").Brand<"GlobalEventSequenceNumber">;
128
128
  }>;
129
129
  } | {
130
+ readonly backendId: import("effect/Option").Option<string>;
130
131
  readonly batch: readonly {
131
132
  readonly name: string;
132
133
  readonly args: any;
@@ -135,7 +136,6 @@ export declare const encodeIncomingMessage: (a: {
135
136
  readonly clientId: string;
136
137
  readonly sessionId: string;
137
138
  }[];
138
- readonly backendId: import("effect/Option").Option<string>;
139
139
  } | {
140
140
  readonly _tag: "SyncMessage.Ping";
141
141
  } | {
@@ -42,7 +42,12 @@ export declare const PullResponse: Schema.Struct<{
42
42
  backendId: Schema.SchemaClass<string, string, never>;
43
43
  }>;
44
44
  export declare const emptyPullResponse: (backendId: string) => {
45
+ readonly backendId: string;
45
46
  readonly batch: readonly {
47
+ readonly metadata: import("effect/Option").Option<{
48
+ readonly createdAt: string;
49
+ readonly _tag: "SyncMessage.SyncMetadata";
50
+ }>;
46
51
  readonly eventEncoded: {
47
52
  readonly name: string;
48
53
  readonly args: any;
@@ -51,10 +56,6 @@ export declare const emptyPullResponse: (backendId: string) => {
51
56
  readonly clientId: string;
52
57
  readonly sessionId: string;
53
58
  };
54
- readonly metadata: import("effect/Option").Option<{
55
- readonly _tag: "SyncMessage.SyncMetadata";
56
- readonly createdAt: string;
57
- }>;
58
59
  }[];
59
60
  readonly pageInfo: {
60
61
  readonly _tag: "MoreUnknown";
@@ -64,7 +65,6 @@ export declare const emptyPullResponse: (backendId: string) => {
64
65
  } | {
65
66
  readonly _tag: "NoMore";
66
67
  };
67
- readonly backendId: string;
68
68
  };
69
69
  export type PullResponse = typeof PullResponse.Type;
70
70
  export declare const PushRequest: Schema.Struct<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livestore/sync-cf",
3
- "version": "0.4.0-dev.13",
3
+ "version": "0.4.0-dev.14",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -10,9 +10,9 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@cloudflare/workers-types": "4.20250923.0",
13
- "@livestore/common": "0.4.0-dev.13",
14
- "@livestore/common-cf": "0.4.0-dev.13",
15
- "@livestore/utils": "0.4.0-dev.13"
13
+ "@livestore/common": "0.4.0-dev.14",
14
+ "@livestore/utils": "0.4.0-dev.14",
15
+ "@livestore/common-cf": "0.4.0-dev.14"
16
16
  },
17
17
  "files": [
18
18
  "dist",