@takazudo/zfb-md-wasm 4.3.1 → 4.3.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.
- package/README.md +15 -15
- package/dist/shipped-artifacts.json +8 -8
- 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 +1 -1
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.3.
|
|
34
|
+
| Entry | gzip-9 wasm (4.3.3) | Exact runtime values | Exact exported types |
|
|
35
35
|
| ------------- | -------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
36
|
-
| `.` | 1,
|
|
37
|
-
| `./highlight` | 817,
|
|
38
|
-
| `./render` | 1,
|
|
39
|
-
| `./parse` | 284,
|
|
36
|
+
| `.` | 1,519,893 B | `init`, `compile`, `renderHtml`, `parseToAst`, `highlightCode`, `version`, `__forceTrapForTests`, `__getTrapRecoveryStateForTests`, `toMdastRoot`, `ZfbMdWasmTrapError`, `ZfbMdWasmTrapRecoveryLimitError`, `MdastAdapterError` | Full current compile/render/parse/raw-mdast/highlight surface |
|
|
37
|
+
| `./highlight` | 817,815 B | `init`, `highlightCode`, `version`, `__forceTrapForTests`, `__getTrapRecoveryStateForTests`, `ZfbMdWasmTrapError`, `ZfbMdWasmTrapRecoveryLimitError` | `HighlightRole`, `HighlightCodeOptions`, `HighlightCodeResult`, `HighlightDiagnostic`, `HighlightDiagnosticSource` |
|
|
38
|
+
| `./render` | 1,094,209 B | `init`, `renderHtml`, `version`, `ZfbMdWasmTrapError`, `ZfbMdWasmTrapRecoveryLimitError`, `__forceTrapForTests`, `__getTrapRecoveryStateForTests` | `RenderHtmlResult`, `Diagnostic`, `DiagnosticSource`, `ZfbMdWasmOptions`, `ParseDialect`, `PipelineOptions`, `GfmOptions`, `CodeHighlightMode`, `CodeHighlightOptions`, `MarkdownFeaturesConfig`, `HighlightRole` |
|
|
39
|
+
| `./parse` | 284,532 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
|
|
|
@@ -705,8 +705,8 @@ suite gates exact-match). Deliberate limitations of the browser build:
|
|
|
705
705
|
- **Choose a focused artifact for non-compile calls.** The root remains the
|
|
706
706
|
compatibility entry and carries the complete compiler graph. `./highlight`
|
|
707
707
|
keeps its public API and resources while the post-#2449/#2450 graph is
|
|
708
|
-
proven SWC-free — and its payload shows it: 817,
|
|
709
|
-
1,
|
|
708
|
+
proven SWC-free — and its payload shows it: 817,815 B gzip-9 versus
|
|
709
|
+
1,519,893 B for root. `./render` and `./parse` are also SWC-free and omit
|
|
710
710
|
`zfb-render`; parse intentionally retains `zfb-content`/`syntect-fancy`, so
|
|
711
711
|
it is not syntect-free. Use `./render` or `./parse` when a consumer does
|
|
712
712
|
not need `compile`; root and highlight callers otherwise require no
|
|
@@ -743,23 +743,23 @@ 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.3.
|
|
746
|
+
These are the shipped **4.3.3** 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
|
|
|
750
750
|
| Entry/graph | final wasm | gzip-9 | glue | glue gzip-9 |
|
|
751
751
|
| ----------- | ----------: | ----------: | -------: | ----------: |
|
|
752
|
-
| root (full) | 3,390,
|
|
753
|
-
| highlight | 1,537,593 B | 817,
|
|
754
|
-
| render | 2,
|
|
755
|
-
| parse |
|
|
752
|
+
| root (full) | 3,390,904 B | 1,519,893 B | 14,998 B | 4,199 B |
|
|
753
|
+
| highlight | 1,537,593 B | 817,815 B | 8,758 B | 2,637 B |
|
|
754
|
+
| render | 2,198,163 B | 1,094,209 B | 8,772 B | 2,661 B |
|
|
755
|
+
| parse | 701,081 B | 284,532 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
|
-
inside their ceilings, with
|
|
762
|
-
(render), and 40,
|
|
761
|
+
inside their ceilings, with 80,107 B (root), 62,185 B (highlight), 5,791 B
|
|
762
|
+
(render), and 40,468 B (parse) of headroom. These are 4.3.3 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].
|
|
@@ -787,7 +787,7 @@ raw and 8,765 B smaller gzip-9 (758,244 B) — wasm-opt was already
|
|
|
787
787
|
dead-stripping the unreachable `swc_core`, and #2450's exact-parity and
|
|
788
788
|
no-`swc_core` assertions turned that emergent property into a guaranteed one.
|
|
789
789
|
The delta that matters to a highlight-only consumer is root versus
|
|
790
|
-
highlight: the highlight artifact is 1,
|
|
790
|
+
highlight: the highlight artifact is 1,853,311 B smaller raw and 702,078 B
|
|
791
791
|
smaller gzip-9, landing at about 45% of root's raw bytes and 54% of its
|
|
792
792
|
gzipped bytes.
|
|
793
793
|
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "@takazudo/zfb-md-wasm",
|
|
4
|
-
"version": "4.3.
|
|
4
|
+
"version": "4.3.3",
|
|
5
5
|
"artifacts": [
|
|
6
6
|
{
|
|
7
7
|
"entry": ".",
|
|
8
8
|
"path": "dist/wasm/zfb_md_wasm_bg.wasm",
|
|
9
|
-
"bytes":
|
|
10
|
-
"sha256": "
|
|
9
|
+
"bytes": 3390904,
|
|
10
|
+
"sha256": "c2fad8badd27868abb53f56e1f4381fb2719972c20207751646e60ce58473e58"
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
"entry": "./highlight",
|
|
14
14
|
"path": "dist/wasm-highlight/zfb_md_wasm_highlight_bg.wasm",
|
|
15
15
|
"bytes": 1537593,
|
|
16
|
-
"sha256": "
|
|
16
|
+
"sha256": "c72c2a4121472d94061481d7e35cbcdeb662c641d02689eb151318e53880ce95"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"entry": "./render",
|
|
20
20
|
"path": "dist/wasm-render/zfb_md_wasm_render_bg.wasm",
|
|
21
|
-
"bytes":
|
|
22
|
-
"sha256": "
|
|
21
|
+
"bytes": 2198163,
|
|
22
|
+
"sha256": "53a0c6332bd610b5075f8658cab6fe276301c1d99b982220f2d956b738dc0b68"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"entry": "./parse",
|
|
26
26
|
"path": "dist/wasm-parse/zfb_md_wasm_parse_bg.wasm",
|
|
27
|
-
"bytes":
|
|
28
|
-
"sha256": "
|
|
27
|
+
"bytes": 701081,
|
|
28
|
+
"sha256": "78f9e754428c247e47a328ed33a08868f2f09036eaab9f39ca05b451d9ed1b30"
|
|
29
29
|
}
|
|
30
30
|
]
|
|
31
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.
|
|
3
|
+
"version": "4.3.3",
|
|
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).",
|