@livestore/adapter-node 0.3.0-dev.26 → 0.3.0-dev.28

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.
@@ -1,4 +1,12 @@
1
- import { BootStatus, Devtools, LeaderAheadError, MigrationsReport, SyncState, UnexpectedError } from '@livestore/common'
1
+ import {
2
+ BootStatus,
3
+ Devtools,
4
+ LeaderAheadError,
5
+ LeaderPullCursor,
6
+ MigrationsReport,
7
+ SyncState,
8
+ UnexpectedError,
9
+ } from '@livestore/common'
2
10
  import { EventId, MutationEvent } from '@livestore/common/schema'
3
11
  import { Schema, Transferable } from '@livestore/utils/effect'
4
12
 
@@ -84,11 +92,11 @@ export namespace LeaderWorkerInner {
84
92
 
85
93
  export class PullStream extends Schema.TaggedRequest<PullStream>()('PullStream', {
86
94
  payload: {
87
- cursor: EventId.EventId,
95
+ cursor: LeaderPullCursor,
88
96
  },
89
97
  success: Schema.Struct({
90
98
  payload: SyncState.PayloadUpstream,
91
- remaining: Schema.Number,
99
+ mergeCounter: Schema.Number,
92
100
  }),
93
101
  failure: UnexpectedError,
94
102
  }) {}
@@ -134,15 +142,6 @@ export namespace LeaderWorkerInner {
134
142
  failure: UnexpectedError,
135
143
  }) {}
136
144
 
137
- export class NetworkStatusStream extends Schema.TaggedRequest<NetworkStatusStream>()('NetworkStatusStream', {
138
- payload: {},
139
- success: Schema.Struct({
140
- isConnected: Schema.Boolean,
141
- timestampMs: Schema.Number,
142
- }),
143
- failure: UnexpectedError,
144
- }) {}
145
-
146
145
  export class Shutdown extends Schema.TaggedRequest<Shutdown>()('Shutdown', {
147
146
  payload: {},
148
147
  success: Schema.Void,
@@ -167,7 +166,6 @@ export namespace LeaderWorkerInner {
167
166
  ExportMutationlog,
168
167
  GetLeaderHead,
169
168
  GetLeaderSyncState,
170
- NetworkStatusStream,
171
169
  Shutdown,
172
170
  ExtraDevtoolsMessage,
173
171
  )
package/tmp/pack.tgz CHANGED
Binary file