ahmed-rivet-convex 2.2.3 → 2.2.5

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/README.md CHANGED
@@ -1,40 +1,30 @@
1
1
  # ahmed-rivet-convex
2
2
 
3
- Protocolbase's client-only Zero runtime for local-first synchronization with
4
- Convex as the source of truth.
3
+ A client-only, local-first data runtime for the browser: a reactive query
4
+ layer over an IndexedDB-backed store, with optimistic writes and durable
5
+ reconciliation.
5
6
 
6
7
  ## Published Interface
7
8
 
8
9
  Only the browser client is published:
9
10
 
10
- - `ahmed-rivet-convex` — Zero, schema builders, client types, and the generic
11
- `ConvexSyncAdapter`.
11
+ - `ahmed-rivet-convex` — the client, schema builders, and client types.
12
12
  - `ahmed-rivet-convex/react` — `ZeroProvider`, `useZero`, and `useQuery`.
13
13
 
14
- The upstream server, PostgreSQL, CLI, Solid, React Native, and Zero Cache
15
- Modules remain in the monorepo for development and source comparison, but are
16
- not part of the npm artifact.
14
+ Server, database, and CLI modules are not part of the npm artifact.
17
15
 
18
- The generic adapter is available from the package root:
16
+ ## Behaviour
19
17
 
20
- ```ts
21
- import {ConvexSyncAdapter} from 'ahmed-rivet-convex';
22
-
23
- const adapter = new ConvexSyncAdapter({
24
- zero,
25
- orgId,
26
- tables: ['issues', 'comments'],
27
- primaryKeys: {issues: 'id', comments: 'id'},
28
- convexBatchCrud,
29
- convexQuery,
30
- });
31
- ```
32
-
33
- Tables omitted from a Convex response are untouched. A table present with an
18
+ Tables omitted from a backend response are untouched. A table present with an
34
19
  empty array is authoritatively cleared. `pokeDirect()` resolves only after the
35
- new Zero head is durable in IndexedDB, and adapters call `markTablesReady()`
36
- only after that authoritative reconciliation succeeds. `localHydrationComplete`
37
- is a separate signal for warm-cache rendering.
20
+ new head is durable in IndexedDB, and adapters call `markTablesReady()` only
21
+ after that authoritative reconciliation succeeds. `localHydrationComplete` is a
22
+ separate signal for warm-cache rendering.
23
+
24
+ Adapters that supply their own pokes must floor every `lastMutationIDChanges`
25
+ entry with `currentLastMutationIDs`. An entry below what is already durable —
26
+ for another tab's client especially — makes the local store unable to persist,
27
+ permanently. See the API docs on that accessor.
38
28
 
39
29
  ## Release checks
40
30
 
@@ -140,7 +140,7 @@ import {
140
140
  withWrite,
141
141
  withWriteNoImplicitCommit,
142
142
  wrapIterable
143
- } from "./chunk-7WH525PL.js";
143
+ } from "./chunk-SIMXYEFB.js";
144
144
 
145
145
  // ../zero-schema/src/builder/table-builder.ts
146
146
  function table(name) {
@@ -2866,7 +2866,8 @@ var WriteImpl2 = class extends WriteImplBase {
2866
2866
  }
2867
2867
  }
2868
2868
  tx.oncomplete = () => resolve();
2869
- tx.onerror = () => reject(tx.error);
2869
+ tx.onerror = () => reject(txFailure(tx));
2870
+ tx.onabort = () => reject(txFailure(tx));
2870
2871
  return;
2871
2872
  }
2872
2873
  const entries = Array.from(this._pending);
@@ -2889,7 +2890,8 @@ var WriteImpl2 = class extends WriteImplBase {
2889
2890
  };
2890
2891
  queueBatch();
2891
2892
  tx.oncomplete = () => resolve();
2892
- tx.onerror = () => reject(tx.error);
2893
+ tx.onerror = () => reject(txFailure(tx));
2894
+ tx.onabort = () => reject(txFailure(tx));
2893
2895
  });
