@nlozgachev/pipelined 0.60.0 → 0.62.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 +9 -12
- package/dist/data.cjs +1 -1
- package/dist/data.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -12,21 +12,18 @@ Opinionated functional abstractions for TypeScript.
|
|
|
12
12
|
npm add @nlozgachev/pipelined
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
##
|
|
15
|
+
## Overview
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
nested spread operators. `pipelined` turns these complex runtime states into transparent, composable
|
|
20
|
-
data structures.
|
|
17
|
+
Standard TypeScript applications frequently deal with unchecked runtime exceptions, manual null
|
|
18
|
+
propagation, unhandled async rejections, race conditions, and verbose nested spread operators.
|
|
21
19
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
`
|
|
20
|
+
`pipelined` provides discriminated unions and pure combinators to model these conditions explicitly:
|
|
21
|
+
`Maybe` for absence, `Result` for typed failures, `Validation` for multi-error accumulation,
|
|
22
|
+
`Task.Result` for lazy infallible async, `Op` for declarative request concurrency, and `Stream` for
|
|
23
|
+
typed event sequences.
|
|
25
24
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
entire toolkit is under 25 KB gzipped, making it equally suitable for client and server
|
|
29
|
-
environments.
|
|
25
|
+
The library has zero external dependencies, <16 KB core gzipped (<25 KB total), and compiles to dual
|
|
26
|
+
ESM and CommonJS distributions.
|
|
30
27
|
|
|
31
28
|
## Documentation
|
|
32
29
|
|
package/dist/data.cjs
CHANGED
package/dist/data.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -3380,7 +3380,7 @@ var Arr;
|
|
|
3380
3380
|
if (typeof arr.toSorted === "function") {
|
|
3381
3381
|
return arr.toSorted(compare);
|
|
3382
3382
|
}
|
|
3383
|
-
return [...data].
|
|
3383
|
+
return [...data].sort(compare);
|
|
3384
3384
|
};
|
|
3385
3385
|
Arr2.sortWith = (ord) => (data) => {
|
|
3386
3386
|
const arr = data;
|
package/dist/index.mjs
CHANGED
|
@@ -3292,7 +3292,7 @@ var Arr;
|
|
|
3292
3292
|
if (typeof arr.toSorted === "function") {
|
|
3293
3293
|
return arr.toSorted(compare);
|
|
3294
3294
|
}
|
|
3295
|
-
return [...data].
|
|
3295
|
+
return [...data].sort(compare);
|
|
3296
3296
|
};
|
|
3297
3297
|
Arr2.sortWith = (ord) => (data) => {
|
|
3298
3298
|
const arr = data;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nlozgachev/pipelined",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.62.0",
|
|
4
4
|
"description": "Opinionated functional abstractions for TypeScript",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
6
|
"homepage": "https://pipelined.lozgachev.dev",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"type": "module",
|
|
20
20
|
"sideEffects": false,
|
|
21
21
|
"engines": {
|
|
22
|
-
"node": ">=
|
|
22
|
+
"node": ">=18.0.0"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"dist"
|
|
@@ -129,5 +129,5 @@
|
|
|
129
129
|
"gzip": true
|
|
130
130
|
}
|
|
131
131
|
],
|
|
132
|
-
"packageManager": "pnpm@11.
|
|
132
|
+
"packageManager": "pnpm@11.22.0+sha512.1ff870c4c6133dfd88fb2afc46dd13d47f09c9794b438c6fdb47ca98caf3bc16381ee0be93a091b8e3824cf01f889f46d7d9e20910fb0be1ab0fb5baa80dd621"
|
|
133
133
|
}
|