@rotorsoft/act 1.31.11 → 1.31.12
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/dist/.tsbuildinfo +1 -1
- package/dist/@types/internal/correlate-cycle.d.ts.map +1 -1
- package/dist/@types/internal/drain-cycle.d.ts.map +1 -1
- package/dist/@types/internal/report-once.d.ts +12 -1
- package/dist/@types/internal/report-once.d.ts.map +1 -1
- package/dist/index.cjs +14 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -7
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1420,18 +1420,18 @@ var registry_key = (events) => {
|
|
|
1420
1420
|
return createHash("sha256").update(JSON.stringify(shape)).digest("hex").slice(0, 32);
|
|
1421
1421
|
};
|
|
1422
1422
|
var PATTERN_CACHE_SIZE = 32;
|
|
1423
|
-
function report_undeclared_lane(seen, target, lane, declared) {
|
|
1423
|
+
function report_undeclared_lane(seen, handler, target, lane, declared) {
|
|
1424
1424
|
report_once(
|
|
1425
1425
|
seen,
|
|
1426
|
-
`lane|${
|
|
1427
|
-
`Reaction
|
|
1426
|
+
`lane|${handler}|${lane}`,
|
|
1427
|
+
`Reaction "${handler}" resolved onto undeclared lane "${lane}" \u2014 for example target "${target}". Declared lanes: ${[...declared].map((l) => `"${l}"`).join(", ")}. No controller claims it, so the stream would never drain \u2014 running it on "default" instead. The equivalent static \`.to({ lane })\` is rejected at build; a dynamic resolver's lane is only knowable here.`
|
|
1428
1428
|
);
|
|
1429
1429
|
}
|
|
1430
|
-
function report_lane_conflict(seen, target, kept, dropped) {
|
|
1430
|
+
function report_lane_conflict(seen, handler, target, kept, dropped) {
|
|
1431
1431
|
report_once(
|
|
1432
1432
|
seen,
|
|
1433
|
-
`conflict|${
|
|
1434
|
-
`
|
|
1433
|
+
`conflict|${handler}|${kept}|${dropped}`,
|
|
1434
|
+
`Reaction "${handler}" resolved lane "${dropped}" for a stream already on "${kept}" \u2014 for example "${target}". These are conflicting lane assignments from two dynamic resolutions at equal priority. Keeping "${kept}", the lane it was first discovered on \u2014 re-laning a live stream would move it out from under a worker holding its lease. The reaction resolving "${dropped}" runs inside the "${kept}" lane's budget, and a process restricted to "${dropped}" via onlyLanes never runs it. The equivalent static declaration is rejected at build; align the resolvers, or split the target.`
|
|
1435
1435
|
);
|
|
1436
1436
|
}
|
|
1437
1437
|
var CorrelateCycle = class {
|
|
@@ -1684,6 +1684,7 @@ var CorrelateCycle = class {
|
|
|
1684
1684
|
if (lane !== void 0 && !this._declared_lanes.has(lane)) {
|
|
1685
1685
|
report_undeclared_lane(
|
|
1686
1686
|
this._reported,
|
|
1687
|
+
reaction.handler.name,
|
|
1687
1688
|
resolved.target,
|
|
1688
1689
|
lane,
|
|
1689
1690
|
this._declared_lanes
|
|
@@ -1703,7 +1704,13 @@ var CorrelateCycle = class {
|
|
|
1703
1704
|
};
|
|
1704
1705
|
const held = correlated.has(resolved.target) ? entry.lane : recorded?.lane;
|
|
1705
1706
|
if (held !== void 0 && lane !== void 0 && held !== lane && priority === entry.priority)
|
|
1706
|
-
report_lane_conflict(
|
|
1707
|
+
report_lane_conflict(
|
|
1708
|
+
this._reported,
|
|
1709
|
+
reaction.handler.name,
|
|
1710
|
+
resolved.target,
|
|
1711
|
+
held,
|
|
1712
|
+
lane
|
|
1713
|
+
);
|
|
1707
1714
|
if (carried.priority > entry.priority) {
|
|
1708
1715
|
entry.priority = carried.priority;
|
|
1709
1716
|
entry.lane = carried.lane;
|