@zenuml/core 4.1.0 → 4.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenuml/core",
3
- "version": "4.1.0",
3
+ "version": "4.2.0",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -8,7 +8,8 @@
8
8
  },
9
9
  "files": [
10
10
  "dist/",
11
- "types/"
11
+ "types/",
12
+ "!dist/**/*.map"
12
13
  ],
13
14
  "scripts": {
14
15
  "dev": "vite dev --port 14000 --host 0.0.0.0",
@@ -30,6 +31,7 @@
30
31
  "changeset:version": "changeset version",
31
32
  "release": "bun run build:release && changeset publish",
32
33
  "test": "bun test src test/unit",
34
+ "typecheck": "tsc -b",
33
35
  "parity:dualrun": "bun scripts/parity/dualrun-diff.mjs",
34
36
  "pw": "playwright test --reporter=list",
35
37
  "pw:ci": "playwright test",
@@ -131,10 +133,12 @@
131
133
  "@testing-library/jest-dom": "^6.9.1",
132
134
  "@testing-library/react": "^16.3.1",
133
135
  "@types/antlr4": "~4.11.6",
136
+ "@types/bun": "^1.3.14",
134
137
  "@types/color-string": "^1.5.5",
135
138
  "@types/jsdom": "^21.1.7",
136
139
  "@types/marked": "^4.3.2",
137
140
  "@types/node": "^22.19.3",
141
+ "@types/pngjs": "^6.0.5",
138
142
  "@types/react": "^19.2.7",
139
143
  "@types/react-dom": "^19.2.3",
140
144
  "@vitejs/plugin-react": "^4.7.0",
@@ -1,8 +1,15 @@
1
1
  /**
2
2
  * `@zenuml/core/parser` — headless, server-safe ANTLR parsing/validation for
3
3
  * ZenUML DSL. Unlike the default `@zenuml/core` entry (a browser/DOM bundle),
4
- * this subpath imports cleanly in Node and is reentrant (safe to call
5
- * repeatedly/concurrently it does not touch any shared module state).
4
+ * this subpath imports cleanly in Node, and `validate`/`parse` are reentrant:
5
+ * each call builds its own lexer/parser/error listener, so calls are safe to
6
+ * make repeatedly and concurrently.
7
+ *
8
+ * Import-time side effect: loading this module applies ZenUML's ANTLR prototype
9
+ * augmentation (methods such as `getFormattedText` are patched onto
10
+ * `antlr4.ParserRuleContext.prototype`). This is a one-time, process-wide
11
+ * mutation of the `antlr4` package you have installed — harmless on its own,
12
+ * but relevant if another library in the same process also depends on `antlr4`.
6
13
  */
7
14
 
8
15
  export interface ErrorDetail {
package/dist/CNAME.txt DELETED
@@ -1 +0,0 @@
1
- embed-viewer.zenuml.com