2894
2896
  }
2895
2897
  release() {
@@ -2900,12 +2902,41 @@ var WriteImpl2 = class extends WriteImplBase {
2900
2902
  return this.#closed;
2901
2903
  }
2902
2904
  };
2905
+ var liveTransactions = /* @__PURE__ */ new Set();
2906
+ function txFailure(tx) {
2907
+ return tx.error ?? new DOMException("IndexedDB transaction aborted", "AbortError");
2908
+ }
2909
+ var freezeReleaseInstalled = false;
2910
+ function track(tx) {
2911
+ if (!freezeReleaseInstalled) {
2912
+ freezeReleaseInstalled = true;
2913
+ globalThis.document?.addEventListener(
2914
+ "freeze",
2915
+ () => {
2916
+ for (const open of liveTransactions) {
2917
+ try {
2918
+ open.abort();
2919
+ } catch {
2920
+ }
2921
+ }
2922
+ liveTransactions.clear();
2923
+ },
2924
+ { capture: true }
2925
+ );
2926
+ }
2927
+ liveTransactions.add(tx);
2928
+ const done = () => liveTransactions.delete(tx);
2929
+ tx.addEventListener("complete", done);
2930
+ tx.addEventListener("abort", done);
2931
+ tx.addEventListener("error", done);
2932
+ return tx;
2933
+ }
2903
2934
  function writeImpl(db) {
2904
- const tx = db.transaction(OBJECT_STORE, "readwrite", RELAXED);
2935
+ const tx = track(db.transaction(OBJECT_STORE, "readwrite", RELAXED));
2905
2936
  return new WriteImpl2(tx);
2906
2937
  }
2907
2938
  function readImpl(db) {
2908
- const tx = db.transaction(OBJECT_STORE, "readonly");
2939
+ const tx = track(db.transaction(OBJECT_STORE, "readonly"));
2909
2940
  return new ReadImpl2(tx);
2910
2941
  }
