@thi.ng/transducers 9.6.0 → 9.6.2

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-07-13T21:35:34Z
3
+ - **Last updated**: 2025-07-20T14:56:01Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/api.d.ts CHANGED
@@ -53,7 +53,7 @@ export type MaybeReduced<T> = Reduced<T> | T;
53
53
  * console.log(
54
54
  * transduce(new Mul(11), push(), range(4))
55
55
  * );
56
- * // [0, 11, 22, 33, 44]
56
+ * // [0, 11, 22, 33]
57
57
  *
58
58
  * // also usable w/ comp()
59
59
  * const res = transduce(
package/flatten.d.ts CHANGED
@@ -13,7 +13,7 @@ import type { Transducer } from "./api.js";
13
13
  * import { flatten } from "@thi.ng/transducers";
14
14
  *
15
15
  * console.log(
16
- * [...flatten([[1, [2, 3]], ["abc", "cde"]])]
16
+ * [...flatten([[1, [2, 3]], ["abc", "def"]])]
17
17
  * );
18
18
  * // [1, 2, 3, "abc", "def"]
19
19
  *
package/group-binary.d.ts CHANGED
@@ -50,7 +50,7 @@ import type { Reducer } from "./api.js";
50
50
  * // [ 5 ]
51
51
  *
52
52
  * console.log(tree[0][1][1]); // 011* == branch
53
- * // [ [ 6 ], [ 7 ] ]
53
+ * // { "0": [ 6 ], "1": [ 7 ] }
54
54
  * ```
55
55
  *
56
56
  * Using {@link frequencies} as leaf reducer:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/transducers",
3
- "version": "9.6.0",
3
+ "version": "9.6.2",
4
4
  "description": "Collection of ~170 lightweight, composable transducers, reducers, generators, iterators for functional data transformations",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -43,18 +43,18 @@
43
43
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
44
44
  },
45
45
  "dependencies": {
46
- "@thi.ng/api": "^8.11.30",
47
- "@thi.ng/arrays": "^2.13.2",
48
- "@thi.ng/checks": "^3.7.10",
49
- "@thi.ng/compare": "^2.4.22",
50
- "@thi.ng/compose": "^3.0.33",
51
- "@thi.ng/errors": "^2.5.36",
52
- "@thi.ng/math": "^5.11.30",
53
- "@thi.ng/random": "^4.1.21",
54
- "@thi.ng/timestamp": "^1.1.15"
46
+ "@thi.ng/api": "^8.11.31",
47
+ "@thi.ng/arrays": "^2.13.4",
48
+ "@thi.ng/checks": "^3.7.11",
49
+ "@thi.ng/compare": "^2.4.23",
50
+ "@thi.ng/compose": "^3.0.34",
51
+ "@thi.ng/errors": "^2.5.37",
52
+ "@thi.ng/math": "^5.11.31",
53
+ "@thi.ng/random": "^4.1.22",
54
+ "@thi.ng/timestamp": "^1.1.16"
55
55
  },
56
56
  "devDependencies": {
57
- "esbuild": "^0.25.6",
57
+ "esbuild": "^0.25.8",
58
58
  "typedoc": "^0.28.7",
59
59
  "typescript": "^5.8.3"
60
60
  },
@@ -609,5 +609,5 @@
609
609
  ],
610
610
  "year": 2016
611
611
  },
612
- "gitHead": "a81765bd79046980463c56a8bd187f9aaa88dd65\n"
612
+ "gitHead": "3cd1bea8b2bf6b859609f6d5c14b4eb64745681f\n"
613
613
  }
package/range-nd.d.ts CHANGED
@@ -21,7 +21,7 @@ import type { ArrayLikeIterable } from "@thi.ng/api";
21
21
  * // [ [ 0, 0 ], [ 0, -1 ], [ 1, 0 ], [ 1, -1 ] ]
22
22
  *
23
23
  * console.log(
24
- * [...rangeNd([-1,2], [1,3])]
24
+ * [...rangeNd([-1, 2], [1, 4])]
25
25
  * );
26
26
  * // [ [ -1, 2 ], [ -1, 3 ], [ 0, 2 ], [ 0, 3 ] ]
27
27
  *
package/scan.d.ts CHANGED
@@ -41,7 +41,7 @@ import type { Reducer, Transducer } from "./api.js";
41
41
  * );
42
42
  *
43
43
  * console.log(res);
44
- * // [ 'alpha beta gamma delta', 123 ]
44
+ * // [ 'alpha beta gamma delta', 23 ]
45
45
  * ```
46
46
  *
47
47
  * @param rfn - reducer used as scan operator