@stream-mdx/core 0.1.0 → 0.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @stream-mdx/core
2
2
 
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Refine streaming scheduling and list layout, add worker append batching/debug state support, and refresh docs/README examples.
8
+
3
9
  ## 0.1.0
4
10
 
5
11
  ### Minor Changes
package/README.md CHANGED
@@ -41,3 +41,9 @@ export function makeConfig(overrides?: Partial<typeof DEFAULT_BACKPRESSURE_CONFI
41
41
 
42
42
  - API reference: `docs/PUBLIC_API.md`
43
43
  - Security model: `docs/SECURITY_MODEL.md`
44
+
45
+ ## Related packages
46
+
47
+ - `@stream-mdx/react` for the React renderer
48
+ - `@stream-mdx/worker` for hosted worker bundles
49
+ - `@stream-mdx/mermaid` for Mermaid diagram rendering (optional)
package/dist/types.d.cts CHANGED
@@ -135,6 +135,8 @@ type WorkerIn = {
135
135
  text: string;
136
136
  } | {
137
137
  type: "FINALIZE";
138
+ } | {
139
+ type: "DEBUG_STATE";
138
140
  } | {
139
141
  type: "MDX_COMPILED";
140
142
  blockId: string;
@@ -167,6 +169,23 @@ type WorkerOut = {
167
169
  } | {
168
170
  type: "METRICS";
169
171
  metrics: PerformanceMetrics;
172
+ } | {
173
+ type: "DEBUG_STATE";
174
+ state: {
175
+ contentLength: number;
176
+ contentTail: string;
177
+ blockCount: number;
178
+ blockTypeCounts: Record<string, number>;
179
+ lastBlockType?: string;
180
+ lastBlockRange?: {
181
+ from: number;
182
+ to: number;
183
+ };
184
+ lastBlockRawTail?: string;
185
+ hasInlineCodeHeading: boolean;
186
+ hasCodeBlocksHeading: boolean;
187
+ hasMediaHeading: boolean;
188
+ };
170
189
  } | {
171
190
  type: "ERROR";
172
191
  phase: WorkerPhase;
package/dist/types.d.ts CHANGED
@@ -135,6 +135,8 @@ type WorkerIn = {
135
135
  text: string;
136
136
  } | {
137
137
  type: "FINALIZE";
138
+ } | {
139
+ type: "DEBUG_STATE";
138
140
  } | {
139
141
  type: "MDX_COMPILED";
140
142
  blockId: string;
@@ -167,6 +169,23 @@ type WorkerOut = {
167
169
  } | {
168
170
  type: "METRICS";
169
171
  metrics: PerformanceMetrics;
172
+ } | {
173
+ type: "DEBUG_STATE";
174
+ state: {
175
+ contentLength: number;
176
+ contentTail: string;
177
+ blockCount: number;
178
+ blockTypeCounts: Record<string, number>;
179
+ lastBlockType?: string;
180
+ lastBlockRange?: {
181
+ from: number;
182
+ to: number;
183
+ };
184
+ lastBlockRawTail?: string;
185
+ hasInlineCodeHeading: boolean;
186
+ hasCodeBlocksHeading: boolean;
187
+ hasMediaHeading: boolean;
188
+ };
170
189
  } | {
171
190
  type: "ERROR";
172
191
  phase: WorkerPhase;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-mdx/core",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Core types, snapshot utilities, and perf helpers for the Streaming Markdown V2 stack",
5
5
  "license": "MIT",
6
6
  "repository": {