@thi.ng/transducers-fsm 2.2.87 → 2.2.89

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-05-08T18:24:32Z
3
+ - **Last updated**: 2024-06-29T09:28:36Z
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/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 192 standalone projects, maintained as part
10
+ > This is one of 189 standalone projects, maintained as part
11
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
12
12
  > and anti-framework.
13
13
  >
@@ -52,7 +52,6 @@ package.
52
52
 
53
53
  ## Related packages
54
54
 
55
- - [@thi.ng/fsm](https://github.com/thi-ng/umbrella/tree/develop/packages/fsm) - Composable primitives for building declarative, transducer based Finite-State Machines & matchers for arbitrary data streams
56
55
  - [@thi.ng/sax](https://github.com/thi-ng/umbrella/tree/develop/packages/sax) - Transducer-based, SAX-like, non-validating, speedy & tiny XML parser
57
56
 
58
57
  ## Installation
package/index.d.ts CHANGED
@@ -34,7 +34,7 @@ export interface FSMOpts<T extends FSMState, A, B> {
34
34
  * and no further inputs will be consumed.
35
35
  *
36
36
  * @example
37
- * ```ts
37
+ * ```ts tangle:../export/fsm.ts
38
38
  * import { fsm } from "@thi.ng/transducers-fsm";
39
39
  * import { comp, iterator, map, range, takeNth } from "@thi.ng/transducers";
40
40
  *
@@ -67,16 +67,22 @@ export interface FSMOpts<T extends FSMState, A, B> {
67
67
  * },
68
68
  * terminate: "done",
69
69
  * init: () => ({ state: "skip", count: 0 })
70
- * }
70
+ * };
71
71
  *
72
- * [...iterator(fsm(testFSM), range(100))]
72
+ * console.log(
73
+ * [...iterator(fsm(testFSM), range(100))]
74
+ * );
73
75
  * // [ 5, 6, 7, 8, 9, 15, 16, 17, 18, 19 ]
74
76
  *
75
77
  * // as part of composed transducers...
76
- * [...iterator(comp(takeNth(2), fsm(testFSM)), range(100))]
78
+ * console.log(
79
+ * [...iterator(comp(takeNth(2), fsm(testFSM)), range(100))]
80
+ * );
77
81
  * // [ 10, 12, 14, 16, 18 ]
78
82
  *
79
- * [...iterator(comp(fsm(testFSM), map((x) => x * 10)), range(100))]
83
+ * console.log(
84
+ * [...iterator(comp(fsm(testFSM), map((x) => x * 10)), range(100))]
85
+ * );
80
86
  * // [ 50, 60, 70, 80, 90, 150, 160, 170, 180, 190 ]
81
87
  * ```
82
88
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/transducers-fsm",
3
- "version": "2.2.87",
3
+ "version": "2.2.89",
4
4
  "description": "Transducer-based Finite State Machine transformer",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -10,7 +10,7 @@
10
10
  "type": "git",
11
11
  "url": "https://github.com/thi-ng/umbrella.git"
12
12
  },
13
- "homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/transducers-fsm#readme",
13
+ "homepage": "https://thi.ng/transducers-fsm",
14
14
  "funding": [
15
15
  {
16
16
  "type": "github",
@@ -36,14 +36,14 @@
36
36
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/api": "^8.11.2",
40
- "@thi.ng/transducers": "^9.0.5"
39
+ "@thi.ng/api": "^8.11.4",
40
+ "@thi.ng/transducers": "^9.0.7"
41
41
  },
42
42
  "devDependencies": {
43
- "@microsoft/api-extractor": "^7.43.2",
44
- "esbuild": "^0.21.1",
43
+ "@microsoft/api-extractor": "^7.47.0",
44
+ "esbuild": "^0.21.5",
45
45
  "typedoc": "^0.25.13",
46
- "typescript": "^5.4.5"
46
+ "typescript": "^5.5.2"
47
47
  },
48
48
  "keywords": [
49
49
  "fsm",
@@ -75,5 +75,5 @@
75
75
  "status": "completed",
76
76
  "year": 2018
77
77
  },
78
- "gitHead": "df34b4a9e650cc7323575356de207d78933bdcf3\n"
78
+ "gitHead": "7b950c112fba0b2e7c450765b15624c3382f1354\n"
79
79
  }