@@ -124,6 +124,10 @@ You can also register a method handler with
124124
125125 server.register('com.example.my-query', my_query_handler)
126126
127+ If a method has non-JSON (eg binary) input, the positional ``input `` arg
128+ will be ``bytes ``. Similarly, for binary output, return ``bytes `` from
129+ your handler.
130+
127131As with ``Client ``, you can use custom lexicons by passing them to the
128132``Server `` constructor:
129133
@@ -305,21 +309,29 @@ Here’s how to package, test, and ship a new release.
305309Changelog
306310---------
307311
308- 1.1 - unreleased
312+ 1.1 - 2025-03-13
309313~~~~~~~~~~~~~~~~
310314
311315- Schema validation:
312316
313317 - Validate subscription (event stream websocket) parameters and output
314318 message payloads in both ``Client `` and ``Server ``.
315- - ``Server ``: raise ``ValidationError `` on unknown parameters.
319+ - When ``truncate `` is set, recurse into refs and arrays to truncate
320+ their string properties as necessary too.
321+ - Allow digits in NSID name (last segment)
322+ (`background <https://github.com/bluesky-social/atproto-website/pull/402 >`__).
323+
324+ - ``Server ``: raise ``ValidationError `` on unknown parameters.
325+
316326 - [STRIKEOUT:Don’t allow ``#main `` in ``$type ``
317327 (]\ `bluesky-social/atproto#1968 <https://github.com/bluesky-social/atproto/discussions/1968 >`__\ [STRIKEOUT:).]
318328 - Bug fix for open unions, allow types that aren’t in ``refs ``.
319329
320330- ``Client ``:
321331
322332 - Include headers in websocket connections for event streams.
333+ - Add new ``auth `` constructor kwarg to support any ``requests `` auth
334+ instance, eg ``requests_oauth2client.DPoPToken ``.
323335
324336- ``server ``:
325337
@@ -331,6 +343,8 @@ Changelog
331343 ``ValidationError ``, ie ``err.args[1] ``, as a dict of additional
332344 HTTP headers to return with the HTTP 400 response.
333345
346+ .. _section-1 :
347+
3343481.0 - 2024-10-14
335349~~~~~~~~~~~~~~~~
336350
@@ -353,7 +367,7 @@ Changelog
353367
354368 - Add ``status `` param to ``Redirect ``.
355369
356- .. _section-1 :
370+ .. _section-2 :
357371
3583720.7 - 2024-06-24
359373~~~~~~~~~~~~~~~~
@@ -384,7 +398,7 @@ Changelog
384398- Update bundled ``app.bsky `` and ``com.atproto `` lexicons, as of
385399 `bluesky-social/atproto@15cc6ff37c326d5c186385037c4bfe8b60ea41b1 <https://github.com/bluesky-social/atproto/commit/15cc6ff37c326d5c186385037c4bfe8b60ea41b1 >`__.
386400
387- .. _section-2 :
401+ .. _section-3 :
388402
3894030.6 - 2024-03-16
390404~~~~~~~~~~~~~~~~
@@ -395,7 +409,7 @@ Changelog
395409- Update bundled ``app.bsky `` and ``com.atproto `` lexicons, as of
396410 `bluesky-social/atproto@f45eef3 <https://github.com/bluesky-social/atproto/commit/f45eef3414f8827ba3a6958a7040c7e38bfd6282 >`__.
397411
398- .. _section-3 :
412+ .. _section-4 :
399413
4004140.5 - 2023-12-10
401415~~~~~~~~~~~~~~~~
@@ -410,7 +424,7 @@ Changelog
410424 - Bug fix: don’t infinite loop if ``refreshSession `` fails.
411425 - Other minor authentication bug fixes.
412426
413- .. _section-4 :
427+ .. _section-5 :
414428
4154290.4 - 2023-10-28
416430~~~~~~~~~~~~~~~~
@@ -450,7 +464,7 @@ Changelog
450464 - Add the ``error `` field to the JSON response bodies for most error
451465 responses.
452466
453- .. _section-5 :
467+ .. _section-6 :
454468
4554690.3 - 2023-08-29
456470~~~~~~~~~~~~~~~~
@@ -462,7 +476,7 @@ Changelog
462476- Add new ``Server.register `` method for manually registering handlers.
463477- Bug fix for server ``@method `` decorator.
464478
465- .. _section-6 :
479+ .. _section-7 :
466480
4674810.2 - 2023-03-13
468482~~~~~~~~~~~~~~~~
@@ -479,7 +493,7 @@ put more effort into matching and fully implementing them. Stay tuned!
479493 format <https://github.com/snarfed/atproto/commit/63b9873bb1699b6bce54e7a8d3db2fcbd2cfc5ab> `__.
480494 Original format is no longer supported.
481495
482- .. _section-7 :
496+ .. _section-8 :
483497
4844980.1 - 2022-12-13
485499~~~~~~~~~~~~~~~~
0 commit comments