Skip to content

Commit defe059

Browse files
ci: release (#118)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 33d23fb commit defe059

5 files changed

Lines changed: 26 additions & 31 deletions

File tree

.changeset/bot-preview-oauth.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

.changeset/long-hairs-walk.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/normalize-blob-refs.md

Lines changed: 0 additions & 16 deletions
This file was deleted.

packages/pds/CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# @getcirrus/pds
22

3+
## 0.10.2
4+
5+
### Patch Changes
6+
7+
- [#120](https://github.com/ascorbic/cirrus/pull/120) [`82301c5`](https://github.com/ascorbic/cirrus/commit/82301c5ca70ee2fcc1f69900cf55b8fdbbf92bdc) Thanks [@ascorbic](https://github.com/ascorbic)! - Skip OAuth authorization for messaging platform link preview bots
8+
9+
Messaging platforms (Telegram, Slack, Discord, Twitter/X, Facebook/iMessage) pre-fetch URLs shared in DMs and channels. When an OAuth authorization link with a one-time PAR request URI is shared, the preview bot consumes it before the user can open it. The authorize endpoint now detects these specific bots by User-Agent and returns a minimal HTML page with appropriate meta tags instead of processing the OAuth request.
10+
11+
Only known messaging platform bots are matched — generic crawlers and spiders are not excluded, since an unknown bot hitting an OAuth URL should still consume the token.
12+
13+
- [#116](https://github.com/ascorbic/cirrus/pull/116) [`a06516a`](https://github.com/ascorbic/cirrus/commit/a06516a8898b5be50ea4de0f68b5360140d4d990) Thanks [@ascorbic](https://github.com/ascorbic)! - Detect content type of blobs
14+
15+
- [#119](https://github.com/ascorbic/cirrus/pull/119) [`92a2b39`](https://github.com/ascorbic/cirrus/commit/92a2b39cdf53df0d4478e83ff679995e3fabc78c) Thanks [@ascorbic](https://github.com/ascorbic)! - Normalize JSON blob references for correct dag-cbor encoding
16+
17+
Incoming API records contain blob references with nested `$link` objects
18+
(for example, `{ "$type": "blob", "ref": { "$link": "bafk..." } }`). These
19+
must be converted to actual CID instances before CBOR encoding, otherwise
20+
the blob ref's `ref` field gets encoded as a map instead of a proper CID tag.
21+
This causes incorrect block hashes, which can lead to blob resolution failures
22+
on the Bluesky network.
23+
24+
Uses `jsonToLex` from `@atproto/lex-json` to convert `$link` → CID and
25+
`$bytes` → Uint8Array on all record write paths (createRecord, putRecord,
26+
applyWrites).
27+
328
## 0.10.1
429

530
### Patch Changes

packages/pds/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@getcirrus/pds",
3-
"version": "0.10.1",
3+
"version": "0.10.2",
44
"description": "Cirrus – A single-user AT Protocol PDS on Cloudflare Workers",
55
"type": "module",
66
"main": "dist/index.js",

0 commit comments

Comments
 (0)