@atproto/sync 0.1.39 → 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 CHANGED
@@ -1,5 +1,17 @@
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
+
3
15
  ## 0.1.39
4
16
 
5
17
  ### Patch Changes
package/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  Dual MIT/Apache-2.0 License
2
2
 
3
- Copyright (c) 2022-2025 Bluesky Social PBC, and Contributors
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
 
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAEA,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,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAEvC,MAAM,MAAM,KAAK,GAAG,SAAS,GAAG,OAAO,GAAG,WAAW,GAAG,UAAU,CAAA;AAElE,MAAM,MAAM,UAAU,GAAG;IACvB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,GAAG,CAAA;IACX,MAAM,EAAE,QAAQ,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,KAAK,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;IACX,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;AAEhD,MAAM,MAAM,MAAM,GAAG,UAAU,GAAG;IAChC,KAAK,EAAE,QAAQ,CAAA;IACf,MAAM,EAAE,UAAU,CAAA;IAClB,GAAG,EAAE,GAAG,CAAA;CACT,CAAA;AAED,MAAM,MAAM,MAAM,GAAG,UAAU,GAAG;IAChC,KAAK,EAAE,QAAQ,CAAA;IACf,MAAM,EAAE,UAA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AAM,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
@@ -1,4 +1,3 @@
1
1
  "use strict";
2
- /* eslint-disable import/no-deprecated */
3
2
  Object.defineProperty(exports, "__esModule", { value: true });
4
3
  //# sourceMappingURL=events.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.js","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":";AAAA,yCAAyC","sourcesContent":["/* eslint-disable import/no-deprecated */\n\nimport 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"]}
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.39",
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.3",
28
- "@atproto/identity": "^0.4.10",
29
- "@atproto/lexicon": "^0.6.0",
27
+ "@atproto/common": "^0.5.14",
28
+ "@atproto/identity": "^0.4.12",
29
+ "@atproto/lexicon": "^0.6.2",
30
+ "@atproto/syntax": "^0.5.0",
30
31
  "@atproto/repo": "^0.8.12",
31
- "@atproto/syntax": "^0.4.2",
32
- "@atproto/xrpc-server": "^0.10.3"
32
+ "@atproto/xrpc-server": "^0.10.15"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/ws": "^8.5.4",
package/src/events.ts CHANGED
@@ -1,5 +1,3 @@
1
- /* eslint-disable import/no-deprecated */
2
-
3
1
  import type { CID } from 'multiformats/cid'
4
2
  import { DidDocument } from '@atproto/identity'
5
3
  import type { RepoRecord } from '@atproto/lexicon'
@@ -107,7 +107,7 @@ describe('EventRunner utils', () => {
107
107
  complete.push({ partition, id: i })
108
108
  })
109
109
  }
110
- expect(runner.partitions.size).toEqual(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) {