@stream-mdx/worker 0.1.1 → 0.2.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.
@@ -1,4 +1,4 @@
1
- import { WorkerOut, FormatAnticipationConfig } from '@stream-mdx/core';
1
+ import { WorkerOut, FormatAnticipationConfig, CodeHighlightingMode, CodeHighlightOutputMode } from '@stream-mdx/core';
2
2
 
3
3
  type DefaultWorkerMode = "auto" | "hosted" | "blob";
4
4
  interface CreateDefaultWorkerOptions {
@@ -55,8 +55,14 @@ declare class MarkdownWorkerClient {
55
55
  callouts?: boolean;
56
56
  math?: boolean;
57
57
  formatAnticipation?: FormatAnticipationConfig;
58
+ codeHighlighting?: CodeHighlightingMode;
59
+ outputMode?: CodeHighlightOutputMode;
58
60
  liveCodeHighlighting?: boolean;
59
61
  mdxComponentNames?: string[];
62
+ lazyTokenization?: {
63
+ enabled?: boolean;
64
+ thresholdLines?: number;
65
+ };
60
66
  }, mdxOptions?: {
61
67
  compileMode?: "server" | "worker";
62
68
  }): void;
@@ -1,4 +1,4 @@
1
- import { WorkerOut, FormatAnticipationConfig } from '@stream-mdx/core';
1
+ import { WorkerOut, FormatAnticipationConfig, CodeHighlightingMode, CodeHighlightOutputMode } from '@stream-mdx/core';
2
2
 
3
3
  type DefaultWorkerMode = "auto" | "hosted" | "blob";
4
4
  interface CreateDefaultWorkerOptions {
@@ -55,8 +55,14 @@ declare class MarkdownWorkerClient {
55
55
  callouts?: boolean;
56
56
  math?: boolean;
57
57
  formatAnticipation?: FormatAnticipationConfig;
58
+ codeHighlighting?: CodeHighlightingMode;
59
+ outputMode?: CodeHighlightOutputMode;
58
60
  liveCodeHighlighting?: boolean;
59
61
  mdxComponentNames?: string[];
62
+ lazyTokenization?: {
63
+ enabled?: boolean;
64
+ thresholdLines?: number;
65
+ };
60
66
  }, mdxOptions?: {
61
67
  compileMode?: "server" | "worker";
62
68
  }): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-mdx/worker",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "description": "Worker client utilities and shared worker helpers for the Streaming Markdown V2 pipeline",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -63,8 +63,8 @@
63
63
  "@lezer/common": "^1.2.3",
64
64
  "@lezer/lr": "^1.4.2",
65
65
  "@lezer/markdown": "^1.3.0",
66
- "@stream-mdx/core": "0.1.1",
67
- "@stream-mdx/plugins": "0.1.1",
66
+ "@stream-mdx/core": "0.2.0",
67
+ "@stream-mdx/plugins": "0.2.0",
68
68
  "@mdx-js/mdx": "^3.1.0",
69
69
  "@shikijs/engine-javascript": "^1.29.2",
70
70
  "@shikijs/engine-oniguruma": "^1.29.2",