@rocicorp/zero 0.18.2025031401 → 0.18.2025031801

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 (73) hide show
  1. package/out/advanced.js +1 -1
  2. package/out/{chunk-4HTOMAT6.js → chunk-472VY5VS.js} +7 -22
  3. package/out/{chunk-4HTOMAT6.js.map → chunk-472VY5VS.js.map} +2 -2
  4. package/out/{chunk-SVJISXWE.js → chunk-MJCITZ5S.js} +80 -74
  5. package/out/chunk-MJCITZ5S.js.map +7 -0
  6. package/out/solid.js +4 -25
  7. package/out/solid.js.map +2 -2
  8. package/out/zero-cache/src/auth/jwt.d.ts +5 -1
  9. package/out/zero-cache/src/auth/jwt.d.ts.map +1 -1
  10. package/out/zero-cache/src/auth/jwt.js +13 -0
  11. package/out/zero-cache/src/auth/jwt.js.map +1 -1
  12. package/out/zero-cache/src/services/change-source/pg/initial-sync.d.ts.map +1 -1
  13. package/out/zero-cache/src/services/change-source/pg/initial-sync.js +3 -3
  14. package/out/zero-cache/src/services/change-source/pg/initial-sync.js.map +1 -1
  15. package/out/zero-cache/src/services/change-source/protocol/current/data.d.ts +1 -0
  16. package/out/zero-cache/src/services/change-source/protocol/current/data.d.ts.map +1 -1
  17. package/out/zero-cache/src/services/change-source/protocol/current/data.js +11 -0
  18. package/out/zero-cache/src/services/change-source/protocol/current/data.js.map +1 -1
  19. package/out/zero-cache/src/services/change-source/protocol/current/downstream.d.ts +3 -0
  20. package/out/zero-cache/src/services/change-source/protocol/current/downstream.d.ts.map +1 -1
  21. package/out/zero-cache/src/services/change-streamer/change-streamer-http.d.ts +1 -0
  22. package/out/zero-cache/src/services/change-streamer/change-streamer-http.d.ts.map +1 -1
  23. package/out/zero-cache/src/services/change-streamer/change-streamer-http.js +21 -3
  24. package/out/zero-cache/src/services/change-streamer/change-streamer-http.js.map +1 -1
  25. package/out/zero-cache/src/services/change-streamer/change-streamer.d.ts +1 -0
  26. package/out/zero-cache/src/services/change-streamer/change-streamer.d.ts.map +1 -1
  27. package/out/zero-cache/src/services/replicator/change-processor.d.ts.map +1 -1
  28. package/out/zero-cache/src/services/replicator/change-processor.js +19 -12
  29. package/out/zero-cache/src/services/replicator/change-processor.js.map +1 -1
  30. package/out/zero-cache/src/services/view-syncer/client-handler.d.ts +1 -3
  31. package/out/zero-cache/src/services/view-syncer/client-handler.d.ts.map +1 -1
  32. package/out/zero-cache/src/services/view-syncer/client-handler.js +4 -23
  33. package/out/zero-cache/src/services/view-syncer/client-handler.js.map +1 -1
  34. package/out/zero-cache/src/services/view-syncer/cvr-store.d.ts +1 -1
  35. package/out/zero-cache/src/services/view-syncer/cvr-store.d.ts.map +1 -1
  36. package/out/zero-cache/src/services/view-syncer/cvr-store.js +4 -6
  37. package/out/zero-cache/src/services/view-syncer/cvr-store.js.map +1 -1
  38. package/out/zero-cache/src/services/view-syncer/cvr.d.ts +2 -2
  39. package/out/zero-cache/src/services/view-syncer/cvr.d.ts.map +1 -1
  40. package/out/zero-cache/src/services/view-syncer/cvr.js +4 -4
  41. package/out/zero-cache/src/services/view-syncer/cvr.js.map +1 -1
  42. package/out/zero-cache/src/services/view-syncer/view-syncer.d.ts.map +1 -1
  43. package/out/zero-cache/src/services/view-syncer/view-syncer.js +6 -7
  44. package/out/zero-cache/src/services/view-syncer/view-syncer.js.map +1 -1
  45. package/out/zero-cache/src/types/lite.d.ts +6 -3
  46. package/out/zero-cache/src/types/lite.d.ts.map +1 -1
  47. package/out/zero-cache/src/types/lite.js +9 -7
  48. package/out/zero-cache/src/types/lite.js.map +1 -1
  49. package/out/zero-protocol/src/down.d.ts +0 -1
  50. package/out/zero-protocol/src/down.d.ts.map +1 -1
  51. package/out/zero-protocol/src/poke.d.ts +0 -2
  52. package/out/zero-protocol/src/poke.d.ts.map +1 -1
  53. package/out/zero-protocol/src/poke.js +0 -2
  54. package/out/zero-protocol/src/poke.js.map +1 -1
  55. package/out/zero-protocol/src/protocol-version.d.ts +1 -8
  56. package/out/zero-protocol/src/protocol-version.d.ts.map +1 -1
  57. package/out/zero-protocol/src/protocol-version.js +4 -12
  58. package/out/zero-protocol/src/protocol-version.js.map +1 -1
  59. package/out/zero-solid/src/solid-view.d.ts.map +1 -1
  60. package/out/zero.js +2 -2
  61. package/out/zql/src/ivm/array-view.d.ts.map +1 -1
  62. package/out/zql/src/ivm/array-view.js +2 -3
  63. package/out/zql/src/ivm/array-view.js.map +1 -1
  64. package/out/zql/src/ivm/view-apply-change.d.ts +5 -1
  65. package/out/zql/src/ivm/view-apply-change.d.ts.map +1 -1
  66. package/out/zql/src/ivm/view-apply-change.js +68 -71
  67. package/out/zql/src/ivm/view-apply-change.js.map +1 -1
  68. package/out/zql/src/query/expression.d.ts +1 -1
  69. package/out/zql/src/query/expression.d.ts.map +1 -1
  70. package/out/zql/src/query/expression.js +1 -3
  71. package/out/zql/src/query/expression.js.map +1 -1
  72. package/package.json +2 -2
  73. package/out/chunk-SVJISXWE.js.map +0 -7
