jssm 5.76.2 → 5.78.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/CHANGELOG.md +49 -49
- package/README.md +2 -2
- package/dist/es6/jssm.d.ts +56 -7
- package/dist/es6/jssm.js +74 -5
- package/dist/es6/jssm_types.d.ts +12 -1
- package/dist/es6/version.js +1 -1
- package/dist/jssm.es5.cjs.js +1 -1
- package/dist/jssm.es5.iife.js +1 -1
- package/jssm.d.ts +56 -7
- package/jssm_types.d.ts +12 -1
- package/package.json +1 -1
- package/rollup.config.deno.js +45 -0
- package/typedoc-options.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
967 merges; 131 releases; Changlogging the last 10 commits; Full changelog at [CHANGELOG.long.md](CHANGELOG.long.md)
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@ All notable changes to this project will be documented in this file.
|
|
|
12
12
|
|
|
13
13
|
Published tags:
|
|
14
14
|
|
|
15
|
-
<a href="#5__76__0">5.76.0</a>, <a href="#5__75__1">5.75.1</a>, <a href="#5__75__0">5.75.0</a>, <a href="#5__74__0">5.74.0</a>, <a href="#5__73__1">5.73.1</a>, <a href="#5__73__0">5.73.0</a>, <a href="#5__72__5">5.72.5</a>, <a href="#5__72__4">5.72.4</a>, <a href="#5__72__3">5.72.3</a>, <a href="#5__72__2">5.72.2</a>, <a href="#5__72__1">5.72.1</a>, <a href="#5__72__0">5.72.0</a>, <a href="#5__71__1">5.71.1</a>, <a href="#5__71__0">5.71.0</a>, <a href="#5__70__36">5.70.36</a>, <a href="#5__70__35">5.70.35</a>, <a href="#5__70__34">5.70.34</a>, <a href="#5__70__33">5.70.33</a>, <a href="#5__70__32">5.70.32</a>, <a href="#5__70__31">5.70.31</a>, <a href="#5__70__30">5.70.30</a>, <a href="#5__70__29">5.70.29</a>, <a href="#5__70__28">5.70.28</a>, <a href="#5__70__27">5.70.27</a>, <a href="#5__70__26">5.70.26</a>, <a href="#5__70__25">5.70.25</a>, <a href="#5__70__24">5.70.24</a>, <a href="#5__70__23">5.70.23</a>, <a href="#5__70__22">5.70.22</a>, <a href="#5__70__21">5.70.21</a>, <a href="#5__70__20">5.70.20</a>, <a href="#5__70__19">5.70.19</a>, <a href="#5__70__18">5.70.18</a>, <a href="#5__70__16">5.70.16</a>, <a href="#5__70__15">5.70.15</a>, <a href="#5__70__14">5.70.14</a>, <a href="#5__70__13">5.70.13</a>, <a href="#5__70__12">5.70.12</a>, <a href="#5__70__11">5.70.11</a>, <a href="#5__70__10">5.70.10</a>, <a href="#5__70__9">5.70.9</a>, <a href="#5__70__8">5.70.8</a>, <a href="#5__70__7">5.70.7</a>, <a href="#5__70__6">5.70.6</a>, <a href="#5__70__5">5.70.5</a>, <a href="#5__70__4">5.70.4</a>, <a href="#5__70__3">5.70.3</a>, <a href="#5__70__2">5.70.2</a>, <a href="#5__70__1">5.70.1</a>, <a href="#5__70__0">5.70.0</a>, <a href="#5__69__4">5.69.4</a>, <a href="#5__69__3">5.69.3</a>, <a href="#5__69__2">5.69.2</a>, <a href="#5__69__0">5.69.0</a>, <a href="#5__68__0">5.68.0</a>, <a href="#5__67__2">5.67.2</a>, <a href="#5__67__0">5.67.0</a>, <a href="#5__66__0">5.66.0</a>, <a href="#5__65__14">5.65.14</a>, <a href="#5__65__12">5.65.12</a>, <a href="#5__65__11">5.65.11</a>, <a href="#5__65__10">5.65.10</a>, <a href="#5__65__9">5.65.9</a>, <a href="#5__65__8">5.65.8</a>, <a href="#5__65__7">5.65.7</a>, <a href="#5__65__5">5.65.5</a>, <a href="#5__65__4">5.65.4</a>, <a href="#5__65__3">5.65.3</a>, <a href="#5__65__2">5.65.2</a>, <a href="#5__65__1">5.65.1</a>, <a href="#5__65__0">5.65.0</a>, <a href="#5__64__2">5.64.2</a>, <a href="#5__64__1">5.64.1</a>, <a href="#5__64__0">5.64.0</a>, <a href="#5__63__0">5.63.0</a>, <a href="#5__62__0">5.62.0</a>, <a href="#5__61__4">5.61.4</a>, <a href="#5__61__3">5.61.3</a>, <a href="#5__61__2">5.61.2</a>, <a href="#5__61__1">5.61.1</a>, <a href="#5__60__4">5.60.4</a>, <a href="#5__60__3">5.60.3</a>, <a href="#5__60__0">5.60.0</a>, <a href="#5__59__1">5.59.1</a>, <a href="#5__59__0">5.59.0</a>, <a href="#5__58__1">5.58.1</a>, <a href="#5__58__0">5.58.0</a>, <a href="#5__57__1">5.57.1</a>, <a href="#5__57__0">5.57.0</a>, <a href="#5__56__2">5.56.2</a>, <a href="#5__56__1">5.56.1</a>, <a href="#5__55__0">5.55.0</a>, <a href="#5__54__0">5.54.0</a>, <a href="#5__53__0">5.53.0</a>, <a href="#5__52__0">5.52.0</a>, <a href="#5__51__0">5.51.0</a>, <a href="#5__50__0">5.50.0</a>, <a href="#5__49__0">5.49.0</a>, <a href="#5__48__0">5.48.0</a>, <a href="#5__47__0">5.47.0</a>, <a href="#5__46__0">5.46.0</a>, <a href="#5__45__2">5.45.2</a>, <a href="#5__45__0">5.45.0</a>, <a href="#5__44__0">5.44.0</a>, <a href="#5__43__2">5.43.2</a>, <a href="#v5__42__0">v5.42.0</a>, <a href="#5__42__0">5.42.0</a>, <a href="#v5__41__15">v5.41.15</a>, <a href="#5__41__15">5.41.15</a>, <a href="#v5__41__14">v5.41.14</a>, <a href="#5__41__14">5.41.14</a>, <a href="#v5__41__12">v5.41.12</a>, <a href="#5__41__12">5.41.12</a>, <a href="#v5__41__10">v5.41.10</a>, <a href="#5__41__10">5.41.10</a>, <a href="#v5__41__9">v5.41.9</a>, <a href="#5__41__9">5.41.9</a>, <a href="#v5__41__8">v5.41.8</a>, <a href="#5__41__8">5.41.8</a>, <a href="#v5__41__7">v5.41.7</a>, <a href="#v5__41__2">v5.41.2</a>, <a href="#v5__41__1">v5.41.1</a>, <a href="#v5__32__14">v5.32.14</a>, <a href="#5__14__0">5.14.0</a>, <a href="#5__12__0">5.12.0</a>, <a href="#5__11__12">5.11.12</a>, <a href="#5__11__1">5.11.1</a>, <a href="#5__11__0">5.11.0</a>
|
|
15
|
+
<a href="#5__77__1">5.77.1</a>, <a href="#5__77__0">5.77.0</a>, <a href="#5__76__2">5.76.2</a>, <a href="#5__76__0">5.76.0</a>, <a href="#5__75__1">5.75.1</a>, <a href="#5__75__0">5.75.0</a>, <a href="#5__74__0">5.74.0</a>, <a href="#5__73__1">5.73.1</a>, <a href="#5__73__0">5.73.0</a>, <a href="#5__72__5">5.72.5</a>, <a href="#5__72__4">5.72.4</a>, <a href="#5__72__3">5.72.3</a>, <a href="#5__72__2">5.72.2</a>, <a href="#5__72__1">5.72.1</a>, <a href="#5__72__0">5.72.0</a>, <a href="#5__71__1">5.71.1</a>, <a href="#5__71__0">5.71.0</a>, <a href="#5__70__36">5.70.36</a>, <a href="#5__70__35">5.70.35</a>, <a href="#5__70__34">5.70.34</a>, <a href="#5__70__33">5.70.33</a>, <a href="#5__70__32">5.70.32</a>, <a href="#5__70__31">5.70.31</a>, <a href="#5__70__30">5.70.30</a>, <a href="#5__70__29">5.70.29</a>, <a href="#5__70__28">5.70.28</a>, <a href="#5__70__27">5.70.27</a>, <a href="#5__70__26">5.70.26</a>, <a href="#5__70__25">5.70.25</a>, <a href="#5__70__24">5.70.24</a>, <a href="#5__70__23">5.70.23</a>, <a href="#5__70__22">5.70.22</a>, <a href="#5__70__21">5.70.21</a>, <a href="#5__70__20">5.70.20</a>, <a href="#5__70__19">5.70.19</a>, <a href="#5__70__18">5.70.18</a>, <a href="#5__70__16">5.70.16</a>, <a href="#5__70__15">5.70.15</a>, <a href="#5__70__14">5.70.14</a>, <a href="#5__70__13">5.70.13</a>, <a href="#5__70__12">5.70.12</a>, <a href="#5__70__11">5.70.11</a>, <a href="#5__70__10">5.70.10</a>, <a href="#5__70__9">5.70.9</a>, <a href="#5__70__8">5.70.8</a>, <a href="#5__70__7">5.70.7</a>, <a href="#5__70__6">5.70.6</a>, <a href="#5__70__5">5.70.5</a>, <a href="#5__70__4">5.70.4</a>, <a href="#5__70__3">5.70.3</a>, <a href="#5__70__2">5.70.2</a>, <a href="#5__70__1">5.70.1</a>, <a href="#5__70__0">5.70.0</a>, <a href="#5__69__4">5.69.4</a>, <a href="#5__69__3">5.69.3</a>, <a href="#5__69__2">5.69.2</a>, <a href="#5__69__0">5.69.0</a>, <a href="#5__68__0">5.68.0</a>, <a href="#5__67__2">5.67.2</a>, <a href="#5__67__0">5.67.0</a>, <a href="#5__66__0">5.66.0</a>, <a href="#5__65__14">5.65.14</a>, <a href="#5__65__12">5.65.12</a>, <a href="#5__65__11">5.65.11</a>, <a href="#5__65__10">5.65.10</a>, <a href="#5__65__9">5.65.9</a>, <a href="#5__65__8">5.65.8</a>, <a href="#5__65__7">5.65.7</a>, <a href="#5__65__5">5.65.5</a>, <a href="#5__65__4">5.65.4</a>, <a href="#5__65__3">5.65.3</a>, <a href="#5__65__2">5.65.2</a>, <a href="#5__65__1">5.65.1</a>, <a href="#5__65__0">5.65.0</a>, <a href="#5__64__2">5.64.2</a>, <a href="#5__64__1">5.64.1</a>, <a href="#5__64__0">5.64.0</a>, <a href="#5__63__0">5.63.0</a>, <a href="#5__62__0">5.62.0</a>, <a href="#5__61__4">5.61.4</a>, <a href="#5__61__3">5.61.3</a>, <a href="#5__61__2">5.61.2</a>, <a href="#5__61__1">5.61.1</a>, <a href="#5__60__4">5.60.4</a>, <a href="#5__60__3">5.60.3</a>, <a href="#5__60__0">5.60.0</a>, <a href="#5__59__1">5.59.1</a>, <a href="#5__59__0">5.59.0</a>, <a href="#5__58__1">5.58.1</a>, <a href="#5__58__0">5.58.0</a>, <a href="#5__57__1">5.57.1</a>, <a href="#5__57__0">5.57.0</a>, <a href="#5__56__2">5.56.2</a>, <a href="#5__56__1">5.56.1</a>, <a href="#5__55__0">5.55.0</a>, <a href="#5__54__0">5.54.0</a>, <a href="#5__53__0">5.53.0</a>, <a href="#5__52__0">5.52.0</a>, <a href="#5__51__0">5.51.0</a>, <a href="#5__50__0">5.50.0</a>, <a href="#5__49__0">5.49.0</a>, <a href="#5__48__0">5.48.0</a>, <a href="#5__47__0">5.47.0</a>, <a href="#5__46__0">5.46.0</a>, <a href="#5__45__2">5.45.2</a>, <a href="#5__45__0">5.45.0</a>, <a href="#5__44__0">5.44.0</a>, <a href="#5__43__2">5.43.2</a>, <a href="#v5__42__0">v5.42.0</a>, <a href="#5__42__0">5.42.0</a>, <a href="#v5__41__15">v5.41.15</a>, <a href="#5__41__15">5.41.15</a>, <a href="#v5__41__14">v5.41.14</a>, <a href="#5__41__14">5.41.14</a>, <a href="#v5__41__12">v5.41.12</a>, <a href="#5__41__12">5.41.12</a>, <a href="#v5__41__10">v5.41.10</a>, <a href="#5__41__10">5.41.10</a>, <a href="#v5__41__9">v5.41.9</a>, <a href="#5__41__9">5.41.9</a>, <a href="#v5__41__8">v5.41.8</a>, <a href="#5__41__8">5.41.8</a>, <a href="#v5__41__7">v5.41.7</a>, <a href="#v5__41__2">v5.41.2</a>, <a href="#v5__41__1">v5.41.1</a>, <a href="#v5__32__14">v5.32.14</a>, <a href="#5__14__0">5.14.0</a>, <a href="#5__12__0">5.12.0</a>, <a href="#5__11__12">5.11.12</a>, <a href="#5__11__1">5.11.1</a>, <a href="#5__11__0">5.11.0</a>
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
@@ -22,15 +22,13 @@ Published tags:
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
## [Untagged] - 7/
|
|
25
|
+
## [Untagged] - 7/9/2022 1:00:20 PM
|
|
26
26
|
|
|
27
|
-
Commit [
|
|
27
|
+
Commit [05c1f81f02406cb3211e3d2bd84eefb2da201b3e](https://github.com/StoneCypher/jssm/commit/05c1f81f02406cb3211e3d2bd84eefb2da201b3e)
|
|
28
28
|
|
|
29
29
|
Author: `John Haugeland <stonecypher@gmail.com>`
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
* WIP on IntroducingTheKitchenSinkDragon: 1cc0629 Sequester the stoch tests until they're more complete
|
|
31
|
+
* Spec underway
|
|
34
32
|
|
|
35
33
|
|
|
36
34
|
|
|
@@ -39,33 +37,33 @@ Merges [1cc0629, 0cc8f7b]
|
|
|
39
37
|
|
|
40
38
|
|
|
41
39
|
|
|
42
|
-
|
|
40
|
+
<a name="5__77__1" />
|
|
43
41
|
|
|
44
|
-
|
|
42
|
+
## [5.77.1] - 7/7/2022 10:36:21 PM
|
|
43
|
+
|
|
44
|
+
Commit [6497ed49a6a7dbe55509ac552cc30adb9ee19c9c](https://github.com/StoneCypher/jssm/commit/6497ed49a6a7dbe55509ac552cc30adb9ee19c9c)
|
|
45
45
|
|
|
46
46
|
Author: `John Haugeland <stonecypher@gmail.com>`
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
Merges [e9400bd, 4623580]
|
|
49
49
|
|
|
50
|
+
* Merge pull request #512 from StoneCypher/SynonymDoForAction
|
|
51
|
+
* Define do/1 to be a synonym for action/1, fixes StoneCypher/fsl#809
|
|
50
52
|
|
|
51
53
|
|
|
52
54
|
|
|
53
|
-
|
|
54
55
|
|
|
55
56
|
|
|
56
57
|
|
|
57
|
-
|
|
58
|
+
|
|
58
59
|
|
|
59
|
-
## [
|
|
60
|
+
## [Untagged] - 7/7/2022 10:18:20 PM
|
|
60
61
|
|
|
61
|
-
Commit [
|
|
62
|
+
Commit [462358017970f5d968d8309ba8ee96d74648ec03](https://github.com/StoneCypher/jssm/commit/462358017970f5d968d8309ba8ee96d74648ec03)
|
|
62
63
|
|
|
63
64
|
Author: `John Haugeland <stonecypher@gmail.com>`
|
|
64
65
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
* Merge pull request #509 from StoneCypher/IntroducingTheKitchenSinkDragon
|
|
68
|
-
* Introducing the kitchen sink dragon
|
|
66
|
+
* Define do/1 to be a synonym for action/1, fixes StoneCypher/fsl#809
|
|
69
67
|
|
|
70
68
|
|
|
71
69
|
|
|
@@ -74,13 +72,18 @@ Merges [bdea503, 1cc0629]
|
|
|
74
72
|
|
|
75
73
|
|
|
76
74
|
|
|
77
|
-
|
|
75
|
+
<a name="5__77__0" />
|
|
76
|
+
|
|
77
|
+
## [5.77.0] - 7/7/2022 10:18:06 PM
|
|
78
78
|
|
|
79
|
-
Commit [
|
|
79
|
+
Commit [e9400bd62c93201bcc34a002469e21910979cb2e](https://github.com/StoneCypher/jssm/commit/e9400bd62c93201bcc34a002469e21910979cb2e)
|
|
80
80
|
|
|
81
81
|
Author: `John Haugeland <stonecypher@gmail.com>`
|
|
82
82
|
|
|
83
|
-
|
|
83
|
+
Merges [d1b55ae, 2c633a6]
|
|
84
|
+
|
|
85
|
+
* Merge pull request #511 from StoneCypher/SynonymGoForTransition
|
|
86
|
+
* Define go/1 to be a synonym for transition/1, fixes StoneCypher/fsl#810
|
|
84
87
|
|
|
85
88
|
|
|
86
89
|
|
|
@@ -89,13 +92,13 @@ Author: `John Haugeland <stonecypher@gmail.com>`
|
|
|
89
92
|
|
|
90
93
|
|
|
91
94
|
|
|
92
|
-
## [Untagged] - 7/
|
|
95
|
+
## [Untagged] - 7/7/2022 10:11:44 PM
|
|
93
96
|
|
|
94
|
-
Commit [
|
|
97
|
+
Commit [2c633a61b2ee0f13583ddc85923596f6b473abe6](https://github.com/StoneCypher/jssm/commit/2c633a61b2ee0f13583ddc85923596f6b473abe6)
|
|
95
98
|
|
|
96
99
|
Author: `John Haugeland <stonecypher@gmail.com>`
|
|
97
100
|
|
|
98
|
-
*
|
|
101
|
+
* Define go/1 to be a synonym for transition/1, fixes StoneCypher/fsl#810
|
|
99
102
|
|
|
100
103
|
|
|
101
104
|
|
|
@@ -104,13 +107,13 @@ Author: `John Haugeland <stonecypher@gmail.com>`
|
|
|
104
107
|
|
|
105
108
|
|
|
106
109
|
|
|
107
|
-
## [Untagged] - 7/
|
|
110
|
+
## [Untagged] - 7/7/2022 12:29:56 PM
|
|
108
111
|
|
|
109
|
-
Commit [
|
|
112
|
+
Commit [d29b22488e10f3ee798b7ecb23598654fe987fb8](https://github.com/StoneCypher/jssm/commit/d29b22488e10f3ee798b7ecb23598654fe987fb8)
|
|
110
113
|
|
|
111
114
|
Author: `John Haugeland <stonecypher@gmail.com>`
|
|
112
115
|
|
|
113
|
-
*
|
|
116
|
+
* it seems the bundling error I was facing when Discord insisted I just didn't get it might be a bug in deno
|
|
114
117
|
|
|
115
118
|
|
|
116
119
|
|
|
@@ -119,33 +122,33 @@ Author: `John Haugeland <stonecypher@gmail.com>`
|
|
|
119
122
|
|
|
120
123
|
|
|
121
124
|
|
|
122
|
-
|
|
125
|
+
<a name="5__76__2" />
|
|
123
126
|
|
|
124
|
-
|
|
127
|
+
## [5.76.2] - 7/6/2022 8:27:33 AM
|
|
128
|
+
|
|
129
|
+
Commit [d1b55ae8944031677c228f06eec6a5a28eb695ac](https://github.com/StoneCypher/jssm/commit/d1b55ae8944031677c228f06eec6a5a28eb695ac)
|
|
125
130
|
|
|
126
131
|
Author: `John Haugeland <stonecypher@gmail.com>`
|
|
127
132
|
|
|
128
|
-
|
|
133
|
+
Merges [813d866, 40677c7]
|
|
129
134
|
|
|
135
|
+
* Merge pull request #510 from StoneCypher/BumpCloc
|
|
136
|
+
* Bump CLOC, fixes StoneCypher/fsl#995
|
|
130
137
|
|
|
131
138
|
|
|
132
139
|
|
|
133
|
-
|
|
134
140
|
|
|
135
141
|
|
|
136
142
|
|
|
137
|
-
|
|
143
|
+
|
|
138
144
|
|
|
139
|
-
## [
|
|
145
|
+
## [Untagged] - 7/5/2022 1:24:10 PM
|
|
140
146
|
|
|
141
|
-
Commit [
|
|
147
|
+
Commit [40677c744241e590d901c317cdcc0046833a5257](https://github.com/StoneCypher/jssm/commit/40677c744241e590d901c317cdcc0046833a5257)
|
|
142
148
|
|
|
143
149
|
Author: `John Haugeland <stonecypher@gmail.com>`
|
|
144
150
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
* Merge pull request #507 from StoneCypher/PutClocMetricsInReadme
|
|
148
|
-
* Cleanup stuff; suppress warnings about non-exported types, fixes StoneCypher/fsl#988
|
|
151
|
+
* Uh, you have to git add to git commit, dummy
|
|
149
152
|
|
|
150
153
|
|
|
151
154
|
|
|
@@ -154,30 +157,27 @@ Merges [cb76475, f084d51]
|
|
|
154
157
|
|
|
155
158
|
|
|
156
159
|
|
|
157
|
-
## [Untagged] - 7/
|
|
160
|
+
## [Untagged] - 7/5/2022 1:04:10 PM
|
|
158
161
|
|
|
159
|
-
Commit [
|
|
162
|
+
Commit [58e88fec3f6412cadfc762f646ed50f6bc10eac6](https://github.com/StoneCypher/jssm/commit/58e88fec3f6412cadfc762f646ed50f6bc10eac6)
|
|
160
163
|
|
|
161
164
|
Author: `John Haugeland <stonecypher@gmail.com>`
|
|
162
165
|
|
|
163
|
-
|
|
166
|
+
Merges [1cc0629, 0cc8f7b]
|
|
164
167
|
|
|
168
|
+
* WIP on IntroducingTheKitchenSinkDragon: 1cc0629 Sequester the stoch tests until they're more complete
|
|
165
169
|
|
|
166
170
|
|
|
167
171
|
|
|
168
|
-
|
|
169
172
|
|
|
170
173
|
|
|
171
174
|
|
|
172
|
-
|
|
175
|
+
|
|
173
176
|
|
|
174
|
-
## [
|
|
177
|
+
## [Untagged] - 7/5/2022 1:04:10 PM
|
|
175
178
|
|
|
176
|
-
Commit [
|
|
179
|
+
Commit [0cc8f7bad92e4327128237bc9600cedd2e7cbb94](https://github.com/StoneCypher/jssm/commit/0cc8f7bad92e4327128237bc9600cedd2e7cbb94)
|
|
177
180
|
|
|
178
181
|
Author: `John Haugeland <stonecypher@gmail.com>`
|
|
179
182
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
* Merge pull request #506 from StoneCypher/PutClocMetricsInReadme
|
|
183
|
-
* Put cloc metrics in readme
|
|
183
|
+
* index on IntroducingTheKitchenSinkDragon: 1cc0629 Sequester the stoch tests until they're more complete
|
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ 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.78.0 at 7/9/2022, 3:41:50 PM
|
|
22
22
|
|
|
23
23
|
-->
|
|
24
24
|
# jssm
|
|
@@ -29,7 +29,7 @@ share online. Easy to embed.
|
|
|
29
29
|
|
|
30
30
|
Readable, useful state machines as one-liner strings.
|
|
31
31
|
|
|
32
|
-
***4,
|
|
32
|
+
***4,670 tests*** run 5,561 times. 4,661 specs with 100.0% coverage, 9 fuzz tests with 5.4% coverage. With 1,762 lines, that's about 2.7 tests per line, or 3.2 generated tests per line.
|
|
33
33
|
|
|
34
34
|
***Meet your new state machine library.***
|
|
35
35
|
|
package/dist/es6/jssm.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
declare type StateType = string;
|
|
2
|
-
import { circular_buffer } from 'circular_buffer_js';
|
|
3
2
|
import { JssmGenericState, JssmGenericConfig, JssmTransition, JssmTransitionList, // JssmTransitionRule,
|
|
4
|
-
JssmMachineInternalState, JssmParseTree, JssmStateDeclaration, JssmArrow, JssmArrowDirection, JssmArrowKind, JssmLayout, FslDirection, FslTheme, HookDescription, HookHandler, HookContext, HookResult, HookComplexResult } from './jssm_types';
|
|
3
|
+
JssmMachineInternalState, JssmParseTree, JssmStateDeclaration, JssmArrow, JssmArrowDirection, JssmArrowKind, JssmLayout, JssmHistory, JssmSerialization, FslDirection, FslTheme, HookDescription, HookHandler, HookContext, HookResult, HookComplexResult } from './jssm_types';
|
|
5
4
|
import { seq, weighted_rand_select, weighted_sample_select, histograph, weighted_histo_key } from './jssm_util';
|
|
6
5
|
import { shapes, gviz_shapes, named_colors } from './jssm_constants';
|
|
7
6
|
import { version } from './version';
|
|
@@ -251,7 +250,7 @@ declare class Machine<mDT> {
|
|
|
251
250
|
_post_main_transition_hook: HookHandler<mDT> | undefined;
|
|
252
251
|
_post_forced_transition_hook: HookHandler<mDT> | undefined;
|
|
253
252
|
_post_any_transition_hook: HookHandler<mDT> | undefined;
|
|
254
|
-
_history:
|
|
253
|
+
_history: JssmHistory<mDT>;
|
|
255
254
|
_history_length: number;
|
|
256
255
|
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, instance_name, history, data }: JssmGenericConfig<mDT>);
|
|
257
256
|
/********
|
|
@@ -330,10 +329,19 @@ declare class Machine<mDT> {
|
|
|
330
329
|
* console.log( final_test.is_final() ); // true
|
|
331
330
|
* ```
|
|
332
331
|
*
|
|
332
|
+
*/
|
|
333
|
+
is_final(): boolean;
|
|
334
|
+
/********
|
|
335
|
+
*
|
|
336
|
+
* Serialize the current machine, including all defining state but not the
|
|
337
|
+
* machine string, to a structure. This means you will need the machine
|
|
338
|
+
* string to recreate (to not waste repeated space;) if you want the machine
|
|
339
|
+
* string embedded, call {@link serialize_with_string} instead.
|
|
340
|
+
*
|
|
333
341
|
* @typeparam mDT The type of the machine data member; usually omitted
|
|
334
342
|
*
|
|
335
343
|
*/
|
|
336
|
-
|
|
344
|
+
serialize(comment?: string | undefined): JssmSerialization<mDT>;
|
|
337
345
|
graph_layout(): string;
|
|
338
346
|
dot_preamble(): string;
|
|
339
347
|
machine_author(): Array<string>;
|
|
@@ -665,7 +673,7 @@ declare class Machine<mDT> {
|
|
|
665
673
|
set history_length(to: number);
|
|
666
674
|
/********
|
|
667
675
|
*
|
|
668
|
-
* Instruct the machine to complete an action.
|
|
676
|
+
* Instruct the machine to complete an action. Synonym for {@link do}.
|
|
669
677
|
*
|
|
670
678
|
* ```typescript
|
|
671
679
|
* const light = sm`red 'next' -> green 'next' -> yellow 'next' -> red; [red yellow green] 'shutdown' ~> off 'start' -> red;`;
|
|
@@ -685,7 +693,27 @@ declare class Machine<mDT> {
|
|
|
685
693
|
action(actionName: StateType, newData?: mDT): boolean;
|
|
686
694
|
/********
|
|
687
695
|
*
|
|
688
|
-
* Instruct the machine to complete
|
|
696
|
+
* Instruct the machine to complete an action. Synonym for {@link action}.
|
|
697
|
+
*
|
|
698
|
+
* ```typescript
|
|
699
|
+
* const light = sm`red 'next' -> green 'next' -> yellow 'next' -> red; [red yellow green] 'shutdown' ~> off 'start' -> red;`;
|
|
700
|
+
*
|
|
701
|
+
* light.state(); // 'red'
|
|
702
|
+
* light.do('next'); // true
|
|
703
|
+
* light.state(); // 'green'
|
|
704
|
+
* ```
|
|
705
|
+
*
|
|
706
|
+
* @typeparam mDT The type of the machine data member; usually omitted
|
|
707
|
+
*
|
|
708
|
+
* @param actionName The action to engage
|
|
709
|
+
*
|
|
710
|
+
* @param newData The data change to insert during the action
|
|
711
|
+
*
|
|
712
|
+
*/
|
|
713
|
+
do(actionName: StateType, newData?: mDT): boolean;
|
|
714
|
+
/********
|
|
715
|
+
*
|
|
716
|
+
* Instruct the machine to complete a transition. Synonym for {@link go}.
|
|
689
717
|
*
|
|
690
718
|
* ```typescript
|
|
691
719
|
* const light = sm`red -> green -> yellow -> red; [red yellow green] 'shutdown' ~> off 'start' -> red;`;
|
|
@@ -703,6 +731,26 @@ declare class Machine<mDT> {
|
|
|
703
731
|
*
|
|
704
732
|
*/
|
|
705
733
|
transition(newState: StateType, newData?: mDT): boolean;
|
|
734
|
+
/********
|
|
735
|
+
*
|
|
736
|
+
* Instruct the machine to complete a transition. Synonym for {@link transition}.
|
|
737
|
+
*
|
|
738
|
+
* ```typescript
|
|
739
|
+
* const light = sm`red -> green -> yellow -> red; [red yellow green] 'shutdown' ~> off 'start' -> red;`;
|
|
740
|
+
*
|
|
741
|
+
* light.state(); // 'red'
|
|
742
|
+
* light.go('green'); // true
|
|
743
|
+
* light.state(); // 'green'
|
|
744
|
+
* ```
|
|
745
|
+
*
|
|
746
|
+
* @typeparam mDT The type of the machine data member; usually omitted
|
|
747
|
+
*
|
|
748
|
+
* @param newState The state to switch to
|
|
749
|
+
*
|
|
750
|
+
* @param newData The data change to insert during the transition
|
|
751
|
+
*
|
|
752
|
+
*/
|
|
753
|
+
go(newState: StateType, newData?: mDT): boolean;
|
|
706
754
|
/********
|
|
707
755
|
*
|
|
708
756
|
* Instruct the machine to complete a forced transition (which will reject if
|
|
@@ -784,4 +832,5 @@ declare function from<mDT>(MachineAsString: string, ExtraConstructorFields?: Par
|
|
|
784
832
|
declare function is_hook_complex_result<mDT>(hr: unknown): hr is HookComplexResult<mDT>;
|
|
785
833
|
declare function is_hook_rejection<mDT>(hr: HookResult<mDT>): boolean;
|
|
786
834
|
declare function abstract_hook_step<mDT>(maybe_hook: HookHandler<mDT> | undefined, hook_args: HookContext<mDT>): HookComplexResult<mDT>;
|
|
787
|
-
|
|
835
|
+
declare function deserialize<mDT>(machine_string: string, ser: JssmSerialization<mDT>): Machine<mDT>;
|
|
836
|
+
export { version, transfer_state_properties, Machine, deserialize, make, wrap_parse as parse, compile, sm, from, arrow_direction, arrow_left_kind, arrow_right_kind, seq, weighted_rand_select, histograph, weighted_sample_select, weighted_histo_key, shapes, gviz_shapes, named_colors, is_hook_rejection, is_hook_complex_result, abstract_hook_step };
|
package/dist/es6/jssm.js
CHANGED
|
@@ -800,13 +800,32 @@ class Machine {
|
|
|
800
800
|
* console.log( final_test.is_final() ); // true
|
|
801
801
|
* ```
|
|
802
802
|
*
|
|
803
|
-
* @typeparam mDT The type of the machine data member; usually omitted
|
|
804
|
-
*
|
|
805
803
|
*/
|
|
806
804
|
is_final() {
|
|
807
805
|
// return ((!this.is_changing()) && this.state_is_final(this.state()));
|
|
808
806
|
return this.state_is_final(this.state());
|
|
809
807
|
}
|
|
808
|
+
/********
|
|
809
|
+
*
|
|
810
|
+
* Serialize the current machine, including all defining state but not the
|
|
811
|
+
* machine string, to a structure. This means you will need the machine
|
|
812
|
+
* string to recreate (to not waste repeated space;) if you want the machine
|
|
813
|
+
* string embedded, call {@link serialize_with_string} instead.
|
|
814
|
+
*
|
|
815
|
+
* @typeparam mDT The type of the machine data member; usually omitted
|
|
816
|
+
*
|
|
817
|
+
*/
|
|
818
|
+
serialize(comment) {
|
|
819
|
+
return {
|
|
820
|
+
comment,
|
|
821
|
+
state: this._state,
|
|
822
|
+
data: this._data,
|
|
823
|
+
jssm_version: version,
|
|
824
|
+
history: this._history.toArray(),
|
|
825
|
+
history_capacity: this._history.capacity,
|
|
826
|
+
timestamp: new Date().getTime(),
|
|
827
|
+
};
|
|
828
|
+
}
|
|
810
829
|
graph_layout() {
|
|
811
830
|
return this._graph_layout;
|
|
812
831
|
}
|
|
@@ -1724,7 +1743,7 @@ class Machine {
|
|
|
1724
1743
|
}
|
|
1725
1744
|
/********
|
|
1726
1745
|
*
|
|
1727
|
-
* Instruct the machine to complete an action.
|
|
1746
|
+
* Instruct the machine to complete an action. Synonym for {@link do}.
|
|
1728
1747
|
*
|
|
1729
1748
|
* ```typescript
|
|
1730
1749
|
* const light = sm`red 'next' -> green 'next' -> yellow 'next' -> red; [red yellow green] 'shutdown' ~> off 'start' -> red;`;
|
|
@@ -1746,7 +1765,29 @@ class Machine {
|
|
|
1746
1765
|
}
|
|
1747
1766
|
/********
|
|
1748
1767
|
*
|
|
1749
|
-
* Instruct the machine to complete
|
|
1768
|
+
* Instruct the machine to complete an action. Synonym for {@link action}.
|
|
1769
|
+
*
|
|
1770
|
+
* ```typescript
|
|
1771
|
+
* const light = sm`red 'next' -> green 'next' -> yellow 'next' -> red; [red yellow green] 'shutdown' ~> off 'start' -> red;`;
|
|
1772
|
+
*
|
|
1773
|
+
* light.state(); // 'red'
|
|
1774
|
+
* light.do('next'); // true
|
|
1775
|
+
* light.state(); // 'green'
|
|
1776
|
+
* ```
|
|
1777
|
+
*
|
|
1778
|
+
* @typeparam mDT The type of the machine data member; usually omitted
|
|
1779
|
+
*
|
|
1780
|
+
* @param actionName The action to engage
|
|
1781
|
+
*
|
|
1782
|
+
* @param newData The data change to insert during the action
|
|
1783
|
+
*
|
|
1784
|
+
*/
|
|
1785
|
+
do(actionName, newData) {
|
|
1786
|
+
return this.transition_impl(actionName, newData, false, true);
|
|
1787
|
+
}
|
|
1788
|
+
/********
|
|
1789
|
+
*
|
|
1790
|
+
* Instruct the machine to complete a transition. Synonym for {@link go}.
|
|
1750
1791
|
*
|
|
1751
1792
|
* ```typescript
|
|
1752
1793
|
* const light = sm`red -> green -> yellow -> red; [red yellow green] 'shutdown' ~> off 'start' -> red;`;
|
|
@@ -1766,6 +1807,28 @@ class Machine {
|
|
|
1766
1807
|
transition(newState, newData) {
|
|
1767
1808
|
return this.transition_impl(newState, newData, false, false);
|
|
1768
1809
|
}
|
|
1810
|
+
/********
|
|
1811
|
+
*
|
|
1812
|
+
* Instruct the machine to complete a transition. Synonym for {@link transition}.
|
|
1813
|
+
*
|
|
1814
|
+
* ```typescript
|
|
1815
|
+
* const light = sm`red -> green -> yellow -> red; [red yellow green] 'shutdown' ~> off 'start' -> red;`;
|
|
1816
|
+
*
|
|
1817
|
+
* light.state(); // 'red'
|
|
1818
|
+
* light.go('green'); // true
|
|
1819
|
+
* light.state(); // 'green'
|
|
1820
|
+
* ```
|
|
1821
|
+
*
|
|
1822
|
+
* @typeparam mDT The type of the machine data member; usually omitted
|
|
1823
|
+
*
|
|
1824
|
+
* @param newState The state to switch to
|
|
1825
|
+
*
|
|
1826
|
+
* @param newData The data change to insert during the transition
|
|
1827
|
+
*
|
|
1828
|
+
*/
|
|
1829
|
+
go(newState, newData) {
|
|
1830
|
+
return this.transition_impl(newState, newData, false, false);
|
|
1831
|
+
}
|
|
1769
1832
|
/********
|
|
1770
1833
|
*
|
|
1771
1834
|
* Instruct the machine to complete a forced transition (which will reject if
|
|
@@ -1944,6 +2007,12 @@ function abstract_hook_step(maybe_hook, hook_args) {
|
|
|
1944
2007
|
return { pass: true };
|
|
1945
2008
|
}
|
|
1946
2009
|
}
|
|
1947
|
-
|
|
2010
|
+
function deserialize(machine_string, ser) {
|
|
2011
|
+
const machine = from(machine_string, { data: ser.data, history: ser.history_capacity });
|
|
2012
|
+
machine._state = ser.state;
|
|
2013
|
+
ser.history.forEach(history_item => machine._history.push(history_item));
|
|
2014
|
+
return machine;
|
|
2015
|
+
}
|
|
2016
|
+
export { version, transfer_state_properties, Machine, deserialize, make, wrap_parse as parse, compile, sm, from, arrow_direction, arrow_left_kind, arrow_right_kind,
|
|
1948
2017
|
// WHARGARBL TODO these should be exported to a utility library
|
|
1949
2018
|
seq, weighted_rand_select, histograph, weighted_sample_select, weighted_histo_key, shapes, gviz_shapes, named_colors, is_hook_rejection, is_hook_complex_result, abstract_hook_step };
|
package/dist/es6/jssm_types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { circular_buffer } from 'circular_buffer_js';
|
|
1
2
|
declare type StateType = string;
|
|
2
3
|
declare type JssmSuccess = {
|
|
3
4
|
success: true;
|
|
@@ -25,6 +26,15 @@ declare type JssmCorner = 'regular' | 'rounded' | 'lined';
|
|
|
25
26
|
declare type JssmLineStyle = 'solid' | 'dashed' | 'dotted';
|
|
26
27
|
declare type FslDirection = 'up' | 'right' | 'down' | 'left';
|
|
27
28
|
declare type FslTheme = 'default' | 'ocean' | 'modern' | 'none';
|
|
29
|
+
declare type JssmSerialization<DataType> = {
|
|
30
|
+
jssm_version: string;
|
|
31
|
+
timestamp: number;
|
|
32
|
+
comment?: string | undefined;
|
|
33
|
+
state: StateType;
|
|
34
|
+
history: [string, DataType][];
|
|
35
|
+
history_capacity: number;
|
|
36
|
+
data: DataType;
|
|
37
|
+
};
|
|
28
38
|
declare type JssmTransitionPermitter<DataType> = (OldState: StateType, NewState: StateType, OldData: DataType, NewData: DataType) => boolean;
|
|
29
39
|
declare type JssmTransitionPermitterMaybeArray<DataType> = JssmTransitionPermitter<DataType> | Array<JssmTransitionPermitter<DataType>>;
|
|
30
40
|
declare type JssmTransition<DataType> = {
|
|
@@ -264,4 +274,5 @@ declare type PostHookHandler<mDT> = (hook_context: HookContext<mDT>) => void;
|
|
|
264
274
|
declare type JssmErrorExtendedInfo = {
|
|
265
275
|
requested_state?: StateType | undefined;
|
|
266
276
|
};
|
|
267
|
-
|
|
277
|
+
declare type JssmHistory<mDT> = circular_buffer<[StateType, mDT]>;
|
|
278
|
+
export { JssmColor, JssmShape, JssmTransition, JssmTransitions, JssmTransitionList, JssmTransitionRule, JssmArrow, JssmArrowKind, JssmArrowDirection, JssmGenericConfig, JssmGenericState, JssmGenericMachine, JssmParseTree, JssmCompileSe, JssmCompileSeStart, JssmCompileRule, JssmPermitted, JssmPermittedOpt, JssmResult, JssmStateDeclaration, JssmStateDeclarationRule, JssmLayout, JssmHistory, JssmSerialization, JssmParseFunctionType, JssmMachineInternalState, JssmErrorExtendedInfo, FslDirection, FslTheme, HookDescription, HookHandler, HookContext, HookResult, HookComplexResult };
|
package/dist/es6/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const version = "5.
|
|
1
|
+
const version = "5.78.0";
|
|
2
2
|
export { version };
|