jssm 5.104.2 → 5.112.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.
Files changed (62) hide show
  1. package/.gitattributes +17 -6
  2. package/.log-progress.json +9 -0
  3. package/CHANGELOG.md +130 -45
  4. package/CLAUDE.md +11 -0
  5. package/MIGRATING-jssm-viz.md +67 -0
  6. package/README.md +179 -882
  7. package/dist/es6/fsl_parser.js +1 -1
  8. package/dist/es6/jssm.d.ts +773 -39
  9. package/dist/es6/jssm.js +921 -89
  10. package/dist/es6/jssm_arrow.js +24 -0
  11. package/dist/es6/jssm_compiler.d.ts +17 -2
  12. package/dist/es6/jssm_compiler.js +17 -3
  13. package/dist/es6/jssm_constants.d.ts +27 -0
  14. package/dist/es6/jssm_constants.js +27 -0
  15. package/dist/es6/jssm_error.d.ts +19 -0
  16. package/dist/es6/jssm_error.js +19 -0
  17. package/dist/es6/jssm_theme.d.ts +11 -0
  18. package/dist/es6/jssm_theme.js +11 -0
  19. package/dist/es6/jssm_types.d.ts +29 -3
  20. package/dist/es6/jssm_util.d.ts +161 -9
  21. package/dist/es6/jssm_util.js +174 -17
  22. package/dist/es6/jssm_viz.d.ts +175 -0
  23. package/dist/es6/jssm_viz.js +560 -0
  24. package/dist/es6/jssm_viz_colors.d.ts +63 -0
  25. package/dist/es6/jssm_viz_colors.js +63 -0
  26. package/dist/es6/version.js +1 -1
  27. package/dist/jssm.es5.cjs +1 -1
  28. package/dist/jssm.es5.iife.js +1 -0
  29. package/dist/jssm.es5.nonmin.cjs +2201 -870
  30. package/dist/jssm.es6.mjs +1 -1
  31. package/dist/jssm.es6.nonmin.cjs +2200 -871
  32. package/dist/jssm_viz.cjs +1 -0
  33. package/dist/{jssm.es5.iife.nonmin.cjs → jssm_viz.es5.iife.nonmin.cjs} +2589 -1090
  34. package/dist/jssm_viz.es5.nonmin.cjs +24674 -0
  35. package/dist/jssm_viz.es6.nonmin.cjs +24661 -0
  36. package/dist/jssm_viz.iife.cjs +1 -0
  37. package/dist/jssm_viz.mjs +1 -0
  38. package/jest-dragon.config.cjs +4 -1
  39. package/jest-spec.config.cjs +9 -6
  40. package/jest-stoch.config.cjs +4 -1
  41. package/jest-unicode.config.cjs +4 -1
  42. package/jssm.es5.d.cts +950 -41
  43. package/jssm.es6.d.ts +950 -41
  44. package/jssm_viz.es5.d.cts +2127 -0
  45. package/jssm_viz.es6.d.ts +2127 -0
  46. package/log-progress.data.json +28 -0
  47. package/package.json +56 -23
  48. package/rollup.config.viz.es5.js +46 -0
  49. package/rollup.config.viz.es6.js +46 -0
  50. package/rollup.config.viz.iife.js +36 -0
  51. package/typedoc-options.cjs +4 -3
  52. package/dist/jssm.es5.iife.cjs +0 -1
  53. package/fsl_parser.d.ts +0 -6
  54. package/jssm.d.ts +0 -1141
  55. package/jssm_arrow.d.ts +0 -53
  56. package/jssm_compiler.d.ts +0 -135
  57. package/jssm_constants.d.ts +0 -5
  58. package/jssm_error.d.ts +0 -8
  59. package/jssm_theme.d.ts +0 -4
  60. package/jssm_types.d.ts +0 -378
  61. package/jssm_util.d.ts +0 -106
  62. package/version.d.ts +0 -2
