@@ -254,7 +254,7 @@ Here’s how to package, test, and ship a new release.
254254
255255 from lexrpc import Server
256256
257- server = Server([{
257+ server = Server(lexicons = [{
258258 ' lexicon' : 1 ,
259259 ' id' : ' io.example.ping' ,
260260 ' defs' : {
@@ -315,7 +315,7 @@ Here’s how to package, test, and ship a new release.
315315Changelog
316316---------
317317
318- 0.4 - unreleased
318+ 0.4 - 2023-10-28
319319~~~~~~~~~~~~~~~~
320320
321321- Bundle `the official
@@ -327,21 +327,34 @@ Changelog
327327
328328- ``Client ``:
329329
330- - Add minimal auth support with ``access_token `` constructor kwarg
331- and attribute. To send authenticated requests, call
332- ``createSession `` or ``refreshSession `` to get an access token,
333- then set it on a ``Client ``.
330+ - Add minimal auth support with ``access_token `` and
331+ ``refresh_token `` constructor kwargs and ``session `` attribute. If
332+ you use a ``Client `` to call ``com.atproto.server.createSession ``
333+ or ``com.atproto.server.refreshSession ``, the returned tokens will
334+ be automatically stored and used in future requests.
334335 - Bug fix: handle trailing slash on server address, eg
335336 ``http://ser.ver/ `` vs ``http://ser.ver ``.
336337 - Default server address to official ``https://bsky.social `` PDS.
337338 - Add default
338339 ``User-Agent: lexrpc (https://lexrpc.readthedocs.io/) `` request
339340 header.
340341
342+ - ``server ``:
343+
344+ - Add new ``Redirect `` class. Handlers can raise this to indicate
345+ that the web server should serve an HTTP redirect. `Whether this
346+ is official supported by the XRPC spec is still
347+ TBD. <https://github.com/bluesky-social/atproto/discussions/1228> `__
348+
341349- ``flask_server ``:
342350
343351 - Return HTTP 405 error on HTTP requests to subscription (websocket)
344352 XRPCs.
353+ - Support the new ``Redirect `` exception.
354+ - Add the ``error `` field to the JSON response bodies for most error
355+ responses.
356+
357+ .. _section-1 :
345358
3463590.3 - 2023-08-29
347360~~~~~~~~~~~~~~~~
@@ -353,7 +366,7 @@ Changelog
353366- Add new ``Server.register `` method for manually registering handlers.
354367- Bug fix for server ``@method `` decorator.
355368
356- .. _section-1 :
369+ .. _section-2 :
357370
3583710.2 - 2023-03-13
359372~~~~~~~~~~~~~~~~
@@ -370,7 +383,7 @@ put more effort into matching and fully implementing them. Stay tuned!
370383 format <https://github.com/snarfed/atproto/commit/63b9873bb1699b6bce54e7a8d3db2fcbd2cfc5ab> `__.
371384 Original format is no longer supported.
372385
373- .. _section-2 :
386+ .. _section-3 :
374387
3753880.1 - 2022-12-13
376389~~~~~~~~~~~~~~~~
0 commit comments