@rocicorp/zero 0.23.2025082700 → 0.23.2025082901
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/out/{chunk-3I7CRZJP.js → chunk-G442PJSB.js} +469 -462
- package/out/chunk-G442PJSB.js.map +7 -0
- package/out/{chunk-JYTPHCUA.js → chunk-MRT7XNEQ.js} +3135 -3133
- package/out/chunk-MRT7XNEQ.js.map +7 -0
- package/out/{chunk-J6KXBJIV.js → chunk-YBQT4PQG.js} +3 -3
- package/out/{inspector-UIWB2MYC.js → inspector-4ALIZXAU.js} +2 -2
- package/out/react-native.js +21 -19
- package/out/react-native.js.map +3 -3
- package/out/react.js +85 -10
- package/out/react.js.map +2 -2
- package/out/replicache/src/expo/store.d.ts +5 -0
- package/out/replicache/src/expo/store.d.ts.map +1 -0
- package/out/replicache/src/get-kv-store-provider.d.ts +4 -0
- package/out/replicache/src/get-kv-store-provider.d.ts.map +1 -0
- package/out/replicache/src/http-status-unauthorized.d.ts +2 -0
- package/out/replicache/src/http-status-unauthorized.d.ts.map +1 -0
- package/out/replicache/src/make-idb-name.d.ts +10 -0
- package/out/replicache/src/make-idb-name.d.ts.map +1 -0
- package/out/replicache/src/persist/collect-idb-databases.d.ts.map +1 -1
- package/out/replicache/src/replicache-impl.d.ts.map +1 -1
- package/out/replicache/src/replicache-options.d.ts +3 -3
- package/out/replicache/src/replicache-options.d.ts.map +1 -1
- package/out/replicache/src/report-error.d.ts +6 -0
- package/out/replicache/src/report-error.d.ts.map +1 -0
- package/out/solid.js +6 -5
- package/out/solid.js.map +2 -2
- package/out/zero/package.json +1 -1
- package/out/zero-client/src/client/zero.d.ts.map +1 -1
- package/out/zero-client/src/mod.d.ts +2 -2
- package/out/zero-client/src/mod.d.ts.map +1 -1
- package/out/zero-react/src/mod.d.ts +1 -1
- package/out/zero-react/src/mod.d.ts.map +1 -1
- package/out/zero-react/src/use-query.d.ts +20 -0
- package/out/zero-react/src/use-query.d.ts.map +1 -1
- package/out/zero-react-native/src/mod.d.ts +2 -1
- package/out/zero-react-native/src/mod.d.ts.map +1 -1
- package/out/zero-solid/src/use-query.d.ts.map +1 -1
- package/out/zero.js +3 -3
- package/out/zql/src/query/query-impl.d.ts +4 -1
- package/out/zql/src/query/query-impl.d.ts.map +1 -1
- package/out/zql/src/query/query-impl.js +12 -0
- package/out/zql/src/query/query-impl.js.map +1 -1
- package/package.json +1 -1
- package/out/chunk-3I7CRZJP.js.map +0 -7
- package/out/chunk-JYTPHCUA.js.map +0 -7
- package/out/replicache/src/replicache.d.ts +0 -298
- package/out/replicache/src/replicache.d.ts.map +0 -1
- package/out/zero-react-native/src/store.d.ts +0 -4
- package/out/zero-react-native/src/store.d.ts.map +0 -1
- /package/out/{chunk-J6KXBJIV.js.map → chunk-YBQT4PQG.js.map} +0 -0
- /package/out/{inspector-UIWB2MYC.js.map → inspector-4ALIZXAU.js.map} +0 -0
|
@@ -1,298 +0,0 @@
|
|
|
1
|
-
import type { LogContext } from '@rocicorp/logger';
|
|
2
|
-
import type { MaybePromise } from '../../shared/src/types.ts';
|
|
3
|
-
import type { StoreProvider } from './kv/store.ts';
|
|
4
|
-
import type { PendingMutation } from './pending-mutations.ts';
|
|
5
|
-
import type { Puller } from './puller.ts';
|
|
6
|
-
import type { Pusher } from './pusher.ts';
|
|
7
|
-
import { ReplicacheImpl } from './replicache-impl.ts';
|
|
8
|
-
import type { ReplicacheOptions } from './replicache-options.ts';
|
|
9
|
-
import type { SubscribeOptions, WatchCallbackForOptions, WatchNoIndexCallback, WatchOptions } from './subscriptions.ts';
|
|
10
|
-
import type { ReadTransaction } from './transactions.ts';
|
|
11
|
-
import type { MakeMutators, MutatorDefs, Poke, RequestOptions, UpdateNeededReason } from './types.ts';
|
|
12
|
-
type MakeImpl = <MD extends MutatorDefs>(options: ReplicacheOptions<MD>) => ReplicacheImpl<MD>;
|
|
13
|
-
export declare function setMakeImplForTest(testMakeImpl: MakeImpl): void;
|
|
14
|
-
export declare function restoreMakeImplForTest(): void;
|
|
15
|
-
export declare const httpStatusUnauthorized = 401;
|
|
16
|
-
/**
|
|
17
|
-
* Returns the name of the IDB database that will be used for a particular Replicache instance.
|
|
18
|
-
* @param name The name of the Replicache instance (i.e., the `name` field of `ReplicacheOptions`).
|
|
19
|
-
* @param schemaVersion The schema version of the database (i.e., the `schemaVersion` field of `ReplicacheOptions`).
|
|
20
|
-
* @returns
|
|
21
|
-
*/
|
|
22
|
-
export declare function makeIDBName(name: string, schemaVersion?: string): string;
|
|
23
|
-
declare function makeIDBNameInternal(name: string, schemaVersion: string | undefined, formatVersion: number): string;
|
|
24
|
-
export { makeIDBNameInternal as makeIDBNameForTesting };
|
|
25
|
-
export declare class Replicache<MD extends MutatorDefs = {}> {
|
|
26
|
-
#private;
|
|
27
|
-
constructor(options: ReplicacheOptions<MD>);
|
|
28
|
-
/** The URL to use when doing a pull request. */
|
|
29
|
-
get pullURL(): string;
|
|
30
|
-
set pullURL(value: string);
|
|
31
|
-
/** The URL to use when doing a push request. */
|
|
32
|
-
get pushURL(): string;
|
|
33
|
-
set pushURL(value: string);
|
|
34
|
-
/** The authorization token used when doing a push request. */
|
|
35
|
-
get auth(): string;
|
|
36
|
-
set auth(value: string);
|
|
37
|
-
/** The name of the Replicache database. Populated by {@link ReplicacheOptions#name}. */
|
|
38
|
-
get name(): string;
|
|
39
|
-
/**
|
|
40
|
-
* This is the name Replicache uses for the IndexedDB database where data is
|
|
41
|
-
* stored.
|
|
42
|
-
*/
|
|
43
|
-
get idbName(): string;
|
|
44
|
-
/** The schema version of the data understood by this application. */
|
|
45
|
-
get schemaVersion(): string;
|
|
46
|
-
/**
|
|
47
|
-
* The mutators that was registered in the constructor.
|
|
48
|
-
*/
|
|
49
|
-
get mutate(): MakeMutators<MD>;
|
|
50
|
-
/**
|
|
51
|
-
* The duration between each periodic {@link pull}. Setting this to `null`
|
|
52
|
-
* disables periodic pull completely. Pull will still happen if you call
|
|
53
|
-
* {@link pull} manually.
|
|
54
|
-
*/
|
|
55
|
-
get pullInterval(): number | null;
|
|
56
|
-
set pullInterval(value: number | null);
|
|
57
|
-
/**
|
|
58
|
-
* The delay between when a change is made to Replicache and when Replicache
|
|
59
|
-
* attempts to push that change.
|
|
60
|
-
*/
|
|
61
|
-
get pushDelay(): number;
|
|
62
|
-
set pushDelay(value: number);
|
|
63
|
-
/**
|
|
64
|
-
* The function to use to pull data from the server.
|
|
65
|
-
*/
|
|
66
|
-
get puller(): Puller;
|
|
67
|
-
set puller(value: Puller);
|
|
68
|
-
/**
|
|
69
|
-
* The function to use to push data to the server.
|
|
70
|
-
*/
|
|
71
|
-
get pusher(): Pusher;
|
|
72
|
-
set pusher(value: Pusher);
|
|
73
|
-
/**
|
|
74
|
-
* The options used to control the {@link pull} and push request behavior. This
|
|
75
|
-
* object is live so changes to it will affect the next pull or push call.
|
|
76
|
-
*/
|
|
77
|
-
get requestOptions(): Required<RequestOptions>;
|
|
78
|
-
/**
|
|
79
|
-
* `onSync(true)` is called when Replicache transitions from no push or pull
|
|
80
|
-
* happening to at least one happening. `onSync(false)` is called in the
|
|
81
|
-
* opposite case: when Replicache transitions from at least one push or pull
|
|
82
|
-
* happening to none happening.
|
|
83
|
-
*
|
|
84
|
-
* This can be used in a React like app by doing something like the following:
|
|
85
|
-
*
|
|
86
|
-
* ```js
|
|
87
|
-
* const [syncing, setSyncing] = useState(false);
|
|
88
|
-
* useEffect(() => {
|
|
89
|
-
* rep.onSync = setSyncing;
|
|
90
|
-
* }, [rep]);
|
|
91
|
-
* ```
|
|
92
|
-
*/
|
|
93
|
-
get onSync(): ((syncing: boolean) => void) | null;
|
|
94
|
-
set onSync(value: ((syncing: boolean) => void) | null);
|
|
95
|
-
/**
|
|
96
|
-
* `onClientStateNotFound` is called when the persistent client has been
|
|
97
|
-
* garbage collected. This can happen if the client has no pending mutations
|
|
98
|
-
* and has not been used for a while.
|
|
99
|
-
*
|
|
100
|
-
* The default behavior is to reload the page (using `location.reload()`). Set
|
|
101
|
-
* this to `null` or provide your own function to prevent the page from
|
|
102
|
-
* reloading automatically.
|
|
103
|
-
*/
|
|
104
|
-
get onClientStateNotFound(): (() => void) | null;
|
|
105
|
-
set onClientStateNotFound(value: (() => void) | null);
|
|
106
|
-
/**
|
|
107
|
-
* `onUpdateNeeded` is called when a code update is needed.
|
|
108
|
-
*
|
|
109
|
-
* A code update can be needed because:
|
|
110
|
-
* - the server no longer supports the {@link pushVersion},
|
|
111
|
-
* {@link pullVersion} or {@link schemaVersion} of the current code.
|
|
112
|
-
* - a new Replicache client has created a new client group, because its code
|
|
113
|
-
* has different mutators, indexes, schema version and/or format version
|
|
114
|
-
* from this Replicache client. This is likely due to the new client having
|
|
115
|
-
* newer code. A code update is needed to be able to locally sync with this
|
|
116
|
-
* new Replicache client (i.e. to sync while offline, the clients can can
|
|
117
|
-
* still sync with each other via the server).
|
|
118
|
-
*
|
|
119
|
-
* The default behavior is to reload the page (using `location.reload()`). Set
|
|
120
|
-
* this to `null` or provide your own function to prevent the page from
|
|
121
|
-
* reloading automatically. You may want to provide your own function to
|
|
122
|
-
* display a toast to inform the end user there is a new version of your app
|
|
123
|
-
* available and prompting them to refresh.
|
|
124
|
-
*/
|
|
125
|
-
get onUpdateNeeded(): ((reason: UpdateNeededReason) => void) | null;
|
|
126
|
-
set onUpdateNeeded(value: ((reason: UpdateNeededReason) => void) | null);
|
|
127
|
-
/**
|
|
128
|
-
* This gets called when we get an HTTP unauthorized (401) response from the
|
|
129
|
-
* push or pull endpoint. Set this to a function that will ask your user to
|
|
130
|
-
* reauthenticate.
|
|
131
|
-
*/
|
|
132
|
-
get getAuth(): (() => MaybePromise<string | null | undefined>) | null | undefined;
|
|
133
|
-
set getAuth(value: (() => MaybePromise<string | null | undefined>) | null | undefined);
|
|
134
|
-
/**
|
|
135
|
-
* The browser profile ID for this browser profile. Every instance of Replicache
|
|
136
|
-
* browser-profile-wide shares the same profile ID.
|
|
137
|
-
*/
|
|
138
|
-
get profileID(): Promise<string>;
|
|
139
|
-
/**
|
|
140
|
-
* The client ID for this instance of Replicache. Each instance of Replicache
|
|
141
|
-
* gets a unique client ID.
|
|
142
|
-
*/
|
|
143
|
-
get clientID(): string;
|
|
144
|
-
/**
|
|
145
|
-
* The client group ID for this instance of Replicache. Instances of
|
|
146
|
-
* Replicache will have the same client group ID if and only if they have
|
|
147
|
-
* the same name, mutators, indexes, schema version, format version, and
|
|
148
|
-
* browser profile.
|
|
149
|
-
*/
|
|
150
|
-
get clientGroupID(): Promise<string>;
|
|
151
|
-
/**
|
|
152
|
-
* `onOnlineChange` is called when the {@link online} property changes. See
|
|
153
|
-
* {@link online} for more details.
|
|
154
|
-
*/
|
|
155
|
-
get onOnlineChange(): ((online: boolean) => void) | null;
|
|
156
|
-
set onOnlineChange(value: ((online: boolean) => void) | null);
|
|
157
|
-
/**
|
|
158
|
-
* A rough heuristic for whether the client is currently online. Note that
|
|
159
|
-
* there is no way to know for certain whether a client is online - the next
|
|
160
|
-
* request can always fail. This property returns true if the last sync attempt succeeded,
|
|
161
|
-
* and false otherwise.
|
|
162
|
-
*/
|
|
163
|
-
get online(): boolean;
|
|
164
|
-
/**
|
|
165
|
-
* Whether the Replicache database has been closed. Once Replicache has been
|
|
166
|
-
* closed it no longer syncs and you can no longer read or write data out of
|
|
167
|
-
* it. After it has been closed it is pretty much useless and should not be
|
|
168
|
-
* used any more.
|
|
169
|
-
*/
|
|
170
|
-
get closed(): boolean;
|
|
171
|
-
/**
|
|
172
|
-
* Closes this Replicache instance.
|
|
173
|
-
*
|
|
174
|
-
* When closed all subscriptions end and no more read or writes are allowed.
|
|
175
|
-
*/
|
|
176
|
-
close(): Promise<void>;
|
|
177
|
-
/**
|
|
178
|
-
* Push pushes pending changes to the {@link pushURL}.
|
|
179
|
-
*
|
|
180
|
-
* You do not usually need to manually call push. If {@link pushDelay} is
|
|
181
|
-
* non-zero (which it is by default) pushes happen automatically shortly after
|
|
182
|
-
* mutations.
|
|
183
|
-
*
|
|
184
|
-
* If the server endpoint fails push will be continuously retried with an
|
|
185
|
-
* exponential backoff.
|
|
186
|
-
*
|
|
187
|
-
* @param [now=false] If true, push will happen immediately and ignore
|
|
188
|
-
* {@link pushDelay}, {@link RequestOptions.minDelayMs} as well as the
|
|
189
|
-
* exponential backoff in case of errors.
|
|
190
|
-
* @returns A promise that resolves when the next push completes. In case of
|
|
191
|
-
* errors the first error will reject the returned promise. Subsequent errors
|
|
192
|
-
* will not be reflected in the promise.
|
|
193
|
-
*/
|
|
194
|
-
push({ now }?: {
|
|
195
|
-
now?: boolean | undefined;
|
|
196
|
-
}): Promise<void>;
|
|
197
|
-
/**
|
|
198
|
-
* Pull pulls changes from the {@link pullURL}. If there are any changes local
|
|
199
|
-
* changes will get replayed on top of the new server state.
|
|
200
|
-
*
|
|
201
|
-
* If the server endpoint fails pull will be continuously retried with an
|
|
202
|
-
* exponential backoff.
|
|
203
|
-
*
|
|
204
|
-
* @param [now=false] If true, pull will happen immediately and ignore
|
|
205
|
-
* {@link RequestOptions.minDelayMs} as well as the exponential backoff in
|
|
206
|
-
* case of errors.
|
|
207
|
-
* @returns A promise that resolves when the next pull completes. In case of
|
|
208
|
-
* errors the first error will reject the returned promise. Subsequent errors
|
|
209
|
-
* will not be reflected in the promise.
|
|
210
|
-
*/
|
|
211
|
-
pull({ now }?: {
|
|
212
|
-
now?: boolean | undefined;
|
|
213
|
-
}): Promise<void>;
|
|
214
|
-
/**
|
|
215
|
-
* Applies an update from the server to Replicache.
|
|
216
|
-
* Throws an error if cookie does not match. In that case the server thinks
|
|
217
|
-
* this client has a different cookie than it does; the caller should disconnect
|
|
218
|
-
* from the server and re-register, which transmits the cookie the client actually
|
|
219
|
-
* has.
|
|
220
|
-
*
|
|
221
|
-
* @experimental This method is under development and its semantics will change.
|
|
222
|
-
*/
|
|
223
|
-
poke(poke: Poke): Promise<void>;
|
|
224
|
-
/**
|
|
225
|
-
* Subscribe to the result of a {@link query}. The `body` function is
|
|
226
|
-
* evaluated once and its results are returned via `onData`.
|
|
227
|
-
*
|
|
228
|
-
* Thereafter, each time the the result of `body` changes, `onData` is fired
|
|
229
|
-
* again with the new result.
|
|
230
|
-
*
|
|
231
|
-
* `subscribe()` goes to significant effort to avoid extraneous work
|
|
232
|
-
* re-evaluating subscriptions:
|
|
233
|
-
*
|
|
234
|
-
* 1. subscribe tracks the keys that `body` accesses each time it runs. `body`
|
|
235
|
-
* is only re-evaluated when those keys change.
|
|
236
|
-
* 2. subscribe only re-fires `onData` in the case that a result changes by
|
|
237
|
-
* way of the `isEqual` option which defaults to doing a deep JSON value
|
|
238
|
-
* equality check.
|
|
239
|
-
*
|
|
240
|
-
* Because of (1), `body` must be a pure function of the data in Replicache.
|
|
241
|
-
* `body` must not access anything other than the `tx` parameter passed to it.
|
|
242
|
-
*
|
|
243
|
-
* Although subscribe is as efficient as it can be, it is somewhat constrained
|
|
244
|
-
* by the goal of returning an arbitrary computation of the cache. For even
|
|
245
|
-
* better performance (but worse dx), see {@link experimentalWatch}.
|
|
246
|
-
*
|
|
247
|
-
* If an error occurs in the `body` the `onError` function is called if
|
|
248
|
-
* present. Otherwise, the error is logged at log level 'error'.
|
|
249
|
-
*
|
|
250
|
-
* To cancel the subscription, call the returned function.
|
|
251
|
-
*
|
|
252
|
-
* @param body The function to evaluate to get the value to pass into
|
|
253
|
-
* `onData`.
|
|
254
|
-
* @param options Options is either a function or an object. If it is a
|
|
255
|
-
* function it is equivalent to passing it as the `onData` property of an
|
|
256
|
-
* object.
|
|
257
|
-
*/
|
|
258
|
-
subscribe<R>(body: (tx: ReadTransaction) => Promise<R>, options: SubscribeOptions<R> | ((result: R) => void)): () => void;
|
|
259
|
-
/**
|
|
260
|
-
* Watches Replicache for changes.
|
|
261
|
-
*
|
|
262
|
-
* The `callback` gets called whenever the underlying data changes and the
|
|
263
|
-
* `key` changes matches the `prefix` of {@link ExperimentalWatchIndexOptions} or
|
|
264
|
-
* {@link ExperimentalWatchNoIndexOptions} if present. If a change
|
|
265
|
-
* occurs to the data but the change does not impact the key space the
|
|
266
|
-
* callback is not called. In other words, the callback is never called with
|
|
267
|
-
* an empty diff.
|
|
268
|
-
*
|
|
269
|
-
* This gets called after commit (a mutation or a rebase).
|
|
270
|
-
*
|
|
271
|
-
* @experimental This method is under development and its semantics will
|
|
272
|
-
* change.
|
|
273
|
-
*/
|
|
274
|
-
experimentalWatch(callback: WatchNoIndexCallback): () => void;
|
|
275
|
-
experimentalWatch<Options extends WatchOptions>(callback: WatchCallbackForOptions<Options>, options?: Options): () => void;
|
|
276
|
-
/**
|
|
277
|
-
* Query is used for read transactions. It is recommended to use transactions
|
|
278
|
-
* to ensure you get a consistent view across multiple calls to `get`, `has`
|
|
279
|
-
* and `scan`.
|
|
280
|
-
*/
|
|
281
|
-
query<R>(body: (tx: ReadTransaction) => Promise<R> | R): Promise<R>;
|
|
282
|
-
/**
|
|
283
|
-
* List of pending mutations. The order of this is from oldest to newest.
|
|
284
|
-
*
|
|
285
|
-
* Gives a list of local mutations that have `mutationID` >
|
|
286
|
-
* `syncHead.mutationID` that exists on the main client group.
|
|
287
|
-
*
|
|
288
|
-
* @experimental This method is experimental and may change in the future.
|
|
289
|
-
*/
|
|
290
|
-
experimentalPendingMutations(): Promise<readonly PendingMutation[]>;
|
|
291
|
-
}
|
|
292
|
-
/**
|
|
293
|
-
* Wrapper error class that should be reported as error (logger.error)
|
|
294
|
-
*/
|
|
295
|
-
export declare class ReportError extends Error {
|
|
296
|
-
}
|
|
297
|
-
export declare function getKVStoreProvider(lc: LogContext, kvStore: 'mem' | 'idb' | StoreProvider | undefined): StoreProvider;
|
|
298
|
-
//# sourceMappingURL=replicache.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"replicache.d.ts","sourceRoot":"","sources":["../../../../replicache/src/replicache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,2BAA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src/kv/sqlite-store.ts';
|
|
2
|
-
import type { StoreProvider } from '../../replicache/src/kv/store.ts';
|
|
3
|
-
export declare const expoSQLiteStoreProvider: (opts?: Partial<Omit<SQLiteDatabaseManagerOptions, "journalMode">>) => StoreProvider;
|
|
4
|
-
//# sourceMappingURL=store.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../zero-react-native/src/store.ts"],"names":[],"mappings":"AAKA,OAAO,EAIL,KAAK,4BAA4B,EAClC,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,kCAAkC,CAAC;AAgCpE,eAAO,MAAM,uBAAuB,GAClC,OAAO,OAAO,CAAC,IAAI,CAAC,4BAA4B,EAAE,aAAa,CAAC,CAAC,KAChE,aAkBD,CAAC"}
|
|
File without changes
|
|
File without changes
|