@atproto/sync 0.1.38 → 0.1.40
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 +22 -0
- package/LICENSE.txt +1 -1
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +0 -1
- package/dist/events.js.map +1 -1
- package/package.json +7 -7
- package/src/events.ts +0 -2
- package/tests/runner.test.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atproto/sync
|
|
2
2
|
|
|
3
|
+
## 0.1.40
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#4705](https://github.com/bluesky-social/atproto/pull/4705) [`138f0a0`](https://github.com/bluesky-social/atproto/commit/138f0a0b374c0d78372d5095237061d46db75a32) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Fix test flakiness
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`f7c2610`](https://github.com/bluesky-social/atproto/commit/f7c26103a6d4e24e5bedbb6fd908be140420e0dd), [`f7c2610`](https://github.com/bluesky-social/atproto/commit/f7c26103a6d4e24e5bedbb6fd908be140420e0dd), [`f7c2610`](https://github.com/bluesky-social/atproto/commit/f7c26103a6d4e24e5bedbb6fd908be140420e0dd), [`f7c2610`](https://github.com/bluesky-social/atproto/commit/f7c26103a6d4e24e5bedbb6fd908be140420e0dd), [`f7c2610`](https://github.com/bluesky-social/atproto/commit/f7c26103a6d4e24e5bedbb6fd908be140420e0dd), [`f7c2610`](https://github.com/bluesky-social/atproto/commit/f7c26103a6d4e24e5bedbb6fd908be140420e0dd), [`e8969b6`](https://github.com/bluesky-social/atproto/commit/e8969b6b3d3fed8912be53fd72b4d5288ca34766), [`52834ab`](https://github.com/bluesky-social/atproto/commit/52834aba182da8df3611fd9dff924e6c6a3973a7), [`f7c2610`](https://github.com/bluesky-social/atproto/commit/f7c26103a6d4e24e5bedbb6fd908be140420e0dd)]:
|
|
10
|
+
- @atproto/syntax@0.5.0
|
|
11
|
+
- @atproto/common@0.5.14
|
|
12
|
+
- @atproto/xrpc-server@0.10.15
|
|
13
|
+
- @atproto/lexicon@0.6.2
|
|
14
|
+
|
|
15
|
+
## 0.1.39
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [[`d551b0e`](https://github.com/bluesky-social/atproto/commit/d551b0e3527714c111c3ec6e4c90ad7f46369fab)]:
|
|
20
|
+
- @atproto/lexicon@0.6.0
|
|
21
|
+
- @atproto/common@0.5.3
|
|
22
|
+
- @atproto/xrpc-server@0.10.3
|
|
23
|
+
- @atproto/repo@0.8.12
|
|
24
|
+
|
|
3
25
|
## 0.1.38
|
|
4
26
|
|
|
5
27
|
### 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-2026 Bluesky Social 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/events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,EAAE,KAA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,MAAM,CAAA;IACX,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,SAAS,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,OAAO,CAAA;IACf,MAAM,CAAC,EAAE,aAAa,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,aAAa,GACrB,WAAW,GACX,WAAW,GACX,SAAS,GACT,aAAa,CAAA"}
|
package/dist/events.js
CHANGED
package/dist/events.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"","sourcesContent":["import type { CID } from 'multiformats/cid'\nimport { DidDocument } from '@atproto/identity'\nimport type { RepoRecord } from '@atproto/lexicon'\nimport { BlockMap } from '@atproto/repo'\nimport { AtUri } from '@atproto/syntax'\n\nexport type Event = CommitEvt | SyncEvt | IdentityEvt | AccountEvt\n\nexport type CommitMeta = {\n seq: number\n time: string\n commit: CID\n blocks: BlockMap\n rev: string\n uri: AtUri\n did: string\n collection: string\n rkey: string\n}\n\nexport type CommitEvt = Create | Update | Delete\n\nexport type Create = CommitMeta & {\n event: 'create'\n record: RepoRecord\n cid: CID\n}\n\nexport type Update = CommitMeta & {\n event: 'update'\n record: RepoRecord\n cid: CID\n}\n\nexport type Delete = CommitMeta & {\n event: 'delete'\n}\n\nexport type SyncEvt = {\n seq: number\n time: string\n event: 'sync'\n did: string\n cid: CID\n rev: string\n blocks: BlockMap\n}\n\nexport type IdentityEvt = {\n seq: number\n time: string\n event: 'identity'\n did: string\n handle?: string\n didDocument?: DidDocument\n}\n\nexport type AccountEvt = {\n seq: number\n time: string\n event: 'account'\n did: string\n active: boolean\n status?: AccountStatus\n}\n\nexport type AccountStatus =\n | 'takendown'\n | 'suspended'\n | 'deleted'\n | 'deactivated'\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atproto/sync",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.40",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "atproto sync library",
|
|
6
6
|
"keywords": [
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"multiformats": "^9.9.0",
|
|
25
25
|
"p-queue": "^6.6.2",
|
|
26
26
|
"ws": "^8.12.0",
|
|
27
|
-
"@atproto/common": "^0.5.
|
|
28
|
-
"@atproto/identity": "^0.4.
|
|
29
|
-
"@atproto/lexicon": "^0.
|
|
30
|
-
"@atproto/
|
|
31
|
-
"@atproto/
|
|
32
|
-
"@atproto/xrpc-server": "^0.10.
|
|
27
|
+
"@atproto/common": "^0.5.14",
|
|
28
|
+
"@atproto/identity": "^0.4.12",
|
|
29
|
+
"@atproto/lexicon": "^0.6.2",
|
|
30
|
+
"@atproto/syntax": "^0.5.0",
|
|
31
|
+
"@atproto/repo": "^0.8.12",
|
|
32
|
+
"@atproto/xrpc-server": "^0.10.15"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/ws": "^8.5.4",
|
package/src/events.ts
CHANGED
package/tests/runner.test.ts
CHANGED
|
@@ -107,7 +107,7 @@ describe('EventRunner utils', () => {
|
|
|
107
107
|
complete.push({ partition, id: i })
|
|
108
108
|
})
|
|
109
109
|
}
|
|
110
|
-
expect(runner.partitions.size).
|
|
110
|
+
expect(runner.partitions.size).toBeLessThanOrEqual(partitions.size)
|
|
111
111
|
await runner.mainQueue.onIdle()
|
|
112
112
|
expect(complete.length).toEqual(500)
|
|
113
113
|
for (const partition of partitions) {
|