2911
2942
  function objectStore(tx) {
@@ -5467,8 +5498,14 @@ var ReplicacheImpl = class {
5467
5498
  async #open(indexes, enableClientGroupForking, enableMutationRecovery, clientMaxAgeMs, profileIDResolver, resolveClientGroupID, resolveReady, onClientsDeleted) {
5468
5499
  const { clientID } = this;
5469
5500
  await closingInstances.get(this.name);
5470
- await this.#idbDatabases.getProfileID().then(profileIDResolver);
5471
- await this.#idbDatabases.putDatabase(this.#idbDatabase);
5501
+ await withRegistryDeadline(
5502
+ this.#idbDatabases.getProfileID().then(rememberProfileID),
5503
+ recalledProfileID
5504
+ ).then(profileIDResolver);
5505
+ await withRegistryDeadline(
5506
+ this.#idbDatabases.putDatabase(this.#idbDatabase),
5507
+ () => void 0
5508
+ );
5472
5509
  const [client, headHash, , isNewClientGroup] = await initClientV6(
5473
5510
  clientID,
5474
5511
  this.#lc,
@@ -6160,6 +6197,44 @@ var ReplicacheImpl = class {
6160
6197
  query(body) {
6161
6198
  return this.#queryInternal(body);
6162
6199
  }
6200
+ /**
6201
+ * The DURABLE last-mutation-IDs of this client's client group, read from
6202
+ * the PERDAG — the companion to `cookie`, and required by any embedder
6203
+ * that supplies its own pokes.
6204
+ *
6205
+ * WHY THIS HAS TO EXIST. A poke's `lastMutationIDChanges` are merged
6206
+ * over the base snapshot's, so naming a client with a value BELOW what
6207
+ * is already durable silently rewrites that client's history in the
6208
+ * memdag. `persist` then refuses to adopt the snapshot —
6209
+ * `mutationIDsAreAtLeast` — because adopting one that under-reports a
6210
+ * SIBLING would let that sibling re-push mutations the authority has
6211
+ * already applied. Refusing is correct, but it is also terminal: the
6212
+ * client's own absorbed mutations are gone from the memdag chain while
6213
+ * the perdag has never seen them, so `rebase` throws `Inconsistent
6214
+ * mutation ID` on every attempt and the client persists nothing again,
6215
+ * forever, while continuing to look healthy.
6216
+ *
6217
+ * An embedder cannot avoid that with per-session bookkeeping: after a
6218
+ * reload its in-memory high-water marks start empty while the dag does
6219
+ * not, and it has no way to learn what a SIBLING tab made durable —
6220
+ * `refresh` is the mechanism for that, and it aborts whenever the
6221
+ * memdag's cookie is ahead, which for an app-driven poke source is
6222
+ * essentially always. So the floor has to be readable, and only the dag
6223
+ * can report it.
6224
+ *
6225
+ * Read the perdag rather than the memdag deliberately: the perdag is
6226
+ * what `persist` compares against, and it is where a sibling's progress
6227
+ * appears.
6228
+ */
6229
+ get lastMutationIDs() {
6230
+ return this.#ready.then(async () => {
6231
+ const clientGroupID = await this.#clientGroupIDPromise;
6232
+ return withRead(this.perdag, async (perdagRead) => {
6233
+ const clientGroup = await getClientGroup(clientGroupID, perdagRead);
6234
+ return clientGroup ? { ...clientGroup.mutationIDs } : {};
6235
+ });
6236
+ });
6237
+ }
6163
6238
  get cookie() {
6164
6239
  return this.#ready.then(
6165
6240
  () => withRead(this.memdag, async (dagRead) => {
@@ -6352,6 +6427,32 @@ function validateOptions(options) {
6352
6427
  }
6353
6428
  }
6354
6429
  }
6430
+ var PROFILE_ID_CACHE_KEY = "pb-zero-profile-id";
6431
+ var REGISTRY_DEADLINE_MS = 1500;
6432
+ function withRegistryDeadline(fromRegistry, fallback) {
6433
+ let timer;
6434
+ const late = new Promise((resolve) => {
6435
+ timer = setTimeout(() => resolve(fallback()), REGISTRY_DEADLINE_MS);
6436
+ });
6437
+ fromRegistry.catch(() => {
6438
+ });
6439
+ return Promise.race([fromRegistry, late]).finally(() => clearTimeout(timer));
6440
+ }
6441
+ function rememberProfileID(id) {
6442
+ try {
6443
+ globalThis.localStorage?.setItem(PROFILE_ID_CACHE_KEY, id);
6444
+ } catch {
6445
+ }
6446
+ return id;
6447
+ }
6448
+ function recalledProfileID() {
6449
+ try {
6450
+ const cached = globalThis.localStorage?.getItem(PROFILE_ID_CACHE_KEY);
6451
+ if (cached) return cached;
6452
+ } catch {
6453
+ }
6454
+ return "p" + Math.random().toString(36).slice(2, 12);
6455
+ }
6355
6456
 
6356
6457
  // ../shared/src/subscribable.ts
6357
6458
  var Subscribable = class {
@@ -15008,7 +15109,7 @@ function makeMessage(message, context, logLevel) {
15008
15109
  }
15009
15110
 
15010
15111
  // ../zero-client/src/client/version.ts
15011
- var version2 = "2.2.3";
15112
+ var version2 = "2.2.5";
15012
15113
 
15013
15114
  // ../zero-client/src/client/log-options.ts
15014
15115
  var LevelFilterLogSink = class {
@@ -17109,6 +17210,12 @@ var Zero = class _Zero {
17109
17210
  */
17110
17211
  async pokeDirect(poke) {
17111
17212
  await this.#rep.poke(poke);
17213
+ if (!("error" in poke.pullResponse)) {
17214
+ const lmid = poke.pullResponse.lastMutationIDChanges[this.clientID];
17215
+ if (lmid !== void 0) {
17216
+ this.#mutationTracker.lmidAdvanced(lmid);
17217
+ }
17218
+ }
17112
17219
  this.#pokePersistChain = this.#pokePersistChain.then(() => this.#rep.persist()).catch(() => {
17113
17220
  });
17114
17221
  }
@@ -17157,6 +17264,20 @@ var Zero = class _Zero {
17157
17264
  get currentCookie() {
17158
17265
  return this.#rep.cookie;
17159
17266
  }
17267
+ /**
17268
+ * The DURABLE last-mutation-IDs of this client's client group.
17269
+ *
17270
+ * An adapter that supplies its own pokes MUST floor every
17271
+ * `lastMutationIDChanges` entry with this. A poke naming any client —
17272
+ * especially a SIBLING TAB — at a value below what is already durable
17273
+ * wedges `persist` permanently: see `ReplicacheImpl.lastMutationIDs`
17274
+ * for the full mechanism. Session-local bookkeeping cannot substitute,
17275
+ * because it starts empty after every reload and never learns what a
17276
+ * sibling made durable.
17277
+ */
17278
+ get currentLastMutationIDs() {
17279
+ return this.#rep.lastMutationIDs;
17280
+ }
17160
17281
  #onMessage = (e) => {
17161
17282
  const lc = this.#lc;
17162
17283
  lc.debug?.("received message", e.data);
@@ -18095,4 +18216,3 @@ export {
18095
18216
  pako/dist/pako.esm.mjs:
18096
18217
  (*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) *)
18097
18218
  */
18098
- //# sourceMappingURL=chunk-UHDLB4MJ.js.map
@@ -8719,4 +8719,3 @@ export {
8719
8719
  Client,
8720
8720
  TDigest
8721
8721
  };
8722
- //# sourceMappingURL=chunk-7WH525PL.js.map
@@ -22,7 +22,7 @@ import {
22
22
  unreachable,
23
23
  valita_exports,
24
24
  withRead
25
- } from "./chunk-7WH525PL.js";
25
+ } from "./chunk-SIMXYEFB.js";
26
26
 
27
27
  // ../zero-client/src/client/inspector/html-dialog-prompt.ts
28
28
  function canUseHTMLDialog() {
@@ -550,4 +550,3 @@ export {
550
550
  rpc,
551
551
  serverVersion
552
552
  };
553
- //# sourceMappingURL=lazy-inspector-UQUFJWOZ.js.map
package/dist/react.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Zero
3
- } from "./chunk-UHDLB4MJ.js";
3
+ } from "./chunk-MLCRKRW5.js";
4
4
  import {
5
5
  DEFAULT_TTL_MS
6
- } from "./chunk-7WH525PL.js";
6
+ } from "./chunk-SIMXYEFB.js";
7
7
 
8
8
  // ../zero-react/src/use-query.tsx
9
9
  import React, { useSyncExternalStore } from "react";
@@ -382,4 +382,3 @@ export {
382
382
  useZero,
383
383
  useZeroOnline
384
384
  };
385
- //# sourceMappingURL=react.js.map
@@ -10,6 +10,7 @@ import type { Puller } from './puller.ts';
10
10
  import { type Pusher } from './pusher.ts';
11
11
  import type { ReplicacheOptions, ZeroOption } from './replicache-options.ts';
12
12
  import { type SubscribeOptions, type SubscriptionsManager, type WatchCallbackForOptions, type WatchNoIndexCallback, type WatchOptions } from './subscriptions.ts';
13
+ import type { ClientID } from './sync/ids.ts';
13
14
  import type { ReadTransaction } from './transactions.ts';
14
15
  import type { BeginPullResult, MakeMutators, MutatorDefs, PokeInternal, QueryInternal, RequestOptions, UpdateNeededReason } from './types.ts';
15
16
  /** @deprecated Not used any more */
@@ -315,6 +316,36 @@ export declare class ReplicacheImpl<MD extends MutatorDefs = {}> {
315
316
  * and `scan`.
316
317
  */
317
318
  query<R>(body: (tx: ReadTransaction) => Promise<R> | R): Promise<R>;
319
+ /**
320
+ * The DURABLE last-mutation-IDs of this client's client group, read from
321
+ * the PERDAG — the companion to `cookie`, and required by any embedder
322
+ * that supplies its own pokes.
323
+ *
324
+ * WHY THIS HAS TO EXIST. A poke's `lastMutationIDChanges` are merged
325
+ * over the base snapshot's, so naming a client with a value BELOW what
326
+ * is already durable silently rewrites that client's history in the
327
+ * memdag. `persist` then refuses to adopt the snapshot —
328
+ * `mutationIDsAreAtLeast` — because adopting one that under-reports a
329
+ * SIBLING would let that sibling re-push mutations the authority has
330
+ * already applied. Refusing is correct, but it is also terminal: the
331
+ * client's own absorbed mutations are gone from the memdag chain while
332
+ * the perdag has never seen them, so `rebase` throws `Inconsistent
333
+ * mutation ID` on every attempt and the client persists nothing again,
334
+ * forever, while continuing to look healthy.
335
+ *
336
+ * An embedder cannot avoid that with per-session bookkeeping: after a
337
+ * reload its in-memory high-water marks start empty while the dag does
338
+ * not, and it has no way to learn what a SIBLING tab made durable —
339
+ * `refresh` is the mechanism for that, and it aborts whenever the
340
+ * memdag's cookie is ahead, which for an app-driven poke source is
341
+ * essentially always. So the floor has to be readable, and only the dag
342
+ * can report it.
343
+ *
344
+ * Read the perdag rather than the memdag deliberately: the perdag is
345
+ * what `persist` compares against, and it is where a sibling's progress
346
+ * appears.
347
+ */
348
+ get lastMutationIDs(): Promise<Record<ClientID, number>>;
318
349
  get cookie(): Promise<Cookie>;
319
350
  recoverMutations(): Promise<boolean> | void;
320
351
  /**
@@ -1,3 +1,4 @@
1
+ export type { Transaction } from '../../zql/src/mutate/custom.ts';
1
2
  export type { ReadonlyJSONValue } from '../../shared/src/json.ts';
2
3
  export { Zero } from '../../zero-client/src/client/zero.ts';
3
4
  export { createSchema, type Schema, } from '../../zero-schema/src/builder/schema-builder.ts';
@@ -200,6 +200,18 @@ export declare class Zero<const S extends Schema, MD extends CustomMutatorDefs |
200
200
  * Used by adapters to track sync state for poke operations.
201
201
  */
202
202
  get currentCookie(): Promise<Cookie>;
203
+ /**
204
+ * The DURABLE last-mutation-IDs of this client's client group.
205
+ *
206
+ * An adapter that supplies its own pokes MUST floor every
207
+ * `lastMutationIDChanges` entry with this. A poke naming any client —
208
+ * especially a SIBLING TAB — at a value below what is already durable
209
+ * wedges `persist` permanently: see `ReplicacheImpl.lastMutationIDs`
210
+ * for the full mechanism. Session-local bookkeeping cannot substitute,
211
+ * because it starts empty after every reload and never learns what a
212
+ * sibling made durable.
213
+ */
214
+ get currentLastMutationIDs(): Promise<Record<ClientID, number>>;
203
215
  /**
204
216
  * A rough heuristic for whether the client is currently online and
205
217
  * authenticated.
@@ -53,7 +53,7 @@ export declare const correlatedSubquerySchemaOmitSubquery: v.ObjectType<Readonly
53
53
  childField: v.Type<CompoundKey>;
54
54
  }>, undefined>;
55
55
  hidden: v.Optional<boolean>;
56
- system: v.Optional<"test" | "permissions" | "client">;
56
+ system: v.Optional<"permissions" | "client" | "test">;
57
57
  flip: v.Optional<boolean>;
58
58
  }>, undefined>;
59
59
  export declare const correlatedSubquerySchema: v.Type<CorrelatedSubquery>;
@@ -4,7 +4,7 @@ declare const changeDesiredQueriesBodySchema: v.ObjectType<{
4
4
  op: v.Type<"put">;
5
5
  hash: v.Type<string>;
6
6
  ttl: v.Optional<number>;
7
- }, "ast" | "name" | "args"> & {
7
+ }, "name" | "args" | "ast"> & {
8
8
  ast: v.Optional<import("./ast.ts").AST>;
9
9
  name: v.Optional<string>;
10
10
  args: v.Optional<readonly import("../../shared/src/json.ts").ReadonlyJSONValue[]>;
@@ -21,7 +21,7 @@ export declare const changeDesiredQueriesMessageSchema: v.TupleType<[v.Type<"cha
21
21
  op: v.Type<"put">;
22
22
  hash: v.Type<string>;
23
23
  ttl: v.Optional<number>;
24
- }, "ast" | "name" | "args"> & {
24
+ }, "name" | "args" | "ast"> & {
25
25
  ast: v.Optional<import("./ast.ts").AST>;
26
26
  name: v.Optional<string>;
27
27
  args: v.Optional<readonly import("../../shared/src/json.ts").ReadonlyJSONValue[]>;
@@ -19,7 +19,7 @@ declare const initConnectionBodySchema: v.ObjectType<{
19
19
  op: v.Type<"put">;
20
20
  hash: v.Type<string>;
21
21
  ttl: v.Optional<number>;
22
- }, "ast" | "name" | "args"> & {
22
+ }, "name" | "args" | "ast"> & {
23
23
  ast: v.Optional<import("./ast.ts").AST>;
24
24
  name: v.Optional<string>;
25
25
  args: v.Optional<readonly import("../../shared/src/json.ts").ReadonlyJSONValue[]>;
@@ -56,7 +56,7 @@ export declare const initConnectionMessageSchema: v.TupleType<[v.Type<"initConne
56
56
  op: v.Type<"put">;
57
57
  hash: v.Type<string>;
58
58
  ttl: v.Optional<number>;
59
- }, "ast" | "name" | "args"> & {
59
+ }, "name" | "args" | "ast"> & {
60
60
  ast: v.Optional<import("./ast.ts").AST>;
61
61
  name: v.Optional<string>;
62
62
  args: v.Optional<readonly import("../../shared/src/json.ts").ReadonlyJSONValue[]>;
@@ -8,7 +8,7 @@ export declare const upPutOpSchema: v.ObjectType<Omit<{
8
8
  op: v.Type<"put">;
9
9
  hash: v.Type<string>;
10
10
  ttl: v.Optional<number>;
11
- }, "ast" | "name" | "args"> & {
11
+ }, "name" | "args" | "ast"> & {
12
12
  ast: v.Optional<import("./ast.ts").AST>;
13
13
  name: v.Optional<string>;
14
14
  args: v.Optional<readonly import("../../shared/src/json.ts").ReadonlyJSONValue[]>;
@@ -34,7 +34,7 @@ declare const upPatchOpSchema: v.UnionType<[v.ObjectType<Omit<{
34
34
  op: v.Type<"put">;
35
35
  hash: v.Type<string>;
36
36
  ttl: v.Optional<number>;
37
- }, "ast" | "name" | "args"> & {
37
+ }, "name" | "args" | "ast"> & {
38
38
  ast: v.Optional<import("./ast.ts").AST>;
39
39
  name: v.Optional<string>;
40
40
  args: v.Optional<readonly import("../../shared/src/json.ts").ReadonlyJSONValue[]>;
@@ -58,7 +58,7 @@ export declare const upQueriesPatchSchema: v.ArrayType<v.UnionType<[v.ObjectType
58
58
  op: v.Type<"put">;
59
59
  hash: v.Type<string>;
60
60
  ttl: v.Optional<number>;
61
- }, "ast" | "name" | "args"> & {
61
+ }, "name" | "args" | "ast"> & {
62
62
  ast: v.Optional<import("./ast.ts").AST>;
63
63
  name: v.Optional<string>;
64
64
  args: v.Optional<readonly import("../../shared/src/json.ts").ReadonlyJSONValue[]>;
@@ -4,7 +4,7 @@ export declare const upstreamSchema: v.UnionType<[v.TupleType<[v.Type<"initConne
4
4
  op: v.Type<"put">;
5
5
  hash: v.Type<string>;
6
6
  ttl: v.Optional<number>;
7
- }, "ast" | "name" | "args"> & {
7
+ }, "name" | "args" | "ast"> & {
8
8
  ast: v.Optional<import("./ast.ts").AST>;
9
9
  name: v.Optional<string>;
10
10
  args: v.Optional<readonly import("../../shared/src/json.ts").ReadonlyJSONValue[]>;
@@ -37,7 +37,7 @@ export declare const upstreamSchema: v.UnionType<[v.TupleType<[v.Type<"initConne
37
37
  op: v.Type<"put">;
38
38
  hash: v.Type<string>;
39
39
  ttl: v.Optional<number>;
40
- }, "ast" | "name" | "args"> & {
40
+ }, "name" | "args" | "ast"> & {
41
41
  ast: v.Optional<import("./ast.ts").AST>;
42
42
  name: v.Optional<string>;
43
43
  args: v.Optional<readonly import("../../shared/src/json.ts").ReadonlyJSONValue[]>;
package/dist/zero.js CHANGED
@@ -6,8 +6,8 @@ import {
6
6
  number,
7
7
  string,
8
8
  table
9
- } from "./chunk-UHDLB4MJ.js";
10
- import "./chunk-7WH525PL.js";
9
+ } from "./chunk-MLCRKRW5.js";
10
+ import "./chunk-SIMXYEFB.js";
11
11
 
12
12
  // src/adapters/convex.ts
13
13
  var ConvexSyncAdapter = class {
@@ -400,4 +400,3 @@ export {
400
400
  string,
401
401
  table
402
402
  };
403
- //# sourceMappingURL=zero.js.map
package/package.json CHANGED
@@ -1,26 +1,19 @@
1
1
  {
2
2
  "name": "ahmed-rivet-convex",
3
- "version": "2.2.3",
4
- "description": "Client-only Zero runtime used by Protocolbase for local-first Convex synchronization.",
3
+ "version": "2.2.5",
4
+ "description": "Client-only local-first data runtime for the browser: reactive queries over IndexedDB with optimistic writes.",
5
5
  "author": "Ahmed Banihani",
6
6
  "license": "Apache-2.0",
7
- "homepage": "https://zero.rocicorp.dev",
8
7
  "keywords": [
9
- "zero",
10
- "sync-engine",
11
8
  "local-first",
12
9
  "offline-first",
13
10
  "real-time",
14
- "query-batching",
15
- "compression",
16
- "messagepack",
17
- "gzip",
18
- "binary-protocol",
19
- "websocket",
20
11
  "reactive",
21
12
  "data-sync",
22
13
  "optimistic-ui",
23
- "serverless"
14
+ "indexeddb",
15
+ "websocket",
16
+ "messagepack"
24
17
  ],
25
18
  "scripts": {
26
19
  "build": "npm run build-client && npm run verify-package",
@@ -130,15 +123,10 @@
130
123
  },
131
124
  "files": [
132
125
  "dist/zero.js",
133
- "dist/zero.js.map",
134
126
  "dist/react.js",
135
- "dist/react.js.map",
136
127
  "dist/chunk-*.js",
137
- "dist/chunk-*.js.map",
138
128
  "dist/inspector-*.js",
139
- "dist/inspector-*.js.map",
140
129
  "dist/lazy-inspector-*.js",
141
- "dist/lazy-inspector-*.js.map",
142
130
  "dist/**/*.d.ts",
143
131
  "!*.tsbuildinfo"
144
132
  ],