jssm 5.85.0 → 5.85.1
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 +18 -22
- package/README.md +2 -2
- package/dist/es6/jssm.d.ts +0 -26
- package/dist/es6/jssm.js +0 -29
- package/dist/es6/version.js +1 -1
- package/dist/jssm.es5.cjs.js +1 -1
- package/dist/jssm.es5.iife.js +1 -1
- package/jssm.d.ts +0 -26
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
1073 merges; 161 releases; Changlogging the last 10 commits; Full changelog at [CHANGELOG.long.md](CHANGELOG.long.md)
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -18,6 +18,22 @@ Published tags:
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [Untagged] - 9/12/2022 9:17:28 AM
|
|
26
|
+
|
|
27
|
+
Commit [a0b9fb59c5dc92c94738a6d456ef5e5514a48d1f](https://github.com/StoneCypher/jssm/commit/a0b9fb59c5dc92c94738a6d456ef5e5514a48d1f)
|
|
28
|
+
|
|
29
|
+
Author: `John Haugeland <stonecypher@gmail.com>`
|
|
30
|
+
|
|
31
|
+
* simple display text function to resolve labels and node names
|
|
32
|
+
* fixes StoneCypher/fsl#1202
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
21
37
|
|
|
22
38
|
|
|
23
39
|
|
|
@@ -165,24 +181,4 @@ Commit [d96737539244745a206582e0a9b69e39ed5ef9c6](https://github.com/StoneCypher
|
|
|
165
181
|
|
|
166
182
|
Author: `John Haugeland <stonecypher@gmail.com>`
|
|
167
183
|
|
|
168
|
-
* breaking jssm-viz, need to sort why
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
<a name="5__83__0" />
|
|
178
|
-
|
|
179
|
-
## [5.83.0] - 9/3/2022 5:34:01 PM
|
|
180
|
-
|
|
181
|
-
Commit [3256f05a4f2b5c5d6e05c2eeba091899e73ef327](https://github.com/StoneCypher/jssm/commit/3256f05a4f2b5c5d6e05c2eeba091899e73ef327)
|
|
182
|
-
|
|
183
|
-
Author: `John Haugeland <stonecypher@gmail.com>`
|
|
184
|
-
|
|
185
|
-
Merges [51ebcfc, 216dc9c]
|
|
186
|
-
|
|
187
|
-
* Merge pull request #533 from StoneCypher/AttemptToFixAstral
|
|
188
|
-
* Attempt to fix astral
|
|
184
|
+
* breaking jssm-viz, need to sort why
|
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Please edit the file it's derived from, instead: `./src/md/readme_base.md`
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
* Generated for version 5.85.
|
|
21
|
+
* Generated for version 5.85.1 at 9/12/2022, 9:31:27 AM
|
|
22
22
|
|
|
23
23
|
-->
|
|
24
24
|
# jssm
|
|
@@ -29,7 +29,7 @@ share online. Easy to embed.
|
|
|
29
29
|
|
|
30
30
|
Readable, useful state machines as one-liner strings.
|
|
31
31
|
|
|
32
|
-
***4,
|
|
32
|
+
***4,844 tests*** run 5,735 times. 4,835 specs with 100.0% coverage, 9 fuzz tests with 13.0% coverage. With 2,693 lines, that's about 1.8 tests per line, or 2.1 generated tests per line.
|
|
33
33
|
|
|
34
34
|
***Meet your new state machine library.***
|
|
35
35
|
|
package/dist/es6/jssm.d.ts
CHANGED
|
@@ -303,38 +303,12 @@ declare class Machine<mDT> {
|
|
|
303
303
|
*
|
|
304
304
|
* const lswitch = jssm.from('a -> b; state a: { label: "Foo!"; };');
|
|
305
305
|
* console.log( lswitch.label_for('a') ); // 'Foo!'
|
|
306
|
-
* console.log( lswitch.label_for('b') ); // undefined
|
|
307
306
|
* ```
|
|
308
307
|
*
|
|
309
|
-
* See also {@link display_text}.
|
|
310
|
-
*
|
|
311
308
|
* @typeparam mDT The type of the machine data member; usually omitted
|
|
312
309
|
*
|
|
313
310
|
*/
|
|
314
311
|
label_for(state: StateType): string;
|
|
315
|
-
/*********
|
|
316
|
-
*
|
|
317
|
-
* Get whatever the node should show as text.
|
|
318
|
-
*
|
|
319
|
-
* Currently, this means to get the label for a given state, if any;
|
|
320
|
-
* otherwise to return the node's name. However, this definition is expected
|
|
321
|
-
* to grow with time, and it is currently considered ill-advised to manually
|
|
322
|
-
* parse this text.
|
|
323
|
-
*
|
|
324
|
-
* See also {@link label_for}.
|
|
325
|
-
*
|
|
326
|
-
* ```typescript
|
|
327
|
-
* import * as jssm from 'jssm';
|
|
328
|
-
*
|
|
329
|
-
* const lswitch = jssm.from('a -> b; state a: { label: "Foo!"; };');
|
|
330
|
-
* console.log( lswitch.display_text('a') ); // 'Foo!'
|
|
331
|
-
* console.log( lswitch.display_text('b') ); // 'b'
|
|
332
|
-
* ```
|
|
333
|
-
*
|
|
334
|
-
* @typeparam mDT The type of the machine data member; usually omitted
|
|
335
|
-
*
|
|
336
|
-
*/
|
|
337
|
-
display_text(state: StateType): string;
|
|
338
312
|
/*********
|
|
339
313
|
*
|
|
340
314
|
* Get the current data of a machine.
|
package/dist/es6/jssm.js
CHANGED
|
@@ -946,43 +946,14 @@ class Machine {
|
|
|
946
946
|
*
|
|
947
947
|
* const lswitch = jssm.from('a -> b; state a: { label: "Foo!"; };');
|
|
948
948
|
* console.log( lswitch.label_for('a') ); // 'Foo!'
|
|
949
|
-
* console.log( lswitch.label_for('b') ); // undefined
|
|
950
949
|
* ```
|
|
951
950
|
*
|
|
952
|
-
* See also {@link display_text}.
|
|
953
|
-
*
|
|
954
951
|
* @typeparam mDT The type of the machine data member; usually omitted
|
|
955
952
|
*
|
|
956
953
|
*/
|
|
957
954
|
label_for(state) {
|
|
958
955
|
return this._state_labels.get(state);
|
|
959
956
|
}
|
|
960
|
-
/*********
|
|
961
|
-
*
|
|
962
|
-
* Get whatever the node should show as text.
|
|
963
|
-
*
|
|
964
|
-
* Currently, this means to get the label for a given state, if any;
|
|
965
|
-
* otherwise to return the node's name. However, this definition is expected
|
|
966
|
-
* to grow with time, and it is currently considered ill-advised to manually
|
|
967
|
-
* parse this text.
|
|
968
|
-
*
|
|
969
|
-
* See also {@link label_for}.
|
|
970
|
-
*
|
|
971
|
-
* ```typescript
|
|
972
|
-
* import * as jssm from 'jssm';
|
|
973
|
-
*
|
|
974
|
-
* const lswitch = jssm.from('a -> b; state a: { label: "Foo!"; };');
|
|
975
|
-
* console.log( lswitch.display_text('a') ); // 'Foo!'
|
|
976
|
-
* console.log( lswitch.display_text('b') ); // 'b'
|
|
977
|
-
* ```
|
|
978
|
-
*
|
|
979
|
-
* @typeparam mDT The type of the machine data member; usually omitted
|
|
980
|
-
*
|
|
981
|
-
*/
|
|
982
|
-
display_text(state) {
|
|
983
|
-
var _a;
|
|
984
|
-
return (_a = this._state_labels.get(state)) !== null && _a !== void 0 ? _a : state;
|
|
985
|
-
}
|
|
986
957
|
/*********
|
|
987
958
|
*
|
|
988
959
|
* Get the current data of a machine.
|
package/dist/es6/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const version = "5.85.
|
|
1
|
+
const version = "5.85.1";
|
|
2
2
|
export { version };
|