@nlozgachev/pipelined 0.43.0 → 0.44.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.
@@ -4,7 +4,7 @@ import {
4
4
  Result,
5
5
  Task,
6
6
  isNonEmptyArr
7
- } from "./chunk-CHRXZIJU.mjs";
7
+ } from "./chunk-ND476266.mjs";
8
8
 
9
9
  // src/Data/Arr.ts
10
10
  var ArrMaybe;
@@ -2150,7 +2150,10 @@ export {
2150
2150
  Resource,
2151
2151
  Result,
2152
2152
  State,
2153
+ TaskMaybe,
2154
+ TaskResult,
2153
2155
  isNonEmptyArr,
2156
+ TaskValidation,
2154
2157
  Task,
2155
2158
  These,
2156
2159
  Tuple,
@@ -1,4 +1,4 @@
1
- import { A as Awaitable, T as Thenable } from './InternalTypes-DsCqxWZm.mjs';
1
+ import { A as Awaitable, T as Thenable } from './InternalTypes-BL23H8Qr.mjs';
2
2
  import { Duration } from './types.mjs';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { A as Awaitable, T as Thenable } from './InternalTypes-DuzMFAfJ.js';
1
+ import { A as Awaitable, T as Thenable } from './InternalTypes-7o9-yrHq.js';
2
2
  import { Duration } from './types.js';
3
3
 
4
4
  /**
package/dist/core.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { M as Maybe, R as Result, T as Task } from './Validation-Do6uWLLZ.mjs';
2
- export { E as Equality, a as Err, F as Failed, N as None, O as Ok, b as Ordering, P as Passed, S as Some, V as Validation } from './Validation-Do6uWLLZ.mjs';
3
- import { n as WithValue, h as WithLog, D as Deferred, g as WithKind, d as WithError, R as RetryOptions, a as TimeoutOptions, m as WithTimeout, i as WithMinInterval, b as WithCooldown, W as WithConcurrency, l as WithSize, c as WithDuration, j as WithN, f as WithFirst, k as WithSecond } from './InternalTypes-DsCqxWZm.mjs';
1
+ import { M as Maybe, R as Result, T as Task } from './Validation-Dz70wtcG.mjs';
2
+ export { E as Equality, a as Err, F as Failed, N as None, O as Ok, b as Ordering, P as Passed, S as Some, c as TaskMaybe, d as TaskResult, e as TaskValidation, V as Validation } from './Validation-Dz70wtcG.mjs';
3
+ import { n as WithValue, h as WithLog, D as Deferred, g as WithKind, d as WithError, R as RetryOptions, a as TimeoutOptions, m as WithTimeout, i as WithMinInterval, b as WithCooldown, W as WithConcurrency, l as WithSize, c as WithDuration, j as WithN, f as WithFirst, k as WithSecond } from './InternalTypes-BL23H8Qr.mjs';
4
4
  import { Duration } from './types.mjs';
5
5
 
6
6
  /**
@@ -1972,7 +1972,7 @@ declare namespace RemoteData {
1972
1972
  *
1973
1973
  * @example
1974
1974
  * ```ts
1975
- * const result = await TaskResult.tryCatch(fetchUser, String)();
1975
+ * const result = await Task.Result.tryCatch(fetchUser, String)();
1976
1976
  * setState(RemoteData.fromResult(result)); // Success(user) or Failure(msg)
1977
1977
  * ```
1978
1978
  */
package/dist/core.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { M as Maybe, R as Result, T as Task } from './Validation-BOPLiDqa.js';
2
- export { E as Equality, a as Err, F as Failed, N as None, O as Ok, b as Ordering, P as Passed, S as Some, V as Validation } from './Validation-BOPLiDqa.js';
3
- import { n as WithValue, h as WithLog, D as Deferred, g as WithKind, d as WithError, R as RetryOptions, a as TimeoutOptions, m as WithTimeout, i as WithMinInterval, b as WithCooldown, W as WithConcurrency, l as WithSize, c as WithDuration, j as WithN, f as WithFirst, k as WithSecond } from './InternalTypes-DuzMFAfJ.js';
1
+ import { M as Maybe, R as Result, T as Task } from './Validation-DM2eh6wj.js';
2
+ export { E as Equality, a as Err, F as Failed, N as None, O as Ok, b as Ordering, P as Passed, S as Some, c as TaskMaybe, d as TaskResult, e as TaskValidation, V as Validation } from './Validation-DM2eh6wj.js';
3
+ import { n as WithValue, h as WithLog, D as Deferred, g as WithKind, d as WithError, R as RetryOptions, a as TimeoutOptions, m as WithTimeout, i as WithMinInterval, b as WithCooldown, W as WithConcurrency, l as WithSize, c as WithDuration, j as WithN, f as WithFirst, k as WithSecond } from './InternalTypes-7o9-yrHq.js';
4
4
  import { Duration } from './types.js';
5
5
 
6
6
  /**
@@ -1972,7 +1972,7 @@ declare namespace RemoteData {
1972
1972
  *
1973
1973
  * @example
1974
1974
  * ```ts
1975
- * const result = await TaskResult.tryCatch(fetchUser, String)();
1975
+ * const result = await Task.Result.tryCatch(fetchUser, String)();
1976
1976
  * setState(RemoteData.fromResult(result)); // Success(user) or Failure(msg)
1977
1977
  * ```
1978
1978
  */
package/dist/core.js CHANGED
@@ -38,6 +38,9 @@ __export(Core_exports, {
38
38
  Result: () => Result,
39
39
  State: () => State,
40
40
  Task: () => Task,
41
+ TaskMaybe: () => TaskMaybe,
42
+ TaskResult: () => TaskResult,
43
+ TaskValidation: () => TaskValidation,
41
44
  These: () => These,
42
45
  Tuple: () => Tuple,
43
46
  Validation: () => Validation
@@ -2218,6 +2221,9 @@ var Validation;
2218
2221
  Result,
2219
2222
  State,
2220
2223
  Task,
2224
+ TaskMaybe,
2225
+ TaskResult,
2226
+ TaskValidation,
2221
2227
  These,
2222
2228
  Tuple,
2223
2229
  Validation
package/dist/core.mjs CHANGED
@@ -17,10 +17,13 @@ import {
17
17
  Result,
18
18
  State,
19
19
  Task,
20
+ TaskMaybe,
21
+ TaskResult,
22
+ TaskValidation,
20
23
  These,
21
24
  Tuple,
22
25
  Validation
23
- } from "./chunk-CHRXZIJU.mjs";
26
+ } from "./chunk-ND476266.mjs";
24
27
  import "./chunk-74JKKJ4R.mjs";
25
28
  export {
26
29
  Combinable,
@@ -41,6 +44,9 @@ export {
41
44
  Result,
42
45
  State,
43
46
  Task,
47
+ TaskMaybe,
48
+ TaskResult,
49
+ TaskValidation,
44
50
  These,
45
51
  Tuple,
46
52
  Validation
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { and, compose, constFalse, constNull, constTrue, constUndefined, constVoid, constant, converge, curry, curry3, curry4, defaultTo, flip, flow, identity, juxt, memoize, memoizeWeak, not, on, once, or, pipe, tap, uncurry, uncurry3, uncurry4 } from './composition.mjs';
2
2
  export { Combinable, Failure, Lazy, Lens, Loading, Logged, NotAsked, Op, Optional, Predicate, Reader, Refinement, RemoteData, Resource, State, Success, These, TheseBoth, TheseFirst, TheseSecond, Tuple } from './core.mjs';
3
- export { D as Deferred } from './InternalTypes-DsCqxWZm.mjs';
4
- export { E as Equality, a as Err, F as Failed, M as Maybe, N as None, O as Ok, b as Ordering, P as Passed, R as Result, S as Some, T as Task, V as Validation } from './Validation-Do6uWLLZ.mjs';
3
+ export { D as Deferred } from './InternalTypes-BL23H8Qr.mjs';
4
+ export { E as Equality, a as Err, F as Failed, M as Maybe, N as None, O as Ok, b as Ordering, P as Passed, R as Result, S as Some, T as Task, c as TaskMaybe, d as TaskResult, e as TaskValidation, V as Validation } from './Validation-Dz70wtcG.mjs';
5
5
  export { Arr, Dict, NonEmptyRecord, Num, Rec, Str, Uniq } from './utils.mjs';
6
6
  export { Brand, Duration } from './types.mjs';
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { and, compose, constFalse, constNull, constTrue, constUndefined, constVoid, constant, converge, curry, curry3, curry4, defaultTo, flip, flow, identity, juxt, memoize, memoizeWeak, not, on, once, or, pipe, tap, uncurry, uncurry3, uncurry4 } from './composition.js';
2
2
  export { Combinable, Failure, Lazy, Lens, Loading, Logged, NotAsked, Op, Optional, Predicate, Reader, Refinement, RemoteData, Resource, State, Success, These, TheseBoth, TheseFirst, TheseSecond, Tuple } from './core.js';
3
- export { D as Deferred } from './InternalTypes-DuzMFAfJ.js';
4
- export { E as Equality, a as Err, F as Failed, M as Maybe, N as None, O as Ok, b as Ordering, P as Passed, R as Result, S as Some, T as Task, V as Validation } from './Validation-BOPLiDqa.js';
3
+ export { D as Deferred } from './InternalTypes-7o9-yrHq.js';
4
+ export { E as Equality, a as Err, F as Failed, M as Maybe, N as None, O as Ok, b as Ordering, P as Passed, R as Result, S as Some, T as Task, c as TaskMaybe, d as TaskResult, e as TaskValidation, V as Validation } from './Validation-DM2eh6wj.js';
5
5
  export { Arr, Dict, NonEmptyRecord, Num, Rec, Str, Uniq } from './utils.js';
6
6
  export { Brand, Duration } from './types.js';
package/dist/index.js CHANGED
@@ -45,6 +45,9 @@ __export(src_exports, {
45
45
  State: () => State,
46
46
  Str: () => Str,
47
47
  Task: () => Task,
48
+ TaskMaybe: () => TaskMaybe,
49
+ TaskResult: () => TaskResult,
50
+ TaskValidation: () => TaskValidation,
48
51
  These: () => These,
49
52
  Tuple: () => Tuple,
50
53
  Uniq: () => Uniq,
@@ -3592,6 +3595,9 @@ var Uniq;
3592
3595
  State,
3593
3596
  Str,
3594
3597
  Task,
3598
+ TaskMaybe,
3599
+ TaskResult,
3600
+ TaskValidation,
3595
3601
  These,
3596
3602
  Tuple,
3597
3603
  Uniq,
package/dist/index.mjs CHANGED
@@ -35,7 +35,7 @@ import {
35
35
  Rec,
36
36
  Str,
37
37
  Uniq
38
- } from "./chunk-W6RWKBDX.mjs";
38
+ } from "./chunk-LKTOK5IT.mjs";
39
39
  import {
40
40
  Combinable,
41
41
  Deferred,
@@ -55,10 +55,13 @@ import {
55
55
  Result,
56
56
  State,
57
57
  Task,
58
+ TaskMaybe,
59
+ TaskResult,
60
+ TaskValidation,
58
61
  These,
59
62
  Tuple,
60
63
  Validation
61
- } from "./chunk-CHRXZIJU.mjs";
64
+ } from "./chunk-ND476266.mjs";
62
65
  import {
63
66
  Brand,
64
67
  Duration
@@ -89,6 +92,9 @@ export {
89
92
  State,
90
93
  Str,
91
94
  Task,
95
+ TaskMaybe,
96
+ TaskResult,
97
+ TaskValidation,
92
98
  These,
93
99
  Tuple,
94
100
  Uniq,
package/dist/utils.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { N as NonEmptyArr } from './InternalTypes-DsCqxWZm.mjs';
2
- import { M as Maybe, R as Result, E as Equality, b as Ordering, T as Task } from './Validation-Do6uWLLZ.mjs';
1
+ import { N as NonEmptyArr } from './InternalTypes-BL23H8Qr.mjs';
2
+ import { M as Maybe, R as Result, E as Equality, b as Ordering, T as Task } from './Validation-Dz70wtcG.mjs';
3
3
  import './types.mjs';
4
4
 
5
5
  declare namespace ArrMaybe {
@@ -53,7 +53,7 @@ declare namespace ArrResult {
53
53
  }
54
54
  declare namespace ArrTaskResult {
55
55
  /**
56
- * Maps each element to a TaskResult and runs them sequentially.
56
+ * Maps each element to a Task.Result and runs them sequentially.
57
57
  * Returns the first Err encountered, or Ok of all results if all succeed.
58
58
  *
59
59
  * @example
@@ -74,7 +74,7 @@ declare namespace ArrTaskResult {
74
74
  */
75
75
  const traverse: <E, A, B>(f: (a: A) => Task<Result<E, B>>) => (data: readonly A[]) => Task<Result<E, readonly B[]>>;
76
76
  /**
77
- * Collects an array of TaskResults into a TaskResult of array.
77
+ * Collects an array of Task.Results into a Task.Result of array.
78
78
  * Returns the first Err if any element is Err, runs sequentially.
79
79
  */
80
80
  const sequence: <E, A>(data: readonly Task<Result<E, A>>[]) => Task<Result<E, readonly A[]>>;
package/dist/utils.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { N as NonEmptyArr } from './InternalTypes-DuzMFAfJ.js';
2
- import { M as Maybe, R as Result, E as Equality, b as Ordering, T as Task } from './Validation-BOPLiDqa.js';
1
+ import { N as NonEmptyArr } from './InternalTypes-7o9-yrHq.js';
2
+ import { M as Maybe, R as Result, E as Equality, b as Ordering, T as Task } from './Validation-DM2eh6wj.js';
3
3
  import './types.js';
4
4
 
5
5
  declare namespace ArrMaybe {
@@ -53,7 +53,7 @@ declare namespace ArrResult {
53
53
  }
54
54
  declare namespace ArrTaskResult {
55
55
  /**
56
- * Maps each element to a TaskResult and runs them sequentially.
56
+ * Maps each element to a Task.Result and runs them sequentially.
57
57
  * Returns the first Err encountered, or Ok of all results if all succeed.
58
58
  *
59
59
  * @example
@@ -74,7 +74,7 @@ declare namespace ArrTaskResult {
74
74
  */
75
75
  const traverse: <E, A, B>(f: (a: A) => Task<Result<E, B>>) => (data: readonly A[]) => Task<Result<E, readonly B[]>>;
76
76
  /**
77
- * Collects an array of TaskResults into a TaskResult of array.
77
+ * Collects an array of Task.Results into a Task.Result of array.
78
78
  * Returns the first Err if any element is Err, runs sequentially.
79
79
  */
80
80
  const sequence: <E, A>(data: readonly Task<Result<E, A>>[]) => Task<Result<E, readonly A[]>>;
package/dist/utils.mjs CHANGED
@@ -5,8 +5,8 @@ import {
5
5
  Rec,
6
6
  Str,
7
7
  Uniq
8
- } from "./chunk-W6RWKBDX.mjs";
9
- import "./chunk-CHRXZIJU.mjs";
8
+ } from "./chunk-LKTOK5IT.mjs";
9
+ import "./chunk-ND476266.mjs";
10
10
  import "./chunk-74JKKJ4R.mjs";
11
11
  export {
12
12
  Arr,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nlozgachev/pipelined",
3
- "version": "0.43.0",
3
+ "version": "0.44.0",
4
4
  "description": "Opinionated functional abstractions for TypeScript",
5
5
  "license": "BSD-3-Clause",
6
6
  "homepage": "https://pipelined.lozgachev.dev",
@@ -67,15 +67,15 @@
67
67
  "docs:build": "pnpm --filter pipelined-docs build"
68
68
  },
69
69
  "devDependencies": {
70
- "@types/node": "25.9.1",
71
- "@vitest/coverage-v8": "4.1.7",
70
+ "@types/node": "25.9.3",
71
+ "@vitest/coverage-v8": "4.1.8",
72
72
  "bumpp": "11.1.0",
73
73
  "dprint": "0.54.0",
74
74
  "fast-check": "4.8.0",
75
- "oxlint": "1.66.0",
75
+ "oxlint": "1.69.0",
76
76
  "tsup": "8.5.1",
77
77
  "typescript": "6.0.3",
78
- "vitest": "4.1.7"
78
+ "vitest": "4.1.8"
79
79
  },
80
80
  "packageManager": "pnpm@11.6.0+sha512.9a36518224080c6fe5165afdcfe79bfa118c29be703f3f462b1e32efe1e98e47e8750b148e08286250aad4113cc7993ca413c4e2cd447752708c2ee5751bc95f"
81
81
  }