@rocicorp/zero 0.22.2025070600 → 0.22.2025070702

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  clientToServer
3
- } from "./chunk-ZGVTOORV.js";
3
+ } from "./chunk-SJO4KHVW.js";
4
4
  import {
5
5
  AbstractQuery,
6
6
  ExpressionBuilder,
@@ -15,7 +15,7 @@ import {
15
15
  staticParam,
16
16
  toStaticParam,
17
17
  valita_exports
18
- } from "./chunk-U52OBQ2U.js";
18
+ } from "./chunk-4XUYLHLN.js";
19
19
 
20
20
  // ../zero-protocol/src/custom-queries.ts
21
21
  var transformRequestBodySchema = valita_exports.array(
@@ -337,4 +337,4 @@ export {
337
337
  querify,
338
338
  namedQuery
339
339
  };
340
- //# sourceMappingURL=chunk-5ZACJSVD.js.map
340
+ //# sourceMappingURL=chunk-MJ7XRFOU.js.map
@@ -126,7 +126,7 @@ import {
126
126
  withWrite,
127
127
  withWriteNoImplicitCommit,
128
128
  wrapIterable
129
- } from "./chunk-U52OBQ2U.js";
129
+ } from "./chunk-4XUYLHLN.js";
130
130
  import {
131
131
  __export
132
132
  } from "./chunk-424PT5DM.js";
@@ -8539,7 +8539,7 @@ function makeMessage(message, context, logLevel) {
8539
8539
  }
8540
8540
 
8541
8541
  // ../zero-client/src/client/version.ts
8542
- var version2 = "0.22.2025070600";
8542
+ var version2 = "0.22.2025070702";
8543
8543
 
8544
8544
  // ../zero-client/src/client/log-options.ts
8545
8545
  var LevelFilterLogSink = class {
@@ -9649,29 +9649,29 @@ function mergePokes(pokeBuffer, schema, serverToClient2) {
9649
9649
  for (const [clientID, queriesPatch] of Object.entries(
9650
9650
  pokePart.desiredQueriesPatches
9651
9651
  )) {
9652
- mergedPatch.push(
9653
- ...queriesPatch.map(
9654
- (op) => queryPatchOpToReplicachePatchOp(
9652
+ for (const op of queriesPatch) {
9653
+ mergedPatch.push(
9654
+ queryPatchOpToReplicachePatchOp(
9655
9655
  op,
9656
9656
  (hash) => toDesiredQueriesKey(clientID, hash)
9657
9657
  )
9658
- )
9659
- );
9658
+ );
9659
+ }
9660
9660
  }
9661
9661
  }
9662
9662
  if (pokePart.gotQueriesPatch) {
9663
- mergedPatch.push(
9664
- ...pokePart.gotQueriesPatch.map(
9665
- (op) => queryPatchOpToReplicachePatchOp(op, toGotQueriesKey)
9666
- )
9667
- );
9663
+ for (const op of pokePart.gotQueriesPatch) {
9664
+ mergedPatch.push(
9665
+ queryPatchOpToReplicachePatchOp(op, toGotQueriesKey)
9666
+ );
9667
+ }
9668
9668
  }
9669
9669
  if (pokePart.rowsPatch) {
9670
- mergedPatch.push(
9671
- ...pokePart.rowsPatch.map(
9672
- (p) => rowsPatchOpToReplicachePatchOp(p, schema, serverToClient2)
9673
- )
9674
- );
9670
+ for (const p of pokePart.rowsPatch) {
9671
+ mergedPatch.push(
9672
+ rowsPatchOpToReplicachePatchOp(p, schema, serverToClient2)
9673
+ );
9674
+ }
9675
9675
  }
9676
9676
  }
9677
9677
  }
@@ -9694,12 +9694,13 @@ function queryPatchOpToReplicachePatchOp(op, toKey) {
9694
9694
  key: toKey(op.hash)
9695
9695
  };
9696
9696
  case "put":
9697
- default:
9698
9697
  return {
9699
9698
  op: "put",
9700
9699
  key: toKey(op.hash),
9701
9700
  value: null
9702
9701
  };
9702
+ default:
9703
+ unreachable(op);
9703
9704
  }
9704
9705
  }
9705
9706
  function rowsPatchOpToReplicachePatchOp(op, schema, serverToClient2) {
@@ -9739,7 +9740,7 @@ function rowsPatchOpToReplicachePatchOp(op, schema, serverToClient2) {
9739
9740
  constrain: serverToClient2.columns(op.tableName, op.constrain)
9740
9741
  };
9741
9742
  default:
9742
- throw new Error("to be implemented");
9743
+ unreachable(op);
9743
9744
  }
9744
9745
  }
9745
9746
  function rafFallback(callback) {
@@ -11099,7 +11100,7 @@ var Zero = class _Zero {
11099
11100
  */
11100
11101
  async inspect() {
11101
11102
  BUNDLE_SIZE: {
11102
- const m = await import("./inspector-XJ4IL4MG.js");
11103
+ const m = await import("./inspector-DIXW3TGL.js");
11103
11104
  return m.newInspector(this.#rep, this.#schema, async () => {
11104
11105
  await this.#connectResolver.promise;
11105
11106
  return this.#socket;
@@ -11237,4 +11238,4 @@ export {
11237
11238
  update_needed_reason_type_enum_exports,
11238
11239
  Zero
11239
11240
  };
11240
- //# sourceMappingURL=chunk-ZGVTOORV.js.map
11241
+ //# sourceMappingURL=chunk-SJO4KHVW.js.map