prototypey.org - atproto lexicon typescript toolkit - mirror https://github.com/tylersayshi/prototypey
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Version Packages (#104)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

authored by

github-actions[bot]
github-actions[bot]
and committed by
GitHub
f0583380 8bf9b2b3

+22 -21
-20
.changeset/blob-ref-type.md
··· 1 - --- 2 - "prototypey": minor 3 - --- 4 - 5 - Infer `lx.blob(...)` as `BlobRef` instead of the browser's `Blob`. 6 - 7 - The browser's `Blob` describes binary data on the client, not the AT Protocol blob shape that actually appears in records over the wire. Lexicons using `lx.blob(...)` now infer to a locally-defined `BlobRef`: 8 - 9 - ```ts 10 - type BlobRef = { 11 - $type: "blob"; 12 - ref: { $link: string } | Cid; 13 - mimeType: string; 14 - size: number; 15 - }; 16 - ``` 17 - 18 - This mirrors `BlobRef` from [`@atproto/api`](https://github.com/bluesky-social/atproto/tree/main/packages/api) / [`@atproto/lex-data`](https://github.com/bluesky-social/atproto/tree/main/packages/lex-data) without taking either as a dependency. `BlobRef` is exported from the package root for direct use. 19 - 20 - **Breaking:** code that previously read blob fields as `Blob` (e.g. calling `.arrayBuffer()` on them) will need to update to the `BlobRef` shape.
+21
packages/prototypey/CHANGELOG.md
··· 1 1 # prototypey 2 2 3 + ## 0.8.0 4 + 5 + ### Minor Changes 6 + 7 + - 8bf9b2b: Infer `lx.blob(...)` as `BlobRef` instead of the browser's `Blob`. 8 + 9 + The browser's `Blob` describes binary data on the client, not the AT Protocol blob shape that actually appears in records over the wire. Lexicons using `lx.blob(...)` now infer to a locally-defined `BlobRef`: 10 + 11 + ```ts 12 + type BlobRef = { 13 + $type: "blob"; 14 + ref: { $link: string } | Cid; 15 + mimeType: string; 16 + size: number; 17 + }; 18 + ``` 19 + 20 + This mirrors `BlobRef` from [`@atproto/api`](https://github.com/bluesky-social/atproto/tree/main/packages/api) / [`@atproto/lex-data`](https://github.com/bluesky-social/atproto/tree/main/packages/lex-data) without taking either as a dependency. `BlobRef` is exported from the package root for direct use. 21 + 22 + **Breaking:** code that previously read blob fields as `Blob` (e.g. calling `.arrayBuffer()` on them) will need to update to the `BlobRef` shape. 23 + 3 24 ## 0.7.0 4 25 5 26 ### Minor Changes
+1 -1
packages/prototypey/package.json
··· 1 1 { 2 2 "name": "prototypey", 3 - "version": "0.7.0", 3 + "version": "0.8.0", 4 4 "description": "atproto lexicon typescript toolkit", 5 5 "repository": { 6 6 "type": "git",