@dxos/graph 0.8.4-main.fbb7a13 → 0.8.4-main.fcc0d83b33

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": "@dxos/graph",
3
- "version": "0.8.4-main.fbb7a13",
3
+ "version": "0.8.4-main.fcc0d83b33",
4
4
  "description": "Low-level graph API",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -21,29 +21,26 @@
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
- "@effect-atom/atom-react": "^0.4.6",
33
- "@dxos/async": "0.8.4-main.fbb7a13",
34
- "@dxos/debug": "0.8.4-main.fbb7a13",
35
- "@dxos/util": "0.8.4-main.fbb7a13",
36
- "@dxos/invariant": "0.8.4-main.fbb7a13",
37
- "@dxos/log": "0.8.4-main.fbb7a13"
29
+ "@effect-atom/atom-react": "^0.5.0",
30
+ "@dxos/async": "0.8.4-main.fcc0d83b33",
31
+ "@dxos/invariant": "0.8.4-main.fcc0d83b33",
32
+ "@dxos/debug": "0.8.4-main.fcc0d83b33",
33
+ "@dxos/log": "0.8.4-main.fcc0d83b33",
34
+ "@dxos/util": "0.8.4-main.fcc0d83b33"
38
35
  },
39
36
  "devDependencies": {
40
- "effect": "3.19.11",
41
- "@dxos/random": "0.8.4-main.fbb7a13",
42
- "@dxos/echo": "0.8.4-main.fbb7a13",
43
- "@dxos/echo-db": "0.8.4-main.fbb7a13"
37
+ "effect": "3.20.0",
38
+ "@dxos/echo": "0.8.4-main.fcc0d83b33",
39
+ "@dxos/random": "0.8.4-main.fcc0d83b33",
40
+ "@dxos/echo-db": "0.8.4-main.fcc0d83b33"
44
41
  },
45
42
  "peerDependencies": {
46
- "effect": "3.19.11"
43
+ "effect": "3.20.0"
47
44
  },
48
45
  "publishConfig": {
49
46
  "access": "public"
package/src/Graph.ts CHANGED
@@ -2,6 +2,8 @@
2
2
  // Copyright 2024 DXOS.org
3
3
  //
4
4
 
5
+ // @import-as-namespace
6
+
5
7
  import * as Schema from 'effect/Schema';
6
8
 
7
9
  import { invariant } from '@dxos/invariant';
package/src/GraphModel.ts CHANGED
@@ -2,6 +2,8 @@
2
2
  // Copyright 2024 DXOS.org
3
3
  //
4
4
 
5
+ // @import-as-namespace
6
+
5
7
  import { Atom, type Registry } from '@effect-atom/atom-react';
6
8
 
7
9
  import { inspectCustom } from '@dxos/debug';
@@ -11,7 +13,7 @@ import { type MakeOptional, isTruthy, removeBy } from '@dxos/util';
11
13
  import * as Graph from './Graph';
12
14
 
13
15
  /**
14
- * Optional function to wrap mutations (e.g., for ECHO objects that require Obj.change).
16
+ * Optional function to wrap mutations (e.g., for ECHO objects that require Obj.update).
15
17
  */
16
18
  export type GraphChangeFunction = (fn: () => void) => void;
17
19
 
@@ -32,7 +34,7 @@ export class ReadonlyGraphModel<
32
34
  /**
33
35
  * NOTE: Pass in simple Graph or Live.
34
36
  * @param graph - The graph data.
35
- * @param change - Optional function to wrap mutations (e.g., Obj.change for ECHO objects).
37
+ * @param change - Optional function to wrap mutations (e.g., Obj.update for ECHO objects).
36
38
  */
37
39
  constructor(graph?: Graph.Graph<Node, Edge>, change?: GraphChangeFunction) {
38
40
  this._graph = graph ?? {