joist-core 2.3.0-next.50 → 2.3.0-next.52
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.
- package/build/EntityManager.cjs +7 -1
- package/build/EntityManager.cjs.map +1 -1
- package/build/EntityManager.d.cts.map +1 -1
- package/build/EntityManager.d.mts.map +1 -1
- package/build/EntityManager.js +7 -1
- package/build/EntityManager.js.map +1 -1
- package/build/ReactionsManager.cjs +10 -5
- package/build/ReactionsManager.cjs.map +1 -1
- package/build/ReactionsManager.d.cts.map +1 -1
- package/build/ReactionsManager.d.mts.map +1 -1
- package/build/ReactionsManager.js +10 -5
- package/build/ReactionsManager.js.map +1 -1
- package/build/logging/ReactionLogger.cjs +11 -6
- package/build/logging/ReactionLogger.cjs.map +1 -1
- package/build/logging/ReactionLogger.d.cts +8 -2
- package/build/logging/ReactionLogger.d.cts.map +1 -1
- package/build/logging/ReactionLogger.d.mts +8 -2
- package/build/logging/ReactionLogger.d.mts.map +1 -1
- package/build/logging/ReactionLogger.js +11 -6
- package/build/logging/ReactionLogger.js.map +1 -1
- package/package.json +2 -2
package/build/EntityManager.cjs
CHANGED
|
@@ -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
|
-
|
|
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);
|