@rocicorp/zero 0.24.2025101700 → 0.24.2025102100

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.
Files changed (31) hide show
  1. package/out/{chunk-JYK4XJDC.js → chunk-TA2NZPJQ.js} +21 -12
  2. package/out/{chunk-JYK4XJDC.js.map → chunk-TA2NZPJQ.js.map} +2 -2
  3. package/out/{chunk-KSBP27P7.js → chunk-TTBIQGLF.js} +2 -2
  4. package/out/react.js +1 -1
  5. package/out/solid.js +2 -2
  6. package/out/zero/package.json +1 -1
  7. package/out/zero-cache/src/db/create.d.ts +4 -4
  8. package/out/zero-cache/src/db/create.d.ts.map +1 -1
  9. package/out/zero-cache/src/db/create.js +14 -11
  10. package/out/zero-cache/src/db/create.js.map +1 -1
  11. package/out/zero-cache/src/db/pg-to-lite.d.ts.map +1 -1
  12. package/out/zero-cache/src/db/pg-to-lite.js +4 -1
  13. package/out/zero-cache/src/db/pg-to-lite.js.map +1 -1
  14. package/out/zero-cache/src/services/change-source/pg/initial-sync.js +3 -3
  15. package/out/zero-cache/src/services/change-source/pg/initial-sync.js.map +1 -1
  16. package/out/zero-cache/src/services/change-source/protocol/current/data.d.ts +1 -1
  17. package/out/zero-cache/src/services/change-source/protocol/current/data.d.ts.map +1 -1
  18. package/out/zero-cache/src/services/change-source/protocol/current/data.js +1 -1
  19. package/out/zero-cache/src/services/change-source/protocol/current/data.js.map +1 -1
  20. package/out/zero-cache/src/services/replicator/change-processor.js +6 -6
  21. package/out/zero-cache/src/services/replicator/change-processor.js.map +1 -1
  22. package/out/zero-cache/src/types/lite.d.ts +11 -5
  23. package/out/zero-cache/src/types/lite.d.ts.map +1 -1
  24. package/out/zero-cache/src/types/lite.js +2 -5
  25. package/out/zero-cache/src/types/lite.js.map +1 -1
  26. package/out/zero.js +2 -2
  27. package/out/zql/src/ivm/take.d.ts.map +1 -1
  28. package/out/zql/src/ivm/take.js +10 -10
  29. package/out/zql/src/ivm/take.js.map +1 -1
  30. package/package.json +1 -1
  31. /package/out/{chunk-KSBP27P7.js.map → chunk-TTBIQGLF.js.map} +0 -0
@@ -8585,7 +8585,7 @@ var Take = class {
8585
8585
  #rowHiddenFromFetch;
8586
8586
  #output = throwOutput;
8587
8587
  constructor(input, storage, limit, partitionKey) {
8588
- assert(limit >= 0);
8588
+ assert(limit >= 0, "Limit must be non-negative");
8589
8589
  assertOrderingIncludesPK(
8590
8590
  input.getSchema().sort,
8591
8591
  input.getSchema().primaryKey
@@ -8644,14 +8644,20 @@ var Take = class {
8644
8644
  }
8645
8645
  }
8646
8646
  *#initialFetch(req) {
8647
- assert(req.start === void 0);
8648
- assert(!req.reverse);
8649
- assert(constraintMatchesPartitionKey(req.constraint, this.#partitionKey));
8647
+ assert(req.start === void 0, "Start should be undefined");
8648
+ assert(!req.reverse, "Reverse should be false");
8649
+ assert(
8650
+ constraintMatchesPartitionKey(req.constraint, this.#partitionKey),
8651
+ "Constraint should match partition key"
8652
+ );
8650
8653
  if (this.#limit === 0) {
8651
8654
  return;
8652
8655
  }
8653
8656
  const takeStateKey = getTakeStateKey(this.#partitionKey, req.constraint);
8654
- assert(this.#storage.get(takeStateKey) === void 0);
8657
+ assert(
8658
+ this.#storage.get(takeStateKey) === void 0,
8659
+ "Take state should be undefined"
8660
+ );
8655
8661
  let size = 0;
8656
8662
  let bound;
8657
8663
  let downstreamEarlyReturn = true;
@@ -8685,8 +8691,11 @@ var Take = class {
8685
8691
  }
8686
8692
  }
8687
8693
  *cleanup(req) {
8688
- assert(req.start === void 0);
8689
- assert(constraintMatchesPartitionKey(req.constraint, this.#partitionKey));
8694
+ assert(req.start === void 0, "Start should be undefined");
8695
+ assert(
8696
+ constraintMatchesPartitionKey(req.constraint, this.#partitionKey),
8697
+ "Constraint should match partition key"
8698
+ );
8690
8699
  const takeStateKey = getTakeStateKey(this.#partitionKey, req.constraint);
8691
8700
  this.#storage.del(takeStateKey);
8692
8701
  let size = 0;
@@ -8904,7 +8913,7 @@ var Take = class {
8904
8913
  this.#output.push(change, this);
8905
8914
  return;
8906
8915
  }
8907
- assert(newCmp > 0);
8916
+ assert(newCmp > 0, "New comparison must be greater than 0");
8908
8917
  const newBoundNode = must(
8909
8918
  first(
8910
8919
  this.#input.fetch({
@@ -8949,7 +8958,7 @@ var Take = class {
8949
8958
  if (newCmp > 0) {
8950
8959
  return;
8951
8960
  }
8952
- assert(newCmp < 0);
8961
+ assert(newCmp < 0, "New comparison must be less than 0");
8953
8962
  const [oldBoundNode, newBoundNode] = take(
8954
8963
  this.#input.fetch({
8955
8964
  start: {
@@ -8991,7 +9000,7 @@ var Take = class {
8991
9000
  this.#output.push(change, this);
8992
9001
  return;
8993
9002
  }
8994
- assert(newCmp > 0);
9003
+ assert(newCmp > 0, "New comparison must be greater than 0");
8995
9004
  const afterBoundNode = must(
8996
9005
  first(
8997
9006
  this.#input.fetch({
@@ -13056,7 +13065,7 @@ function makeMessage(message, context, logLevel) {
13056
13065
  }
13057
13066
 
13058
13067
  // ../zero-client/src/client/version.ts
13059
- var version2 = "0.24.2025101700";
13068
+ var version2 = "0.24.2025102100";
13060
13069
 
13061
13070
  // ../zero-client/src/client/log-options.ts
13062
13071
  var LevelFilterLogSink = class {
@@ -16039,4 +16048,4 @@ export {
16039
16048
  update_needed_reason_type_enum_exports,
16040
16049
  Zero
16041
16050
  };
16042
- //# sourceMappingURL=chunk-JYK4XJDC.js.map
16051
+ //# sourceMappingURL=chunk-TA2NZPJQ.js.map