@tinycloud/sdk-services 3.8.0-beta.2 → 3.8.0-beta.9

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.
@@ -1460,6 +1460,8 @@ interface KVReplicaSpec {
1460
1460
  grantPolicy?: ReplicaGrantPolicy;
1461
1461
  /** Quota settings; absent means unbounded. */
1462
1462
  quota?: ReplicaQuotaSpec;
1463
+ /** Value download policy for syncs of this handle; absent means `"eager"`. See `ReplicationOptions.contentFetch`. */
1464
+ contentFetch?: "eager" | "lazy";
1463
1465
  /**
1464
1466
  * Called when another tab/process commits a sync for this partition (browser: the worker's
1465
1467
  * `committed` BroadcastChannel message). The controller emits `replication.sync` with
@@ -1842,6 +1844,11 @@ interface ReplicationOptions {
1842
1844
  allowSecrets?: boolean;
1843
1845
  /** Sign-in asks for kv/sync on each declared prefix only and never widens to a root entry that covers them. */
1844
1846
  syncScope?: "prefixes";
1847
+ /**
1848
+ * `"eager"` (default) downloads each changed value while syncing. `"lazy"` syncs entry names
1849
+ * without downloading values; a read of a value the replica does not hold goes to the network.
1850
+ */
1851
+ contentFetch?: "eager" | "lazy";
1845
1852
  /** Background interval; default 60 seconds. */
1846
1853
  syncIntervalMs?: number;
1847
1854
  maxStalenessMs?: number;
@@ -1460,6 +1460,8 @@ interface KVReplicaSpec {
1460
1460
  grantPolicy?: ReplicaGrantPolicy;
1461
1461
  /** Quota settings; absent means unbounded. */
1462
1462
  quota?: ReplicaQuotaSpec;
1463
+ /** Value download policy for syncs of this handle; absent means `"eager"`. See `ReplicationOptions.contentFetch`. */
1464
+ contentFetch?: "eager" | "lazy";
1463
1465
  /**
1464
1466
  * Called when another tab/process commits a sync for this partition (browser: the worker's
1465
1467
  * `committed` BroadcastChannel message). The controller emits `replication.sync` with
@@ -1842,6 +1844,11 @@ interface ReplicationOptions {
1842
1844
  allowSecrets?: boolean;
1843
1845
  /** Sign-in asks for kv/sync on each declared prefix only and never widens to a root entry that covers them. */
1844
1846
  syncScope?: "prefixes";
1847
+ /**
1848
+ * `"eager"` (default) downloads each changed value while syncing. `"lazy"` syncs entry names
1849
+ * without downloading values; a read of a value the replica does not hold goes to the network.
1850
+ */
1851
+ contentFetch?: "eager" | "lazy";
1845
1852
  /** Background interval; default 60 seconds. */
1846
1853
  syncIntervalMs?: number;
1847
1854
  maxStalenessMs?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinycloud/sdk-services",
3
- "version": "3.8.0-beta.2",
3
+ "version": "3.8.0-beta.9",
4
4
  "description": "TinyCloud SDK Services - Platform-agnostic service implementations",
5
5
  "author": "TinyCloud, Inc.",
6
6
  "license": "EGPL",