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
|
@@ -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
package/package.json
CHANGED