Skip to content

Commit

Permalink
changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieusieben committed May 16, 2024
1 parent cde99cb commit f84f085
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/funny-points-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@atproto/xrpc-server": minor
---

Allow upload of payload of zero bytes (e.g. empty txt file)
5 changes: 5 additions & 0 deletions .changeset/honest-hornets-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@atproto/lexicon": patch
---

Add the ability to instantiate a Lexicon from an iterable, and to use a Lexicon as iterable.
23 changes: 23 additions & 0 deletions .changeset/purple-pans-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
"@atproto/lex-cli": minor
"@atproto/xrpc": minor
"@atproto/api": minor
"@atproto/xrpc-server": patch
"@atproto/dev-env": patch
"@atproto/lexicon": patch
"@atproto/ozone": patch
"@atproto/bsky": patch
"@atproto/pds": patch
---

**New Features**:

1) Improved Separation of Concerns: We've restructured the XRPC HTTP call dispatcher into a distinct class. This means cleaner code organization and better clarity on responsibilities.
2) Enhanced Evolutivity: With this refactor, the XRPC client is now more adaptable to various use cases. You can easily extend and customize the dispatcher perform session management, retries, and more.

**Compatibility**:

Most of the changes introduced in this version are backward-compatible. However, there are a couple of breaking changes you should be aware of:

- Customizing `fetchHandler`: The ability to customize the fetchHandler on the XRPC Client and AtpAgent classes has been modified. Please review your code if you rely on custom fetch handlers.
- Managing Sessions: Previously, you had the ability to manage sessions directly through AtpAgent instances. Now, session management must be handled through a dedicated `SessionDispatcher` class. If you were using session management directly, you'll need to update your code accordingly.
6 changes: 6 additions & 0 deletions .changeset/rare-feet-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@atproto/xrpc": minor
"@atproto/api": minor
---

Add the ability to use `fetch()` compatible `BodyInit` body when making XRPC calls.

0 comments on commit f84f085

Please sign in to comment.