@takazudo/zfb-md-wasm 4.2.1 → 4.3.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 +12 -5
- package/dist/shipped-artifacts.json +31 -0
- package/dist/wasm/zfb_md_wasm_bg.wasm +0 -0
- package/dist/wasm-highlight/zfb_md_wasm_highlight_bg.wasm +0 -0
- package/dist/wasm-parse/zfb_md_wasm_parse_bg.wasm +0 -0
- package/dist/wasm-render/zfb_md_wasm_render_bg.wasm +0 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -31,12 +31,12 @@ migration. `./highlight` is also backward-compatible. New `./render` and
|
|
|
31
31
|
`zfb-render` but intentionally retain `zfb-content` and `syntect-fancy`.
|
|
32
32
|
`./parse` is not syntect-free.
|
|
33
33
|
|
|
34
|
-
| Entry | gzip-9 wasm (4.
|
|
34
|
+
| Entry | gzip-9 wasm (4.3.0) | Exact runtime values | Exact exported types |
|
|
35
35
|
| ------------- | -------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
36
36
|
| `.` | 1,518,981 B | `init`, `compile`, `renderHtml`, `parseToAst`, `highlightCode`, `version`, `__forceTrapForTests`, `__getTrapRecoveryStateForTests`, `toMdastRoot`, `ZfbMdWasmTrapError`, `ZfbMdWasmTrapRecoveryLimitError`, `MdastAdapterError` | Full current compile/render/parse/raw-mdast/highlight surface |
|
|
37
37
|
| `./highlight` | 817,809 B | `init`, `highlightCode`, `version`, `__forceTrapForTests`, `__getTrapRecoveryStateForTests`, `ZfbMdWasmTrapError`, `ZfbMdWasmTrapRecoveryLimitError` | `HighlightRole`, `HighlightCodeOptions`, `HighlightCodeResult`, `HighlightDiagnostic`, `HighlightDiagnosticSource` |
|
|
38
38
|
| `./render` | 1,093,973 B | `init`, `renderHtml`, `version`, `ZfbMdWasmTrapError`, `ZfbMdWasmTrapRecoveryLimitError`, `__forceTrapForTests`, `__getTrapRecoveryStateForTests` | `RenderHtmlResult`, `Diagnostic`, `DiagnosticSource`, `ZfbMdWasmOptions`, `ParseDialect`, `PipelineOptions`, `GfmOptions`, `CodeHighlightMode`, `CodeHighlightOptions`, `MarkdownFeaturesConfig`, `HighlightRole` |
|
|
39
|
-
| `./parse` | 284,
|
|
39
|
+
| `./parse` | 284,334 B | `init`, `parseToAst`, `toMdastRoot`, `MdastAdapterError`, `version`, `ZfbMdWasmTrapError`, `ZfbMdWasmTrapRecoveryLimitError`, `__forceTrapForTests`, `__getTrapRecoveryStateForTests` | `ParseToAstResult`, `ParseToAstOptions`, `ParseDialect`, `FrontmatterPolicy`, `ParsePipelineOptions`, `Diagnostic`, `DiagnosticSource`, `AstPoint`, `AstPosition`, `RawMdastData`, `MarkdownRsStop`, `MdastNode`, `MdastRoot`, `UnknownMdastNode`, `Root`, `Paragraph`, `Heading`, `ThematicBreak`, `Blockquote`, `List`, `ListItem`, `Html`, `Code`, `Definition`, `Text`, `DirectiveNodeBase`, `ContainerDirective`, `LeafDirective`, `TextDirective`, `Emphasis`, `Strong`, `InlineCode`, `Break`, `Link`, `Image`, `ReferenceKind`, `LinkReference`, `ImageReference`, `FootnoteDefinition`, `FootnoteReference`, `TableAlign`, `Table`, `TableRow`, `TableCell`, `Delete`, `Yaml`, `MdxFlowExpression`, `MdxTextExpression`, `MdxJsxFlowElement`, `MdxJsxTextElement`, `MdxJsxAttributeContent`, `MdxJsxAttribute`, `MdxJsxAttributeValueExpression`, `MdxJsxExpressionAttribute` |
|
|
40
40
|
|
|
41
41
|
The focused entries own private resource pairs:
|
|
42
42
|
|
|
@@ -743,7 +743,7 @@ three-step repair sequence:
|
|
|
743
743
|
they are compressor output (CI prints a warning inside the band), while
|
|
744
744
|
final wasm and glue remain byte-exact.
|
|
745
745
|
|
|
746
|
-
These are the shipped **4.
|
|
746
|
+
These are the shipped **4.3.0** artifact rows — optimized final wasm after
|
|
747
747
|
wasm-bindgen and wasm-opt, Node `gzipSync(..., { level: 9 })`, and glue
|
|
748
748
|
bytes/gzip:
|
|
749
749
|
|
|
@@ -752,14 +752,14 @@ bytes/gzip:
|
|
|
752
752
|
| root (full) | 3,390,113 B | 1,518,981 B | 14,998 B | 4,199 B |
|
|
753
753
|
| highlight | 1,537,593 B | 817,809 B | 8,758 B | 2,637 B |
|
|
754
754
|
| render | 2,197,301 B | 1,093,973 B | 8,772 B | 2,661 B |
|
|
755
|
-
| parse | 700,375 B | 284,
|
|
755
|
+
| parse | 700,375 B | 284,334 B | 11,159 B | 3,797 B |
|
|
756
756
|
|
|
757
757
|
The #2447 decision snapshot measured the split package at 3,638,607 B versus
|
|
758
758
|
2,314,818 B for the root-plus-highlight package. Locked gzip-9 ceilings are
|
|
759
759
|
root 1,600,000 B, highlight 880,000 B, render 1,100,000 B, and parse
|
|
760
760
|
325,000 B; the complete packed tarball ceiling is 3,900,000 B. All four ship
|
|
761
761
|
inside their ceilings, with 81,019 B (root), 62,191 B (highlight), 6,027 B
|
|
762
|
-
(render), and 40,
|
|
762
|
+
(render), and 40,666 B (parse) of headroom. These are 4.3.0 measurements, not
|
|
763
763
|
permanent promises — re-measure against the version you actually install.
|
|
764
764
|
The clean four-step production ceiling is 210 seconds; the selected #2447
|
|
765
765
|
median was 155.015 s [153.496, 165.977].
|
|
@@ -773,6 +773,13 @@ patch whose compiled code is identical and whose byte sizes do not move at all.
|
|
|
773
773
|
If you verify these artifacts by content digest rather than by semver, re-pin on
|
|
774
774
|
every upgrade; never read "sizes unchanged" as "nothing to re-verify".
|
|
775
775
|
|
|
776
|
+
The package exports `@takazudo/zfb-md-wasm/shipped-artifacts.json` (the
|
|
777
|
+
`./shipped-artifacts.json` subpath). Its `schemaVersion`, `name`, and `version`
|
|
778
|
+
identify the manifest, and its ordered `artifacts` array records each `entry`,
|
|
779
|
+
package-relative `path`, `bytes`, and `sha256`. The build generates it
|
|
780
|
+
from the final `.wasm` files in `dist`; release CI checks it against both `dist`
|
|
781
|
+
and the packed tarball. Reading the JSON does not initialize WebAssembly.
|
|
782
|
+
|
|
776
783
|
Gating `swc_core` out of the highlight graph (#2449/#2450) was a
|
|
777
784
|
**provability win, not a size win**. The #2447 SWC-retaining baseline was
|
|
778
785
|
1,484,705 B raw and 767,009 B gzip-9; the #2450 result was 7,965 B smaller
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"name": "@takazudo/zfb-md-wasm",
|
|
4
|
+
"version": "4.3.0",
|
|
5
|
+
"artifacts": [
|
|
6
|
+
{
|
|
7
|
+
"entry": ".",
|
|
8
|
+
"path": "dist/wasm/zfb_md_wasm_bg.wasm",
|
|
9
|
+
"bytes": 3390113,
|
|
10
|
+
"sha256": "462057d3f6851490e7f4a57b265706c3bd75a371123130feceafb115c6115785"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"entry": "./highlight",
|
|
14
|
+
"path": "dist/wasm-highlight/zfb_md_wasm_highlight_bg.wasm",
|
|
15
|
+
"bytes": 1537593,
|
|
16
|
+
"sha256": "1249425a674b5554bd75c31bc2d59c833d00a0e6459c90c9f15aafbae4f4202f"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"entry": "./render",
|
|
20
|
+
"path": "dist/wasm-render/zfb_md_wasm_render_bg.wasm",
|
|
21
|
+
"bytes": 2197301,
|
|
22
|
+
"sha256": "405a6b1cff82801683645fa94ab22573cc3f7c07793b0791c39dacbc27286425"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"entry": "./parse",
|
|
26
|
+
"path": "dist/wasm-parse/zfb_md_wasm_parse_bg.wasm",
|
|
27
|
+
"bytes": 700375,
|
|
28
|
+
"sha256": "9f53c40d552c2fb4c563646138873324b0e760d3c8fcbf3fb7ab9b776775e04b"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takazudo/zfb-md-wasm",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "zfb's md/mdx -> JS/HTML conversion pipeline compiled to WebAssembly, for browser-side dynamic conversion (CMS live preview with parity to zfb's production output).",
|
|
@@ -49,7 +49,8 @@
|
|
|
49
49
|
"workerd": "./dist/parse-workerd.js",
|
|
50
50
|
"browser": "./dist/parse-browser.js",
|
|
51
51
|
"default": "./dist/parse.js"
|
|
52
|
-
}
|
|
52
|
+
},
|
|
53
|
+
"./shipped-artifacts.json": "./dist/shipped-artifacts.json"
|
|
53
54
|
},
|
|
54
55
|
"files": [
|
|
55
56
|
"dist",
|