@mdfriday/foundry 26.2.4 → 26.2.6

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.
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ (() => {
3
+ // internal/application/worker/worker-browser.ts
4
+ if (typeof self.importScripts === "function") {
5
+ try {
6
+ self.importScripts("workerpool");
7
+ } catch (e) {
8
+ console.error("Failed to import workerpool:", e);
9
+ }
10
+ }
11
+ self.addEventListener("message", async (event) => {
12
+ const task = event.data;
13
+ try {
14
+ self.postMessage({
15
+ success: false,
16
+ error: "Browser worker needs special initialization. Use workerpool.pool() with proper options."
17
+ });
18
+ } catch (error) {
19
+ const message = error instanceof Error ? error.message : String(error);
20
+ self.postMessage({
21
+ success: false,
22
+ error: message
23
+ });
24
+ }
25
+ });
26
+ })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mdfriday/foundry",
3
- "version": "26.2.4",
3
+ "version": "26.2.6",
4
4
  "description": "The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -43,6 +43,7 @@
43
43
  "@types/jszip": "^3.4.0",
44
44
  "@types/node": "^24.5.0",
45
45
  "@types/terser": "^3.8.1",
46
+ "@types/workerpool": "^6.4.7",
46
47
  "@types/ws": "^8.18.1",
47
48
  "@typescript-eslint/eslint-plugin": "^6.13.1",
48
49
  "@typescript-eslint/parser": "^6.13.1",
@@ -86,6 +87,7 @@
86
87
  "terser": "^5.43.1",
87
88
  "unified": "^11.0.5",
88
89
  "unist-util-visit": "^5.1.0",
90
+ "workerpool": "^10.0.1",
89
91
  "ws": "^8.18.3"
90
92
  }
91
93
  }