jssm 5.152.0 → 5.153.0
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/README.md +7 -7
- package/custom-elements.json +11 -11
- package/dist/cdn/instance.js +205 -11
- package/dist/cdn/viz.js +229 -16
- package/dist/cli/fsl-export-system-prompt.cjs +1 -1
- package/dist/cli/fsl-render.cjs +1 -1
- package/dist/cli/fsl.cjs +1 -1
- package/dist/cli/lib.cjs +1 -1
- package/dist/cli/lib.mjs +1 -1
- package/dist/deno/README.md +7 -7
- package/dist/deno/jssm.d.ts +6 -4
- package/dist/deno/jssm.js +1 -1
- package/dist/deno/jssm_types.d.ts +2 -0
- package/dist/jssm.es5.cjs +1 -1
- package/dist/jssm.es5.iife.js +1 -1
- package/dist/jssm.es6.mjs +1 -1
- package/dist/jssm_viz.cjs +1 -1
- package/dist/jssm_viz.iife.cjs +1 -1
- package/dist/jssm_viz.mjs +1 -1
- package/jssm.es5.d.cts +8 -4
- package/jssm.es6.d.ts +8 -4
- package/jssm_viz.es5.d.cts +8 -4
- package/jssm_viz.es6.d.ts +8 -4
- package/package.json +1 -1
package/dist/deno/README.md
CHANGED
|
@@ -18,10 +18,10 @@ 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.
|
|
21
|
+
* Generated for version 5.153.0 at 6/28/2026, 6:29:10 PM
|
|
22
22
|
|
|
23
23
|
-->
|
|
24
|
-
# jssm 5.
|
|
24
|
+
# jssm 5.153.0
|
|
25
25
|
|
|
26
26
|
[**Try the live editor**](https://stonecypher.github.io/jssm-viz-demo/graph_explorer.html) ·
|
|
27
27
|
[Documentation](https://stonecypher.github.io/jssm/docs/) ·
|
|
@@ -312,7 +312,7 @@ That decision shows up everywhere downstream:
|
|
|
312
312
|
or run `npm run benny` against your own machine.
|
|
313
313
|
|
|
314
314
|
- **More thoroughly tested than any other JavaScript state-machine
|
|
315
|
-
library.** 7,
|
|
315
|
+
library.** 7,769 tests at 100.0% line coverage
|
|
316
316
|
([report](https://coveralls.io/github/StoneCypher/jssm)), plus
|
|
317
317
|
fuzz testing via `fast-check`, with parser test data across ten natural
|
|
318
318
|
languages and Emoji.
|
|
@@ -445,11 +445,11 @@ If your contribution is missing here, please open an issue.
|
|
|
445
445
|
|
|
446
446
|
<br/>
|
|
447
447
|
|
|
448
|
-
***7,
|
|
448
|
+
***7,769 tests***, run 82,415 times.
|
|
449
449
|
|
|
450
|
-
- 7,
|
|
451
|
-
- 754 fuzz tests with 55.
|
|
452
|
-
- 9,
|
|
450
|
+
- 7,015 specs with 100.0% coverage
|
|
451
|
+
- 754 fuzz tests with 55.5% coverage
|
|
452
|
+
- 9,374 TypeScript lines - 0.8 tests per line, 8.8 generated tests per line
|
|
453
453
|
|
|
454
454
|
[](https://github.com/StoneCypher/jssm/actions)
|
|
455
455
|
[](https://www.npmjs.com/package/jssm)
|
package/dist/deno/jssm.d.ts
CHANGED
|
@@ -126,6 +126,8 @@ declare class Machine<mDT> {
|
|
|
126
126
|
_arrange_declaration: Array<Array<StateType>>;
|
|
127
127
|
_arrange_start_declaration: Array<Array<StateType>>;
|
|
128
128
|
_arrange_end_declaration: Array<Array<StateType>>;
|
|
129
|
+
_oarrange_declaration: Array<Array<StateType>>;
|
|
130
|
+
_farrange_declaration: Array<Array<StateType>>;
|
|
129
131
|
_themes: FslTheme[];
|
|
130
132
|
_flow: FslDirection;
|
|
131
133
|
_has_hooks: boolean;
|
|
@@ -208,7 +210,7 @@ declare class Machine<mDT> {
|
|
|
208
210
|
_firing_error: boolean;
|
|
209
211
|
_boundary_depth: number;
|
|
210
212
|
_boundary_depth_limit: number;
|
|
211
|
-
constructor({ start_states, end_states, failed_outputs, initial_state, start_states_no_enforce, complete, transitions, machine_author, machine_comment, machine_contributor, machine_definition, machine_language, machine_license, machine_name, machine_version, npm_name, default_size, state_declaration, property_definition, state_property, fsl_version, dot_preamble, arrange_declaration, arrange_start_declaration, arrange_end_declaration, theme, flow, graph_layout, instance_name, history, boundary_depth_limit, data, default_state_config, default_active_state_config, default_hooked_state_config, default_terminal_state_config, default_start_state_config, default_end_state_config, default_transition_config, default_graph_config, group_registry, group_metadata, group_hooks, state_hooks, allows_override, config_allows_override, allow_islands, editor_config, rng_seed, time_source, timeout_source, clear_timeout_source }: JssmGenericConfig<StateType, mDT>);
|
|
213
|
+
constructor({ start_states, end_states, failed_outputs, initial_state, start_states_no_enforce, complete, transitions, machine_author, machine_comment, machine_contributor, machine_definition, machine_language, machine_license, machine_name, machine_version, npm_name, default_size, state_declaration, property_definition, state_property, fsl_version, dot_preamble, arrange_declaration, arrange_start_declaration, arrange_end_declaration, oarrange_declaration, farrange_declaration, theme, flow, graph_layout, instance_name, history, boundary_depth_limit, data, default_state_config, default_active_state_config, default_hooked_state_config, default_terminal_state_config, default_start_state_config, default_end_state_config, default_transition_config, default_graph_config, group_registry, group_metadata, group_hooks, state_hooks, allows_override, config_allows_override, allow_islands, editor_config, rng_seed, time_source, timeout_source, clear_timeout_source }: JssmGenericConfig<StateType, mDT>);
|
|
212
214
|
/********
|
|
213
215
|
*
|
|
214
216
|
* Internal method for fabricating states. Not meant for external use.
|
|
@@ -374,13 +376,13 @@ declare class Machine<mDT> {
|
|
|
374
376
|
* `;
|
|
375
377
|
*
|
|
376
378
|
* traffic_light.state(); // Off
|
|
377
|
-
* traffic_light.props(); // { can_go: true, hesitate: true, stop_first: true
|
|
379
|
+
* traffic_light.props(); // { can_go: true, hesitate: true, stop_first: true }
|
|
378
380
|
*
|
|
379
381
|
* traffic_light.go('Red');
|
|
380
|
-
* traffic_light.props(); // { can_go: false, hesitate: true, stop_first: true
|
|
382
|
+
* traffic_light.props(); // { can_go: false, hesitate: true, stop_first: true }
|
|
381
383
|
*
|
|
382
384
|
* traffic_light.go('Green');
|
|
383
|
-
* traffic_light.props(); // { can_go: true, hesitate: false, stop_first: false
|
|
385
|
+
* traffic_light.props(); // { can_go: true, hesitate: false, stop_first: false }
|
|
384
386
|
* ```
|
|
385
387
|
*
|
|
386
388
|
* @returns An object mapping every known property name to its current value
|