jssm 5.141.0 → 5.141.2

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/jssm.es5.d.cts CHANGED
@@ -1508,6 +1508,7 @@ declare class Machine<mDT> {
1508
1508
  _timeout_target: string | undefined;
1509
1509
  _timeout_target_time: number | undefined;
1510
1510
  _event_handlers: Map<JssmEventName, Set<JssmEventEntry<any, any>>>;
1511
+ _event_listener_count: number;
1511
1512
  _firing_error: boolean;
1512
1513
  constructor({ start_states, end_states, initial_state, start_states_no_enforce, complete, transitions, machine_author, machine_comment, machine_contributor, machine_definition, machine_language, machine_license, machine_name, machine_version, 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, data, default_state_config, default_active_state_config, default_hooked_state_config, default_terminal_state_config, default_start_state_config, default_end_state_config, allows_override, config_allows_override, rng_seed, time_source, timeout_source, clear_timeout_source }: JssmGenericConfig<StateType, mDT>);
1513
1514
  /********
@@ -2389,6 +2390,18 @@ declare class Machine<mDT> {
2389
2390
  * @returns `true` if removed, `false` if no match was registered.
2390
2391
  */
2391
2392
  off<Ev extends JssmEventName>(name: Ev, handler: JssmEventHandler<mDT, Ev>): boolean;
2393
+ /**
2394
+ * Remove one event-subscription entry from its set and keep
2395
+ * {@link Machine._event_listener_count} in sync. The count is decremented
2396
+ * only when the entry was actually present, so calling a stale unsubscribe
2397
+ * closure (or removing an already-fired `once` entry) is idempotent and
2398
+ * cannot drive the count negative.
2399
+ *
2400
+ * @param set The per-event-name subscription set.
2401
+ * @param entry The entry to remove.
2402
+ * @internal
2403
+ */
2404
+ _unsubscribe_entry(set: Set<JssmEventEntry<any, any>>, entry: JssmEventEntry<any, any>): void;
2392
2405
  /**
2393
2406
  * Shared registration core used by {@link Machine.on} and
2394
2407
  * {@link Machine.once}. Normalizes the optional filter argument and
package/jssm.es6.d.ts CHANGED
@@ -1508,6 +1508,7 @@ declare class Machine<mDT> {
1508
1508
  _timeout_target: string | undefined;
1509
1509
  _timeout_target_time: number | undefined;
1510
1510
  _event_handlers: Map<JssmEventName, Set<JssmEventEntry<any, any>>>;
1511
+ _event_listener_count: number;
1511
1512
  _firing_error: boolean;
1512
1513
  constructor({ start_states, end_states, initial_state, start_states_no_enforce, complete, transitions, machine_author, machine_comment, machine_contributor, machine_definition, machine_language, machine_license, machine_name, machine_version, 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, data, default_state_config, default_active_state_config, default_hooked_state_config, default_terminal_state_config, default_start_state_config, default_end_state_config, allows_override, config_allows_override, rng_seed, time_source, timeout_source, clear_timeout_source }: JssmGenericConfig<StateType, mDT>);
1513
1514
  /********
@@ -2389,6 +2390,18 @@ declare class Machine<mDT> {
2389
2390
  * @returns `true` if removed, `false` if no match was registered.
2390
2391
  */
2391
2392
  off<Ev extends JssmEventName>(name: Ev, handler: JssmEventHandler<mDT, Ev>): boolean;
2393
+ /**
2394
+ * Remove one event-subscription entry from its set and keep
2395
+ * {@link Machine._event_listener_count} in sync. The count is decremented
2396
+ * only when the entry was actually present, so calling a stale unsubscribe
2397
+ * closure (or removing an already-fired `once` entry) is idempotent and
2398
+ * cannot drive the count negative.
2399
+ *
2400
+ * @param set The per-event-name subscription set.
2401
+ * @param entry The entry to remove.
2402
+ * @internal
2403
+ */
2404
+ _unsubscribe_entry(set: Set<JssmEventEntry<any, any>>, entry: JssmEventEntry<any, any>): void;
2392
2405
  /**
2393
2406
  * Shared registration core used by {@link Machine.on} and
2394
2407
  * {@link Machine.once}. Normalizes the optional filter argument and
@@ -906,6 +906,7 @@ declare class Machine<mDT> {
906
906
  _timeout_target: string | undefined;
907
907
  _timeout_target_time: number | undefined;
908
908
  _event_handlers: Map<JssmEventName, Set<JssmEventEntry<any, any>>>;
909
+ _event_listener_count: number;
909
910
  _firing_error: boolean;
910
911
  constructor({ start_states, end_states, initial_state, start_states_no_enforce, complete, transitions, machine_author, machine_comment, machine_contributor, machine_definition, machine_language, machine_license, machine_name, machine_version, 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, data, default_state_config, default_active_state_config, default_hooked_state_config, default_terminal_state_config, default_start_state_config, default_end_state_config, allows_override, config_allows_override, rng_seed, time_source, timeout_source, clear_timeout_source }: JssmGenericConfig<StateType, mDT>);
911
912
  /********
@@ -1787,6 +1788,18 @@ declare class Machine<mDT> {
1787
1788
  * @returns `true` if removed, `false` if no match was registered.
1788
1789
  */
1789
1790
  off<Ev extends JssmEventName>(name: Ev, handler: JssmEventHandler<mDT, Ev>): boolean;
1791
+ /**
1792
+ * Remove one event-subscription entry from its set and keep
1793
+ * {@link Machine._event_listener_count} in sync. The count is decremented
1794
+ * only when the entry was actually present, so calling a stale unsubscribe
1795
+ * closure (or removing an already-fired `once` entry) is idempotent and
1796
+ * cannot drive the count negative.
1797
+ *
1798
+ * @param set The per-event-name subscription set.
1799
+ * @param entry The entry to remove.
1800
+ * @internal
1801
+ */
1802
+ _unsubscribe_entry(set: Set<JssmEventEntry<any, any>>, entry: JssmEventEntry<any, any>): void;
1790
1803
  /**
1791
1804
  * Shared registration core used by {@link Machine.on} and
1792
1805
  * {@link Machine.once}. Normalizes the optional filter argument and
package/jssm_viz.es6.d.ts CHANGED
@@ -906,6 +906,7 @@ declare class Machine<mDT> {
906
906
  _timeout_target: string | undefined;
907
907
  _timeout_target_time: number | undefined;
908
908
  _event_handlers: Map<JssmEventName, Set<JssmEventEntry<any, any>>>;
909
+ _event_listener_count: number;
909
910
  _firing_error: boolean;
910
911
  constructor({ start_states, end_states, initial_state, start_states_no_enforce, complete, transitions, machine_author, machine_comment, machine_contributor, machine_definition, machine_language, machine_license, machine_name, machine_version, 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, data, default_state_config, default_active_state_config, default_hooked_state_config, default_terminal_state_config, default_start_state_config, default_end_state_config, allows_override, config_allows_override, rng_seed, time_source, timeout_source, clear_timeout_source }: JssmGenericConfig<StateType, mDT>);
911
912
  /********
@@ -1787,6 +1788,18 @@ declare class Machine<mDT> {
1787
1788
  * @returns `true` if removed, `false` if no match was registered.
1788
1789
  */
1789
1790
  off<Ev extends JssmEventName>(name: Ev, handler: JssmEventHandler<mDT, Ev>): boolean;
1791
+ /**
1792
+ * Remove one event-subscription entry from its set and keep
1793
+ * {@link Machine._event_listener_count} in sync. The count is decremented
1794
+ * only when the entry was actually present, so calling a stale unsubscribe
1795
+ * closure (or removing an already-fired `once` entry) is idempotent and
1796
+ * cannot drive the count negative.
1797
+ *
1798
+ * @param set The per-event-name subscription set.
1799
+ * @param entry The entry to remove.
1800
+ * @internal
1801
+ */
1802
+ _unsubscribe_entry(set: Set<JssmEventEntry<any, any>>, entry: JssmEventEntry<any, any>): void;
1790
1803
  /**
1791
1804
  * Shared registration core used by {@link Machine.on} and
1792
1805
  * {@link Machine.once}. Normalizes the optional filter argument and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jssm",
3
- "version": "5.141.0",
3
+ "version": "5.141.2",
4
4
  "engines": {
5
5
  "node": ">=10.0.0"
6
6
  },