@atproto/repo 0.3.6 → 0.3.7
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/CHANGELOG.md +6 -0
- package/LICENSE.txt +1 -1
- package/dist/block-map.d.ts +1 -1
- package/dist/data-diff.d.ts +3 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +455 -91
- package/dist/index.js.map +3 -3
- package/dist/mst/mst.d.ts +3 -3
- package/dist/mst/walker.d.ts +3 -3
- package/dist/readable-repo.d.ts +8 -1
- package/dist/repo.d.ts +12 -1
- package/dist/storage/memory-blockstore.d.ts +2 -1
- package/dist/storage/types.d.ts +3 -1
- package/dist/sync/consumer.d.ts +9 -3
- package/dist/sync/provider.d.ts +2 -2
- package/dist/types.d.ts +50 -39
- package/dist/util.d.ts +11 -3
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/readable-repo.ts +14 -0
- package/src/repo.ts +29 -0
- package/src/storage/memory-blockstore.ts +3 -1
- package/src/storage/types.ts +3 -1
- package/src/sync/consumer.ts +8 -4
- package/src/sync/provider.ts +2 -2
- package/src/types.ts +17 -5
- package/src/util.ts +20 -12
- package/tests/sync.test.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atproto/repo
|
|
2
2
|
|
|
3
|
+
## 0.3.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2173](https://github.com/bluesky-social/atproto/pull/2173) [`fcf8e3faf`](https://github.com/bluesky-social/atproto/commit/fcf8e3faf311559162c3aa0d9af36f84951914bc) Thanks [@bnewbold](https://github.com/bnewbold)! - repo commit object prev field is nullable, but no longer nullable
|
|
8
|
+
|
|
3
9
|
## 0.3.6
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/LICENSE.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Dual MIT/Apache-2.0 License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2022-
|
|
3
|
+
Copyright (c) 2022-2024 Bluesky PBC, and Contributors
|
|
4
4
|
|
|
5
5
|
Except as otherwise noted in individual files, this software is licensed under the MIT license (<http://opensource.org/licenses/MIT>), or the Apache License, Version 2.0 (<http://www.apache.org/licenses/LICENSE-2.0>).
|
|
6
6
|
|
package/dist/block-map.d.ts
CHANGED
package/dist/data-diff.d.ts
CHANGED
|
@@ -22,16 +22,16 @@ export declare class DataDiff {
|
|
|
22
22
|
deleteList(): DataDelete[];
|
|
23
23
|
updatedKeys(): string[];
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export type DataAdd = {
|
|
26
26
|
key: string;
|
|
27
27
|
cid: CID;
|
|
28
28
|
};
|
|
29
|
-
export
|
|
29
|
+
export type DataUpdate = {
|
|
30
30
|
key: string;
|
|
31
31
|
prev: CID;
|
|
32
32
|
cid: CID;
|
|
33
33
|
};
|
|
34
|
-
export
|
|
34
|
+
export type DataDelete = {
|
|
35
35
|
key: string;
|
|
36
36
|
cid: CID;
|
|
37
37
|
};
|