@fraczak/k 8.0.0 → 8.1.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 +24 -0
- package/DOCS/CODECS.md +22 -24
- package/DOCS/CODEC_ARCHITECTURE.md +3 -5
- package/DOCS/JSON_APPROACHES_COMPARISON.md +9 -13
- package/DOCS/WEB_REPL_REQUIREMENTS.md +3 -4
- package/Examples/djson.k +631 -165
- package/README.md +1 -3
- package/browser/repl-browser.mjs +0 -4
- package/browser/vfs-data.mjs +3 -9
- package/codecs/README.md +1 -3
- package/codecs/djson.mjs +375 -84
- package/package.json +1 -4
- package/scripts/build-repl-html.mjs +1 -11
- package/scripts/run-tests.mjs +5 -0
- package/tests/test-codecs.mjs +4 -34
- package/tests/test-djson-methods.mjs +285 -0
- package/tests/test-repl-html.mjs +0 -4
- package/tests/test-repl.mjs +14 -55
- package/Examples/djson-btrie.k +0 -414
- package/Examples/djson-ptrie.k +0 -663
- package/codecs/djson-btrie.mjs +0 -560
- package/codecs/djson-ptrie.mjs +0 -587
- package/scripts/perf-djson.mjs +0 -1142
- package/tests/bench-djson-tries.mjs +0 -340
package/README.md
CHANGED
|
@@ -248,9 +248,7 @@ For a detailed guide to all four formats, commands, and workflows, see
|
|
|
248
248
|
| Command | Purpose |
|
|
249
249
|
| --- | --- |
|
|
250
250
|
| `k-json` | Convert JSON to/from binary stream (specializing) |
|
|
251
|
-
| `k-djson` | Convert JSON to/from dynamic JSON (
|
|
252
|
-
| `k-djson-btrie` | Convert JSON to/from binary bit-trie dynamic JSON |
|
|
253
|
-
| `k-djson-ptrie` | Convert JSON to/from radix trie dynamic JSON |
|
|
251
|
+
| `k-djson` | Convert JSON to/from dynamic JSON (binary bit-trie) |
|
|
254
252
|
| `k-int` | Convert decimal integers to/from binary stream |
|
|
255
253
|
| `k-ieee` | Convert float literals to/from binary stream |
|
|
256
254
|
| `k-unit` | Produce or validate the unit value |
|
package/browser/repl-browser.mjs
CHANGED
|
@@ -633,11 +633,7 @@ function renderCodecsModal() {
|
|
|
633
633
|
} else if (entry.name === "json.mjs") {
|
|
634
634
|
targetDesc = "Self-describing JSON";
|
|
635
635
|
} else if (entry.name === "djson.mjs") {
|
|
636
|
-
targetDesc = "$ json (cons-list)";
|
|
637
|
-
} else if (entry.name === "djson-btrie.mjs") {
|
|
638
636
|
targetDesc = "$ json (binary bit-trie)";
|
|
639
|
-
} else if (entry.name === "djson-ptrie.mjs") {
|
|
640
|
-
targetDesc = "$ json (radix/Patricia trie)";
|
|
641
637
|
} else if (Array.isArray(entry.patterns) && entry.patterns.length > 0) {
|
|
642
638
|
targetDesc = `Pattern Family (${entry.patterns.length})`;
|
|
643
639
|
} else if (entry.pattern) {
|