ahmed-rivet-convex 2.2.0 → 2.2.1

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/dist/react.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Zero
3
- } from "./chunk-RIN53NKR.js";
3
+ } from "./chunk-AFP2JY7C.js";
4
4
  import {
5
5
  DEFAULT_TTL_MS
6
6
  } from "./chunk-7WH525PL.js";
@@ -58,6 +58,24 @@ export interface ZeroOptions<S extends Schema, MD extends CustomMutatorDefs | un
58
58
  * app.
59
59
  */
60
60
  storageKey?: string | undefined;
61
+ /**
62
+ * How long an inactive client's persisted state is retained before
63
+ * ClientGC collects it. Defaults to 24h
64
+ * (`CLIENT_MAX_INACTIVE_TIME`).
65
+ *
66
+ * Every page load creates a client, and each client roots a snapshot of
67
+ * the dag b-tree, so this value is effectively "how many boots' worth of
68
+ * superseded b-tree nodes stay on disk". An app that loads often can end
69
+ * up reading back an order of magnitude more than its live row set at
70
+ * boot; lowering this lets the existing refcount GC reclaim it.
71
+ *
72
+ * Only lower it if the app does not rely on mutation recovery from
73
+ * abandoned clients — a collected client's un-pushed mutations are gone.
74
+ *
75
+ * Must be larger than `max(GC_INTERVAL, HEARTBEAT_INTERVAL)`; smaller
76
+ * values throw from `validateOptions`.
77
+ */
78
+ clientMaxAgeMs?: number | undefined;
61
79
  /**
62
80
  * Determines the level of detail at which Zero logs messages about
63
81
  * its operation. Messages are logged to the `console`.
package/dist/zero.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  number,
7
7
  string,
8
8
  table
9
- } from "./chunk-RIN53NKR.js";
9
+ } from "./chunk-AFP2JY7C.js";
10
10
  import "./chunk-7WH525PL.js";
11
11
 
12
12
  // src/adapters/convex.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ahmed-rivet-convex",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Client-only Zero runtime used by Protocolbase for local-first Convex synchronization.",
5
5
  "author": "Ahmed Banihani",
6
6
  "license": "Apache-2.0",