@stream-mdx/worker 0.0.2 → 0.1.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/CHANGELOG.md +23 -0
- package/README.md +10 -0
- package/dist/hosted/markdown-worker.js +82193 -393
- package/dist/node/index.cjs +75 -0
- package/dist/node/index.d.cts +29 -0
- package/dist/node/index.d.ts +29 -0
- package/dist/node/index.mjs +38 -0
- package/dist/node/worker-thread-entry.cjs +75 -0
- package/dist/node/worker-thread-entry.d.cts +1 -0
- package/dist/node/worker-thread-entry.d.ts +1 -0
- package/dist/node/worker-thread-entry.mjs +72 -0
- package/dist/worker-client.d.cts +4 -1
- package/dist/worker-client.d.ts +4 -1
- package/package.json +12 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @stream-mdx/worker
|
|
2
2
|
|
|
3
|
+
## 0.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 294e557: Release StreamMDX 0.1.0 across all published packages.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [294e557]
|
|
12
|
+
- @stream-mdx/core@0.1.0
|
|
13
|
+
- @stream-mdx/plugins@0.1.0
|
|
14
|
+
|
|
15
|
+
## 0.0.3
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 47d1374: Add opt-in streaming format anticipation and an optional Mermaid diagram addon for ` ```mermaid ` code blocks.
|
|
20
|
+
- 7c79f09: Port the docs demo page to match the ql-homepage streaming UI, and fix several streaming parser/rendering edge cases (hard line breaks and display-math handling) while keeping the hosted worker bundle self-contained for static hosting.
|
|
21
|
+
- Updated dependencies [47d1374]
|
|
22
|
+
- Updated dependencies [7c79f09]
|
|
23
|
+
- @stream-mdx/core@0.0.3
|
|
24
|
+
- @stream-mdx/plugins@0.0.3
|
|
25
|
+
|
|
3
26
|
## 0.0.2
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -25,6 +25,16 @@ Then point StreamMDX at it:
|
|
|
25
25
|
<StreamingMarkdown worker="/workers/markdown-worker.js" />
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
+
## Node / CLI worker threads
|
|
29
|
+
|
|
30
|
+
To run the hosted worker bundle in Node (e.g., Ink TUIs), use:
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
import { createWorkerThread } from "@stream-mdx/worker/node";
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
This spawns a `worker_threads` worker and installs WebWorker-like shims so the hosted bundle can run under Node.
|
|
37
|
+
|
|
28
38
|
## MDX compilation parity helper
|
|
29
39
|
|
|
30
40
|
If you compile MDX on the server (e.g. Next.js API route), use the same compilation logic as the worker:
|