jssm 5.147.9 → 5.147.10

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 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.147.9 at 6/27/2026, 9:09:27 PM
21
+ * Generated for version 5.147.10 at 6/27/2026, 9:47:54 PM
22
22
 
23
23
  -->
24
- # jssm 5.147.9
24
+ # jssm 5.147.10
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,527 tests at 100.0% line coverage
315
+ library.** 7,529 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,10 +445,10 @@ If your contribution is missing here, please open an issue.
445
445
 
446
446
  <br/>
447
447
 
448
- ***7,527 tests***, run 82,074 times.
448
+ ***7,529 tests***, run 82,076 times.
449
449
 
450
- - 6,774 specs with 100.0% coverage
451
- - 753 fuzz tests with 69.5% coverage
450
+ - 6,776 specs with 100.0% coverage
451
+ - 753 fuzz tests with 69.6% coverage
452
452
  - 7,277 TypeScript lines - 1.0 tests per line, 11.3 generated tests per line
453
453
 
454
454
  [![Actions Status](https://github.com/StoneCypher/jssm/workflows/Node%20CI/badge.svg)](https://github.com/StoneCypher/jssm/actions)
@@ -22920,7 +22920,7 @@ var constants = /*#__PURE__*/Object.freeze({
22920
22920
  * Useful for runtime diagnostics and for embedding in serialized machine
22921
22921
  * snapshots so that deserializers can detect version-skew.
22922
22922
  */
22923
- const version = "5.147.9";
22923
+ const version = "5.147.10";
22924
22924
 
22925
22925
  // whargarbl lots of these return arrays could/should be sets
22926
22926
  const { state_name_chars, state_name_first_chars, action_label_chars } = constants;
@@ -23238,7 +23238,7 @@ function find_connected_components(states, edges) {
23238
23238
  class Machine {
23239
23239
  // whargarbl this badly needs to be broken up, monolith master
23240
23240
  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 = undefined, arrange_declaration = [], arrange_start_declaration = [], arrange_end_declaration = [], theme = ['default'], flow = 'down', graph_layout = 'dot', 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, rng_seed, time_source, timeout_source, clear_timeout_source }) {
23241
- this._time_source = () => new Date().getTime();
23241
+ this._time_source = time_source !== null && time_source !== void 0 ? time_source : (() => new Date().getTime());
23242
23242
  this._create_started = this._time_source();
23243
23243
  this._instance_name = instance_name;
23244
23244
  this._states = new Map();
@@ -24111,7 +24111,7 @@ class Machine {
24111
24111
  jssm_version: version,
24112
24112
  history: this._history.toArray(),
24113
24113
  history_capacity: this._history.capacity,
24114
- timestamp: new Date().getTime(),
24114
+ timestamp: this._time_source(),
24115
24115
  };
24116
24116
  }
24117
24117
  /** Get the graph layout direction (e.g. `'LR'`, `'TB'`). Set via the
package/dist/cdn/viz.js CHANGED
@@ -22945,7 +22945,7 @@ var constants = /*#__PURE__*/Object.freeze({
22945
22945
  * Useful for runtime diagnostics and for embedding in serialized machine
22946
22946
  * snapshots so that deserializers can detect version-skew.
22947
22947
  */
22948
- const version = "5.147.9";
22948
+ const version = "5.147.10";
22949
22949
 
22950
22950
  // whargarbl lots of these return arrays could/should be sets
22951
22951
  const { state_name_chars, state_name_first_chars, action_label_chars } = constants;
@@ -23263,7 +23263,7 @@ function find_connected_components(states, edges) {
23263
23263
  class Machine {
23264
23264
  // whargarbl this badly needs to be broken up, monolith master
23265
23265
  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 = undefined, arrange_declaration = [], arrange_start_declaration = [], arrange_end_declaration = [], theme = ['default'], flow = 'down', graph_layout = 'dot', 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, rng_seed, time_source, timeout_source, clear_timeout_source }) {
23266
- this._time_source = () => new Date().getTime();
23266
+ this._time_source = time_source !== null && time_source !== void 0 ? time_source : (() => new Date().getTime());
23267
23267
  this._create_started = this._time_source();
23268
23268
  this._instance_name = instance_name;
23269
23269
  this._states = new Map();
@@ -24136,7 +24136,7 @@ class Machine {
24136
24136
  jssm_version: version,
24137
24137
  history: this._history.toArray(),
24138
24138
  history_capacity: this._history.capacity,
24139
- timestamp: new Date().getTime(),
24139
+ timestamp: this._time_source(),
24140
24140
  };
24141
24141
  }
24142
24142
  /** Get the graph layout direction (e.g. `'LR'`, `'TB'`). Set via the
@@ -108,7 +108,7 @@ function parseFslArgs(argv, spec) {
108
108
  return { positional, flags, helpText };
109
109
  }
110
110
 
111
- const getVersion = () => "5.147.9";
111
+ const getVersion = () => "5.147.10";
112
112
  const SPEC = {
113
113
  flags: {
114
114
  help: { short: "h", boolean: true },