@dxos/merkle-search-tree 0.8.4-main.84f28bd → 0.8.4-main.a4bbb77
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 +467 -242
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +467 -242
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/src/lww-tree.d.ts.map +1 -1
- package/dist/types/src/mirror-multi-map.d.ts +1 -1
- package/dist/types/src/mirror-multi-map.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -3
- package/src/forest.test.ts +1 -1
- package/src/lww-tree.test.ts +1 -1
- package/src/lww-tree.ts +1 -1
- package/src/mirror-multi-map.test.ts +1 -0
- package/src/mirror-multi-map.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/merkle-search-tree",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.a4bbb77",
|
|
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.
|
|
27
|
-
"@dxos/util": "0.8.4-main.
|
|
27
|
+
"@dxos/invariant": "0.8.4-main.a4bbb77",
|
|
28
|
+
"@dxos/util": "0.8.4-main.a4bbb77"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {},
|
|
30
31
|
"publishConfig": {
|
package/src/forest.test.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { describe, test } from 'vitest';
|
|
|
6
6
|
|
|
7
7
|
import { numericalValues, range } from '@dxos/util';
|
|
8
8
|
|
|
9
|
-
import {
|
|
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 }) => {
|
package/src/lww-tree.test.ts
CHANGED
|
@@ -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 {
|
|
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
package/src/mirror-multi-map.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { arraysEqual } from '@dxos/util';
|
|
6
6
|
|
|
7
7
|
import type { ActorID } from './common';
|
|
8
|
-
import {
|
|
8
|
+
import { type DigestHex, Forest, type Key, type NodeData } from './forest';
|
|
9
9
|
|
|
10
10
|
export type MirrorMultiMapParams = {
|
|
11
11
|
actor: ActorID;
|