jssm 5.157.18 → 5.158.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/README.md +28 -7
- package/dist/cdn/instance.js +1 -1
- package/dist/cdn/viz.js +1 -1
- package/dist/cli/fsl-export-system-prompt.cjs +1 -1
- package/dist/cli/fsl-render.cjs +1 -1
- package/dist/cli/fsl.cjs +1 -1
- package/dist/cli/lib.cjs +1 -1
- package/dist/cli/lib.mjs +1 -1
- package/dist/deno/README.md +28 -7
- package/dist/deno/fence.d.ts +18 -0
- package/dist/deno/fsl_fence_highlight.d.ts +53 -0
- package/dist/deno/fsl_fence_render.d.ts +87 -0
- package/dist/deno/fsl_gif.d.ts +77 -0
- package/dist/deno/fsl_svg_patch.d.ts +28 -0
- package/dist/deno/fsl_walk.d.ts +21 -0
- package/dist/deno/jssm.js +1 -1
- package/dist/fence/fence.js +49657 -0
- 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/dist/wc/editor.js +5 -1
- package/jssm.cli.d.cts +15 -6
- package/jssm.cli.d.ts +15 -6
- package/jssm.fence.d.ts +4084 -0
- package/package.json +9 -1
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.158.0 at 7/3/2026, 11:48:59 AM
|
|
22
22
|
|
|
23
23
|
-->
|
|
24
|
-
# jssm 5.
|
|
24
|
+
# jssm 5.158.0
|
|
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/) ·
|
|
@@ -179,6 +179,27 @@ if (result.kind === 'text') console.log(result.content);
|
|
|
179
179
|
|
|
180
180
|
|
|
181
181
|
|
|
182
|
+
<br/>
|
|
183
|
+
|
|
184
|
+
## Static fence rendering (`jssm/fence`)
|
|
185
|
+
|
|
186
|
+
`jssm/fence` renders FSL code fences to static, editor-parity-highlighted HTML — no browser, no editor, no live machine required — for Markdown pipelines, static site generators, and doc tooling.
|
|
187
|
+
|
|
188
|
+
```typescript
|
|
189
|
+
import { transform_markdown } from 'jssm/fence';
|
|
190
|
+
|
|
191
|
+
const html = await transform_markdown(markdown);
|
|
192
|
+
// every fsl/jssm fence becomes rendered, highlighted HTML
|
|
193
|
+
// everything else in the document passes through untouched
|
|
194
|
+
console.log(html);
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
`render_fence_gif` walks a machine's main path (or every edge, if there is no main path) into a looping animated GIF, one Graphviz layout patched per frame: 70cs per-frame delay, loops forever, and a 64-frame walk cap by default, all overridable via options.
|
|
198
|
+
|
|
199
|
+
PNG, JPEG, and GIF output rasterize through the same optional backend as the CLI — install it with `npm install @resvg/resvg-wasm`.
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
182
203
|
<br/>
|
|
183
204
|
|
|
184
205
|
## Web Components
|
|
@@ -312,7 +333,7 @@ That decision shows up everywhere downstream:
|
|
|
312
333
|
or run `npm run benny` against your own machine.
|
|
313
334
|
|
|
314
335
|
- **More thoroughly tested than any other JavaScript state-machine
|
|
315
|
-
library.** 7,
|
|
336
|
+
library.** 7,998 tests at 100.0% line coverage
|
|
316
337
|
([report](https://coveralls.io/github/StoneCypher/jssm)), plus
|
|
317
338
|
fuzz testing via `fast-check`, with parser test data across ten natural
|
|
318
339
|
languages and Emoji.
|
|
@@ -445,11 +466,11 @@ If your contribution is missing here, please open an issue.
|
|
|
445
466
|
|
|
446
467
|
<br/>
|
|
447
468
|
|
|
448
|
-
***7,
|
|
469
|
+
***7,998 tests***, run 83,040 times.
|
|
449
470
|
|
|
450
|
-
- 7,
|
|
451
|
-
- 758 fuzz tests with
|
|
452
|
-
- 10,
|
|
471
|
+
- 7,240 specs with 100.0% coverage
|
|
472
|
+
- 758 fuzz tests with 49.4% coverage
|
|
473
|
+
- 10,615 TypeScript lines - 0.8 tests per line, 7.8 generated tests per line
|
|
453
474
|
|
|
454
475
|
[](https://github.com/StoneCypher/jssm/actions)
|
|
455
476
|
[](https://www.npmjs.com/package/jssm)
|