Skip to content

Commit

Permalink
Parsing of JSON part done.
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneCypher committed Jul 3, 2022
1 parent 99ef3d9 commit 2526a1b
Show file tree
Hide file tree
Showing 18 changed files with 160 additions and 105 deletions.
17 changes: 16 additions & 1 deletion CHANGELOG.long.md
Expand Up @@ -2,7 +2,7 @@

All notable changes to this project will be documented in this file.

944 merges; 125 releases
945 merges; 125 releases



Expand All @@ -18,6 +18,21 @@ Published tags:



 

 

## [Untagged] - 7/3/2022 10:08:02 AM

Commit [99ef3d9866ff6830528005c9196456e2b766dc09](https://github.com/StoneCypher/jssm/commit/99ef3d9866ff6830528005c9196456e2b766dc09)

Author: `John Haugeland <stonecypher@gmail.com>`

* added cloc, turned to disk, made a cute little reporter, fixes StoneCypher/fsl#985




&nbsp;

&nbsp;
Expand Down
39 changes: 17 additions & 22 deletions CHANGELOG.md
Expand Up @@ -2,7 +2,7 @@

All notable changes to this project will be documented in this file.

944 merges; 125 releases; Changlogging the last 10 commits; Full changelog at [CHANGELOG.long.md](CHANGELOG.long.md)
945 merges; 125 releases; Changlogging the last 10 commits; Full changelog at [CHANGELOG.long.md](CHANGELOG.long.md)



Expand All @@ -18,6 +18,21 @@ Published tags:



&nbsp;

&nbsp;

## [Untagged] - 7/3/2022 10:08:02 AM

Commit [99ef3d9866ff6830528005c9196456e2b766dc09](https://github.com/StoneCypher/jssm/commit/99ef3d9866ff6830528005c9196456e2b766dc09)

Author: `John Haugeland <stonecypher@gmail.com>`

* added cloc, turned to disk, made a cute little reporter, fixes StoneCypher/fsl#985




&nbsp;

&nbsp;
Expand Down Expand Up @@ -155,24 +170,4 @@ Commit [89b9c2cecceee0ea04471c7c406ece82ff115555](https://github.com/StoneCypher

Author: `John Haugeland <stonecypher@gmail.com>`

* promote circular_queue_js to dep instead of devdep for downstreams




&nbsp;

&nbsp;

<a name="5__73__0" />

## [5.73.0] - 6/27/2022 2:36:36 AM

Commit [39f9a8671a45e1e9a903289431bc3bc7a1e292e5](https://github.com/StoneCypher/jssm/commit/39f9a8671a45e1e9a903289431bc3bc7a1e292e5)

Author: `John Haugeland <stonecypher@gmail.com>`

Merges [f1a61f1, c494012]

* Merge pull request #504 from StoneCypher/AddHistoryAndCircularBuffer
* Working history, fixes StoneCypher/fsl#950, fixes StoneCypher/fsl#951,fixes StoneCypher/fsl#948, fixes StoneCypher/fsl#949, fixes StoneCypher/fsl#947, fixes StoneCypher/fsl#946, fixes StoneCypher/fsl#203
* promote circular_queue_js to dep instead of devdep for downstreams
8 changes: 6 additions & 2 deletions README.md
Expand Up @@ -18,14 +18,18 @@ Please edit the file it's derived from, instead: `./src/md/readme_base.md`
* Generated for version 5.75.0 at 7/3/2022, 10:12:58 AM
* Generated for version 5.75.1 at 7/3/2022, 10:39:25 AM
-->
# jssm

Easy. Small. Fast. TS, es6, es5. Node, Browser. 100% coverage. Property
tests. Fuzz tests. Language tests for a dozen languages and emoji. Easy to
share online. Easy to embed. ***4,646 tests***.
share online. Easy to embed.

***4,655 tests***. 4,646 specs with {{spec_coverage}}%
coverage, 9 fuzz tests with {{stoch_coverage}}% coverage, run
5,546 times.

Readable, useful state machines as one-liner strings.

Expand Down
2 changes: 1 addition & 1 deletion dist/es6/version.js
@@ -1,2 +1,2 @@
const version = "5.75.0";
const version = "5.75.1";
export { version };
2 changes: 1 addition & 1 deletion dist/jssm.es5.cjs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jssm.es5.cjs.nonmin.js
Expand Up @@ -16785,7 +16785,7 @@ function peg$parse(input, options) {
}
}

const version = "5.75.0";
const version = "5.75.1";

class JssmError extends Error {
constructor(machine, message, JEEI) {
Expand Down
2 changes: 1 addition & 1 deletion dist/jssm.es5.iife.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jssm.es5.iife.nonmin.js
Expand Up @@ -16784,7 +16784,7 @@ var jssm = (function (exports) {
}
}

const version = "5.75.0";
const version = "5.75.1";

class JssmError extends Error {
constructor(machine, message, JEEI) {
Expand Down
42 changes: 21 additions & 21 deletions docs/docs/classes/Machine.html

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions docs/docs/modules.html

Large diffs are not rendered by default.

15 changes: 13 additions & 2 deletions docs/docs/pages/CHANGELOG.long.html
Expand Up @@ -3,7 +3,7 @@
<h1>Changelog</h1>
</a>
<p>All notable changes to this project will be documented in this file.</p>
<p>944 merges; 125 releases</p>
<p>945 merges; 125 releases</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Published tags:</p>
Expand All @@ -14,7 +14,7 @@ <h1>Changelog</h1>
<a href="#untagged---732022-100802-am" id="untagged---732022-100802-am" style="color: inherit; text-decoration: none;">
<h2>[Untagged] - 7/3/2022 10:08:02 AM</h2>
</a>
<p>Commit <a href="https://github.com/StoneCypher/jssm/commit/986fd0dd50adcb739f54e4fa3712628c94004505">986fd0dd50adcb739f54e4fa3712628c94004505</a></p>
<p>Commit <a href="https://github.com/StoneCypher/jssm/commit/99ef3d9866ff6830528005c9196456e2b766dc09">99ef3d9866ff6830528005c9196456e2b766dc09</a></p>
<p>Author: <code>John Haugeland &lt;stonecypher@gmail.com&gt;</code></p>
<ul>
<li>added cloc, turned to disk, made a cute little reporter, fixes StoneCypher/fsl#985</li>
Expand All @@ -25,6 +25,17 @@ <h2>[Untagged] - 7/3/2022 10:08:02 AM</h2>
<a href="#untagged---732022-100802-am-1" id="untagged---732022-100802-am-1" style="color: inherit; text-decoration: none;">
<h2>[Untagged] - 7/3/2022 10:08:02 AM</h2>
</a>
<p>Commit <a href="https://github.com/StoneCypher/jssm/commit/986fd0dd50adcb739f54e4fa3712628c94004505">986fd0dd50adcb739f54e4fa3712628c94004505</a></p>
<p>Author: <code>John Haugeland &lt;stonecypher@gmail.com&gt;</code></p>
<ul>
<li>added cloc, turned to disk, made a cute little reporter, fixes StoneCypher/fsl#985</li>
</ul>
<p>&nbsp;</p>
<p>&nbsp;</p>

<a href="#untagged---732022-100802-am-2" id="untagged---732022-100802-am-2" style="color: inherit; text-decoration: none;">
<h2>[Untagged] - 7/3/2022 10:08:02 AM</h2>
</a>
<p>Commit <a href="https://github.com/StoneCypher/jssm/commit/0c34b68d5a5d6666895965e5f8b4b9a9dadfe397">0c34b68d5a5d6666895965e5f8b4b9a9dadfe397</a></p>
<p>Author: <code>John Haugeland &lt;stonecypher@gmail.com&gt;</code></p>
<ul>
Expand Down
8 changes: 7 additions & 1 deletion jest-stoch.config.js
Expand Up @@ -22,6 +22,12 @@ module.exports = {
},
},

collectCoverageFrom: ["src/ts/**/{!(jssm-dot),}.{js,ts}"]
collectCoverageFrom: ["src/ts/**/{!(jssm-dot),}.{js,ts}"],

reporters: [
['default', {}],
['jest-json-reporter2', { outputDir: './coverage/stoch', outputFile: 'metrics.json', fullOutput: false }],
// ['jest-json-reporter2', { outputDir: './coverage/stoch', outputFile: 'extended-metrics.json', fullOutput: true }],
]

};
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "jssm",
"version": "5.75.0",
"version": "5.75.1",
"engines": {
"node": ">=10.0.0"
},
Expand Down
38 changes: 24 additions & 14 deletions src/buildjs/make_readme.js
Expand Up @@ -3,17 +3,27 @@ const fs = require('fs');



const package = JSON.parse(fs.readFileSync('./package.json')),
spec_metrics = JSON.parse(fs.readFileSync('./coverage/spec/metrics.json')),

warning = fs.readFileSync('./src/md/generated-file-warning.txt').toString(),
warning_wf = warning.replaceAll('{{real_source}}', './src/md/readme_base.md'),
warning_wd = warning_wf.replaceAll('{{datetime}}', new Date().toLocaleString()),
warning_wv = warning_wd.replaceAll('{{build}}', package.version),

readme_base = fs.readFileSync('./src/md/README_base.md').toString(),
readme_wtc = readme_base.replaceAll('{{test_count}}', spec_metrics.tests.success.toLocaleString());



fs.writeFileSync('./README.md', warning_wv + readme_wtc);
const package = JSON.parse(fs.readFileSync('./package.json')),
spec_metrics = JSON.parse(fs.readFileSync('./coverage/spec/metrics.json')),
stoch_metrics = JSON.parse(fs.readFileSync('./coverage/stoch/metrics.json')),
tot_count = spec_metrics.tests.success + stoch_metrics.tests.success,
run_count = spec_metrics.tests.success + (stoch_metrics.tests.success * 100),

warning = fs.readFileSync('./src/md/generated-file-warning.txt').toString(),
warning_wf = warning.replaceAll('{{real_source}}', './src/md/readme_base.md'),
warning_wd = warning_wf.replaceAll('{{datetime}}', new Date().toLocaleString()),
warning_wv = warning_wd.replaceAll('{{build}}', package.version),

readme_base = fs.readFileSync('./src/md/README_base.md').toString(),
readme_tests = readme_base.replaceAll('{{test_count}}', tot_count.toLocaleString()),
readme_runs = readme_tests.replaceAll('{{run_count}}', run_count.toLocaleString()),
readme_spec = readme_runs.replaceAll('{{spec_count}}', spec_metrics.tests.success.toLocaleString()),
// readme_specc = readme_runs.replaceAll('{{spec_coverage}}', 'TODO'),
readme_stoch = readme_spec.replaceAll('{{stoch_count}}', stoch_metrics.tests.success.toLocaleString()),
// readme_stochc = readme_spec.replaceAll('{{stoch_coverage}}', 'TODO'),
readme_lines = readme_stoch,
readme_ratio = readme_lines;



fs.writeFileSync('./README.md', warning_wv + readme_ratio);
17 changes: 16 additions & 1 deletion src/doc_md/CHANGELOG.long.md
Expand Up @@ -2,7 +2,7 @@

All notable changes to this project will be documented in this file.

944 merges; 125 releases
945 merges; 125 releases



Expand All @@ -18,6 +18,21 @@ Published tags:



&nbsp;

&nbsp;

## [Untagged] - 7/3/2022 10:08:02 AM

Commit [99ef3d9866ff6830528005c9196456e2b766dc09](https://github.com/StoneCypher/jssm/commit/99ef3d9866ff6830528005c9196456e2b766dc09)

Author: `John Haugeland <stonecypher@gmail.com>`

* added cloc, turned to disk, made a cute little reporter, fixes StoneCypher/fsl#985




&nbsp;

&nbsp;
Expand Down
39 changes: 17 additions & 22 deletions src/doc_md/CHANGELOG.md
Expand Up @@ -2,7 +2,7 @@

All notable changes to this project will be documented in this file.

944 merges; 125 releases; Changlogging the last 10 commits; Full changelog at [CHANGELOG.long.md](CHANGELOG.long.md)
945 merges; 125 releases; Changlogging the last 10 commits; Full changelog at [CHANGELOG.long.md](CHANGELOG.long.md)



Expand All @@ -18,6 +18,21 @@ Published tags:



&nbsp;

&nbsp;

## [Untagged] - 7/3/2022 10:08:02 AM

Commit [99ef3d9866ff6830528005c9196456e2b766dc09](https://github.com/StoneCypher/jssm/commit/99ef3d9866ff6830528005c9196456e2b766dc09)

Author: `John Haugeland <stonecypher@gmail.com>`

* added cloc, turned to disk, made a cute little reporter, fixes StoneCypher/fsl#985




&nbsp;

&nbsp;
Expand Down Expand Up @@ -155,24 +170,4 @@ Commit [89b9c2cecceee0ea04471c7c406ece82ff115555](https://github.com/StoneCypher

Author: `John Haugeland <stonecypher@gmail.com>`

* promote circular_queue_js to dep instead of devdep for downstreams




&nbsp;

&nbsp;

<a name="5__73__0" />

## [5.73.0] - 6/27/2022 2:36:36 AM

Commit [39f9a8671a45e1e9a903289431bc3bc7a1e292e5](https://github.com/StoneCypher/jssm/commit/39f9a8671a45e1e9a903289431bc3bc7a1e292e5)

Author: `John Haugeland <stonecypher@gmail.com>`

Merges [f1a61f1, c494012]

* Merge pull request #504 from StoneCypher/AddHistoryAndCircularBuffer
* Working history, fixes StoneCypher/fsl#950, fixes StoneCypher/fsl#951,fixes StoneCypher/fsl#948, fixes StoneCypher/fsl#949, fixes StoneCypher/fsl#947, fixes StoneCypher/fsl#946, fixes StoneCypher/fsl#203
* promote circular_queue_js to dep instead of devdep for downstreams
6 changes: 5 additions & 1 deletion src/md/README_base.md
Expand Up @@ -2,7 +2,11 @@

Easy. Small. Fast. TS, es6, es5. Node, Browser. 100% coverage. Property
tests. Fuzz tests. Language tests for a dozen languages and emoji. Easy to
share online. Easy to embed. ***{{test_count}} tests***.
share online. Easy to embed.

***{{test_count}} tests***. {{spec_count}} specs with {{spec_coverage}}%
coverage, {{stoch_count}} fuzz tests with {{stoch_coverage}}% coverage, run
{{run_count}} times.

Readable, useful state machines as one-liner strings.

Expand Down
2 changes: 1 addition & 1 deletion src/ts/version.ts
@@ -1,3 +1,3 @@

const version: string = "5.75.0";
const version: string = "5.75.1";
export { version };

0 comments on commit 2526a1b

Please sign in to comment.