joist-core 2.3.0-next.50 → 2.3.0-next.51

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.
@@ -1517,6 +1517,7 @@ var TooManyError = class extends Error {
1517
1517
  async function validateReactiveRules(em, logger, todos, joinRowTodos, getRules = (meta) => meta.reactiveRules) {
1518
1518
  logger.logStartingValidate(em, todos);
1519
1519
  const fns = /* @__PURE__ */ new Map();
1520
+ const walks = [];
1520
1521
  async function followAndQueue(triggered, rule) {
1521
1522
  if (triggered.length === 0) return;
1522
1523
  const found = (await require_reactiveHints.followReverseHint(rule.name, triggered, rule.path)).filter((entity) => !entity.isDeletedEntity).filter((e) => e instanceof rule.cstr);
@@ -1525,7 +1526,11 @@ async function validateReactiveRules(em, logger, todos, joinRowTodos, getRules =
1525
1526
  entities = /* @__PURE__ */ new Set();
1526
1527
  fns.set(rule.fn, entities);
1527
1528
  }
1528
- logger.logWalked(triggered, rule, found, "validate");
1529
+ walks.push({
1530
+ todo: triggered,
1531
+ r: rule,
1532
+ entities: found
1533
+ });
1529
1534
  found.forEach((entity) => {
1530
1535
  entities.add(entity);
1531
1536
  });
@@ -1560,6 +1565,7 @@ async function validateReactiveRules(em, logger, todos, joinRowTodos, getRules =
1560
1565
  return [...a, ...b];
1561
1566
  });
1562
1567
  require_utils.failIfAnyRejected(await Promise.allSettled([...p1, ...p2]));
1568
+ logger.logWalks(walks, "validate");
1563
1569
  const p3 = [...fns.entries()].flatMap(([fn, entities]) => [...entities].map(async (entity) => coerceError(entity, await fn(entity))));
1564
1570
  const errors = require_utils.failIfAnyRejected(await Promise.allSettled(p3)).flat();
1565
1571
  if (errors.length > 0) throw new require_rules.ValidationErrors(errors);