@dxos/graph 0.8.4-main.9be5663bfe → 0.8.4-main.abd8ff62ef
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/dist/lib/browser/index.mjs +16 -136
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +16 -136
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/Graph.d.ts.map +1 -1
- package/dist/types/src/GraphModel.d.ts +2 -2
- package/dist/types/src/GraphModel.d.ts.map +1 -1
- package/dist/types/src/selection.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -12
- package/src/GraphModel.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/graph",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.abd8ff62ef",
|
|
4
4
|
"description": "Low-level graph API",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -21,26 +21,23 @@
|
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"types": "dist/types/src/index.d.ts",
|
|
24
|
-
"typesVersions": {
|
|
25
|
-
"*": {}
|
|
26
|
-
},
|
|
27
24
|
"files": [
|
|
28
25
|
"dist",
|
|
29
26
|
"src"
|
|
30
27
|
],
|
|
31
28
|
"dependencies": {
|
|
32
29
|
"@effect-atom/atom-react": "^0.5.0",
|
|
33
|
-
"@dxos/
|
|
34
|
-
"@dxos/
|
|
35
|
-
"@dxos/
|
|
36
|
-
"@dxos/
|
|
37
|
-
"@dxos/
|
|
30
|
+
"@dxos/async": "0.8.4-main.abd8ff62ef",
|
|
31
|
+
"@dxos/debug": "0.8.4-main.abd8ff62ef",
|
|
32
|
+
"@dxos/invariant": "0.8.4-main.abd8ff62ef",
|
|
33
|
+
"@dxos/log": "0.8.4-main.abd8ff62ef",
|
|
34
|
+
"@dxos/util": "0.8.4-main.abd8ff62ef"
|
|
38
35
|
},
|
|
39
36
|
"devDependencies": {
|
|
40
37
|
"effect": "3.20.0",
|
|
41
|
-
"@dxos/echo": "0.8.4-main.
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
38
|
+
"@dxos/echo-db": "0.8.4-main.abd8ff62ef",
|
|
39
|
+
"@dxos/echo": "0.8.4-main.abd8ff62ef",
|
|
40
|
+
"@dxos/random": "0.8.4-main.abd8ff62ef"
|
|
44
41
|
},
|
|
45
42
|
"peerDependencies": {
|
|
46
43
|
"effect": "3.20.0"
|
package/src/GraphModel.ts
CHANGED
|
@@ -13,7 +13,7 @@ import { type MakeOptional, isTruthy, removeBy } from '@dxos/util';
|
|
|
13
13
|
import * as Graph from './Graph';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* Optional function to wrap mutations (e.g., for ECHO objects that require Obj.
|
|
16
|
+
* Optional function to wrap mutations (e.g., for ECHO objects that require Obj.update).
|
|
17
17
|
*/
|
|
18
18
|
export type GraphChangeFunction = (fn: () => void) => void;
|
|
19
19
|
|
|
@@ -34,7 +34,7 @@ export class ReadonlyGraphModel<
|
|
|
34
34
|
/**
|
|
35
35
|
* NOTE: Pass in simple Graph or Live.
|
|
36
36
|
* @param graph - The graph data.
|
|
37
|
-
* @param change - Optional function to wrap mutations (e.g., Obj.
|
|
37
|
+
* @param change - Optional function to wrap mutations (e.g., Obj.update for ECHO objects).
|
|
38
38
|
*/
|
|
39
39
|
constructor(graph?: Graph.Graph<Node, Edge>, change?: GraphChangeFunction) {
|
|
40
40
|
this._graph = graph ?? {
|