@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.
- package/README.md +10 -10
- package/dist/{InternalTypes-DuzMFAfJ.d.ts → InternalTypes-7o9-yrHq.d.ts} +1 -1
- package/dist/{InternalTypes-DsCqxWZm.d.mts → InternalTypes-BL23H8Qr.d.mts} +1 -1
- package/dist/{Validation-BOPLiDqa.d.ts → Validation-DM2eh6wj.d.ts} +126 -126
- package/dist/{Validation-Do6uWLLZ.d.mts → Validation-Dz70wtcG.d.mts} +126 -126
- package/dist/{chunk-W6RWKBDX.mjs → chunk-LKTOK5IT.mjs} +1 -1
- package/dist/{chunk-CHRXZIJU.mjs → chunk-ND476266.mjs} +3 -0
- package/dist/composition.d.mts +1 -1
- package/dist/composition.d.ts +1 -1
- package/dist/core.d.mts +4 -4
- package/dist/core.d.ts +4 -4
- package/dist/core.js +6 -0
- package/dist/core.mjs +7 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -0
- package/dist/index.mjs +8 -2
- package/dist/utils.d.mts +4 -4
- package/dist/utils.d.ts +4 -4
- package/dist/utils.mjs +2 -2
- package/package.json +5 -5
package/dist/composition.d.mts
CHANGED
package/dist/composition.d.ts
CHANGED
package/dist/core.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { M as Maybe, R as Result, T as Task } from './Validation-
|
|
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-
|
|
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-
|
|
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
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
2
|
-
import { M as Maybe, R as Result, E as Equality, b as Ordering, T as Task } from './Validation-
|
|
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
|
|
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
|
|
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-
|
|
2
|
-
import { M as Maybe, R as Result, E as Equality, b as Ordering, T as Task } from './Validation-
|
|
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
|
|
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
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nlozgachev/pipelined",
|
|
3
|
-
"version": "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.
|
|
71
|
-
"@vitest/coverage-v8": "4.1.
|
|
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.
|
|
75
|
+
"oxlint": "1.69.0",
|
|
76
76
|
"tsup": "8.5.1",
|
|
77
77
|
"typescript": "6.0.3",
|
|
78
|
-
"vitest": "4.1.
|
|
78
|
+
"vitest": "4.1.8"
|
|
79
79
|
},
|
|
80
80
|
"packageManager": "pnpm@11.6.0+sha512.9a36518224080c6fe5165afdcfe79bfa118c29be703f3f462b1e32efe1e98e47e8750b148e08286250aad4113cc7993ca413c4e2cd447752708c2ee5751bc95f"
|
|
81
81
|
}
|