ts-graphviz 1.5.1 → 1.5.2-dev.2db2ba0c3

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/README.md CHANGED
@@ -540,6 +540,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
540
540
  </tr>
541
541
  <tr>
542
542
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/robross0606"><img src="https://avatars.githubusercontent.com/u/2965467?v=4?s=100" width="100px;" alt="robross0606"/><br /><sub><b>robross0606</b></sub></a><br /><a href="#ideas-robross0606" title="Ideas, Planning, & Feedback">🤔</a></td>
543
+ <td align="center" valign="top" width="14.28%"><a href="https://blake-regalia.net"><img src="https://avatars.githubusercontent.com/u/1456400?v=4?s=100" width="100px;" alt="Blake Regalia"/><br /><sub><b>Blake Regalia</b></sub></a><br /><a href="https://github.com/ts-graphviz/ts-graphviz/issues?q=author%3Ablake-regalia" title="Bug reports">🐛</a></td>
543
544
  </tr>
544
545
  </tbody>
545
546
  </table>
@@ -1219,7 +1219,7 @@ type EdgeAttributeKey =
1219
1219
  | 'weight'
1220
1220
  | 'xlabel'
1221
1221
  | 'xlp'
1222
- | '_class';
1222
+ | 'class';
1223
1223
  /**
1224
1224
  * Attribute types available for nodes.
1225
1225
  * @group Attribute
@@ -1273,7 +1273,7 @@ type NodeAttributeKey =
1273
1273
  | 'xlabel'
1274
1274
  | 'xlp'
1275
1275
  | 'z'
1276
- | '_class';
1276
+ | 'class';
1277
1277
  /**
1278
1278
  * Attribute types available for graph.
1279
1279
  * @group Attribute
@@ -1377,7 +1377,7 @@ type GraphAttributeKey =
1377
1377
  | 'viewport'
1378
1378
  | 'voro_margin'
1379
1379
  | 'xdotversion'
1380
- | '_class';
1380
+ | 'class';
1381
1381
  /**
1382
1382
  * Attribute types available for subgraph.
1383
1383
  * @group Attribute
@@ -1417,7 +1417,7 @@ type ClusterSubgraphAttributeKey =
1417
1417
  | 'style'
1418
1418
  | 'target'
1419
1419
  | 'tooltip'
1420
- | '_class';
1420
+ | 'class';
1421
1421
  /**
1422
1422
  * Attribute types.
1423
1423
  * @group Attribute
@@ -1439,7 +1439,7 @@ interface KeyValueMapping {
1439
1439
  bgcolor: Color | ColorList;
1440
1440
  center: boolean;
1441
1441
  charset: string;
1442
- _class: string;
1442
+ class: string;
1443
1443
  clusterrank: ClusterMode;
1444
1444
  color: Color | ColorList;
1445
1445
  colorscheme: string;
@@ -205,7 +205,7 @@ interface AttributeKeyDict {
205
205
  * @graphvizDefault ""
206
206
  * @graphvizUsedBy ENCG
207
207
  */
