@dxos/merkle-search-tree 0.8.3-staging.0fa589b → 0.8.4-main.84f28bd
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 +6 -6
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node-esm/index.mjs +6 -6
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/lib/node/index.cjs +0 -994
- package/dist/lib/node/index.cjs.map +0 -7
- package/dist/lib/node/meta.json +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//
|
|
1
|
+
// src/common.ts
|
|
2
2
|
import { arrayToHex } from "@dxos/util";
|
|
3
3
|
var makeItem = async (key, value) => {
|
|
4
4
|
const keyBytes = textEncoder.encode(key);
|
|
@@ -58,10 +58,10 @@ var digestEquals = (a, b) => {
|
|
|
58
58
|
};
|
|
59
59
|
var textEncoder = new TextEncoder();
|
|
60
60
|
|
|
61
|
-
//
|
|
61
|
+
// src/forest.ts
|
|
62
62
|
import { invariant } from "@dxos/invariant";
|
|
63
63
|
import { arrayToHex as arrayToHex2, arraysEqual } from "@dxos/util";
|
|
64
|
-
var __dxlog_file = "/
|
|
64
|
+
var __dxlog_file = "/__w/dxos/dxos/packages/common/merkle-search-tree/src/forest.ts";
|
|
65
65
|
var Forest = class {
|
|
66
66
|
constructor() {
|
|
67
67
|
this.#nodes = /* @__PURE__ */ new Map();
|
|
@@ -610,7 +610,7 @@ var getKeyLevel = async (key) => {
|
|
|
610
610
|
var textEncoder2 = new TextEncoder();
|
|
611
611
|
var validDigest = (digest) => typeof digest === "string" && digest.length > 0;
|
|
612
612
|
|
|
613
|
-
//
|
|
613
|
+
// src/lww-tree.ts
|
|
614
614
|
var LWWTree = class _LWWTree {
|
|
615
615
|
static async new(params) {
|
|
616
616
|
const tree = new _LWWTree(params);
|
|
@@ -761,7 +761,7 @@ var initLWWTreeSyncState = () => ({
|
|
|
761
761
|
var textDecoder = new TextDecoder();
|
|
762
762
|
var textEncoder3 = new TextEncoder();
|
|
763
763
|
|
|
764
|
-
//
|
|
764
|
+
// src/mirror-multi-map.ts
|
|
765
765
|
import { arraysEqual as arraysEqual2 } from "@dxos/util";
|
|
766
766
|
var MirrorMultiMap = class _MirrorMultiMap {
|
|
767
767
|
static async new(params) {
|
|
@@ -944,7 +944,7 @@ var initSyncState = () => ({
|
|
|
944
944
|
var textDecoder2 = new TextDecoder();
|
|
945
945
|
var textEncoder4 = new TextEncoder();
|
|
946
946
|
|
|
947
|
-
//
|
|
947
|
+
// src/testing.ts
|
|
948
948
|
var createValue = (source) => new Uint8Array(textEncoder5.encode(source));
|
|
949
949
|
var textEncoder5 = new TextEncoder();
|
|
950
950
|
var randomKey = () => crypto.randomUUID();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"
|
|
1
|
+
{"inputs":{"src/common.ts":{"bytes":6479,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/forest.ts":{"bytes":61665,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/common.ts","kind":"import-statement","original":"./common"}],"format":"esm"},"src/lww-tree.ts":{"bytes":18597,"imports":[{"path":"src/forest.ts","kind":"import-statement","original":"./forest"}],"format":"esm"},"src/mirror-multi-map.ts":{"bytes":23645,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/forest.ts","kind":"import-statement","original":"./forest"}],"format":"esm"},"src/testing.ts":{"bytes":1612,"imports":[],"format":"esm"},"src/index.ts":{"bytes":824,"imports":[{"path":"src/common.ts","kind":"import-statement","original":"./common"},{"path":"src/forest.ts","kind":"import-statement","original":"./forest"},{"path":"src/lww-tree.ts","kind":"import-statement","original":"./lww-tree"},{"path":"src/mirror-multi-map.ts","kind":"import-statement","original":"./mirror-multi-map"},{"path":"src/testing.ts","kind":"import-statement","original":"./testing"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":54530},"dist/lib/browser/index.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["Forest","LWWTree","MirrorMultiMap","TreeMut","createValue","digestEquals","formatDigest","getLevel","getLevelHex","initLWWTreeSyncState","makeItem","randomKey","randomSample"],"entryPoint":"src/index.ts","inputs":{"src/common.ts":{"bytesInOutput":1188},"src/index.ts":{"bytesInOutput":0},"src/forest.ts":{"bytesInOutput":15652},"src/lww-tree.ts":{"bytesInOutput":4011},"src/mirror-multi-map.ts":{"bytesInOutput":5352},"src/testing.ts":{"bytesInOutput":250}},"bytes":26790}}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
|
|
3
|
-
//
|
|
3
|
+
// src/common.ts
|
|
4
4
|
import { arrayToHex } from "@dxos/util";
|
|
5
5
|
var makeItem = async (key, value) => {
|
|
6
6
|
const keyBytes = textEncoder.encode(key);
|
|
@@ -60,10 +60,10 @@ var digestEquals = (a, b) => {
|
|
|
60
60
|
};
|
|
61
61
|
var textEncoder = new TextEncoder();
|
|
62
62
|
|
|
63
|
-
//
|
|
63
|
+
// src/forest.ts
|
|
64
64
|
import { invariant } from "@dxos/invariant";
|
|
65
65
|
import { arrayToHex as arrayToHex2, arraysEqual } from "@dxos/util";
|
|
66
|
-
var __dxlog_file = "/
|
|
66
|
+
var __dxlog_file = "/__w/dxos/dxos/packages/common/merkle-search-tree/src/forest.ts";
|
|
67
67
|
var Forest = class {
|
|
68
68
|
constructor() {
|
|
69
69
|
this.#nodes = /* @__PURE__ */ new Map();
|
|
@@ -612,7 +612,7 @@ var getKeyLevel = async (key) => {
|
|
|
612
612
|
var textEncoder2 = new TextEncoder();
|
|
613
613
|
var validDigest = (digest) => typeof digest === "string" && digest.length > 0;
|
|
614
614
|
|
|
615
|
-
//
|
|
615
|
+
// src/lww-tree.ts
|
|
616
616
|
var LWWTree = class _LWWTree {
|
|
617
617
|
static async new(params) {
|
|
618
618
|
const tree = new _LWWTree(params);
|
|
@@ -763,7 +763,7 @@ var initLWWTreeSyncState = () => ({
|
|
|
763
763
|
var textDecoder = new TextDecoder();
|
|
764
764
|
var textEncoder3 = new TextEncoder();
|
|
765
765
|
|
|
766
|
-
//
|
|
766
|
+
// src/mirror-multi-map.ts
|
|
767
767
|
import { arraysEqual as arraysEqual2 } from "@dxos/util";
|
|
768
768
|
var MirrorMultiMap = class _MirrorMultiMap {
|
|
769
769
|
static async new(params) {
|
|
@@ -946,7 +946,7 @@ var initSyncState = () => ({
|
|
|
946
946
|
var textDecoder2 = new TextDecoder();
|
|
947
947
|
var textEncoder4 = new TextEncoder();
|
|
948
948
|
|
|
949
|
-
//
|
|
949
|
+
// src/testing.ts
|
|
950
950
|
var createValue = (source) => new Uint8Array(textEncoder5.encode(source));
|
|
951
951
|
var textEncoder5 = new TextEncoder();
|
|
952
952
|
var randomKey = () => crypto.randomUUID();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"
|
|
1
|
+
{"inputs":{"src/common.ts":{"bytes":6479,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/forest.ts":{"bytes":61665,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/common.ts","kind":"import-statement","original":"./common"}],"format":"esm"},"src/lww-tree.ts":{"bytes":18597,"imports":[{"path":"src/forest.ts","kind":"import-statement","original":"./forest"}],"format":"esm"},"src/mirror-multi-map.ts":{"bytes":23645,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"src/forest.ts","kind":"import-statement","original":"./forest"}],"format":"esm"},"src/testing.ts":{"bytes":1612,"imports":[],"format":"esm"},"src/index.ts":{"bytes":824,"imports":[{"path":"src/common.ts","kind":"import-statement","original":"./common"},{"path":"src/forest.ts","kind":"import-statement","original":"./forest"},{"path":"src/lww-tree.ts","kind":"import-statement","original":"./lww-tree"},{"path":"src/mirror-multi-map.ts","kind":"import-statement","original":"./mirror-multi-map"},{"path":"src/testing.ts","kind":"import-statement","original":"./testing"}],"format":"esm"}},"outputs":{"dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":54532},"dist/lib/node-esm/index.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true}],"exports":["Forest","LWWTree","MirrorMultiMap","TreeMut","createValue","digestEquals","formatDigest","getLevel","getLevelHex","initLWWTreeSyncState","makeItem","randomKey","randomSample"],"entryPoint":"src/index.ts","inputs":{"src/common.ts":{"bytesInOutput":1188},"src/index.ts":{"bytesInOutput":0},"src/forest.ts":{"bytesInOutput":15652},"src/lww-tree.ts":{"bytesInOutput":4011},"src/mirror-multi-map.ts":{"bytesInOutput":5352},"src/testing.ts":{"bytesInOutput":250}},"bytes":26883}}}
|