@thi.ng/transducers 9.4.2 → 9.5.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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-06-09T17:24:08Z
3
+ - **Last updated**: 2025-07-09T09:42:08Z
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.
@@ -11,6 +11,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
11
11
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
12
12
  and/or version bumps of transitive dependencies.
13
13
 
14
+ ## [9.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers@9.5.0) (2025-07-09)
15
+
16
+ #### 🚀 Features
17
+
18
+ - add `StepFn` function type ([f1fc685](https://github.com/thi-ng/umbrella/commit/f1fc685))
19
+
14
20
  ## [9.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers@9.4.0) (2025-06-09)
15
21
 
16
22
  #### 🚀 Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/transducers",
3
- "version": "9.4.2",
3
+ "version": "9.5.0",
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",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@thi.ng/api": "^8.11.29",
47
- "@thi.ng/arrays": "^2.13.0",
47
+ "@thi.ng/arrays": "^2.13.1",
48
48
  "@thi.ng/checks": "^3.7.9",
49
49
  "@thi.ng/compare": "^2.4.21",
50
50
  "@thi.ng/compose": "^3.0.32",
@@ -609,5 +609,5 @@
609
609
  ],
610
610
  "year": 2016
611
611
  },
612
- "gitHead": "b076434a497b291ad33e81b1a15f6a71e2c82cc2\n"
612
+ "gitHead": "e657c2d66574c18343a6797aef4585945729093e\n"
613
613
  }
package/step.d.ts CHANGED
@@ -1,5 +1,9 @@
1
1
  import type { Fn, Maybe } from "@thi.ng/api";
2
2
  import type { TxLike } from "./api.js";
3
+ /**
4
+ * Type of the function produced by {@link step}.
5
+ */
6
+ export type StepFn<A, B> = Fn<A, Maybe<B | B[]>>;
3
7
  /**
4
8
  * Single-step transducer execution wrapper. Returns array if the given
5
9
  * transducer produces multiple results and undefined if there was no output. If
@@ -66,5 +70,5 @@ import type { TxLike } from "./api.js";
66
70
  * @param tx -
67
71
  * @param unwrap -
68
72
  */
69
- export declare const step: <A, B>(tx: TxLike<A, B>, unwrap?: boolean) => Fn<A, Maybe<B | B[]>>;
73
+ export declare const step: <A, B>(tx: TxLike<A, B>, unwrap?: boolean) => StepFn<A, B>;
70
74
  //# sourceMappingURL=step.d.ts.map