@nlozgachev/pipelined 0.29.0 → 0.31.0

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.
@@ -956,10 +956,6 @@ var Op;
956
956
  Op2.wire = (source, f) => source.subscribe((state) => {
957
957
  if ((0, Op2.isOk)(state)) f(state.value);
958
958
  });
959
- Op2.wireAll = (...pairs) => {
960
- const cleanups = pairs.map(([source, f]) => (0, Op2.wire)(source, f));
961
- return () => cleanups.forEach((c) => c());
962
- };
963
959
  function interpret(op, options) {
964
960
  const { strategy, retry: retryOptions, timeout: timeoutOptions } = options;
965
961
  switch (strategy) {
package/dist/core.d.mts CHANGED
@@ -1053,21 +1053,6 @@ declare namespace Op {
1053
1053
  * ```
1054
1054
  */
1055
1055
  const wire: <I, E, A, S extends State<E, A>>(source: Manager<I, E, A, S>, f: (a: A) => void) => () => void;
1056
- /**
1057
- * Wires multiple source-handler pairs, returning a combined cleanup function.
1058
- * When any source reaches `OpOk`, its corresponding handler is called.
1059
- *
1060
- * @example
1061
- * ```ts
1062
- * const stop = Op.wireAll(
1063
- * [userManager, (u) => render(u)],
1064
- * [settingsManager, (s) => applySettings(s)],
1065
- * );
1066
- * // ... later
1067
- * stop(); // removes all subscriptions
1068
- * ```
1069
- */
1070
- const wireAll: <I, E, A, S extends State<E, A>>(...pairs: Array<[Manager<I, E, A, S>, (a: A) => void]>) => () => void;
1071
1056
  /**
1072
1057
  * Attaches a concurrency strategy to an `Op`, returning a `Manager`.
1073
1058
  *
package/dist/core.d.ts CHANGED
@@ -1053,21 +1053,6 @@ declare namespace Op {
1053
1053
  * ```
1054
1054
  */
1055
1055
  const wire: <I, E, A, S extends State<E, A>>(source: Manager<I, E, A, S>, f: (a: A) => void) => () => void;
1056
- /**
1057
- * Wires multiple source-handler pairs, returning a combined cleanup function.
1058
- * When any source reaches `OpOk`, its corresponding handler is called.
1059
- *
1060
- * @example
1061
- * ```ts
1062
- * const stop = Op.wireAll(
1063
- * [userManager, (u) => render(u)],
1064
- * [settingsManager, (s) => applySettings(s)],
1065
- * );
1066
- * // ... later
1067
- * stop(); // removes all subscriptions
1068
- * ```
1069
- */
1070
- const wireAll: <I, E, A, S extends State<E, A>>(...pairs: Array<[Manager<I, E, A, S>, (a: A) => void]>) => () => void;
1071
1056
  /**
1072
1057
  * Attaches a concurrency strategy to an `Op`, returning a `Manager`.
1073
1058
  *
package/dist/core.js CHANGED
@@ -1067,10 +1067,6 @@ var Op;
1067
1067
  Op2.wire = (source, f) => source.subscribe((state) => {
1068
1068
  if ((0, Op2.isOk)(state)) f(state.value);
1069
1069
  });
1070
- Op2.wireAll = (...pairs) => {
1071
- const cleanups = pairs.map(([source, f]) => (0, Op2.wire)(source, f));
1072
- return () => cleanups.forEach((c) => c());
1073
- };
1074
1070
  function interpret(op, options) {
1075
1071
  const { strategy, retry: retryOptions, timeout: timeoutOptions } = options;
1076
1072
  switch (strategy) {
package/dist/core.mjs CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  These,
16
16
  Tuple,
17
17
  Validation
18
- } from "./chunk-PV7JOUKL.mjs";
18
+ } from "./chunk-VIC54JR4.mjs";
19
19
  import {
20
20
  Deferred,
21
21
  Maybe,
package/dist/index.js CHANGED
@@ -1312,10 +1312,6 @@ var Op;
1312
1312
  Op2.wire = (source, f) => source.subscribe((state) => {
1313
1313
  if ((0, Op2.isOk)(state)) f(state.value);
1314
1314
  });
1315
- Op2.wireAll = (...pairs) => {
1316
- const cleanups = pairs.map(([source, f]) => (0, Op2.wire)(source, f));
1317
- return () => cleanups.forEach((c) => c());
1318
- };
1319
1315
  function interpret(op, options) {
1320
1316
  const { strategy, retry: retryOptions, timeout: timeoutOptions } = options;
1321
1317
  switch (strategy) {
package/dist/index.mjs CHANGED
@@ -44,7 +44,7 @@ import {
44
44
  These,
45
45
  Tuple,
46
46
  Validation
47
- } from "./chunk-PV7JOUKL.mjs";
47
+ } from "./chunk-VIC54JR4.mjs";
48
48
  import {
49
49
  Arr,
50
50
  Dict,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nlozgachev/pipelined",
3
- "version": "0.29.0",
3
+ "version": "0.31.0",
4
4
  "description": "Opinionated functional abstractions for TypeScript",
5
5
  "license": "BSD-3-Clause",
6
6
  "homepage": "https://pipelined.lozgachev.dev",