@thi.ng/transducers-fsm 2.2.83 → 2.2.84

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-04-11T12:32:44Z
3
+ - **Last updated**: 2024-04-20T14:42:45Z
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.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [2.2.84](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers-fsm@2.2.84) (2024-04-20)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - update type usage ([3a72b97](https://github.com/thi-ng/umbrella/commit/3a72b97))
17
+
12
18
  ### [2.2.82](https://github.com/thi-ng/umbrella/tree/@thi.ng/transducers-fsm@2.2.82) (2024-04-08)
13
19
 
14
20
  #### ♻️ Refactoring
package/README.md CHANGED
@@ -70,10 +70,10 @@ import * as fsm from "@thi.ng/transducers-fsm";
70
70
  Browser ESM import:
71
71
 
72
72
  ```html
73
- <script type="module" src="https://cdn.skypack.dev/@thi.ng/transducers-fsm"></script>
73
+ <script type="module" src="https://esm.run/@thi.ng/transducers-fsm"></script>
74
74
  ```
75
75
 
76
- [Skypack documentation](https://docs.skypack.dev/)
76
+ [JSDelivr documentation](https://www.jsdelivr.com/)
77
77
 
78
78
  For Node.js REPL:
79
79
 
package/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import type { Fn0, IObjectOf } from "@thi.ng/api";
1
+ import type { Fn0, IObjectOf, Nullable } from "@thi.ng/api";
2
2
  import type { Transducer } from "@thi.ng/transducers";
3
3
  export interface FSMState {
4
4
  state: PropertyKey;
5
5
  }
6
6
  export type FSMStateMap<T extends FSMState, A, B> = IObjectOf<FSMHandler<T, A, B>>;
7
- export type FSMHandler<T extends FSMState, A, B> = (state: T, input: A) => B | null | void;
7
+ export type FSMHandler<T extends FSMState, A, B> = (state: T, input: A) => Nullable<B> | void;
8
8
  export interface FSMOpts<T extends FSMState, A, B> {
9
9
  states: FSMStateMap<T, A, B>;
10
10
  terminate: PropertyKey;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/transducers-fsm",
3
- "version": "2.2.83",
3
+ "version": "2.2.84",
4
4
  "description": "Transducer-based Finite State Machine transformer",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -36,8 +36,8 @@
36
36
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/api": "^8.10.1",
40
- "@thi.ng/transducers": "^9.0.1"
39
+ "@thi.ng/api": "^8.11.0",
40
+ "@thi.ng/transducers": "^9.0.2"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@microsoft/api-extractor": "^7.43.0",
@@ -76,5 +76,5 @@
76
76
  "status": "completed",
77
77
  "year": 2018
78
78
  },
79
- "gitHead": "18a0c063a7b33d790e5bc2486c106f45f663ac28\n"
79
+ "gitHead": "8339d05ecc857e529c7325a9839c0063b89e728d\n"
80
80
  }