@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 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/dist/data.cjs CHANGED
@@ -502,7 +502,7 @@ var Arr;
502
502
  if (typeof arr.toSorted === "function") {
503
503
  return arr.toSorted(compare);
504
504
  }
505
- return [...data].toSorted(compare);
505
+ return [...data].sort(compare);
506
506
  };
507
507
  Arr2.sortWith = (ord) => (data) => {
508
508
  const arr = data;
package/dist/data.mjs CHANGED
@@ -469,7 +469,7 @@ var Arr;
469
469
  if (typeof arr.toSorted === "function") {
470
470
  return arr.toSorted(compare);
471
471
  }
472
- return [...data].toSorted(compare);
472
+ return [...data].sort(compare);
473
473
  };
474
474
  Arr2.sortWith = (ord) => (data) => {
475
475
  const arr = data;
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].toSorted(compare);
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].toSorted(compare);
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.60.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": ">=24.19.0"
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.6.0+sha512.9a36518224080c6fe5165afdcfe79bfa118c29be703f3f462b1e32efe1e98e47e8750b148e08286250aad4113cc7993ca413c4e2cd447752708c2ee5751bc95f"
132
+ "packageManager": "pnpm@11.22.0+sha512.1ff870c4c6133dfd88fb2afc46dd13d47f09c9794b438c6fdb47ca98caf3bc16381ee0be93a091b8e3824cf01f889f46d7d9e20910fb0be1ab0fb5baa80dd621"
133
133
  }