jssm 5.120.2 → 5.121.1
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 +6 -6
- package/dist/cdn/viz.js +15 -9
- package/dist/cli/fsl-render.cjs +1 -1
- package/dist/cli/fsl.cjs +1 -1
- package/dist/deno/README.md +6 -6
- package/dist/deno/jssm.d.ts +33 -7
- package/dist/deno/jssm.js +1 -1
- package/dist/deno/jssm_constants.d.ts +7 -4
- package/dist/jssm.es5.cjs +1 -1
- package/dist/jssm.es5.iife.js +1 -1
- package/dist/jssm.es6.mjs +1 -1
- package/dist/jssm_viz.cjs +1 -1
- package/dist/jssm_viz.iife.cjs +1 -1
- package/dist/jssm_viz.mjs +1 -1
- package/jssm.es5.d.cts +40 -11
- package/jssm.es6.d.ts +40 -11
- package/jssm_viz.es5.d.cts +7 -4
- package/jssm_viz.es6.d.ts +7 -4
- package/package.json +6 -4
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.
|
|
21
|
+
* Generated for version 5.121.1 at 5/17/2026, 11:02:30 AM
|
|
22
22
|
|
|
23
23
|
-->
|
|
24
|
-
# jssm 5.
|
|
24
|
+
# jssm 5.121.1
|
|
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/) ·
|
|
@@ -281,7 +281,7 @@ That decision shows up everywhere downstream:
|
|
|
281
281
|
or run `npm run benny` against your own machine.
|
|
282
282
|
|
|
283
283
|
- **More thoroughly tested than any other JavaScript state-machine
|
|
284
|
-
library.**
|
|
284
|
+
library.** 6,027 tests at 100.0% line coverage
|
|
285
285
|
([report](https://coveralls.io/github/StoneCypher/jssm)), plus
|
|
286
286
|
fuzz testing via `fast-check`, with parser test data across ten natural
|
|
287
287
|
languages and Emoji.
|
|
@@ -414,11 +414,11 @@ If your contribution is missing here, please open an issue.
|
|
|
414
414
|
|
|
415
415
|
<br/>
|
|
416
416
|
|
|
417
|
-
***
|
|
417
|
+
***6,027 tests***, run 56,814 times.
|
|
418
418
|
|
|
419
|
-
- 5,
|
|
419
|
+
- 5,514 specs with 100.0% coverage
|
|
420
420
|
- 513 fuzz tests with 20.2% coverage
|
|
421
|
-
- 4,
|
|
421
|
+
- 4,281 TypeScript lines - 1.4 tests per line, 13.3 generated tests per line
|
|
422
422
|
|
|
423
423
|
[](https://github.com/StoneCypher/jssm/actions)
|
|
424
424
|
[](https://www.npmjs.com/package/jssm)
|
package/dist/cdn/viz.js
CHANGED
|
@@ -20957,7 +20957,8 @@ theme_mapping.set('bold', bold_theme);
|
|
|
20957
20957
|
* plus the high-Unicode range `U+0080`–`U+FFFF`.
|
|
20958
20958
|
*
|
|
20959
20959
|
* @example
|
|
20960
|
-
*
|
|
20960
|
+
* import { state_name_chars } from 'jssm';
|
|
20961
|
+
* state_name_chars.some(r => 'A' >= r.from && 'A' <= r.to); // => true
|
|
20961
20962
|
*/
|
|
20962
20963
|
// keep in sync with src/ts/fsl_parser.peg:278
|
|
20963
20964
|
const state_name_chars$1 = Object.freeze([
|
|
@@ -20989,7 +20990,8 @@ const state_name_chars$1 = Object.freeze([
|
|
|
20989
20990
|
* `?`, `,`, and the high-Unicode range `U+0080`–`U+FFFF`.
|
|
20990
20991
|
*
|
|
20991
20992
|
* @example
|
|
20992
|
-
*
|
|
20993
|
+
* import { state_name_first_chars } from 'jssm';
|
|
20994
|
+
* state_name_first_chars.some(r => '+' >= r.from && '+' <= r.to); // => false
|
|
20993
20995
|
*/
|
|
20994
20996
|
// keep in sync with src/ts/fsl_parser.peg:275
|
|
20995
20997
|
const state_name_first_chars$1 = Object.freeze([
|
|
@@ -21015,8 +21017,9 @@ const state_name_first_chars$1 = Object.freeze([
|
|
|
21015
21017
|
* Three ranges: `U+0020`–`U+0026`, `U+0028`–`U+005B`, `U+005D`–`U+FFFF`.
|
|
21016
21018
|
*
|
|
21017
21019
|
* @example
|
|
21018
|
-
*
|
|
21019
|
-
* action_label_chars.some(r =>
|
|
21020
|
+
* import { action_label_chars } from 'jssm';
|
|
21021
|
+
* action_label_chars.some(r => ' ' >= r.from && ' ' <= r.to); // => true
|
|
21022
|
+
* action_label_chars.some(r => "'" >= r.from && "'" <= r.to); // => false
|
|
21020
21023
|
*/
|
|
21021
21024
|
// keep in sync with src/ts/fsl_parser.peg:240
|
|
21022
21025
|
const action_label_chars$1 = Object.freeze([
|
|
@@ -21038,7 +21041,7 @@ var constants = /*#__PURE__*/Object.freeze({
|
|
|
21038
21041
|
* Useful for runtime diagnostics and for embedding in serialized machine
|
|
21039
21042
|
* snapshots so that deserializers can detect version-skew.
|
|
21040
21043
|
*/
|
|
21041
|
-
const version = "5.
|
|
21044
|
+
const version = "5.121.1";
|
|
21042
21045
|
|
|
21043
21046
|
// whargarbl lots of these return arrays could/should be sets
|
|
21044
21047
|
const { state_name_chars, state_name_first_chars, action_label_chars } = constants;
|
|
@@ -22193,8 +22196,9 @@ class Machine {
|
|
|
22193
22196
|
* @returns An array of `{from, to}` inclusive character ranges.
|
|
22194
22197
|
*
|
|
22195
22198
|
* @example
|
|
22199
|
+
* import { sm } from 'jssm';
|
|
22196
22200
|
* const m = sm`a -> b;`;
|
|
22197
|
-
* m.all_state_name_chars().some(r => '+' >= r.from && '+' <= r.to); // true
|
|
22201
|
+
* m.all_state_name_chars().some(r => '+' >= r.from && '+' <= r.to); // => true
|
|
22198
22202
|
*/
|
|
22199
22203
|
all_state_name_chars() {
|
|
22200
22204
|
return state_name_chars;
|
|
@@ -22206,8 +22210,9 @@ class Machine {
|
|
|
22206
22210
|
* @returns An array of `{from, to}` inclusive character ranges.
|
|
22207
22211
|
*
|
|
22208
22212
|
* @example
|
|
22213
|
+
* import { sm } from 'jssm';
|
|
22209
22214
|
* const m = sm`a -> b;`;
|
|
22210
|
-
* m.all_state_name_first_chars().some(r => '+' >= r.from && '+' <= r.to); // false
|
|
22215
|
+
* m.all_state_name_first_chars().some(r => '+' >= r.from && '+' <= r.to); // => false
|
|
22211
22216
|
*/
|
|
22212
22217
|
all_state_name_first_chars() {
|
|
22213
22218
|
return state_name_first_chars;
|
|
@@ -22219,9 +22224,10 @@ class Machine {
|
|
|
22219
22224
|
* @returns An array of `{from, to}` inclusive character ranges.
|
|
22220
22225
|
*
|
|
22221
22226
|
* @example
|
|
22227
|
+
* import { sm } from 'jssm';
|
|
22222
22228
|
* const m = sm`a -> b;`;
|
|
22223
|
-
* m.all_action_label_chars().some(r => ' ' >= r.from && ' ' <= r.to); // true
|
|
22224
|
-
* m.all_action_label_chars().some(r => "'" >= r.from && "'" <= r.to); // false
|
|
22229
|
+
* m.all_action_label_chars().some(r => ' ' >= r.from && ' ' <= r.to); // => true
|
|
22230
|
+
* m.all_action_label_chars().some(r => "'" >= r.from && "'" <= r.to); // => false
|
|
22225
22231
|
*/
|
|
22226
22232
|
all_action_label_chars() {
|
|
22227
22233
|
return action_label_chars;
|