@nlozgachev/pipelined 0.61.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/package.json +1 -1
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
|
|