@zenuml/core 3.47.4 → 3.47.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenuml/core",
3
- "version": "3.47.4",
3
+ "version": "3.47.6",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -77,7 +77,7 @@
77
77
  "clsx": "^2.1.1",
78
78
  "color-string": "^2.1.4",
79
79
  "dompurify": "^3.3.1",
80
- "highlight.js": "^10.7.3",
80
+ "highlight.js": "^11.10.0",
81
81
  "html-to-image": "^1.11.13",
82
82
  "immer": "^10.2.0",
83
83
  "jotai": "^2.16.1",
@@ -102,7 +102,6 @@
102
102
  "@testing-library/react": "^16.3.1",
103
103
  "@types/antlr4": "~4.11.6",
104
104
  "@types/color-string": "^1.5.5",
105
- "@types/highlight.js": "^10.1.0",
106
105
  "@types/jsdom": "^21.1.7",
107
106
  "@types/marked": "^4.3.2",
108
107
  "@types/node": "^22.19.3",
@@ -131,8 +130,7 @@
131
130
  "vite": "^6.4.1",
132
131
  "vite-plugin-css-injected-by-js": "^3.5.2",
133
132
  "vite-plugin-svgr": "^4.5.0",
134
- "vite-svg-loader": "^5.1.0",
135
133
  "vitest": "^3.2.4",
136
- "wrangler": "^4.54.0"
134
+ "wrangler": "^4.88"
137
135
  }
138
136
  }
@@ -36,6 +36,7 @@ function manualChunks(id: string) {
36
36
 
37
37
  export default defineConfig({
38
38
  build: {
39
+ target: "esnext",
39
40
  // https://vitejs.dev/guide/build.html#library-mode
40
41
  lib: {
41
42
  entry: resolve(__dirname, "src/core.tsx"),
package/vite.config.ts CHANGED
@@ -16,6 +16,11 @@ const packageJson = JSON.parse(
16
16
  readFileSync(resolve(__dirname, "package.json"), "utf-8"),
17
17
  );
18
18
 
19
+ // e2e fixtures and test-compression.html are served via the Vite dev server
20
+ // (Playwright launches `bun run dev` — see playwright.config.ts), so they
21
+ // don't need to be part of the production site build. Set INCLUDE_E2E_HTML=1
22
+ // to bundle them into a built site (rare; only needed if hosting the
23
+ // fixtures statically instead of running them via dev server).
19
24
  function getE2eHtmlFiles() {
20
25
  const e2eFolder = resolve(__dirname, "e2e");
21
26
  const strings = execSync(`find ${e2eFolder} -name '*.html'`)
@@ -26,14 +31,16 @@ function getE2eHtmlFiles() {
26
31
  return strings;
27
32
  }
28
33
 
29
- const e2eHtmlFiles = getE2eHtmlFiles();
34
+ const includeE2eHtml = process.env.INCLUDE_E2E_HTML === "1";
35
+ const e2eHtmlFiles = includeE2eHtml ? getE2eHtmlFiles() : [];
36
+ const optionalDevHtml = includeE2eHtml ? ["test-compression.html"] : [];
30
37
 
31
38
  export default defineConfig(({ mode }) => ({
32
39
  base: mode === "gh-pages" ? "/zenuml-core/" : "/",
33
40
  build: {
34
41
  target: "esnext",
35
42
  rollupOptions: {
36
- input: ["index.html", "embed.html", "renderer.html", "test-compression.html", ...e2eHtmlFiles],
43
+ input: ["index.html", "embed.html", "renderer.html", ...optionalDevHtml, ...e2eHtmlFiles],
37
44
  },
38
45
  },
39
46
  resolve: {
package/wrangler.toml CHANGED
@@ -8,5 +8,11 @@ directory = "dist"
8
8
  [env.production]
9
9
  name = "zenuml-web-renderer"
10
10
 
11
+ [env.production.assets]
12
+ directory = "dist"
13
+
11
14
  [env.staging]
12
- name = "zenuml-web-renderer-staging"
15
+ name = "zenuml-web-renderer-staging"
16
+
17
+ [env.staging.assets]
18
+ directory = "dist"