+2
-9
packages/bluesky/moderation/README.md
+2
-9
packages/bluesky/moderation/README.md
···
4
4
5
5
```ts
6
6
import type { XRPC } from '@atcute/client';
7
-
import type {
8
-
AppBskyActorDefs,
9
-
AppBskyFeedDefs,
10
-
AppBskyLabelerDefs,
11
-
At,
12
-
} from '@atcute/client/lexicons';
7
+
import type { AppBskyActorDefs, AppBskyFeedDefs, AppBskyLabelerDefs, At } from '@atcute/client/lexicons';
13
8
14
9
import {
15
10
DisplayContext,
···
118
113
},
119
114
});
120
115
121
-
labelers = data.views.filter(
122
-
(view) => view.$type === 'app.bsky.labeler.defs#labelerViewDetailed',
123
-
);
116
+
labelers = data.views.filter((view) => view.$type === 'app.bsky.labeler.defs#labelerViewDetailed');
124
117
}
125
118
126
119
// interpret the labeler's definitions into something the library can understand
+2
-2
packages/bluesky/moderation/tsconfig.json
+2
-2
packages/bluesky/moderation/tsconfig.json
+2
-2
packages/bluesky/richtext-builder/tsconfig.json
+2
-2
packages/bluesky/richtext-builder/tsconfig.json
+2
-2
packages/bluesky/richtext-parser/tsconfig.json
+2
-2
packages/bluesky/richtext-parser/tsconfig.json
+2
-2
packages/bluesky/richtext-segmenter/tsconfig.json
+2
-2
packages/bluesky/richtext-segmenter/tsconfig.json
+2
-2
packages/bluesky/search-parser/tsconfig.json
+2
-2
packages/bluesky/search-parser/tsconfig.json
+2
-2
packages/bluesky/threading/tsconfig.json
+2
-2
packages/bluesky/threading/tsconfig.json
+1
-12
packages/clients/client/CHANGELOG.md
+1
-12
packages/clients/client/CHANGELOG.md
···
35
35
this change is pretty big, where it used to be that `@atcute/client` would ship type definitions
36
36
for core lexicon types (`At.Did`, `At.ResourceUri`, `At.CidLink` and so on) and `com.atproto.*`
37
37
interfaces, they're now decoupled into their own packages:
38
-
39
38
- `@atcute/lexicons` for core lexicon types
40
39
- `@atcute/atproto` for `com.atproto.*` interfaces
41
40
···
43
42
from `com.atproto.*`, then you'd need to install `@atcute/atproto` as well.
44
43
45
44
migration notes:
46
-
47
45
- the `At` namespace is gone, you can import `Did`, `ResourceUri` and many other core types
48
46
directly from `@atcute/lexicons`
49
47
···
98
96
get them.
99
97
100
98
```ts
101
-
import type {
102
-
InferInput,
103
-
InferOutput,
104
-
InferXRPCBodyInput,
105
-
InferXRPCBodyOutput,
106
-
} from '@atcute/lexicons';
99
+
import type { InferInput, InferOutput, InferXRPCBodyInput, InferXRPCBodyOutput } from '@atcute/lexicons';
107
100
108
101
import type { AppBskyActorSearchActors } from '@atcute/bluesky';
109
102
···
184
177
- 49028fb: a new Client class for making API requests, replacing the previous `XRPC` class.
185
178
186
179
key changes include:
187
-
188
180
- **explicit error handling**: the new `Client` class returns an object of `{ ok, data }` instead
189
181
of throwing on non-successful responses. this should make it easier to handle these exceptional
190
182
cases without needing to wrap the request in a try-catch block.
···
242
234
243
235
- **configurable response format**: the `as` field can be used to configure how the response body
244
236
should be returned:
245
-
246
237
- `"json"` parsed as JSON
247
238
- `"blob"` returns a Blob
248
239
- `"bytes"` returns a Uint8Array
···
253
244
return a JSON response. (e.g. `com.atproto.sync.getBlob`)
254
245
255
246
- **clearer naming**:
256
-
257
247
- `.call()` method is renamed to `.post()` to better reflect that it makes an HTTP POST request.
258
248
- configuring service proxying should be less confusing.
259
249
···
286
276
- d3fbc7e: consistent casing on types and interfaces
287
277
288
278
no more capitalized/pascalcase mixing, these following types are renamed:
289
-
290
279
- `At.CID` → `At.Cid`
291
280
- `At.CIDLink` → `At.CidLink`
292
281
- `At.DID` → `At.Did`
+2
-2
packages/clients/client/tsconfig.json
+2
-2
packages/clients/client/tsconfig.json
+2
-2
packages/clients/jetstream/tsconfig.json
+2
-2
packages/clients/jetstream/tsconfig.json
-1
packages/definitions/atproto/CHANGELOG.md
-1
packages/definitions/atproto/CHANGELOG.md
···
16
16
but clearly these convenient interfaces are still worth having, so while it now exists, the
17
17
compromise is that these interfaces now have been renamed to ensure they don't conflict with any
18
18
definitions ever:
19
-
20
19
- `Params` to `$params`, for query parameters
21
20
- `Input` to `$input`, for request body
22
21
- `Output` to `$output`, for response body
+2
-2
packages/definitions/atproto/tsconfig.json
+2
-2
packages/definitions/atproto/tsconfig.json
+1
-10
packages/definitions/bluemoji/CHANGELOG.md
+1
-10
packages/definitions/bluemoji/CHANGELOG.md
···
16
16
but clearly these convenient interfaces are still worth having, so while it now exists, the
17
17
compromise is that these interfaces now have been renamed to ensure they don't conflict with any
18
18
definitions ever:
19
-
20
19
- `Params` to `$params`, for query parameters
21
20
- `Input` to `$input`, for request body
22
21
- `Output` to `$output`, for response body
···
81
80
this change is pretty big, where it used to be that `@atcute/client` would ship type definitions
82
81
for core lexicon types (`At.Did`, `At.ResourceUri`, `At.CidLink` and so on) and `com.atproto.*`
83
82
interfaces, they're now decoupled into their own packages:
84
-
85
83
- `@atcute/lexicons` for core lexicon types
86
84
- `@atcute/atproto` for `com.atproto.*` interfaces
87
85
···
89
87
from `com.atproto.*`, then you'd need to install `@atcute/atproto` as well.
90
88
91
89
migration notes:
92
-
93
90
- the `At` namespace is gone, you can import `Did`, `ResourceUri` and many other core types
94
91
directly from `@atcute/lexicons`
95
92
···
144
141
get them.
145
142
146
143
```ts
147
-
import type {
148
-
InferInput,
149
-
InferOutput,
150
-
InferXRPCBodyInput,
151
-
InferXRPCBodyOutput,
152
-
} from '@atcute/lexicons';
144
+
import type { InferInput, InferOutput, InferXRPCBodyInput, InferXRPCBodyOutput } from '@atcute/lexicons';
153
145
154
146
import type { AppBskyActorSearchActors } from '@atcute/bluesky';
155
147
···
215
207
- d3fbc7e: consistent casing on types and interfaces
216
208
217
209
no more capitalized/pascalcase mixing, these following types are renamed:
218
-
219
210
- `At.CID` → `At.Cid`
220
211
- `At.CIDLink` → `At.CidLink`
221
212
- `At.DID` → `At.Did`
+2
-2
packages/definitions/bluemoji/tsconfig.json
+2
-2
packages/definitions/bluemoji/tsconfig.json
+1
-10
packages/definitions/bluesky/CHANGELOG.md
+1
-10
packages/definitions/bluesky/CHANGELOG.md
···
44
44
but clearly these convenient interfaces are still worth having, so while it now exists, the
45
45
compromise is that these interfaces now have been renamed to ensure they don't conflict with any
46
46
definitions ever:
47
-
48
47
- `Params` to `$params`, for query parameters
49
48
- `Input` to `$input`, for request body
50
49
- `Output` to `$output`, for response body
···
112
111
this change is pretty big, where it used to be that `@atcute/client` would ship type definitions
113
112
for core lexicon types (`At.Did`, `At.ResourceUri`, `At.CidLink` and so on) and `com.atproto.*`
114
113
interfaces, they're now decoupled into their own packages:
115
-
116
114
- `@atcute/lexicons` for core lexicon types
117
115
- `@atcute/atproto` for `com.atproto.*` interfaces
118
116
···
120
118
from `com.atproto.*`, then you'd need to install `@atcute/atproto` as well.
121
119
122
120
migration notes:
123
-
124
121
- the `At` namespace is gone, you can import `Did`, `ResourceUri` and many other core types
125
122
directly from `@atcute/lexicons`
126
123
···
175
172
get them.
176
173
177
174
```ts
178
-
import type {
179
-
InferInput,
180
-
InferOutput,
181
-
InferXRPCBodyInput,
182
-
InferXRPCBodyOutput,
183
-
} from '@atcute/lexicons';
175
+
import type { InferInput, InferOutput, InferXRPCBodyInput, InferXRPCBodyOutput } from '@atcute/lexicons';
184
176
185
177
import type { AppBskyActorSearchActors } from '@atcute/bluesky';
186
178
···
278
270
- d3fbc7e: consistent casing on types and interfaces
279
271
280
272
no more capitalized/pascalcase mixing, these following types are renamed:
281
-
282
273
- `At.CID` → `At.Cid`
283
274
- `At.CIDLink` → `At.CidLink`
284
275
- `At.DID` → `At.Did`
+2
-2
packages/definitions/bluesky/tsconfig.json
+2
-2
packages/definitions/bluesky/tsconfig.json
+2
-2
packages/definitions/frontpage/tsconfig.json
+2
-2
packages/definitions/frontpage/tsconfig.json
+2
-2
packages/definitions/leaflet/tsconfig.json
+2
-2
packages/definitions/leaflet/tsconfig.json
-1
packages/definitions/lexicon-community/CHANGELOG.md
-1
packages/definitions/lexicon-community/CHANGELOG.md
···
16
16
but clearly these convenient interfaces are still worth having, so while it now exists, the
17
17
compromise is that these interfaces now have been renamed to ensure they don't conflict with any
18
18
definitions ever:
19
-
20
19
- `Params` to `$params`, for query parameters
21
20
- `Input` to `$input`, for request body
22
21
- `Output` to `$output`, for response body
+2
-2
packages/definitions/lexicon-community/tsconfig.json
+2
-2
packages/definitions/lexicon-community/tsconfig.json
+1
-10
packages/definitions/ozone/CHANGELOG.md
+1
-10
packages/definitions/ozone/CHANGELOG.md
···
25
25
but clearly these convenient interfaces are still worth having, so while it now exists, the
26
26
compromise is that these interfaces now have been renamed to ensure they don't conflict with any
27
27
definitions ever:
28
-
29
28
- `Params` to `$params`, for query parameters
30
29
- `Input` to `$input`, for request body
31
30
- `Output` to `$output`, for response body
···
90
89
this change is pretty big, where it used to be that `@atcute/client` would ship type definitions
91
90
for core lexicon types (`At.Did`, `At.ResourceUri`, `At.CidLink` and so on) and `com.atproto.*`
92
91
interfaces, they're now decoupled into their own packages:
93
-
94
92
- `@atcute/lexicons` for core lexicon types
95
93
- `@atcute/atproto` for `com.atproto.*` interfaces
96
94
···
98
96
from `com.atproto.*`, then you'd need to install `@atcute/atproto` as well.
99
97
100
98
migration notes:
101
-
102
99
- the `At` namespace is gone, you can import `Did`, `ResourceUri` and many other core types
103
100
directly from `@atcute/lexicons`
104
101
···
153
150
get them.
154
151
155
152
```ts
156
-
import type {
157
-
InferInput,
158
-
InferOutput,
159
-
InferXRPCBodyInput,
160
-
InferXRPCBodyOutput,
161
-
} from '@atcute/lexicons';
153
+
import type { InferInput, InferOutput, InferXRPCBodyInput, InferXRPCBodyOutput } from '@atcute/lexicons';
162
154
163
155
import type { AppBskyActorSearchActors } from '@atcute/bluesky';
164
156
···
242
234
- d3fbc7e: consistent casing on types and interfaces
243
235
244
236
no more capitalized/pascalcase mixing, these following types are renamed:
245
-
246
237
- `At.CID` → `At.Cid`
247
238
- `At.CIDLink` → `At.CidLink`
248
239
- `At.DID` → `At.Did`
+2
-2
packages/definitions/ozone/tsconfig.json
+2
-2
packages/definitions/ozone/tsconfig.json
+2
-2
packages/definitions/tangled/tsconfig.json
+2
-2
packages/definitions/tangled/tsconfig.json
+1
-10
packages/definitions/whitewind/CHANGELOG.md
+1
-10
packages/definitions/whitewind/CHANGELOG.md
···
16
16
but clearly these convenient interfaces are still worth having, so while it now exists, the
17
17
compromise is that these interfaces now have been renamed to ensure they don't conflict with any
18
18
definitions ever:
19
-
20
19
- `Params` to `$params`, for query parameters
21
20
- `Input` to `$input`, for request body
22
21
- `Output` to `$output`, for response body
···
53
52
this change is pretty big, where it used to be that `@atcute/client` would ship type definitions
54
53
for core lexicon types (`At.Did`, `At.ResourceUri`, `At.CidLink` and so on) and `com.atproto.*`
55
54
interfaces, they're now decoupled into their own packages:
56
-
57
55
- `@atcute/lexicons` for core lexicon types
58
56
- `@atcute/atproto` for `com.atproto.*` interfaces
59
57
···
61
59
from `com.atproto.*`, then you'd need to install `@atcute/atproto` as well.
62
60
63
61
migration notes:
64
-
65
62
- the `At` namespace is gone, you can import `Did`, `ResourceUri` and many other core types
66
63
directly from `@atcute/lexicons`
67
64
···
116
113
get them.
117
114
118
115
```ts
119
-
import type {
120
-
InferInput,
121
-
InferOutput,
122
-
InferXRPCBodyInput,
123
-
InferXRPCBodyOutput,
124
-
} from '@atcute/lexicons';
116
+
import type { InferInput, InferOutput, InferXRPCBodyInput, InferXRPCBodyOutput } from '@atcute/lexicons';
125
117
126
118
import type { AppBskyActorSearchActors } from '@atcute/bluesky';
127
119
···
186
178
- d3fbc7e: consistent casing on types and interfaces
187
179
188
180
no more capitalized/pascalcase mixing, these following types are renamed:
189
-
190
181
- `At.CID` → `At.Cid`
191
182
- `At.CIDLink` → `At.CidLink`
192
183
- `At.DID` → `At.Did`
+2
-2
packages/definitions/whitewind/tsconfig.json
+2
-2
packages/definitions/whitewind/tsconfig.json
+2
-2
packages/identity/did-plc/tsconfig.json
+2
-2
packages/identity/did-plc/tsconfig.json
+2
-2
packages/identity/identity-resolver-node/tsconfig.json
+2
-2
packages/identity/identity-resolver-node/tsconfig.json
+2
-2
packages/identity/identity-resolver/tsconfig.json
+2
-2
packages/identity/identity-resolver/tsconfig.json
+2
-2
packages/identity/identity/tsconfig.json
+2
-2
packages/identity/identity/tsconfig.json
+2
-2
packages/internal/dev-env/tsconfig.json
+2
-2
packages/internal/dev-env/tsconfig.json
+2
-2
packages/internal/pkg-size-report/tsconfig.json
+2
-2
packages/internal/pkg-size-report/tsconfig.json
-2
packages/lexicons/lex-cli/CHANGELOG.md
-2
packages/lexicons/lex-cli/CHANGELOG.md
···
22
22
but clearly these convenient interfaces are still worth having, so while it now exists, the
23
23
compromise is that these interfaces now have been renamed to ensure they don't conflict with any
24
24
definitions ever:
25
-
26
25
- `Params` to `$params`, for query parameters
27
26
- `Input` to `$input`, for request body
28
27
- `Output` to `$output`, for response body
···
97
96
- d3fbc7e: consistent casing on types and interfaces
98
97
99
98
no more capitalized/pascalcase mixing, these following types are renamed:
100
-
101
99
- `At.CID` → `At.Cid`
102
100
- `At.CIDLink` → `At.CidLink`
103
101
- `At.DID` → `At.Did`
+2
-2
packages/lexicons/lex-cli/tsconfig.json
+2
-2
packages/lexicons/lex-cli/tsconfig.json
+2
-2
packages/lexicons/lexicon-doc/tsconfig.json
+2
-2
packages/lexicons/lexicon-doc/tsconfig.json
+1
-1
packages/lexicons/lexicons/lib/syntax/cid.test.ts
+1
-1
packages/lexicons/lexicons/lib/syntax/cid.test.ts
+1
-1
packages/lexicons/lexicons/lib/syntax/datetime.test.ts
+1
-1
packages/lexicons/lexicons/lib/syntax/datetime.test.ts
+1
-1
packages/lexicons/lexicons/lib/syntax/did.test.ts
+1
-1
packages/lexicons/lexicons/lib/syntax/did.test.ts
+1
-1
packages/lexicons/lexicons/lib/syntax/handle.test.ts
+1
-1
packages/lexicons/lexicons/lib/syntax/handle.test.ts
+1
-1
packages/lexicons/lexicons/lib/syntax/language.test.ts
+1
-1
packages/lexicons/lexicons/lib/syntax/language.test.ts
+1
-1
packages/lexicons/lexicons/lib/syntax/nsid.test.ts
+1
-1
packages/lexicons/lexicons/lib/syntax/nsid.test.ts
+1
-1
packages/lexicons/lexicons/lib/syntax/record-key.test.ts
+1
-1
packages/lexicons/lexicons/lib/syntax/record-key.test.ts
+1
-1
packages/lexicons/lexicons/lib/syntax/tid.test.ts
+1
-1
packages/lexicons/lexicons/lib/syntax/tid.test.ts
+1
-1
packages/lexicons/lexicons/lib/syntax/uri.test.ts
+1
-1
packages/lexicons/lexicons/lib/syntax/uri.test.ts
+2
-2
packages/lexicons/lexicons/tsconfig.json
+2
-2
packages/lexicons/lexicons/tsconfig.json
+2
-2
packages/misc/util-fetch/tsconfig.json
+2
-2
packages/misc/util-fetch/tsconfig.json
+2
-5
packages/oauth/browser-client/README.md
+2
-5
packages/oauth/browser-client/README.md
···
354
354
355
355
const type = response.headers.get('content-type')?.trim();
356
356
if (!response.ok) {
357
-
const message = type?.startsWith('text/plain')
358
-
? await response.text()
359
-
: `failed to resolve ${handle}`;
357
+
const message = type?.startsWith('text/plain') ? await response.text() : `failed to resolve ${handle}`;
360
358
361
359
throw new ResolverError(message);
362
360
}
···
440
438
};
441
439
```
442
440
443
-
[cf-resolver-firefox-privacy]:
444
-
https://developers.cloudflare.com/1.1.1.1/privacy/cloudflare-resolver-firefox/
441
+
[cf-resolver-firefox-privacy]: https://developers.cloudflare.com/1.1.1.1/privacy/cloudflare-resolver-firefox/
445
442
446
443
#### using your PDS for handle resolution
447
444
+2
-2
packages/oauth/browser-client/tsconfig.json
+2
-2
packages/oauth/browser-client/tsconfig.json
+2
-2
packages/servers/xrpc-server/tsconfig.json
+2
-2
packages/servers/xrpc-server/tsconfig.json
+2
-2
packages/utilities/car/tsconfig.json
+2
-2
packages/utilities/car/tsconfig.json
+2
-2
packages/utilities/cbor/tsconfig.json
+2
-2
packages/utilities/cbor/tsconfig.json
+2
-2
packages/utilities/cid/tsconfig.json
+2
-2
packages/utilities/cid/tsconfig.json
+3
-3
packages/utilities/crypto/tsconfig.json
+3
-3
packages/utilities/crypto/tsconfig.json
+3
-3
packages/utilities/multibase/tsconfig.json
+3
-3
packages/utilities/multibase/tsconfig.json
+2
-2
packages/utilities/tid/tsconfig.json
+2
-2
packages/utilities/tid/tsconfig.json
+2
-2
packages/utilities/uint8array/tsconfig.json
+2
-2
packages/utilities/uint8array/tsconfig.json
+2
-2
packages/utilities/varint/tsconfig.json
+2
-2
packages/utilities/varint/tsconfig.json