@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.
Files changed (2) hide show
  1. package/README.md +9 -12
  2. 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
- ## Possibly maybe
15
+ ## Overview
16
16
 
17
- In mainstream TypeScript, code is often burdened by implicit control flow: unchecked exceptions,
18
- manual null propagation, unhandled asynchronous failures, UI state race conditions, and deeply
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
- By representing optionality as `Maybe`, failures as `Result`, multi-field errors as `Validation`,
23
- lazy asynchronous workflows as `Task.Result`, request concurrency as `Op`, and event pipelines as
24
- `Stream`, the library disentangles business logic from control mechanics.
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
- To support these patterns without introducing bloat, the library is designed to be lightweight,
27
- zero-dependency, and fully tree-shakeable. The core module (`/core`) is under 16 KB gzipped, and the
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nlozgachev/pipelined",
3
- "version": "0.61.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",