@rocicorp/zero 0.10.2025010400 → 0.10.2025010800

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.
@@ -9306,40 +9306,40 @@ __export(column_exports, {
9306
9306
  number: () => number4,
9307
9307
  string: () => string7
9308
9308
  });
9309
- function string7(optional = false) {
9309
+ function string7(optional) {
9310
9310
  return {
9311
9311
  type: "string",
9312
- optional,
9312
+ optional: optional ?? false,
9313
9313
  customType: null
9314
9314
  };
9315
9315
  }
9316
- function number4(optional = false) {
9316
+ function number4(optional) {
9317
9317
  return {
9318
9318
  type: "number",
9319
- optional,
9319
+ optional: optional ?? false,
9320
9320
  customType: null
9321
9321
  };
9322
9322
  }
9323
- function boolean3(optional = false) {
9323
+ function boolean3(optional) {
9324
9324
  return {
9325
9325
  type: "boolean",
9326
- optional,
9326
+ optional: optional ?? false,
9327
9327
  customType: null
9328
9328
  };
9329
9329
  }
9330
- function json(optional = false) {
9330
+ function json(optional) {
9331
9331
  return {
9332
9332
  type: "json",
9333
- optional,
9333
+ optional: optional ?? false,
9334
9334
  customType: null
9335
9335
  };
9336
9336
  }
9337
- function enumeration(optional = false) {
9337
+ function enumeration(optional) {
9338
9338
  return {
9339
9339
  type: "string",
9340
9340
  kind: "enum",
9341
9341
  customType: null,
9342
- optional
9342
+ optional: optional ?? false
9343
9343
  };
9344
9344
  }
9345
9345
 
@@ -10885,6 +10885,7 @@ var Take = class {
10885
10885
  let size = 0;
10886
10886
  let bound;
10887
10887
  let downstreamEarlyReturn = true;
10888
+ let exceptionThrown = false;
10888
10889
  try {
10889
10890
  for (const inputNode of this.#input.fetch(req)) {
10890
10891
  yield inputNode;
@@ -10895,17 +10896,22 @@ var Take = class {
10895
10896
  }
10896
10897
  }
10897
10898
  downstreamEarlyReturn = false;
10899
+ } catch (e) {
10900
+ exceptionThrown = true;
10901
+ throw e;
10898
10902
  } finally {
10899
- this.#setTakeState(
10900
- takeStateKey,
10901
- size,
10902
- bound,
10903
- this.#storage.get(MAX_BOUND_KEY)
10904
- );
10905
- assert(
10906
- !downstreamEarlyReturn,
10907
- "Unexpected early return prevented full hydration"
10908
- );
10903
+ if (!exceptionThrown) {
10904
+ this.#setTakeState(
10905
+ takeStateKey,
10906
+ size,
10907
+ bound,
10908
+ this.#storage.get(MAX_BOUND_KEY)
10909
+ );
10910
+ assert(
10911
+ !downstreamEarlyReturn,
10912
+ "Unexpected early return prevented full hydration"
10913
+ );
10914
+ }
10909
10915
  }
10910
10916
  }
10911
10917
  *cleanup(req) {
@@ -12426,6 +12432,12 @@ var preMutationRowRef = baseTracker("preMutationRow");
12426
12432
 
12427
12433
  // ../zero-schema/src/schema.ts
12428
12434
  function createSchema(schema) {
12435
+ for (const [tableName, table] of Object.entries(schema.tables)) {
12436
+ assert(
12437
+ tableName === table.tableName,
12438
+ `createSchema tableName mismatch, expected ${tableName} === ${table.tableName}`
12439
+ );
12440
+ }
12429
12441
  return schema;
12430
12442
  }
12431
12443
 
@@ -15466,7 +15478,7 @@ function makeMessage(message, context, logLevel) {
15466
15478
  }
15467
15479
 
15468
15480
  // ../zero-client/src/client/version.ts
15469
- var version2 = "0.10.2025010400+007f03";
15481
+ var version2 = "0.10.2025010800+ca1811";
15470
15482
 
15471
15483
  // ../zero-client/src/client/log-options.ts
15472
15484
  var LevelFilterLogSink = class {
@@ -17497,4 +17509,4 @@ export {
17497
17509
  escapeLike,
17498
17510
  Zero
17499
17511
  };
17500
- //# sourceMappingURL=chunk-4O4K3V35.js.map
17512
+ //# sourceMappingURL=chunk-PPRTDNXA.js.map