@dxos/merkle-search-tree 0.8.4-main.7ace549 → 0.8.4-main.937b3ca

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,9 +1,13 @@
1
1
  {
2
2
  "name": "@dxos/merkle-search-tree",
3
- "version": "0.8.4-main.7ace549",
3
+ "version": "0.8.4-main.937b3ca",
4
4
  "description": "Merkle-Search Tree implementation and sync protocol.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/dxos/dxos"
10
+ },
7
11
  "license": "MIT",
8
12
  "author": "DXOS.org",
9
13
  "type": "module",
@@ -24,8 +28,8 @@
24
28
  "src"
25
29
  ],
26
30
  "dependencies": {
27
- "@dxos/invariant": "0.8.4-main.7ace549",
28
- "@dxos/util": "0.8.4-main.7ace549"
31
+ "@dxos/invariant": "0.8.4-main.937b3ca",
32
+ "@dxos/util": "0.8.4-main.937b3ca"
29
33
  },
30
34
  "devDependencies": {},
31
35
  "publishConfig": {
package/src/lww-tree.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  import type { ActorID } from './common';
6
6
  import { type DigestHex, Forest, type Key, type NodeData } from './forest';
7
7
 
8
- export type LLWTreeParams = {
8
+ export type LLWTreeProps = {
9
9
  actor: ActorID;
10
10
  };
11
11
 
@@ -13,7 +13,7 @@ export type LLWTreeParams = {
13
13
  * Replicated Key-Value Store with Last-Write-Wins semantics.
14
14
  */
15
15
  export class LWWTree<T> {
16
- static async new<T>(params: LLWTreeParams): Promise<LWWTree<T>> {
16
+ static async new<T>(params: LLWTreeProps): Promise<LWWTree<T>> {
17
17
  const tree = new LWWTree<T>(params);
18
18
  tree.#currentRoot = await tree.#forest.createTree([]);
19
19
 
@@ -30,7 +30,7 @@ export class LWWTree<T> {
30
30
  return this.#currentRoot;
31
31
  }
32
32
 
33
- private constructor(params: LLWTreeParams) {
33
+ private constructor(params: LLWTreeProps) {
34
34
  this.#actor = params.actor;
35
35
  }
36
36
 
@@ -7,7 +7,7 @@ import { arraysEqual } from '@dxos/util';
7
7
  import type { ActorID } from './common';
8
8
  import { type DigestHex, Forest, type Key, type NodeData } from './forest';
9
9
 
10
- export type MirrorMultiMapParams = {
10
+ export type MirrorMultiMapProps = {
11
11
  actor: ActorID;
12
12
  };
13
13
 
@@ -17,7 +17,7 @@ export type MirrorMultiMapParams = {
17
17
  * Actors are expected to eventually converge to the same state.
18
18
  */
19
19
  export class MirrorMultiMap<T> {
20
- static async new<T>(params: MirrorMultiMapParams): Promise<MirrorMultiMap<T>> {
20
+ static async new<T>(params: MirrorMultiMapProps): Promise<MirrorMultiMap<T>> {
21
21
  const tree = new MirrorMultiMap<T>(params);
22
22
  tree.#currentRoot = await tree.#forest.createTree([]);
23
23
 
@@ -31,7 +31,7 @@ export class MirrorMultiMap<T> {
31
31
 
32
32
  #remoteStates = new Map<ActorID, SyncState>();
33
33
 
34
- private constructor(params: MirrorMultiMapParams) {
34
+ private constructor(params: MirrorMultiMapProps) {
35
35
  this.#actor = params.actor;
36
36
  }
37
37