@atproto/dev-env 0.3.12 → 0.3.13

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @atproto/dev-env
2
2
 
3
+ ## 0.3.13
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`d32f7215f`](https://github.com/bluesky-social/atproto/commit/d32f7215f69bc87f50890d9cfdb09840c2fbaa41)]:
8
+ - @atproto/api@0.12.10
9
+ - @atproto/pds@0.4.22
10
+ - @atproto/bsky@0.0.52
11
+ - @atproto/ozone@0.1.14
12
+
3
13
  ## 0.3.12
4
14
 
5
15
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/seed/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;6BAEX,UAAU;AAApC,wBAqCC"}
1
+ {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/seed/users.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;6BAEX,UAAU;AAApC,wBA0BC"}
@@ -7,19 +7,7 @@ exports.default = async (sc) => {
7
7
  await sc.createAccount('dan', users.dan);
8
8
  await sc.createProfile(sc.dids.alice, users.alice.displayName, users.alice.description, users.alice.selfLabels);
9
9
  await sc.createProfile(sc.dids.bob, users.bob.displayName, users.bob.description, users.bob.selfLabels);
10
- await sc.agent.api.com.atproto.repo.putRecord({
11
- repo: sc.dids.dan,
12
- collection: 'chat.bsky.actor.declaration',
13
- rkey: 'self',
14
- validate: false,
15
- record: {
16
- $type: 'chat.bsky.actor.declaration',
17
- allowIncoming: 'none',
18
- },
19
- }, {
20
- encoding: 'application/json',
21
- headers: sc.getHeaders(sc.dids.dan),
22
- });
10
+ await sc.agent.api.chat.bsky.actor.declaration.create({ repo: sc.dids.dan }, { allowIncoming: 'none' }, sc.getHeaders(sc.dids.dan));
23
11
  return sc;
24
12
  };
25
13
  const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EAAE;QACH,KAAK,EAAE,cAAc;QACrB,MAAM,EAAE,UAAU;QAClB,QAAQ,EAAE,UAAU;QACpB,WAAW,EAAE,SAAS;QACtB,WAAW,EAAE,SAAS;QACtB,UAAU,EAAE,SAAS;KACtB;CACF,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/dev-env",
3
- "version": "0.3.12",
3
+ "version": "0.3.13",
4
4
  "license": "MIT",
5
5
  "description": "Local development environment helper for atproto development",
6
6
  "keywords": [
@@ -24,15 +24,15 @@
24
24
  "get-port": "^5.1.1",
25
25
  "multiformats": "^9.9.0",
26
26
  "uint8arrays": "3.0.0",
27
- "@atproto/api": "^0.12.9",
27
+ "@atproto/api": "^0.12.10",
28
+ "@atproto/bsky": "^0.0.52",
29
+ "@atproto/common-web": "^0.3.0",
28
30
  "@atproto/bsync": "^0.0.3",
29
- "@atproto/bsky": "^0.0.51",
30
31
  "@atproto/crypto": "^0.4.0",
31
- "@atproto/common-web": "^0.3.0",
32
32
  "@atproto/identity": "^0.4.0",
33
33
  "@atproto/lexicon": "^0.4.0",
34
- "@atproto/ozone": "^0.1.13",
35
- "@atproto/pds": "^0.4.21",
34
+ "@atproto/ozone": "^0.1.14",
35
+ "@atproto/pds": "^0.4.22",
36
36
  "@atproto/syntax": "^0.3.0",
37
37
  "@atproto/xrpc-server": "^0.5.1"
38
38
  },
package/src/seed/users.ts CHANGED
@@ -19,21 +19,10 @@ export default async (sc: SeedClient) => {
19
19
  users.bob.selfLabels,
20
20
  )
21
21
 
22
- await sc.agent.api.com.atproto.repo.putRecord(
23
- {
24
- repo: sc.dids.dan,
25
- collection: 'chat.bsky.actor.declaration',
26
- rkey: 'self',
27
- validate: false,
28
- record: {
29
- $type: 'chat.bsky.actor.declaration',
30
- allowIncoming: 'none',
31
- },
32
- },
33
- {
34
- encoding: 'application/json',
35
- headers: sc.getHeaders(sc.dids.dan),
36
- },
22
+ await sc.agent.api.chat.bsky.actor.declaration.create(
23
+ { repo: sc.dids.dan },
24
+ { allowIncoming: 'none' },
25
+ sc.getHeaders(sc.dids.dan),
37
26
  )
38
27
 
39
28
  return sc