@thi.ng/transducers-fsm 2.2.69 → 2.2.70

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**: 2024-02-22T11:59:16Z
3
+ - **Last updated**: 2024-02-25T14:07:53Z
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/index.d.ts CHANGED
@@ -35,7 +35,10 @@ export interface FSMOpts<T extends FSMState, A, B> {
35
35
  *
36
36
  * @example
37
37
  * ```ts
38
- * testFSM = {
38
+ * import { fsm } from "@thi.ng/transducers-fsm";
39
+ * import { comp, iterator, map, range, takeNth } from "@thi.ng/transducers";
40
+ *
41
+ * const testFSM = {
39
42
  * states: {
40
43
  * skip: (state, x) => {
41
44
  * if (x < 20) {
@@ -66,19 +69,14 @@ export interface FSMOpts<T extends FSMState, A, B> {
66
69
  * init: () => ({ state: "skip", count: 0 })
67
70
  * }
68
71
  *
69
- * [...tx.iterator(fsm.fsm(testFSM), tx.range(100))]
72
+ * [...iterator(fsm(testFSM), range(100))]
70
73
  * // [ 5, 6, 7, 8, 9, 15, 16, 17, 18, 19 ]
71
74
  *
72
75
  * // as part of composed transducers...
73
- *
74
- * [...tx.iterator(
75
- * tx.comp(tx.takeNth(2), fsm.fsm(testFSM)),
76
- * tx.range(100))]
76
+ * [...iterator(comp(takeNth(2), fsm(testFSM)), range(100))]
77
77
  * // [ 10, 12, 14, 16, 18 ]
78
78
  *
79
- * [...tx.iterator(
80
- * tx.comp(fsm.fsm(testFSM), tx.map((x) => x * 10)),
81
- * tx.range(100))]
79
+ * [...iterator(comp(fsm(testFSM), map((x) => x * 10)), range(100))]
82
80
  * // [ 50, 60, 70, 80, 90, 150, 160, 170, 180, 190 ]
83
81
  * ```
84
82
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/transducers-fsm",
3
- "version": "2.2.69",
3
+ "version": "2.2.70",
4
4
  "description": "Transducer-based Finite State Machine transformer",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -35,8 +35,8 @@
35
35
  "test": "bun test"
36
36
  },
37
37
  "dependencies": {
38
- "@thi.ng/api": "^8.9.25",
39
- "@thi.ng/transducers": "^8.9.6"
38
+ "@thi.ng/api": "^8.9.26",
39
+ "@thi.ng/transducers": "^8.9.7"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@microsoft/api-extractor": "^7.40.1",
@@ -74,5 +74,5 @@
74
74
  "status": "completed",
75
75
  "year": 2018
76
76
  },
77
- "gitHead": "16f2b92b5410bd35dcde6c2971c8e62783ebc472\n"
77
+ "gitHead": "6e20f80dd9df1c8055ffa3c1e4d6f7598add0c0b\n"
78
78
  }