@atproto/repo 0.3.1 → 0.3.3

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,27 @@
1
1
  # @atproto/repo
2
2
 
3
+ ## 0.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`bb039d8e`](https://github.com/bluesky-social/atproto/commit/bb039d8e4ce5b7f70c4f3e86d1327e210ef24dc3), [`35d108ce`](https://github.com/bluesky-social/atproto/commit/35d108ce94866ce1b3d147cd0620a0ba1c4ebcd7)]:
8
+ - @atproto/identity@0.3.0
9
+ - @atproto/common-web@0.2.2
10
+ - @atproto/common@0.3.2
11
+ - @atproto/lexicon@0.2.3
12
+ - @atproto/syntax@0.1.3
13
+
14
+ ## 0.3.2
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [[`41ee177f`](https://github.com/bluesky-social/atproto/commit/41ee177f5a440490280d17acd8a89bcddaffb23b)]:
19
+ - @atproto/common-web@0.2.1
20
+ - @atproto/common@0.3.1
21
+ - @atproto/identity@0.2.1
22
+ - @atproto/lexicon@0.2.2
23
+ - @atproto/syntax@0.1.2
24
+
3
25
  ## 0.3.1
4
26
 
5
27
  ### Patch Changes
package/README.md CHANGED
@@ -1,3 +1,12 @@
1
- # ATP Repo
1
+ # @atproto/repo: Repository and MST
2
2
 
3
- The "ATP repository" core implementation (a Merkle Search Tree).
3
+ TypeScript library for atproto repositories, and in particular the Merkle Search Tree (MST) data structure.
4
+
5
+ [![NPM](https://img.shields.io/npm/v/@atproto/repo)](https://www.npmjs.com/package/@atproto/repo)
6
+ [![Github CI Status](https://github.com/bluesky-social/atproto/actions/workflows/repo.yaml/badge.svg)](https://github.com/bluesky-social/atproto/actions/workflows/repo.yaml)
7
+
8
+ Repositories in atproto are signed key/value stores containing CBOR-encoded data records. The structure and implementation details are described in [the specification](https://atproto.com/specs/repository). This includes MST node format, serialization, structural constraints, and more.
9
+
10
+ ## License
11
+
12
+ MIT License
package/dist/index.js CHANGED
@@ -18170,6 +18170,25 @@ var DAY = HOUR * 24;
18170
18170
  // ../common-web/src/strings.ts
18171
18171
  var import_graphemer = __toESM(require_lib());
18172
18172
 
18173
+ // ../common-web/src/did-doc.ts
18174
+ var verificationMethod = z.object({
18175
+ id: z.string(),
18176
+ type: z.string(),
18177
+ controller: z.string(),
18178
+ publicKeyMultibase: z.string().optional()
18179
+ });
18180
+ var service = z.object({
18181
+ id: z.string(),
18182
+ type: z.string(),
18183
+ serviceEndpoint: z.union([z.string(), z.record(z.unknown())])
18184
+ });
18185
+ var didDocument = z.object({
18186
+ id: z.string(),
18187
+ alsoKnownAs: z.array(z.string()).optional(),
18188
+ verificationMethod: z.array(verificationMethod).optional(),
18189
+ service: z.array(service).optional()
18190
+ });
18191
+
18173
18192
  // ../lexicon/src/validators/formats.ts
18174
18193
  var import_iso_datestring_validator = __toESM(require_dist());
18175
18194
 
@@ -18353,7 +18372,7 @@ var lexObject = z.object({
18353
18372
  description: z.string().optional(),
18354
18373
  required: z.string().array().optional(),
18355
18374
  nullable: z.string().array().optional(),
18356
- properties: z.record(z.union([lexRefVariant, lexIpldType, lexArray, lexBlob, lexPrimitive])).optional()
18375
+ properties: z.record(z.union([lexRefVariant, lexIpldType, lexArray, lexBlob, lexPrimitive]))
18357
18376
  }).strict().superRefine(requiredPropertiesRefinement);
18358
18377
  var lexXrpcParameters = z.object({
18359
18378
  type: z.literal("params"),
@@ -18518,6 +18537,9 @@ var ipldToLex = (val) => {
18518
18537
  return val;
18519
18538
  };
18520
18539
 
18540
+ // ../common/src/dates.ts
18541
+ var import_iso_datestring_validator2 = __toESM(require_dist());
18542
+
18521
18543
  // ../../node_modules/.pnpm/multiformats@9.9.0/node_modules/multiformats/esm/src/block.js
18522
18544
  var readonly2 = ({ enumerable = true, configurable = false } = {}) => ({
18523
18545
  enumerable,
@@ -25329,7 +25351,7 @@ var readCar = async (bytes3) => {
25329
25351
  const roots = await car.getRoots();
25330
25352
  const blocks = new block_map_default();
25331
25353
  for await (const block of verifyIncomingCarBlocks(car.blocks())) {
25332
- await blocks.set(block.cid, block.bytes);
25354
+ blocks.set(block.cid, block.bytes);
25333
25355
  }
25334
25356
  return {
25335
25357
  roots,