Skip to content

Commit beac31f

Browse files
authored
chore: use updated dagre package (#114)
1 parent 23b97e3 commit beac31f

File tree

4 files changed

+15
-23
lines changed

4 files changed

+15
-23
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"@authzed/spicedb-parser-js": "^1.0.5",
2121
"@aws-sdk/client-s3": "^3.0.0",
2222
"@bufbuild/protobuf": "^2.4.0",
23+
"@dagrejs/dagre": "^2.0.4",
2324
"@fontsource/roboto": "^5.1.1",
2425
"@fortawesome/fontawesome-svg-core": "^6.4.0",
2526
"@fortawesome/free-solid-svg-icons": "^6.2.1",
@@ -46,7 +47,6 @@
4647
"class-variance-authority": "^0.7.1",
4748
"clsx": "^2.1.1",
4849
"d3-scale-chromatic": "^2.0.0",
49-
"dagre": "^0.8.5",
5050
"dequal": "^2.0.2",
5151
"file-saver": "^2.0.5",
5252
"file-select-dialog": "^1.5.4",

src/components/visualizer/RelationshipGraph.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import "@xyflow/react/dist/style.css";
22

3+
import dagre from "@dagrejs/dagre";
34
import {
45
ReactFlow,
56
Node,
@@ -11,7 +12,6 @@ import {
1112
NodeTypes,
1213
useNodesState,
1314
} from "@xyflow/react";
14-
import dagre from "dagre";
1515
import { useCallback, useMemo, useState, useEffect, MouseEvent } from "react";
1616

1717
import { RelationTuple as Relationship } from "@/spicedb-common/protodefs/core/v1/core_pb";

src/components/visualizer/SchemaGraph.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import "@xyflow/react/dist/style.css";
22

33
import type { ParsedSchema, ParsedObjectDefinition } from "@authzed/spicedb-parser-js";
4+
import dagre from "@dagrejs/dagre";
45
import {
56
ReactFlow,
67
Node,
@@ -13,7 +14,6 @@ import {
1314
EdgeTypes,
1415
useNodesState,
1516
} from "@xyflow/react";
16-
import dagre from "dagre";
1717
import { useMemo, useEffect } from "react";
1818

1919
import { RelationTuple as Relationship } from "@/spicedb-common/protodefs/core/v1/core_pb";

yarn.lock

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,18 @@
10121012
debug "^3.1.0"
10131013
lodash.once "^4.1.1"
10141014

1015+
"@dagrejs/dagre@^2.0.4":
1016+
version "2.0.4"
1017+
resolved "https://registry.yarnpkg.com/@dagrejs/dagre/-/dagre-2.0.4.tgz#3c279dfbc5c4aa6c7b53601ea33d3600c87ab341"
1018+
integrity sha512-J6vCWTNpicHF4zFlZG1cS5DkGzMr9941gddYkakjrg3ZNev4bbqEgLHFTWiFrcJm7UCRu7olO3K6IRDd9gSGhA==
1019+
dependencies:
1020+
"@dagrejs/graphlib" "3.0.4"
1021+
1022+
"@dagrejs/graphlib@3.0.4":
1023+
version "3.0.4"
1024+
resolved "https://registry.yarnpkg.com/@dagrejs/graphlib/-/graphlib-3.0.4.tgz#0b0adf4c148fa703762b314c4fe35cd66821adcc"
1025+
integrity sha512-HxZ7fCvAwTLCWCO0WjDkzAFQze8LdC6iOpKbetDKHIuDfIgMlIzYzqZ4nxwLlclQX+3ZVeZ1K2OuaOE2WWcyOg==
1026+
10151027
"@edge-runtime/format@2.2.1":
10161028
version "2.2.1"
10171029
resolved "https://registry.yarnpkg.com/@edge-runtime/format/-/format-2.2.1.tgz#10dcedb0d7c2063c9ee360fbab23846c8720f986"
@@ -5185,14 +5197,6 @@ d3-zoom@^3.0.0:
51855197
d3-selection "2 - 3"
51865198
d3-transition "2 - 3"
51875199

5188-
dagre@^0.8.5:
5189-
version "0.8.5"
5190-
resolved "https://registry.yarnpkg.com/dagre/-/dagre-0.8.5.tgz#ba30b0055dac12b6c1fcc247817442777d06afee"
5191-
integrity sha512-/aTqmnRta7x7MCCpExk7HQL2O4owCT2h8NT//9I1OQ9vt29Pa0BzSAkR5lwFUcQ7491yVi/3CXU9jQ5o0Mn2Sw==
5192-
dependencies:
5193-
graphlib "^2.1.8"
5194-
lodash "^4.17.15"
5195-
51965200
dashdash@^1.12.0:
51975201
version "1.14.1"
51985202
resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0"
@@ -6321,13 +6325,6 @@ graphemer@^1.4.0:
63216325
resolved "https://registry.yarnpkg.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6"
63226326
integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==
63236327

6324-
graphlib@^2.1.8:
6325-
version "2.1.8"
6326-
resolved "https://registry.yarnpkg.com/graphlib/-/graphlib-2.1.8.tgz#5761d414737870084c92ec7b5dbcb0592c9d35da"
6327-
integrity sha512-jcLLfkpoVGmH7/InMC/1hIvOPSUh38oJtGhvrOFGzioE1DZ+0YW16RgmOJhHiuWTvGiJQ9Z1Ik43JvkRPRvE+A==
6328-
dependencies:
6329-
lodash "^4.17.15"
6330-
63316328
hammerjs@^2.0.8:
63326329
version "2.0.8"
63336330
resolved "https://registry.yarnpkg.com/hammerjs/-/hammerjs-2.0.8.tgz#04ef77862cff2bb79d30f7692095930222bf60f1"
@@ -7147,11 +7144,6 @@ lodash.words@^4.2.0:
71477144
resolved "https://registry.yarnpkg.com/lodash.words/-/lodash.words-4.2.0.tgz#5ecfeaf8ecf8acaa8e0c8386295f1993c9cf4036"
71487145
integrity sha1-Xs/q+Oz4rKqODIOGKV8Zk8nPQDY=
71497146

7150-
lodash@^4.17.15:
7151-
version "4.17.23"
7152-
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.23.tgz#f113b0378386103be4f6893388c73d0bde7f2c5a"
7153-
integrity sha512-LgVTMpQtIopCi79SJeDiP0TfWi5CNEc/L/aRdTh3yIvmZXTnheWpKjSZhnvMl8iXbC1tFg9gdHHDMLoV7CnG+w==
7154-
71557147
lodash@^4.17.21:
71567148
version "4.17.21"
71577149
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"

0 commit comments

Comments
 (0)