jssm 5.54.0 → 5.56.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.d.ts CHANGED
@@ -40,8 +40,10 @@ declare class Machine<mDT> {
40
40
  _has_hooks: boolean;
41
41
  _has_basic_hooks: boolean;
42
42
  _has_named_hooks: boolean;
43
+ _has_entry_hooks: boolean;
43
44
  _hooks: Map<string, Function>;
44
45
  _named_hooks: Map<string, Function>;
46
+ _entry_hooks: Map<string, Function>;
45
47
  _any_transition_hook: HookHandler | undefined;
46
48
  constructor({ start_states, complete, transitions, machine_author, machine_comment, machine_contributor, machine_definition, machine_language, machine_license, machine_name, machine_version, state_declaration, fsl_version, dot_preamble, arrange_declaration, arrange_start_declaration, arrange_end_declaration, theme, flow, graph_layout }: JssmGenericConfig<mDT>);
47
49
  _new_state(state_config: JssmGenericState): StateType;
@@ -96,6 +98,7 @@ declare class Machine<mDT> {
96
98
  hook(from: string, to: string, handler: HookHandler): Machine<mDT>;
97
99
  hook_action(from: string, to: string, action: string, handler: HookHandler): Machine<mDT>;
98
100
  hook_any_transition(handler: HookHandler): Machine<mDT>;
101
+ hook_entry(to: string, handler: HookHandler): Machine<mDT>;
99
102
  transition_impl(newStateOrAction: StateType, newData: mDT | undefined, wasForced: boolean, wasAction: boolean): boolean;
100
103
  action(actionName: StateType, newData?: mDT): boolean;
101
104
  transition(newState: StateType, newData?: mDT): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jssm",
3
- "version": "5.54.0",
3
+ "version": "5.56.2",
4
4
  "engines": {
5
5
  "node": ">=10.0.0"
6
6
  },
@@ -94,6 +94,9 @@
94
94
  },
95
95
  "homepage": "https://stonecypher.github.io/jssm/",
96
96
  "devDependencies": {
97
+ "@rollup/plugin-commonjs": "^22.0.0",
98
+ "@rollup/plugin-node-resolve": "^13.3.0",
99
+ "@rollup/plugin-replace": "^4.0.0",
97
100
  "@types/jest": "^27.0.2",
98
101
  "@typescript-eslint/eslint-plugin": "^4.13.0",
99
102
  "@typescript-eslint/parser": "^4.13.0",
@@ -110,17 +113,14 @@
110
113
  "glob": "^7.1.6",
111
114
  "jest": "^27.3.1",
112
115
  "pegjs": "^0.10.0",
113
- "rollup": "^1.32.1",
114
- "rollup-plugin-commonjs": "^9.3.4",
115
- "rollup-plugin-node-resolve": "^4.2.3",
116
- "rollup-plugin-replace": "^2.2.0",
117
- "rollup-plugin-typescript2": "^0.27.0",
116
+ "rollup": "^2.72.1",
118
117
  "semver": "^5.7.1",
119
- "terser": "^4.6.11",
118
+ "terser": "^5.13.1",
120
119
  "text_audit": "^0.9.3",
121
120
  "ts-jest": "^27.0.7",
121
+ "tscheck": "^0.1.5",
122
122
  "typedoc": "^0.22.15",
123
- "typescript": "^4.1.3"
123
+ "typescript": "^4.6.4"
124
124
  },
125
125
  "dependencies": {
126
126
  "reduce-to-639-1": "^1.0.4"