@rotorsoft/act 1.31.1 → 1.31.2

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/index.js CHANGED
@@ -3590,15 +3590,15 @@ var Act = class {
3590
3590
  * One DrainController per active lane. The implicit "default" lane is
3591
3591
  * always present unless onlyLanes excludes it. Each controller filters
3592
3592
  * its claim() by its lane name; the legacy single-controller path is the
3593
- * active set === { "default" } case with `lane: undefined` deps so
3594
- * claim() doesn't filter (preserves the single-lane SQL planner shape
3595
- * for apps that never call withLane).
3593
+ * no-lane-declared case with `lane: undefined` deps so claim() doesn't
3594
+ * filter (preserves the single-lane SQL planner shape for apps that never
3595
+ * call withLane).
3596
3596
  */
3597
3597
  _build_drain_controllers(options, lanes) {
3598
3598
  const all_lanes = ["default", ...lanes.map((l) => l.name)];
3599
3599
  const only_set = options.onlyLanes && options.onlyLanes.length > 0 ? new Set(options.onlyLanes) : void 0;
3600
3600
  const active_lanes = only_set ? all_lanes.filter((n) => only_set.has(n)) : all_lanes;
3601
- const single_default_lane = active_lanes.length === 1 && active_lanes[0] === "default";
3601
+ const single_default_lane = lanes.length === 0;
3602
3602
  const controllers = /* @__PURE__ */ new Map();
3603
3603
  for (const name of active_lanes) {
3604
3604
  const cfg = lanes.find((l) => l.name === name);