208
- _class: '_class';
208
+ class: 'class';
209
209
  /**
210
210
  * Mode used for handling clusters.
211
211
  * If clusterrank is "local", a subgraph whose name begins with "cluster" is given special treatment.
package/package.json CHANGED
@@ -1,125 +1,125 @@
1
1
  {
2
- "name": "ts-graphviz",
3
- "version": "1.5.1",
4
- "author": "kamiazya <yuki@kamiazya.tech>",
5
- "description": "Graphviz library for TypeScript.",
6
- "homepage": "https://ts-graphviz.github.io/ts-graphviz/",
7
- "type": "module",
8
- "repository": {
9
- "type": "git",
10
- "url": "https://github.com/ts-graphviz/ts-graphviz.git"
11
- },
12
- "keywords": [
13
- "graphviz",
14
- "dot"
15
- ],
16
- "bugs": {
17
- "url": "https://github.com/ts-graphviz/ts-graphviz/issues"
18
- },
19
- "funding": {
20
- "type": "github",
21
- "url": "https://github.com/sponsors/kamiazya"
22
- },
23
- "main": "./lib/index.cjs",
24
- "module": "./lib/index.js",
25
- "types": "lib/index.d.ts",
26
- "exports": {
27
- ".": {
28
- "require": {
29
- "types": "./lib/index.d.ts",
30
- "default": "./lib/index.cjs"
31
- },
32
- "import": {
33
- "types": "./lib/index.d.ts",
34
- "default": "./lib/index.js"
35
- }
2
+ "name": "ts-graphviz",
3
+ "version": "1.5.2-dev.2db2ba0c3",
4
+ "author": "kamiazya <yuki@kamiazya.tech>",
5
+ "description": "Graphviz library for TypeScript.",
6
+ "homepage": "https://ts-graphviz.github.io/ts-graphviz/",
7
+ "type": "module",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/ts-graphviz/ts-graphviz.git"
36
11
  },
37
- "./ast": {
38
- "require": {
39
- "types": "./lib/ast/index.d.ts",
40
- "default": "./lib/ast/index.cjs"
41
- },
42
- "import": {
43
- "types": "./lib/ast/index.d.ts",
44
- "default": "./lib/ast/index.js"
45
- }
12
+ "keywords": [
13
+ "graphviz",
14
+ "dot"
15
+ ],
16
+ "bugs": {
17
+ "url": "https://github.com/ts-graphviz/ts-graphviz/issues"
46
18
  },
47
- "./adapter": {
48
- "browser": {
49
- "require": "./lib/adapter/browser/index.cjs",
50
- "import": "./lib/adapter/browser/index.js",
51
- "types": "./lib/adapter/browser/index.d.ts"
52
- },
53
- "deno": {
54
- "types": "./lib/adapter/deno/mod.d.ts",
55
- "default": "./lib/adapter/deno/mod.js"
56
- },
57
- "node": {
58
- "require": "./lib/adapter/node/index.cjs",
59
- "import": "./lib/adapter/node/index.js",
60
- "types": "./lib/adapter/node/index.d.ts"
61
- },
62
- "default": {
63
- "types": "./lib/adapter/node/index.d.ts",
64
- "require": "./lib/adapter/node/index.cjs",
65
- "import": "./lib/adapter/node/index.js"
66
- }
19
+ "funding": {
20
+ "type": "github",
21
+ "url": "https://github.com/sponsors/kamiazya"
67
22
  },
68
- "./package.json": "./package.json"
69
- },
70
- "typesVersions": {
71
- "*": {
72
- "ast": [
73
- "lib/ast"
74
- ],
75
- "adapter": [
76
- "lib/adapter/node"
77
- ]
23
+ "main": "./lib/index.cjs",
24
+ "module": "./lib/index.js",
25
+ "types": "lib/index.d.ts",
26
+ "exports": {
27
+ ".": {
28
+ "require": {
29
+ "types": "./lib/index.d.ts",
30
+ "default": "./lib/index.cjs"
31
+ },
32
+ "import": {
33
+ "types": "./lib/index.d.ts",
34
+ "default": "./lib/index.js"
35
+ }
36
+ },
37
+ "./ast": {
38
+ "require": {
39
+ "types": "./lib/ast/index.d.ts",
40
+ "default": "./lib/ast/index.cjs"
41
+ },
42
+ "import": {
43
+ "types": "./lib/ast/index.d.ts",
44
+ "default": "./lib/ast/index.js"
45
+ }
46
+ },
47
+ "./adapter": {
48
+ "browser": {
49
+ "require": "./lib/adapter/browser/index.cjs",
50
+ "import": "./lib/adapter/browser/index.js",
51
+ "types": "./lib/adapter/browser/index.d.ts"
52
+ },
53
+ "deno": {
54
+ "types": "./lib/adapter/deno/mod.d.ts",
55
+ "default": "./lib/adapter/deno/mod.js"
56
+ },
57
+ "node": {
58
+ "require": "./lib/adapter/node/index.cjs",
59
+ "import": "./lib/adapter/node/index.js",
60
+ "types": "./lib/adapter/node/index.d.ts"
61
+ },
62
+ "default": {
63
+ "types": "./lib/adapter/node/index.d.ts",
64
+ "require": "./lib/adapter/node/index.cjs",
65
+ "import": "./lib/adapter/node/index.js"
66
+ }
67
+ },
68
+ "./package.json": "./package.json"
69
+ },
70
+ "typesVersions": {
71
+ "*": {
72
+ "ast": [
73
+ "lib/ast"
74
+ ],
75
+ "adapter": [
76
+ "lib/adapter/node"
77
+ ]
78
+ }
79
+ },
80
+ "license": "MIT",
81
+ "engines": {
82
+ "node": ">=14.16"
83
+ },
84
+ "runkitExampleFilename": "example/runkit.cjs",
85
+ "scripts": {
86
+ "build:peggy": "peggy --plugin ts-pegjs --extra-options-file src/ast/dot-shim/parser/peggy.options.json -o src/ast/dot-shim/parser/_parse.ts src/ast/dot-shim/parser/dot.peggy",
87
+ "prebuild": "yarn build:peggy",
88
+ "build:deno": "mkdir -p lib/adapter/deno && cp -r src/adapter/deno/* lib/adapter/deno && sed -i \"s/index.ts/index.js/g\" lib/adapter/deno/mod.js && sed -i \"s/index.ts/index.d.ts/g\" lib/adapter/deno/mod.d.ts",
89
+ "build:node": "tsc -p tsconfig.build.json && rollup -c",
90
+ "build": "yarn build:node && yarn build:deno",
91
+ "postbuild": "prettier --write ./lib/**/*.{js,cjs,d.ts}",
92
+ "pretest": "yarn build:peggy",
93
+ "test": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest",
94
+ "format": "eslint --ext ts src --fix && prettier --write './**/*.{ts,js,json,yaml}' '!lib'",
95
+ "lint": "eslint --ext ts src",
96
+ "predoc": "yarn build:peggy",
97
+ "doc": "typedoc"
98
+ },
99
+ "devDependencies": {
100
+ "@rollup/plugin-replace": "^4.0.0",
101
+ "@types/jest": "^28.1.6",
102
+ "@types/jest-specific-snapshot": "^0.5.6",
103
+ "@typescript-eslint/eslint-plugin": "^5.33.0",
104
+ "@typescript-eslint/parser": "^5.33.0",
105
+ "eslint": "^8.22.0",
106
+ "eslint-config-prettier": "^8.5.0",
107
+ "eslint-plugin-import": "^2.26.0",
108
+ "eslint-plugin-jest": "^26.8.2",
109
+ "eslint-plugin-prettier": "^4.2.1",
110
+ "jest": "^28.1.3",
111
+ "jest-snapshot-serializer-raw": "^1.2.0",
112
+ "jest-specific-snapshot": "^5.0.0",
113
+ "peggy": "^2.0.1",
114
+ "prettier": "^2.7.1",
115
+ "prettier-plugin-pegjs": "^0.5.0",
116
+ "rollup": "^2.77.3",
117
+ "rollup-plugin-delete": "^2.0.0",
118
+ "rollup-plugin-dts": "^4.2.2",
119
+ "svgo": "^2.8.0",
120
+ "ts-jest": "^28.0.7",
121
+ "ts-pegjs": "^2.1.0",
122
+ "typedoc": "^0.23.15",
123
+ "typescript": "^4.7.4"
78
124
  }
