@fizzyflow/wdoublesync 0.1.0 → 0.1.1
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/README.md +3 -3
- package/WDoubleSync.js +10 -8
- package/index.js +1 -1
- package/package.json +1 -1
- package/test/wdoublesync.test.js +2 -2
- package/test/wdoublesync_deletion.test.js +2 -2
- package/test/wdoublesync_with_walrus.test.js +2 -2
package/README.md
CHANGED
|
@@ -49,9 +49,9 @@ pnpm add wdoublesync
|
|
|
49
49
|
### Sender: push folder state to chain
|
|
50
50
|
|
|
51
51
|
```js
|
|
52
|
-
import EndlessVector from '
|
|
53
|
-
import { DoubleSync, DoubleSyncMemoryFolder } from 'doublesync';
|
|
54
|
-
import WDoubleSync from 'wdoublesync';
|
|
52
|
+
import EndlessVector from '@fizzyflow/endless-vector';
|
|
53
|
+
import { DoubleSync, DoubleSyncMemoryFolder } from '@fizzyflow/doublesync';
|
|
54
|
+
import WDoubleSync from '@fizzyflow/wdoublesync';
|
|
55
55
|
|
|
56
56
|
const ev = new EndlessVector({
|
|
57
57
|
suiClient,
|
package/WDoubleSync.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import {
|
|
2
|
+
DoubleSync,
|
|
3
|
+
CDCStore,
|
|
4
|
+
DoubleSyncSnapshot,
|
|
5
|
+
DoubleSyncPatch,
|
|
6
|
+
DoubleSyncDiffPatch,
|
|
7
|
+
DoubleSyncCompressed,
|
|
8
|
+
DoubleSyncFormat,
|
|
9
|
+
DoubleSyncMemoryFolder,
|
|
10
|
+
} from '@fizzyflow/doublesync';
|
|
9
11
|
|
|
10
12
|
const SEGMENT_MAGIC = 0x57445347; // WDSG
|
|
11
13
|
const SEGMENT_VERSION = 1;
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fizzyflow/wdoublesync",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Combines EndlessVector (on-chain Sui storage) with DoubleSync (CDC delta sync) to store and replay folder-tree snapshots on-chain.",
|
|
6
6
|
"main": "./index.js",
|
package/test/wdoublesync.test.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { beforeAll, afterAll, describe, it, expect } from 'vitest';
|
|
10
|
-
import { EndlessVector } from '
|
|
10
|
+
import { EndlessVector } from '@fizzyflow/endless-vector';
|
|
11
11
|
import {
|
|
12
12
|
DoubleSync,
|
|
13
13
|
DoubleSyncMemoryFolder,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
DoubleSyncCompressed,
|
|
18
18
|
DoubleSyncFile,
|
|
19
19
|
DoubleSyncFolder,
|
|
20
|
-
} from 'doublesync';
|
|
20
|
+
} from '@fizzyflow/doublesync';
|
|
21
21
|
import WDoubleSync from '../WDoubleSync.js';
|
|
22
22
|
import { equalUint8Arrays, randomBytesOfLength, seededBytes, collectTree, treesEqual } from './helpers.js';
|
|
23
23
|
import { setupLocalnet, teardownLocalnet } from './fixture.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { beforeAll, afterAll, describe, it, expect } from 'vitest';
|
|
2
|
-
import { EndlessVector } from '
|
|
2
|
+
import { EndlessVector } from '@fizzyflow/endless-vector';
|
|
3
3
|
import {
|
|
4
4
|
DoubleSync,
|
|
5
5
|
DoubleSyncMemoryFolder,
|
|
6
|
-
} from 'doublesync';
|
|
6
|
+
} from '@fizzyflow/doublesync';
|
|
7
7
|
import WDoubleSync from '../WDoubleSync.js';
|
|
8
8
|
import { equalUint8Arrays, seededBytes, collectTree } from './helpers.js';
|
|
9
9
|
import { setupLocalnet, teardownLocalnet } from './fixture.js';
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { beforeAll, afterAll, describe, it, expect } from 'vitest';
|
|
11
|
-
import { EndlessVector } from '
|
|
11
|
+
import { EndlessVector } from '@fizzyflow/endless-vector';
|
|
12
12
|
import {
|
|
13
13
|
DoubleSync,
|
|
14
14
|
DoubleSyncMemoryFolder,
|
|
15
15
|
DoubleSyncFormat,
|
|
16
16
|
DoubleSyncDiffPatch,
|
|
17
|
-
} from 'doublesync';
|
|
17
|
+
} from '@fizzyflow/doublesync';
|
|
18
18
|
import WDoubleSync from '../WDoubleSync.js';
|
|
19
19
|
import { equalUint8Arrays, randomBytesOfLength, seededBytes, collectTree, treesEqual } from './helpers.js';
|
|
20
20
|
import { setupLocalnet, teardownLocalnet } from './fixture.js';
|