@takazudo/zfb-md-wasm 4.4.0 → 4.5.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 CHANGED
@@ -31,10 +31,10 @@ 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.4.0) | Exact runtime values | Exact exported types |
34
+ | Entry | gzip-9 wasm (4.5.0) | Exact runtime values | Exact exported types |
35
35
  | ------------- | -------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
36
36
  | `.` | 1,521,735 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,816 B | `init`, `highlightCode`, `version`, `__forceTrapForTests`, `__getTrapRecoveryStateForTests`, `ZfbMdWasmTrapError`, `ZfbMdWasmTrapRecoveryLimitError` | `HighlightRole`, `HighlightCodeOptions`, `HighlightCodeResult`, `HighlightDiagnostic`, `HighlightDiagnosticSource` |
37
+ | `./highlight` | 817,815 B | `init`, `highlightCode`, `version`, `__forceTrapForTests`, `__getTrapRecoveryStateForTests`, `ZfbMdWasmTrapError`, `ZfbMdWasmTrapRecoveryLimitError` | `HighlightRole`, `HighlightCodeOptions`, `HighlightCodeResult`, `HighlightDiagnostic`, `HighlightDiagnosticSource` |
38
38
  | `./render` | 1,094,951 B | `init`, `renderHtml`, `version`, `ZfbMdWasmTrapError`, `ZfbMdWasmTrapRecoveryLimitError`, `__forceTrapForTests`, `__getTrapRecoveryStateForTests` | `RenderHtmlResult`, `Diagnostic`, `DiagnosticSource`, `ZfbMdWasmOptions`, `ParseDialect`, `PipelineOptions`, `GfmOptions`, `CodeHighlightMode`, `CodeHighlightOptions`, `MarkdownFeaturesConfig`, `HighlightRole` |
39
39
  | `./parse` | 285,917 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
 
@@ -705,7 +705,7 @@ 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,816 B gzip-9 versus
708
+ proven SWC-free — and its payload shows it: 817,815 B gzip-9 versus
709
709
  1,521,735 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
@@ -743,14 +743,14 @@ 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.4.0** artifact rows — optimized final wasm after
746
+ These are the shipped **4.5.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
 
750
750
  | Entry/graph | final wasm | gzip-9 | glue | glue gzip-9 |
751
751
  | ----------- | ----------: | ----------: | -------: | ----------: |
752
752
  | root (full) | 3,393,574 B | 1,521,735 B | 14,998 B | 4,199 B |
753
- | highlight | 1,537,593 B | 817,816 B | 8,758 B | 2,637 B |
753
+ | highlight | 1,537,593 B | 817,815 B | 8,758 B | 2,637 B |
754
754
  | render | 2,200,768 B | 1,094,951 B | 8,772 B | 2,661 B |
755
755
  | parse | 703,433 B | 285,917 B | 11,159 B | 3,797 B |
756
756
 
@@ -758,8 +758,8 @@ 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 78,265 B (root), 62,184 B (highlight), 5,049 B
762
- (render), and 39,083 B (parse) of headroom. These are 4.4.0 measurements, not
761
+ inside their ceilings, with 78,265 B (root), 62,185 B (highlight), 5,049 B
762
+ (render), and 39,083 B (parse) of headroom. These are 4.5.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].
@@ -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,855,981 B smaller raw and 703,919 B
790
+ highlight: the highlight artifact is 1,855,981 B smaller raw and 703,920 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.4.0",
4
+ "version": "4.5.0",
5
5
  "artifacts": [
6
6
  {
7
7
  "entry": ".",
8
8
  "path": "dist/wasm/zfb_md_wasm_bg.wasm",
9
9
  "bytes": 3393574,
10
- "sha256": "6accef831845b29c245323a9d6dcb92daa0814988d4502d0955e8fae2a7454d3"
10
+ "sha256": "08e086c9b3f7d4616bec6035f418d3d31d2172181ada377e1656f0a6bdb5a39f"
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": "4151bd6a142fbb6808de40461dca62001d1a3ea07fc8e866a39209f6bd078119"
16
+ "sha256": "45687ad525a16472680e1aade6b4f0299678cf7810e16156ae13204c96067677"
17
17
  },
18
18
  {
19
19
  "entry": "./render",
20
20
  "path": "dist/wasm-render/zfb_md_wasm_render_bg.wasm",
21
21
  "bytes": 2200768,
22
- "sha256": "b96d16a5e9ec69e989a95033b11c5aa04c11dde51e5be476b677e65401861000"
22
+ "sha256": "791da800480617e343e1bd03abc1d5fc57c2ef81352db935640c685d8df6d0d1"
23
23
  },
24
24
  {
25
25
  "entry": "./parse",
26
26
  "path": "dist/wasm-parse/zfb_md_wasm_parse_bg.wasm",
27
27
  "bytes": 703433,
28
- "sha256": "b7439a93c10de5f2450a875bfe750d28193d51b044bc5b6796cee37747bd6f43"
28
+ "sha256": "d03dcdbf6221a8b24fb84b1059209e618dc3786bbf0f80d3605e0823c876fc04"
29
29
  }
30
30
  ]
31
31
  }
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takazudo/zfb-md-wasm",
3
- "version": "4.4.0",
3
+ "version": "4.5.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).",