jssm 5.86.2 → 5.86.3

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.d.ts CHANGED
@@ -669,6 +669,26 @@ declare class Machine<mDT> {
669
669
  post_hook_entry(to: string, handler: HookHandler<mDT>): Machine<mDT>;
670
670
  post_hook_exit(from: string, handler: HookHandler<mDT>): Machine<mDT>;
671
671
  edges_between(from: string, to: string): JssmTransition<StateType, mDT>[];
672
+ /*********
673
+ *
674
+ * Replace the current state and data with no regard to the graph.
675
+ *
676
+ * ```typescript
677
+ * import { sm } from 'jssm';
678
+ *
679
+ * const machine = sm`a -> b -> c;`;
680
+ * console.log( machine.state() ); // 'a'
681
+ *
682
+ * machine.go('b');
683
+ * machine.go('c');
684
+ * console.log( machine.state() ); // 'c'
685
+ *
686
+ * machine.override('a');
687
+ * console.log( machine.state() ); // 'a'
688
+ * ```
689
+ *
690
+ */
691
+ override(newState: StateType, newData?: mDT | undefined): void;
672
692
  transition_impl(newStateOrAction: StateType, newData: mDT | undefined, wasForced: boolean, wasAction: boolean): boolean;
673
693
  /*********
674
694
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jssm",
3
- "version": "5.86.2",
3
+ "version": "5.86.3",
4
4
  "engines": {
5
5
  "node": ">=10.0.0"
6
6
  },