@ts-graphviz/core 0.0.0-pr956-20240225160253 → 2.0.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/CHANGELOG.md +9 -5
- package/lib/core.cjs +2 -0
- package/lib/core.d.ts +2 -0
- package/lib/core.js +3 -1
- package/lib/register-default.cjs +11 -7
- package/lib/register-default.d.ts +2 -0
- package/lib/register-default.js +12 -7
- package/package.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# @ts-graphviz/core
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 2.0.0
|
|
4
4
|
|
|
5
5
|
### Major Changes
|
|
6
6
|
|
|
7
|
-
- [`
|
|
7
|
+
- [#956](https://github.com/ts-graphviz/ts-graphviz/pull/956) [`1e4f57a`](https://github.com/ts-graphviz/ts-graphviz/commit/1e4f57aee8a97fa79240c002ef4925b0fa6a0548) Thanks [@kamiazya](https://github.com/kamiazya)! - # ts-graphviz v2
|
|
8
8
|
|
|
9
9
|
## Why?
|
|
10
10
|
|
|
@@ -296,6 +296,10 @@
|
|
|
296
296
|
|
|
297
297
|
### Patch Changes
|
|
298
298
|
|
|
299
|
-
-
|
|
300
|
-
|
|
301
|
-
|
|
299
|
+
- [#966](https://github.com/ts-graphviz/ts-graphviz/pull/966) [`d579034`](https://github.com/ts-graphviz/ts-graphviz/commit/d579034d3b834eceafa4aa290c0e0d4fd74a5192) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps-dev): bump vite-plugin-dts from 3.7.2 to 3.7.3
|
|
300
|
+
|
|
301
|
+
- [#970](https://github.com/ts-graphviz/ts-graphviz/pull/970) [`54f4565`](https://github.com/ts-graphviz/ts-graphviz/commit/54f45653d89640a16b6baa1a005e963b349fd2cd) Thanks [@dependabot](https://github.com/apps/dependabot)! - build(deps-dev): bump @types/node from 20.11.20 to 20.11.24
|
|
302
|
+
|
|
303
|
+
- Updated dependencies [[`d579034`](https://github.com/ts-graphviz/ts-graphviz/commit/d579034d3b834eceafa4aa290c0e0d4fd74a5192), [`54f4565`](https://github.com/ts-graphviz/ts-graphviz/commit/54f45653d89640a16b6baa1a005e963b349fd2cd), [`1e4f57a`](https://github.com/ts-graphviz/ts-graphviz/commit/1e4f57aee8a97fa79240c002ef4925b0fa6a0548)]:
|
|
304
|
+
- @ts-graphviz/common@2.0.0
|
|
305
|
+
- @ts-graphviz/ast@2.0.0
|
package/lib/core.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const registerDefault = require("./register-default.cjs");
|
|
3
4
|
const AttributeList = require("./AttributeList.cjs");
|
|
4
5
|
const AttributesBase = require("./AttributesBase.cjs");
|
|
5
6
|
const AttributesGroup = require("./AttributesGroup.cjs");
|
|
@@ -11,6 +12,7 @@ const GraphBase = require("./GraphBase.cjs");
|
|
|
11
12
|
const Node = require("./Node.cjs");
|
|
12
13
|
const RootGraph = require("./RootGraph.cjs");
|
|
13
14
|
const Subgraph = require("./Subgraph.cjs");
|
|
15
|
+
exports.registerDefault = registerDefault.registerDefault;
|
|
14
16
|
exports.AttributeList = AttributeList.AttributeList;
|
|
15
17
|
exports.AttributesBase = AttributesBase.AttributesBase;
|
|
16
18
|
exports.AttributesGroup = AttributesGroup.AttributesGroup;
|
package/lib/core.d.ts
CHANGED
|
@@ -528,6 +528,8 @@ export declare class Node extends DotObject_9 implements NodeModel {
|
|
|
528
528
|
port(port: string | Partial<Port>): ForwardRefNode;
|
|
529
529
|
}
|
|
530
530
|
|
|
531
|
+
export declare function registerDefault(): void;
|
|
532
|
+
|
|
531
533
|
/**
|
|
532
534
|
* Base class representing a root graph(digraph, graph).
|
|
533
535
|
* @group Models
|
package/lib/core.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { registerDefault } from "./register-default.js";
|
|
1
2
|
import { AttributeList } from "./AttributeList.js";
|
|
2
3
|
import { AttributesBase } from "./AttributesBase.js";
|
|
3
4
|
import { AttributesGroup } from "./AttributesGroup.js";
|
|
@@ -20,5 +21,6 @@ export {
|
|
|
20
21
|
GraphBase,
|
|
21
22
|
Node,
|
|
22
23
|
RootGraph,
|
|
23
|
-
Subgraph
|
|
24
|
+
Subgraph,
|
|
25
|
+
registerDefault
|
|
24
26
|
};
|
package/lib/register-default.cjs
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
3
|
const common = require("@ts-graphviz/common");
|
|
3
4
|
const Digraph = require("./Digraph.cjs");
|
|
4
5
|
const Edge = require("./Edge.cjs");
|
|
5
6
|
const Graph = require("./Graph.cjs");
|
|
6
7
|
const Node = require("./Node.cjs");
|
|
7
8
|
const Subgraph = require("./Subgraph.cjs");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
function registerDefault() {
|
|
10
|
+
Object.assign(common.RootModelsContext, {
|
|
11
|
+
Graph: Graph.Graph,
|
|
12
|
+
Digraph: Digraph.Digraph,
|
|
13
|
+
Subgraph: Subgraph.Subgraph,
|
|
14
|
+
Node: Node.Node,
|
|
15
|
+
Edge: Edge.Edge
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
exports.registerDefault = registerDefault;
|
package/lib/register-default.js
CHANGED
|
@@ -4,10 +4,15 @@ import { Edge } from "./Edge.js";
|
|
|
4
4
|
import { Graph } from "./Graph.js";
|
|
5
5
|
import { Node } from "./Node.js";
|
|
6
6
|
import { Subgraph } from "./Subgraph.js";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
function registerDefault() {
|
|
8
|
+
Object.assign(RootModelsContext, {
|
|
9
|
+
Graph,
|
|
10
|
+
Digraph,
|
|
11
|
+
Subgraph,
|
|
12
|
+
Node,
|
|
13
|
+
Edge
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
registerDefault
|
|
18
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ts-graphviz/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Graphviz Models for Object-Oriented Programming",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"graphviz",
|
|
@@ -27,9 +27,6 @@
|
|
|
27
27
|
],
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"author": "Yuki Yamazaki <yuki@kamiazya.tech>",
|
|
30
|
-
"sideEffects": [
|
|
31
|
-
"./lib/register-default.*"
|
|
32
|
-
],
|
|
33
30
|
"type": "module",
|
|
34
31
|
"exports": {
|
|
35
32
|
".": {
|
|
@@ -58,13 +55,13 @@
|
|
|
58
55
|
"LICENSE"
|
|
59
56
|
],
|
|
60
57
|
"dependencies": {
|
|
61
|
-
"@ts-graphviz/ast": "^
|
|
62
|
-
"@ts-graphviz/common": "^
|
|
58
|
+
"@ts-graphviz/ast": "^2.0.0",
|
|
59
|
+
"@ts-graphviz/common": "^2.0.0"
|
|
63
60
|
},
|
|
64
61
|
"devDependencies": {
|
|
65
62
|
"typescript": "^5.3.3",
|
|
66
63
|
"vite": "^5.1.3",
|
|
67
|
-
"vite-plugin-dts": "^3.7.
|
|
64
|
+
"vite-plugin-dts": "^3.7.3"
|
|
68
65
|
},
|
|
69
66
|
"engines": {
|
|
70
67
|
"node": ">=18"
|