@zenuml/core 3.39.0 → 3.39.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/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@zenuml/core",
3
- "version": "3.39.0",
3
+ "version": "3.39.1",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "url": "https://github.com/mermaid-js/zenuml-core"
8
8
  },
9
9
  "scripts": {
10
- "dev": "vite dev --port 8080 --host 0.0.0.0",
11
- "preview": "vite preview --port 8080 --host",
12
- "build:site": "vite build",
13
- "build:gh-pages": "vite build --mode gh-pages",
14
- "build": "vite build -c vite.config.lib.ts",
15
- "test": "vitest",
10
+ "dev": "bun run --bun vite dev --port 8080 --host 0.0.0.0",
11
+ "preview": "bun run --bun vite preview --port 8080 --host",
12
+ "build:site": "bun run --bun vite build",
13
+ "build:gh-pages": "bun run --bun vite build --mode gh-pages",
14
+ "build": "bun run --bun vite build -c vite.config.lib.ts",
15
+ "test": "bun run --bun vitest --config vitest.config.ts",
16
16
  "pw": "playwright test",
17
- "pw:ci": "playwright test --reporter=github",
17
+ "pw:ci": "playwright test",
18
18
  "pw:update": "playwright test --update-snapshots",
19
19
  "pw:update-ci": "playwright test --update-snapshots --reporter=github",
20
20
  "pw:ui": "playwright test --ui",
@@ -24,22 +24,22 @@
24
24
  "antlr:generate": "pwd && cd ./src/g4-units/hello-world && antlr4 Hello.g4",
25
25
  "antlr:javac": "pwd && cd ./src/g4-units/hello-world && CLASSPATH=\"../../../antlr/antlr-4.11.1-complete.jar:$CLASSPATH\" javac *.java",
26
26
  "antlr:grun": "pwd && cd ./src/g4-units/hello-world && grun Hello r -tokens",
27
- "antlr": "pnpm run antlr:lexer && pnpm run antlr:parser",
27
+ "antlr": "bun run antlr:lexer && bun run antlr:parser",
28
28
  "antlr:clear": "rm -rf src/generated-parser/*",
29
29
  "antlr:lexer": "java -Duser.dir=$(pwd)/src/g4 -cp $(pwd)/antlr/antlr-4.11.1-complete.jar org.antlr.v4.Tool -o ./src/generated-parser -Dlanguage=JavaScript sequenceLexer.g4",
30
30
  "antlr:parser": "java -Duser.dir=$(pwd)/src/g4 -cp $(pwd)/antlr/antlr-4.11.1-complete.jar org.antlr.v4.Tool -o ./src/generated-parser -Dlanguage=JavaScript sequenceParser.g4",
31
- "eslint": "eslint --fix --ext .js,.ts,.tsx,.jsx src",
32
- "prettier": "prettier --write --ignore-unknown \"src/**/*.{js,ts,vue,json,htm,html}\"",
31
+ "eslint": "bun run --bun eslint --fix --ext .js,.ts,.tsx,.jsx src",
32
+ "prettier": "bun run --bun prettier --write --ignore-unknown \"src/**/*.{js,ts,vue,json,htm,html}\"",
33
33
  "git:branch:clean:gone": "git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -d",
34
34
  "git:branch:clean:merged": "git branch --merged|egrep -v \"(\\*|master|main|dev|skip_branch_name)\" | xargs git branch -d",
35
35
  "git:branch:safe-delete": "echo '> git log --graph --left-right --cherry --oneline another-branch...main'",
36
36
  "git:forget": "git rm -r --cached . && git add . && git commit -m \"Forget all ignored files\"",
37
37
  "test:specs": "echo \"Error: test:specs is not supported\"",
38
- "storybook": "storybook dev -p 6006",
39
- "build-storybook": "storybook build",
40
- "worker:dev": "pnpm build:site && wrangler dev",
41
- "worker:deploy": "pnpm build:site && wrangler deploy",
42
- "worker:deploy:staging": "pnpm build:site && wrangler deploy --env staging"
38
+ "storybook": "bun run --bun storybook dev -p 6006",
39
+ "build-storybook": "bun run --bun storybook build",
40
+ "worker:dev": "bun run build:site && bun run --bun wrangler dev",
41
+ "worker:deploy": "bun run build:site && bun run --bun wrangler deploy",
42
+ "worker:deploy:staging": "bun run build:site && bun run --bun wrangler deploy --env staging"
43
43
  },
44
44
  "main": "./dist/zenuml.js",
45
45
  "module": "./dist/zenuml.esm.mjs",
@@ -72,6 +72,7 @@
72
72
  "html-to-image": "^1.11.13",
73
73
  "immer": "^10.1.1",
74
74
  "jotai": "^2.12.2",
75
+ "lodash": "^4.17.21",
75
76
  "marked": "^4.3.0",
76
77
  "pako": "^2.1.0",
77
78
  "pino": "^8.8.0",
@@ -6,9 +6,10 @@ export default defineConfig({
6
6
  forbidOnly: !!process.env.CI,
7
7
  retries: process.env.CI ? 2 : 0,
8
8
  workers: process.env.CI ? 1 : undefined,
9
+ outputDir: "test-results/",
9
10
  reporter: process.env.CI
10
- ? [["github"], ["html", { open: "never" }]]
11
- : [["html"]],
11
+ ? [["github"], ["html", { open: "never", outputFolder: "playwright-report" }]]
12
+ : [["html", { outputFolder: "playwright-report" }]],
12
13
  use: {
13
14
  baseURL: "http://127.0.0.1:8080",
14
15
  trace: "on-first-retry",
@@ -28,7 +29,7 @@ export default defineConfig({
28
29
  },
29
30
  ],
30
31
  webServer: {
31
- command: "pnpm dev",
32
+ command: "bun run dev",
32
33
  url: "http://127.0.0.1:8080",
33
34
  reuseExistingServer: !process.env.CI,
34
35
  timeout: 120 * 1000,
package/vite.config.ts CHANGED
@@ -53,18 +53,4 @@ export default defineConfig(({ mode }) => ({
53
53
  },
54
54
  },
55
55
  },
56
- test: {
57
- // used by vitest: https://vitest.dev/guide/#configuring-vitest
58
- environment: "jsdom",
59
- reportOnFailure: true,
60
- globals: true,
61
- coverage: {
62
- provider: "v8", // or 'v8'
63
- },
64
- setupFiles: resolve(__dirname, "test/setup.ts"),
65
- exclude: [
66
- "node_modules/**",
67
- "tests/**", // Exclude Playwright tests
68
- ],
69
- },
70
56
  }));
@@ -0,0 +1,20 @@
1
+ import { defineConfig } from "vitest/config";
2
+ import { resolve } from "path";
3
+
4
+ export default defineConfig({
5
+ test: {
6
+ environment: "jsdom",
7
+ globals: true,
8
+ setupFiles: resolve(__dirname, "test/setup.ts"),
9
+ include: [
10
+ "src/**/*.{test,spec}.{js,ts,jsx,tsx}",
11
+ "test/**/*.{test,spec}.{js,ts,jsx,tsx}",
12
+ ],
13
+ exclude: [
14
+ "node_modules/**",
15
+ "tests/**", // Exclude Playwright tests
16
+ "**/tests/**/*.spec.ts", // Exclude Playwright test files specifically
17
+ "**/tests/**/*.spec.js", // Exclude Playwright test files specifically
18
+ ],
19
+ },
20
+ });