@dxos/merkle-search-tree 0.8.4-main.2e9d522 → 0.8.4-main.3c1ae3b

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/merkle-search-tree",
3
- "version": "0.8.4-main.2e9d522",
3
+ "version": "0.8.4-main.3c1ae3b",
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",
@@ -9,6 +9,7 @@
9
9
  "type": "module",
10
10
  "exports": {
11
11
  ".": {
12
+ "source": "./src/index.ts",
12
13
  "types": "./dist/types/src/index.d.ts",
13
14
  "browser": "./dist/lib/browser/index.mjs",
14
15
  "node": "./dist/lib/node-esm/index.mjs"
@@ -23,8 +24,8 @@
23
24
  "src"
24
25
  ],
25
26
  "dependencies": {
26
- "@dxos/invariant": "0.8.4-main.2e9d522",
27
- "@dxos/util": "0.8.4-main.2e9d522"
27
+ "@dxos/invariant": "0.8.4-main.3c1ae3b",
28
+ "@dxos/util": "0.8.4-main.3c1ae3b"
28
29
  },
29
30
  "devDependencies": {},
30
31
  "publishConfig": {
@@ -6,7 +6,7 @@ import { describe, test } from 'vitest';
6
6
 
7
7
  import { numericalValues, range } from '@dxos/util';
8
8
 
9
- import { Forest, type DigestHex, type TreeMut } from './forest';
9
+ import { type DigestHex, Forest, type TreeMut } from './forest';
10
10
  import { createValue, randomKey, randomSample } from './testing';
11
11
 
12
12
  test('empty', async ({ expect }) => {
@@ -7,7 +7,7 @@ import { test } from 'vitest';
7
7
  import { range } from '@dxos/util';
8
8
 
9
9
  import type { ActorID } from './common';
10
- import { initLWWTreeSyncState, LWWTree, type LWWTreeSyncMessage } from './lww-tree';
10
+ import { LWWTree, type LWWTreeSyncMessage, initLWWTreeSyncState } from './lww-tree';
11
11
  import { randomKey } from './testing';
12
12
 
13
13
  test('basic', async ({ expect }) => {
package/src/lww-tree.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  //
4
4
 
5
5
  import type { ActorID } from './common';
6
- import { Forest, type DigestHex, type Key, type NodeData } from './forest';
6
+ import { type DigestHex, Forest, type Key, type NodeData } from './forest';
7
7
 
8
8
  export type LLWTreeParams = {
9
9
  actor: ActorID;
@@ -3,6 +3,7 @@
3
3
  //
4
4
 
5
5
  import { inspect } from 'util';
6
+
6
7
  import { test } from 'vitest';
7
8
 
8
9
  import { range } from '@dxos/util';
@@ -5,7 +5,7 @@
5
5
  import { arraysEqual } from '@dxos/util';
6
6
 
7
7
  import type { ActorID } from './common';
8
- import { Forest, type DigestHex, type Key, type NodeData } from './forest';
8
+ import { type DigestHex, Forest, type Key, type NodeData } from './forest';
9
9
 
10
10
  export type MirrorMultiMapParams = {
11
11
  actor: ActorID;