package/out/advanced.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./chunk-ULOTOBTC.js";
2
2
  import {
3
3
  applyChange
4
- } from "./chunk-SVJISXWE.js";
4
+ } from "./chunk-MJCITZ5S.js";
5
5
  import "./chunk-424PT5DM.js";
6
6
  export {
7
7
  applyChange
@@ -21,7 +21,7 @@ import {
21
21
  throwInvalidType,
22
22
  unreachable,
23
23
  valuesEqual
24
- } from "./chunk-SVJISXWE.js";
24
+ } from "./chunk-MJCITZ5S.js";
25
25
  import {
26
26
  __export,
27
27
  __reExport
@@ -11074,7 +11074,6 @@ var ArrayView = class {
11074
11074
  onDestroy;
11075
11075
  #dirty = false;
11076
11076
  #complete = false;
11077
- #refCountMap = /* @__PURE__ */ new WeakMap();
11078
11077
  constructor(input, format = { singular: false, relationships: {} }, queryComplete = true) {
11079
11078
  this.#input = input;
11080
11079
  this.#schema = input.getSchema();
@@ -11124,22 +11123,14 @@ var ArrayView = class {
11124
11123
  { type: "add", node },
11125
11124
  this.#schema,
11126
11125
  "",
11127
- this.#format,
11128
- this.#refCountMap
11126
+ this.#format
11129
11127
  );
11130
11128
  }
11131
11129
  this.flush();
11132
11130
  }
11133
11131
  push(change) {
11134
11132
  this.#dirty = true;
11135
- applyChange(
11136
- this.#root,
11137
- change,
11138
- this.#schema,
11139
- "",
11140
- this.#format,
11141
- this.#refCountMap
11142
- );
11133
+ applyChange(this.#root, change, this.#schema, "", this.#format);
11143
11134
  }
11144
11135
  flush() {
11145
11136
  if (!this.#dirty) {
@@ -11174,9 +11165,7 @@ var ExpressionBuilder = class {
11174
11165
  and = and;
11175
11166
  or = or;
11176
11167
  not = not2;
11177
- exists(relationship, cb) {
11178
- return this.#exists(relationship, cb);
11179
- }
11168
+ exists = (relationship, cb) => this.#exists(relationship, cb);
11180
11169
  };
11181
11170
  function and(...conditions) {
11182
11171
  const expressions = filterTrue(filterUndefined(conditions));
@@ -12323,8 +12312,6 @@ var pokeStartBodySchema = valita_exports.object({
12323
12312
  // with initial cookie `null`, before the first request. So we have to be
12324
12313
  // able to send a base cookie with value `null` to match that state.
12325
12314
  baseCookie: nullableVersionSchema,
12326
- // Deprecated: Replaced by pokeEnd.cookie.
12327
- cookie: versionSchema.optional(),
12328
12315
  /**
12329
12316
  * This field is always set if the poke contains a `rowsPatch`.
12330
12317
  * It may be absent for patches that only update clients and queries.
@@ -12420,10 +12407,8 @@ var Custom = "custom";
12420
12407
 
12421
12408
  // ../zero-protocol/src/protocol-version.ts
12422
12409
  var PROTOCOL_VERSION = 7;
12423
- var MIN_SERVER_SUPPORTED_SYNC_PROTOCOL = 2;
12410
+ var MIN_SERVER_SUPPORTED_SYNC_PROTOCOL = 6;
12424
12411
  assert(MIN_SERVER_SUPPORTED_SYNC_PROTOCOL < PROTOCOL_VERSION);
12425
- var MIN_SERVER_SUPPORTED_PERMISSIONS_PROTOCOL = 4;
12426
- assert(MIN_SERVER_SUPPORTED_PERMISSIONS_PROTOCOL < PROTOCOL_VERSION);
12427
12412
 
12428
12413
  // ../zero-protocol/src/push.ts
12429
12414
  var CRUD_MUTATION_NAME = "_zero_crud";
@@ -14499,7 +14484,7 @@ function makeMessage(message, context, logLevel) {
14499
14484
  }
14500
14485
 
14501
14486
  // ../zero-client/src/client/version.ts
14502
- var version2 = "0.18.2025031401";
14487
+ var version2 = "0.18.2025031801";
14503
14488
 
14504
14489
  // ../zero-client/src/client/log-options.ts
14505
14490
  var LevelFilterLogSink = class {
@@ -16804,4 +16789,4 @@ export {
16804
16789
  escapeLike,
16805
16790
  Zero
16806
16791
  };
16807
- //# sourceMappingURL=chunk-4HTOMAT6.js.map
16792
+ //# sourceMappingURL=chunk-472VY5VS.js.map