@nlozgachev/pipelined 0.32.0 → 0.34.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 +67 -37
- package/dist/{Task-CjYKLeTY.d.ts → Task-DXsuurnc.d.mts} +107 -58
- package/dist/{Task-CJZfcOkO.d.mts → Task-zAY4kSVB.d.ts} +107 -58
- package/dist/{chunk-L3NC44SN.mjs → chunk-5AWUAG7G.mjs} +449 -299
- package/dist/{chunk-NRF2FVPZ.mjs → chunk-AHEZFTMT.mjs} +64 -32
- package/dist/{chunk-TK5ZCGP2.mjs → chunk-DLBHVYII.mjs} +110 -47
- package/dist/{chunk-EHQFUWZW.mjs → chunk-IJFFWBKW.mjs} +223 -62
- package/dist/chunk-IPP4XFYH.mjs +0 -0
- package/dist/chunk-VWVPHDZO.mjs +29 -0
- package/dist/composition.d.mts +8 -7
- package/dist/composition.d.ts +8 -7
- package/dist/composition.js +64 -32
- package/dist/composition.mjs +1 -1
- package/dist/core.d.mts +227 -149
- package/dist/core.d.ts +227 -149
- package/dist/core.js +576 -345
- package/dist/core.mjs +3 -2
- package/dist/index.d.mts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.js +865 -446
- package/dist/index.mjs +10 -7
- package/dist/types.d.mts +104 -2
- package/dist/types.d.ts +104 -2
- package/dist/types.js +20 -0
- package/dist/types.mjs +6 -3
- package/dist/utils.d.mts +48 -5
- package/dist/utils.d.ts +48 -5
- package/dist/utils.js +353 -108
- package/dist/utils.mjs +3 -2
- package/package.json +9 -9
- package/dist/NonEmptyList-BlGFjor5.d.mts +0 -30
- package/dist/NonEmptyList-BlGFjor5.d.ts +0 -30
- package/dist/chunk-BYWKZLHM.mjs +0 -10
package/dist/utils.mjs
CHANGED
|
@@ -5,9 +5,10 @@ import {
|
|
|
5
5
|
Rec,
|
|
6
6
|
Str,
|
|
7
7
|
Uniq
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-IJFFWBKW.mjs";
|
|
9
|
+
import "./chunk-DLBHVYII.mjs";
|
|
10
10
|
import "./chunk-DBIC62UV.mjs";
|
|
11
|
+
import "./chunk-VWVPHDZO.mjs";
|
|
11
12
|
export {
|
|
12
13
|
Arr,
|
|
13
14
|
Dict,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nlozgachev/pipelined",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.0",
|
|
4
4
|
"description": "Opinionated functional abstractions for TypeScript",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"homepage": "https://pipelined.lozgachev.dev",
|
|
@@ -56,14 +56,14 @@
|
|
|
56
56
|
"publish:npm": "pnpm build && npm publish --access public"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@types/node": "25.
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"oxlint": "1.
|
|
59
|
+
"@types/node": "25.9.1",
|
|
60
|
+
"@vitest/coverage-v8": "4.1.7",
|
|
61
|
+
"dprint": "0.54.0",
|
|
62
|
+
"fast-check": "4.8.0",
|
|
63
|
+
"oxlint": "1.66.0",
|
|
64
64
|
"tsup": "8.5.1",
|
|
65
|
-
"typescript": "
|
|
66
|
-
"vitest": "4.1.
|
|
65
|
+
"typescript": "6.0.3",
|
|
66
|
+
"vitest": "4.1.7"
|
|
67
67
|
},
|
|
68
|
-
"packageManager": "pnpm@
|
|
68
|
+
"packageManager": "pnpm@11.2.2+sha512.36e6621fad506178936455e70247b8808ef4ec25797a9f437a93281a020484e2607f6a469a22e982987c3dbb8866e3071514ab10a4a1749e06edcd1ec118436f"
|
|
69
69
|
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A list that is guaranteed to have at least one element.
|
|
3
|
-
* Useful for ensuring functions receive non-empty input and for
|
|
4
|
-
* accumulating errors in Validation.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```ts
|
|
8
|
-
* const errors: NonEmptyList<string> = ["First error", "Second error"];
|
|
9
|
-
*
|
|
10
|
-
* // TypeScript ensures at least one element:
|
|
11
|
-
* const invalid: NonEmptyList<string> = []; // Error!
|
|
12
|
-
* ```
|
|
13
|
-
*/
|
|
14
|
-
type NonEmptyList<A> = readonly [A, ...A[]];
|
|
15
|
-
/**
|
|
16
|
-
* Type guard that checks if an array is non-empty.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts
|
|
20
|
-
* const items: string[] = getItems();
|
|
21
|
-
*
|
|
22
|
-
* if (isNonEmptyList(items)) {
|
|
23
|
-
* // TypeScript knows items has at least one element
|
|
24
|
-
* const first = items[0]; // string, not string | undefined
|
|
25
|
-
* }
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
declare const isNonEmptyList: <A>(list: readonly A[]) => list is NonEmptyList<A>;
|
|
29
|
-
|
|
30
|
-
export { type NonEmptyList as N, isNonEmptyList as i };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A list that is guaranteed to have at least one element.
|
|
3
|
-
* Useful for ensuring functions receive non-empty input and for
|
|
4
|
-
* accumulating errors in Validation.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```ts
|
|
8
|
-
* const errors: NonEmptyList<string> = ["First error", "Second error"];
|
|
9
|
-
*
|
|
10
|
-
* // TypeScript ensures at least one element:
|
|
11
|
-
* const invalid: NonEmptyList<string> = []; // Error!
|
|
12
|
-
* ```
|
|
13
|
-
*/
|
|
14
|
-
type NonEmptyList<A> = readonly [A, ...A[]];
|
|
15
|
-
/**
|
|
16
|
-
* Type guard that checks if an array is non-empty.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts
|
|
20
|
-
* const items: string[] = getItems();
|
|
21
|
-
*
|
|
22
|
-
* if (isNonEmptyList(items)) {
|
|
23
|
-
* // TypeScript knows items has at least one element
|
|
24
|
-
* const first = items[0]; // string, not string | undefined
|
|
25
|
-
* }
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
declare const isNonEmptyList: <A>(list: readonly A[]) => list is NonEmptyList<A>;
|
|
29
|
-
|
|
30
|
-
export { type NonEmptyList as N, isNonEmptyList as i };
|