Skip to content

Commit a14b4cc

Browse files
chore: release packages 📦 (#38)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 8bd3453 commit a14b4cc

3 files changed

Lines changed: 16 additions & 16 deletions

File tree

.changeset/atproto-loader-blobs-and-pds.md

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

astro-atproto-loader/CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# @fujocoded/astro-atproto-loader
22

3+
## 0.2.1
4+
5+
### Patch Changes
6+
7+
- 8bd3453: Fixes `0.2.0`, which was broken: `defineAtProtoCollection` and `defineAtProtoLiveCollection` didn't return the shape Astro expected, so callers had to wrap them in `defineCollection` / `defineLiveCollection` themselves. They now return the real Astro collection shape and work as documented.
8+
9+
**Breaking:** `fetchRecord({ atUri })` now resolves to `{ value, repo }` instead of just the record value. Existing callers need to read `.value`. The new `repo` field carries the fetched record's `{ did, pds }` so it can be passed directly to `toHostedBlob` without re-resolving identity. This is shipped as a patch (and not a minor bump) because `0.2.0` was only on npm for ~8 hours and is being deprecated alongside this release, so realistically nobody is depending on the old `fetchRecord` shape.
10+
11+
Also in this release:
12+
- New `toHostedBlob({ repo, blob })` for building `com.atproto.sync.getBlob` URLs, plus the `isAtBlob` guard and the `AtBlob` type.
13+
- `AtProtoRecordRepo` now includes `pds` alongside `did`, so `args.repo` works directly with `toHostedBlob`.
14+
- `getPds(repo)` is exported and shares the identity cache with `getClient`.
15+
- `BlobRef` and `CID` instances are flattened to `{ $link }` before being stored, so records with blobs don't break Astro's devalue store.
16+
- Added the `04-single-entry` example.
17+
318
## 0.2.0
419

520
### Minor Changes

astro-atproto-loader/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fujocoded/astro-atproto-loader",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "Astro loaders (live and static) for reading AtProto records into Astro content collections.",
55
"keywords": [
66
"astro",

0 commit comments

Comments
 (0)