jssm 5.79.6 → 5.79.8
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 +17 -17
- package/README.md +2 -2
- package/dist/es6/jssm.d.ts +3 -2
- package/dist/es6/jssm.js +3 -2
- package/dist/es6/jssm_constants.d.ts +2 -1
- package/dist/es6/jssm_constants.js +2 -1
- 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 +3 -2
- package/jssm_constants.d.ts +2 -1
- 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
|
+
994 merges; 137 releases; Changlogging the last 10 commits; Full changelog at [CHANGELOG.long.md](CHANGELOG.long.md)
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -18,6 +18,21 @@ Published tags:
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [Untagged] - 7/21/2022 11:56:00 PM
|
|
26
|
+
|
|
27
|
+
Commit [e91095dc64dacebab0dafe96180219998e0d2891](https://github.com/StoneCypher/jssm/commit/e91095dc64dacebab0dafe96180219998e0d2891)
|
|
28
|
+
|
|
29
|
+
Author: `John Haugeland <stonecypher@gmail.com>`
|
|
30
|
+
|
|
31
|
+
* add newline in gha envvar to support twitter action
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
21
36
|
|
|
22
37
|
|
|
23
38
|
|
|
@@ -173,19 +188,4 @@ Commit [3a127c6201604ec2323d72adabf72c07dd1425e3](https://github.com/StoneCypher
|
|
|
173
188
|
|
|
174
189
|
Author: `John Haugeland <stonecypher@gmail.com>`
|
|
175
190
|
|
|
176
|
-
* caught a typo
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
## [Untagged] - 7/14/2022 11:26:20 PM
|
|
186
|
-
|
|
187
|
-
Commit [0a97cd4664b15047b265bd0bf72fd7da79b2d528](https://github.com/StoneCypher/jssm/commit/0a97cd4664b15047b265bd0bf72fd7da79b2d528)
|
|
188
|
-
|
|
189
|
-
Author: `John Haugeland <stonecypher@gmail.com>`
|
|
190
|
-
|
|
191
|
-
* Property requirement, fixes StoneCypher/fsl#1041
|
|
191
|
+
* caught a typo
|
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.79.
|
|
21
|
+
* Generated for version 5.79.8 at 7/22/2022, 12:20:39 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,763 tests*** run 5,654 times. 4,754 specs with 100.0% coverage, 9 fuzz tests with 5.4% coverage. With 1,
|
|
32
|
+
***4,763 tests*** run 5,654 times. 4,754 specs with 100.0% coverage, 9 fuzz tests with 5.4% coverage. With 1,965 lines, that's about 2.4 tests per line, or 2.9 generated tests per line.
|
|
33
33
|
|
|
34
34
|
***Meet your new state machine library.***
|
|
35
35
|
|
package/dist/es6/jssm.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ declare type StateType = string;
|
|
|
2
2
|
import { JssmGenericState, JssmGenericConfig, JssmTransition, JssmTransitionList, // JssmTransitionRule,
|
|
3
3
|
JssmMachineInternalState, JssmParseTree, JssmStateDeclaration, JssmArrow, JssmArrowDirection, JssmArrowKind, JssmLayout, JssmHistory, JssmSerialization, FslDirection, FslTheme, HookDescription, HookHandler, HookContext, HookResult, HookComplexResult } from './jssm_types';
|
|
4
4
|
import { seq, unique, find_repeated, weighted_rand_select, weighted_sample_select, histograph, weighted_histo_key } from './jssm_util';
|
|
5
|
-
import
|
|
5
|
+
import * as constants from './jssm_constants';
|
|
6
|
+
declare const shapes: string[], gviz_shapes: string[], named_colors: string[];
|
|
6
7
|
import { version } from './version';
|
|
7
8
|
/*********
|
|
8
9
|
*
|
|
@@ -975,4 +976,4 @@ declare function is_hook_complex_result<mDT>(hr: unknown): hr is HookComplexResu
|
|
|
975
976
|
declare function is_hook_rejection<mDT>(hr: HookResult<mDT>): boolean;
|
|
976
977
|
declare function abstract_hook_step<mDT>(maybe_hook: HookHandler<mDT> | undefined, hook_args: HookContext<mDT>): HookComplexResult<mDT>;
|
|
977
978
|
declare function deserialize<mDT>(machine_string: string, ser: JssmSerialization<mDT>): Machine<mDT>;
|
|
978
|
-
export { version, transfer_state_properties, Machine, deserialize, make, wrap_parse as parse, compile, sm, from, arrow_direction, arrow_left_kind, arrow_right_kind, seq, unique, find_repeated, weighted_rand_select, histograph, weighted_sample_select, weighted_histo_key, shapes, gviz_shapes, named_colors, is_hook_rejection, is_hook_complex_result, abstract_hook_step };
|
|
979
|
+
export { version, transfer_state_properties, Machine, deserialize, make, wrap_parse as parse, compile, sm, from, arrow_direction, arrow_left_kind, arrow_right_kind, seq, unique, find_repeated, weighted_rand_select, histograph, weighted_sample_select, weighted_histo_key, constants, shapes, gviz_shapes, named_colors, is_hook_rejection, is_hook_complex_result, abstract_hook_step };
|
package/dist/es6/jssm.js
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import { reduce as reduce_to_639 } from 'reduce-to-639-1';
|
|
3
3
|
import { circular_buffer } from 'circular_buffer_js';
|
|
4
4
|
import { seq, unique, find_repeated, weighted_rand_select, weighted_sample_select, histograph, weighted_histo_key, array_box_if_string, name_bind_prop_and_state, hook_name, named_hook_name } from './jssm_util';
|
|
5
|
-
import
|
|
5
|
+
import * as constants from './jssm_constants';
|
|
6
|
+
const { shapes, gviz_shapes, named_colors } = constants;
|
|
6
7
|
import { parse } from './jssm-dot';
|
|
7
8
|
import { version } from './version'; // replaced from package.js in build
|
|
8
9
|
import { JssmError } from './jssm_error';
|
|
@@ -2276,4 +2277,4 @@ function deserialize(machine_string, ser) {
|
|
|
2276
2277
|
}
|
|
2277
2278
|
export { version, transfer_state_properties, Machine, deserialize, make, wrap_parse as parse, compile, sm, from, arrow_direction, arrow_left_kind, arrow_right_kind,
|
|
2278
2279
|
// WHARGARBL TODO these should be exported to a utility library
|
|
2279
|
-
seq, unique, find_repeated, weighted_rand_select, histograph, weighted_sample_select, weighted_histo_key, shapes, gviz_shapes, named_colors, is_hook_rejection, is_hook_complex_result, abstract_hook_step };
|
|
2280
|
+
seq, unique, find_repeated, weighted_rand_select, histograph, weighted_sample_select, weighted_histo_key, constants, shapes, gviz_shapes, named_colors, is_hook_rejection, is_hook_complex_result, abstract_hook_step };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
export declare const NegInfinity: number, PosInfinity: number, Epsilon: number, Pi: number, E: number, Root2: number, RootHalf: number, Ln2: number, Ln10: number, Log2E: number, Log10E: number, MaxSafeInt: number, MinSafeInt: number, MaxPosNum: number, MinPosNum: number, Phi = 1.618033988749895, EulerC = 0.5772156649015329;
|
|
1
2
|
declare const gviz_shapes: string[];
|
|
2
3
|
declare const shapes: string[];
|
|
3
4
|
declare const named_colors: string[];
|
|
4
|
-
export { gviz_shapes, shapes, named_colors };
|
|
5
|
+
export { gviz_shapes, shapes, named_colors, };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export const NegInfinity = Number.NEGATIVE_INFINITY, PosInfinity = Number.POSITIVE_INFINITY, Epsilon = Number.EPSILON, Pi = Math.PI, E = Math.E, Root2 = Math.SQRT2, RootHalf = Math.SQRT1_2, Ln2 = Math.LN2, Ln10 = Math.LN10, Log2E = Math.LOG2E, Log10E = Math.LOG10E, MaxSafeInt = Number.MAX_SAFE_INTEGER, MinSafeInt = Number.MIN_SAFE_INTEGER, MaxPosNum = Number.MAX_VALUE, MinPosNum = Number.MIN_VALUE, Phi = 1.61803398874989484820, EulerC = 0.57721566490153286060;
|
|
1
2
|
const gviz_shapes = [
|
|
2
3
|
"box3d",
|
|
3
4
|
"polygon",
|
|
@@ -90,4 +91,4 @@ const named_colors = [
|
|
|
90
91
|
"Thistle", "Tomato", "Turquoise", "Violet", "Wheat", "White", "WhiteSmoke",
|
|
91
92
|
"Yellow", "YellowGreen"
|
|
92
93
|
];
|
|
93
|
-
export { gviz_shapes, shapes, named_colors };
|
|
94
|
+
export { gviz_shapes, shapes, named_colors, };
|
package/dist/es6/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const version = "5.79.
|
|
1
|
+
const version = "5.79.8";
|
|
2
2
|
export { version };
|