@takazudo/zfb-md-wasm 2.14.3 → 2.15.1

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,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 (2.14.2) | Exact runtime values | Exact exported types |
35
- | --- | ---: | --- | --- |
36
- | `.` | 1,443,040 B | `init`, `compile`, `renderHtml`, `parseToAst`, `highlightCode`, `version`, `__forceTrapForTests`, `__getTrapRecoveryStateForTests`, `toMdastRoot`, `ZfbMdWasmTrapError`, `ZfbMdWasmTrapRecoveryLimitError`, `MdastAdapterError` | Full current compile/render/parse/raw-mdast/highlight surface |
37
- | `./highlight` | 758,248 B | `init`, `highlightCode`, `version`, `__forceTrapForTests`, `__getTrapRecoveryStateForTests`, `ZfbMdWasmTrapError`, `ZfbMdWasmTrapRecoveryLimitError` | `HighlightRole`, `HighlightCodeOptions`, `HighlightCodeResult`, `HighlightDiagnostic`, `HighlightDiagnosticSource` |
38
- | `./render` | 1,010,797 B | `init`, `renderHtml`, `version`, `ZfbMdWasmTrapError`, `ZfbMdWasmTrapRecoveryLimitError`, `__forceTrapForTests`, `__getTrapRecoveryStateForTests` | `RenderHtmlResult`, `Diagnostic`, `DiagnosticSource`, `ZfbMdWasmOptions`, `ParseDialect`, `PipelineOptions`, `GfmOptions`, `CodeHighlightMode`, `CodeHighlightOptions`, `MarkdownFeaturesConfig`, `JsxRuntime`, `HighlightRole` |
39
- | `./parse` | 261,099 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` |
34
+ | Entry | gzip-9 wasm (2.15.0) | Exact runtime values | Exact exported types |
35
+ | ------------- | -------------------: | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
36
+ | `.` | 1,514,540 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,922 B | `init`, `highlightCode`, `version`, `__forceTrapForTests`, `__getTrapRecoveryStateForTests`, `ZfbMdWasmTrapError`, `ZfbMdWasmTrapRecoveryLimitError` | `HighlightRole`, `HighlightCodeOptions`, `HighlightCodeResult`, `HighlightDiagnostic`, `HighlightDiagnosticSource` |
38
+ | `./render` | 1,088,858 B | `init`, `renderHtml`, `version`, `ZfbMdWasmTrapError`, `ZfbMdWasmTrapRecoveryLimitError`, `__forceTrapForTests`, `__getTrapRecoveryStateForTests` | `RenderHtmlResult`, `Diagnostic`, `DiagnosticSource`, `ZfbMdWasmOptions`, `ParseDialect`, `PipelineOptions`, `GfmOptions`, `CodeHighlightMode`, `CodeHighlightOptions`, `MarkdownFeaturesConfig`, `JsxRuntime`, `HighlightRole` |
39
+ | `./parse` | 281,394 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
 
@@ -683,8 +683,8 @@ suite gates exact-match). Deliberate limitations of the browser build:
683
683
  - **Choose a focused artifact for non-compile calls.** The root remains the
684
684
  compatibility entry and carries the complete compiler graph. `./highlight`
685
685
  keeps its public API and resources while the post-#2449/#2450 graph is
686
- proven SWC-free — and its payload shows it: 758,248 B gzip-9 versus
687
- 1,443,040 B for root. `./render` and `./parse` are also SWC-free and omit
686
+ proven SWC-free — and its payload shows it: 817,922 B gzip-9 versus
687
+ 1,514,540 B for root. `./render` and `./parse` are also SWC-free and omit
688
688
  `zfb-render`; parse intentionally retains `zfb-content`/`syntect-fancy`, so
689
689
  it is not syntect-free. Use `./render` or `./parse` when a consumer does
690
690
  not need `compile`; root and highlight callers otherwise require no
@@ -717,24 +717,27 @@ three-step repair sequence:
717
717
  `BUILD_LOG=/tmp/zfb-md-wasm-build.log; node crates/zfb-md-wasm/npm/scripts/build.mjs 2>&1 | tee "$BUILD_LOG"`.
718
718
  2. Run `node scripts/assert-zfb-md-wasm-budgets.mjs --build-log "$BUILD_LOG" --dist crates/zfb-md-wasm/npm/dist --update-manifest`.
719
719
  3. Run `node scripts/assert-md-wasm-size-docs.mjs --fix`, then `pnpm format:mdx`.
720
+ `gzip-9` and `glue gzip-9` are compared with a 64-byte tolerance because
721
+ they are compressor output (CI prints a warning inside the band), while
722
+ final wasm and glue remain byte-exact.
720
723
 
721
- These are the shipped **2.14.2** artifact rows — optimized final wasm after
724
+ These are the shipped **2.15.0** artifact rows — optimized final wasm after
722
725
  wasm-bindgen and wasm-opt, Node `gzipSync(..., { level: 9 })`, and glue
723
726
  bytes/gzip:
724
727
 
725
- | Entry/graph | final wasm | gzip-9 | glue | glue gzip-9 |
726
- | --- | ---: | ---: | ---: | ---: |
727
- | root (full) | 3,294,286 B | 1,443,040 B | 14,998 B | 4,199 B |
728
- | highlight | 1,476,740 B | 758,248 B | 8,758 B | 2,637 B |
729
- | render | 2,082,385 B | 1,010,797 B | 8,772 B | 2,661 B |
730
- | parse | 646,115 B | 261,099 B | 11,159 B | 3,797 B |
728
+ | Entry/graph | final wasm | gzip-9 | glue | glue gzip-9 |
729
+ | ----------- | ----------: | ----------: | -------: | ----------: |
730
+ | root (full) | 3,394,144 B | 1,514,540 B | 14,998 B | 4,199 B |
731
+ | highlight | 1,539,186 B | 817,922 B | 8,758 B | 2,637 B |
732
+ | render | 2,189,671 B | 1,088,858 B | 8,772 B | 2,661 B |
733
+ | parse | 693,479 B | 281,394 B | 11,159 B | 3,797 B |
731
734
 
732
735
  The #2447 decision snapshot measured the split package at 3,638,607 B versus
733
736
  2,314,818 B for the root-plus-highlight package. Locked gzip-9 ceilings are
734
- root 1,600,000 B, highlight 820,000 B, render 1,100,000 B, and parse
737
+ root 1,600,000 B, highlight 880,000 B, render 1,100,000 B, and parse
735
738
  325,000 B; the complete packed tarball ceiling is 3,900,000 B. All four ship
736
- inside their ceilings, with 156,960 B (root), 61,752 B (highlight), 89,203 B
737
- (render), and 63,901 B (parse) of headroom. These are 2.14.2 measurements, not
739
+ inside their ceilings, with 85,460 B (root), 62,078 B (highlight), 11,142 B
740
+ (render), and 43,606 B (parse) of headroom. These are 2.15.0 measurements, not
738
741
  permanent promises — re-measure against the version you actually install.
739
742
  The clean four-step production ceiling is 210 seconds; the selected #2447
740
743
  median was 155.015 s [153.496, 165.977].
@@ -746,14 +749,15 @@ raw and 8,765 B smaller gzip-9 (758,244 B) — wasm-opt was already
746
749
  dead-stripping the unreachable `swc_core`, and #2450's exact-parity and
747
750
  no-`swc_core` assertions turned that emergent property into a guaranteed one.
748
751
  The delta that matters to a highlight-only consumer is root versus
749
- highlight: the highlight artifact is 1,817,546 B smaller raw and 684,792 B
750
- smaller gzip-9, landing at about 45% of root's raw bytes and 53% of its
752
+ highlight: the highlight artifact is 1,854,958 B smaller raw and 696,618 B
753
+ smaller gzip-9, landing at about 45% of root's raw bytes and 54% of its
751
754
  gzipped bytes.
752
755
 
753
- Every shipped final wasm came in under its #2447 candidate measurement: root
754
- −62,869 B, highlight −7,965 B, render −39,844 B, parse −25,482 B. The glue
755
- rows moved the other way by a negligible amount (root +117 B, render +135 B,
756
- parse +18 B; highlight unchanged).
756
+ Unlike 2.14.2, the 2.14.3 root, highlight, and render final-wasm rows are
757
+ above their historical #2447 candidate measurements; parse remains below.
758
+ Those candidate measurements are diagnostic baselines, not ceilings. The
759
+ enforced gzip-9 ceilings and current headroom are listed above, and the glue
760
+ comparison to #2447 is unchanged from 2.14.2.
757
761
 
758
762
  ## Error / trap / re-init contract
759
763
 
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takazudo/zfb-md-wasm",
3
- "version": "2.14.3",
3
+ "version": "2.15.1",
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).",