package/jssm_util.d.ts DELETED
@@ -1,106 +0,0 @@
1
- /*******
2
- *
3
- * Predicate for validating an array for uniqueness. Not generally meant for
4
- * external use.
5
- *
6
- */
7
- declare function arr_uniq_p<T>(el: T, i: number, source: T[]): boolean;
8
- declare const array_box_if_string: (n: any) => any;
9
- declare const weighted_rand_select: Function;
10
- /*******
11
- *
12
- * Returns, for a non-negative integer argument `n`, the series `[0 .. n]`.
13
- *
14
- * ```typescript
15
- * import { seq } from './jssm';
16
- *
17
- * seq(5); // [0, 1, 2, 3, 4]
18
- * seq(0); // []
19
- * ```
20
- *
21
- */
22
- declare function seq(n: number): number[];
23
- /*******
24
- *
25
- * Returns the histograph of an array as a `Map`. Makes no attempt to cope
26
- * with deep equality; will fail for complex contents, as such.
27
- *
28
- * ```typescript
29
- * import { histograph } from './jssm';
30
- *
31
- * histograph( [0, 0, 1, 1, 2, 2, 1] ); // Map()
32
- * ```
33
- *
34
- */
35
- declare const histograph: Function;
36
- declare const weighted_sample_select: Function;
37
- declare const weighted_histo_key: Function;
38
- /*******
39
- *
40
- * Internal method generating names for edges for the hook lookup map. Not
41
- * meant for external use.
42
- *
43
- */
44
- declare function name_bind_prop_and_state(prop: string, state: string): string;
45
- /*******
46
- *
47
- * Internal method generating names for edges for the hook lookup map. Not
48
- * meant for external use.
49
- *
50
- */
51
- declare const hook_name: (from: string, to: string) => string;
52
- /*******
53
- *
54
- * Internal method generating names for actions for the hook lookup map. Not
55
- * meant for external use.
56
- *
57
- */
58
- declare const named_hook_name: (from: string, to: string, action: string) => string;
59
- /*******
60
- *
61
- * Creates a SplitMix32 random generator. Used by the randomness test suite.
62
- *
63
- * Sourced from `bryc`: https://github.com/bryc/code/blob/master/jshash/PRNGs.md#splitmix32
64
- *
65
- * Replaces the Mulberry generator, which was found to have problems
66
- *
67
- */
68
- declare function gen_splitmix32(a?: number | undefined): () => number;
69
- /*******
70
- *
71
- * Reduces an array to its unique contents. Compares with `===` and makes no
72
- * effort to deep-compare contents; two matching arrays or objects contained
73
- * will be treated as distinct, according to javascript rules. This also means
74
- * that `NaNs` will be ***dropped***, because they do not self-compare.
75
- *
76
- * ```typescript
77
- * unique( [] ); // []
78
- * unique( [0,0] ); // [0]
79
- * unique( [0,1,2, 0,1,2, 0,1,2] ); // [0,1,2]
80
- * unique( [ [1], [1] ] ); // [ [1], [1] ] because arrays don't match
81
- * unique( [0,NaN,2] ); // [0,2]
82
- * ```
83
- *
84
- */
85
- declare const unique: <T>(arr?: T[]) => T[];
86
- /*******
87
- *
88
- * Lists all repeated items in an array along with their counts. Subject to
89
- * matching rules of Map. `NaN` is manually removed because of conflict rules
90
- * around {@link unique}. Because these are compared with `===` and because
91
- * arrays and objects never match that way unless they're the same object,
92
- * arrays and objects are never considered repeats.
93
- *
94
- * ```typescript
95
- * find_repeated<string>([ ]); // []
96
- * find_repeated<string>([ "one" ]); // []
97
- * find_repeated<string>([ "one", "two" ]); // []
98
- * find_repeated<string>([ "one", "one" ]); // [ ["one", 2] ]
99
- * find_repeated<string>([ "one", "two", "one" ]); // [ ["one", 2] ]
100
- * find_repeated<number>([ 0, NaN, 0, NaN ]); // [ [0, 2] ]
101
- * ```
102
- *
103
- */
104
- declare function find_repeated<T>(arr: T[]): [T, number][];
105
- declare function sleep(ms: number): Promise<unknown>;
106
- export { seq, unique, find_repeated, arr_uniq_p, histograph, weighted_histo_key, weighted_rand_select, weighted_sample_select, array_box_if_string, name_bind_prop_and_state, hook_name, named_hook_name, gen_splitmix32, sleep };
package/version.d.ts DELETED
@@ -1,2 +0,0 @@
1
- declare const version: string, build_time: number;
2
- export { version, build_time };