@rocicorp/zero 0.19.2025041601 → 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,11 +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
-
824
819
  // ../zql/src/query/query-impl.ts
825
820
  import { resolver } from "@rocicorp/resolver";
826
821
 
@@ -3601,22 +3596,22 @@ var QueryImpl = class _QueryImpl extends AbstractQuery {
3601
3596
  return view;
3602
3597
  }
3603
3598
  run(options) {
3604
- const opt = this.#delegate.normalizeRunOptions(options);
3599
+ this.#delegate.assertValidRunOptions(options);
3605
3600
  const v2 = this.materialize();
3606
- if (opt.type === "unknown") {
3607
- const ret = v2.data;
3608
- v2.destroy();
3609
- return Promise.resolve(ret);
3610
- }
3611
- opt.type;
3612
- return new Promise((resolve) => {
3613
- v2.addListener((data, type) => {
3614
- if (type === "complete") {
3615
- v2.destroy();
3616
- resolve(data);
3617
- }
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
+ });
3618
3609
  });
3619
- });
3610
+ }
3611
+ options?.type;
3612
+ const ret = v2.data;
3613
+ v2.destroy();
3614
+ return Promise.resolve(ret);
3620
3615
  }
3621
3616
  preload(options) {
3622
3617
  const { resolve, promise: complete } = resolver();
@@ -3706,7 +3701,6 @@ export {
3706
3701
  transformFilters,
3707
3702
  assertOrderingIncludesPK,
3708
3703
  ExpressionBuilder,
3709
- DEFAULT_RUN_OPTIONS_UNKNOWN,
3710
3704
  DEFAULT_TTL,
3711
3705
  parseTTL,
3712
3706
  compareTTL,
@@ -3717,4 +3711,4 @@ export {
3717
3711
  defaultFormat,
3718
3712
  AbstractQuery
3719
3713
  };
3720
- //# sourceMappingURL=chunk-TOXB4NRA.js.map
3714
+ //# sourceMappingURL=chunk-2QVFOPGX.js.map