@voltro/client 0.81.0 → 0.83.0

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/runtime.d.ts CHANGED
@@ -278,7 +278,10 @@ export declare interface CacheSnapshot<T> {
278
278
  readonly revision: number;
279
279
  /** Wall-clock ms when the most recent server delta was emitted; undefined for snapshots. */
280
280
  readonly emittedAt: number | undefined;
281
- /** Error from the underlying stream (if no snapshot has ever arrived). */
281
+ /** Why the stream failed, if no snapshot has ever arrived — the value the
282
+ * api's error bus carries in `RpcError.error` for the same failure: the
283
+ * declared error itself (match on `_tag`), an `RpcClientError` for a
284
+ * transport failure, or the defect. Never an Effect `Cause`. */
282
285
  readonly error: unknown | undefined;
283
286
  /** Number of live optimistic patches currently applied. */
284
287
  readonly pendingPatches: number;
@@ -1145,9 +1148,9 @@ export declare interface SubscriptionCacheOptions {
1145
1148
  * CRDT cell merger for the downstream lane (plan 18): folds a
1146
1149
  * `mergeCells` delta op's incremental update into the held cell. The one
1147
1150
  * real implementation is `crdtMergeCell` from `@voltro/local-first` (this
1148
- * package stays CRDT-library-free). Absent → a mergeCells op replaces the
1149
- * cell (the producer only emits them when the app declares CRDT tables,
1150
- * so an app without the binding never sees one).
1151
+ * package stays CRDT-library-free). Absent → the merger registered with
1152
+ * `registerCellMerger` (`@voltro/local-first` registers `crdtMergeCell` on
1153
+ * import); with none at all, a mergeCells op replaces the cell.
1151
1154
  */
1152
1155
  readonly mergeCell?: (column: string, prevValue: unknown, update: unknown) => unknown;
1153
1156
  /** Milliseconds to keep an entry alive after the last subscriber leaves.
package/dist/runtime.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A as e, C as t, D as n, M as r, N as i, O as a, S as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, j as g, k as _, l as v, m as y, n as b, o as x, p as S, r as C, s as w, t as T, v as E, w as D, x as O, y as k } from "./authRefresh-CZd55lCY.js";
1
+ import { A as e, C as t, D as n, M as r, N as i, O as a, S as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, j as g, k as _, l as v, m as y, n as b, o as x, p as S, r as C, s as w, t as T, v as E, w as D, x as O, y as k } from "./authRefresh-Cu2A-H5R.js";
2
2
  import { Duration as A, Effect as j, Exit as M, Option as N, Schedule as P, Stream as F } from "effect";
3
3
  import * as I from "@effect/platform/Headers";
4
4
  import { RpcClient as L } from "@effect/rpc";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltro/client",
3
- "version": "0.81.0",
3
+ "version": "0.83.0",
4
4
  "description": "Framework-agnostic client bindings — the typed RpcClient, subscription cache, and reactive data layer the web hooks build on.",
5
5
  "keywords": [
6
6
  "voltro",
@@ -45,7 +45,7 @@
45
45
  "dependencies": {
46
46
  "@tanstack/form-core": "^1.33.5",
47
47
  "@tanstack/react-store": "^0.11.1",
48
- "@voltro/protocol": "0.81.0"
48
+ "@voltro/protocol": "0.83.0"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "@effect/platform": "^0.97.2",