From cda616b35a8778cddbb79821ffc0b9418df87508 Mon Sep 17 00:00:00 2001 From: Matthieu Sieben Date: Fri, 3 May 2024 19:56:43 +0200 Subject: [PATCH] changeset --- .changeset/funny-points-cover.md | 5 +++++ .changeset/honest-hornets-approve.md | 5 +++++ .changeset/purple-pans-shout.md | 23 +++++++++++++++++++++++ .changeset/rare-feet-happen.md | 6 ++++++ 4 files changed, 39 insertions(+) create mode 100644 .changeset/funny-points-cover.md create mode 100644 .changeset/honest-hornets-approve.md create mode 100644 .changeset/purple-pans-shout.md create mode 100644 .changeset/rare-feet-happen.md diff --git a/.changeset/funny-points-cover.md b/.changeset/funny-points-cover.md new file mode 100644 index 00000000000..dd1136d46c0 --- /dev/null +++ b/.changeset/funny-points-cover.md @@ -0,0 +1,5 @@ +--- +"@atproto/xrpc-server": minor +--- + +Allow upload of payload of zero bytes (e.g. empty txt file) diff --git a/.changeset/honest-hornets-approve.md b/.changeset/honest-hornets-approve.md new file mode 100644 index 00000000000..3d3af73aed2 --- /dev/null +++ b/.changeset/honest-hornets-approve.md @@ -0,0 +1,5 @@ +--- +"@atproto/lexicon": patch +--- + +Add the ability to instantiate a Lexicon from an iterable, and to use a Lexicon as iterable. diff --git a/.changeset/purple-pans-shout.md b/.changeset/purple-pans-shout.md new file mode 100644 index 00000000000..d8207ba5a55 --- /dev/null +++ b/.changeset/purple-pans-shout.md @@ -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. diff --git a/.changeset/rare-feet-happen.md b/.changeset/rare-feet-happen.md new file mode 100644 index 00000000000..4a2306cebe7 --- /dev/null +++ b/.changeset/rare-feet-happen.md @@ -0,0 +1,6 @@ +--- +"@atproto/xrpc": minor +"@atproto/api": minor +--- + +Add the ability to use `fetch()` compatible `BodyInit` body when making XRPC calls.