@rocicorp/zero 0.19.2025041600 → 0.19.2025041602

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.
@@ -816,14 +816,6 @@ function isTwoHop(r) {
816
816
  return r.length === 2;
817
817
  }
818
818
 
819
- // ../zql/src/query/query.ts
820
- var DEFAULT_RUN_OPTIONS_UNKNOWN = {
821
- type: "unknown"
822
- };
823
- var DEFAULT_RUN_OPTIONS_COMPLETE = {
824
- type: "complete"
825
- };
826
-
827
819
  // ../zql/src/query/query-impl.ts
828
820
  import { resolver } from "@rocicorp/resolver";
829
821
 
@@ -3604,22 +3596,22 @@ var QueryImpl = class _QueryImpl extends AbstractQuery {
3604
3596
  return view;
3605
3597
  }
3606
3598
  run(options) {
3607
- const opt = this.#delegate.normalizeRunOptions(options);
3599
+ this.#delegate.assertValidRunOptions(options);
3608
3600
  const v2 = this.materialize();
3609
- if (opt.type === "unknown") {
3610
- const ret = v2.data;
3611
- v2.destroy();
3612
- return Promise.resolve(ret);
3613
- }
3614
- opt.type;
3615
- return new Promise((resolve) => {
3616
- v2.addListener((data, type) => {
3617
- if (type === "complete") {
3618
- v2.destroy();
3619
- resolve(data);
3620
- }
3601
+ if (options?.type === "complete") {
3602
+ return new Promise((resolve) => {
3603
+ v2.addListener((data, type) => {
3604
+ if (type === "complete") {
3605
+ v2.destroy();
3606
+ resolve(data);
3607
+ }
3608
+ });
3621
3609
  });
3622
- });
3610
+ }
3611
+ options?.type;
3612
+ const ret = v2.data;
3613
+ v2.destroy();
3614
+ return Promise.resolve(ret);
3623
3615
  }
3624
3616
  preload(options) {
3625
3617
  const { resolve, promise: complete } = resolver();
@@ -3709,8 +3701,6 @@ export {
3709
3701
  transformFilters,
3710
3702
  assertOrderingIncludesPK,
3711
3703
  ExpressionBuilder,
3712
- DEFAULT_RUN_OPTIONS_UNKNOWN,
3713
- DEFAULT_RUN_OPTIONS_COMPLETE,
3714
3704
  DEFAULT_TTL,
3715
3705
  parseTTL,
3716
3706
  compareTTL,
@@ -3721,4 +3711,4 @@ export {
3721
3711
  defaultFormat,
3722
3712
  AbstractQuery
3723
3713
  };
3724
- //# sourceMappingURL=chunk-QW43XDUE.js.map
3714
+ //# sourceMappingURL=chunk-2QVFOPGX.js.map