79
- },
80
- "license": "MIT",
81
- "engines": {
82
- "node": ">=14.16"
83
- },
84
- "runkitExampleFilename": "example/runkit.cjs",
85
- "scripts": {
86
- "build:peggy": "peggy --plugin ts-pegjs --extra-options-file src/ast/dot-shim/parser/peggy.options.json -o src/ast/dot-shim/parser/_parse.ts src/ast/dot-shim/parser/dot.peggy",
87
- "prebuild": "yarn build:peggy",
88
- "build:deno": "mkdir -p lib/adapter/deno && cp -r src/adapter/deno/* lib/adapter/deno && sed -i \"s/index.ts/index.js/g\" lib/adapter/deno/mod.js && sed -i \"s/index.ts/index.d.ts/g\" lib/adapter/deno/mod.d.ts",
89
- "build:node": "tsc -p tsconfig.build.json && rollup -c",
90
- "build": "yarn build:node && yarn build:deno",
91
- "postbuild": "prettier --write ./lib/**/*.{js,cjs,d.ts}",
92
- "pretest": "yarn build:peggy",
93
- "test": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest",
94
- "format": "eslint --ext ts src --fix && prettier --write './**/*.{ts,js,json,yaml}' '!lib'",
95
- "lint": "eslint --ext ts src",
96
- "predoc": "yarn build:peggy",
97
- "doc": "typedoc"
98
- },
99
- "devDependencies": {
100
- "@rollup/plugin-replace": "^4.0.0",
101
- "@types/jest": "^28.1.6",
102
- "@types/jest-specific-snapshot": "^0.5.6",
103
- "@typescript-eslint/eslint-plugin": "^5.33.0",
104
- "@typescript-eslint/parser": "^5.33.0",
105
- "eslint": "^8.22.0",
106
- "eslint-config-prettier": "^8.5.0",
107
- "eslint-plugin-import": "^2.26.0",
108
- "eslint-plugin-jest": "^26.8.2",
109
- "eslint-plugin-prettier": "^4.2.1",
110
- "jest": "^28.1.3",
111
- "jest-snapshot-serializer-raw": "^1.2.0",
112
- "jest-specific-snapshot": "^5.0.0",
113
- "peggy": "^2.0.1",
114
- "prettier": "^2.7.1",
115
- "prettier-plugin-pegjs": "^0.5.0",
116
- "rollup": "^2.77.3",
117
- "rollup-plugin-delete": "^2.0.0",
118
- "rollup-plugin-dts": "^4.2.2",
119
- "svgo": "^2.8.0",
120
- "ts-jest": "^28.0.7",
121
- "ts-pegjs": "^2.1.0",
122
- "typedoc": "^0.23.15",
123
- "typescript": "^4.7.4"
124
- }
125
- }
125
+ }