Skip to content

Commit 1a1b28e

Browse files
committed
release v0.4
also pin typing-extensions to <4.6.0 due to hashberg-io/typing-validation#1
1 parent a4c395c commit 1a1b28e

4 files changed

Lines changed: 31 additions & 13 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ Here's how to package, test, and ship a new release.
184184
```py
185185
from lexrpc import Server
186186
187-
server = Server([{
187+
server = Server(lexicons=[{
188188
'lexicon': 1,
189189
'id': 'io.example.ping',
190190
'defs': {
@@ -228,7 +228,7 @@ Here's how to package, test, and ship a new release.
228228
229229
## Changelog
230230
231-
### 0.4 - unreleased
231+
### 0.4 - 2023-10-28
232232
233233
* Bundle [the official lexicons](https://github.com/bluesky-social/atproto/tree/main/lexicons/) for `app.bsky` and `com.atproto`, use them by default.
234234
* `Base`:

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@
8888
# built documents.
8989
#
9090
# The short X.Y version.
91-
version = '0.3'
91+
version = '0.4'
9292
# The full version, including alpha/beta/rc tags.
93-
release = '0.3'
93+
release = '0.4'
9494

9595
# The language for content autogenerated by Sphinx. Refer to documentation
9696
# for a list of supported languages.

docs/index.rst

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
315315
Changelog
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

346359
0.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

358371
0.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

375388
0.1 - 2022-12-13
376389
~~~~~~~~~~~~~~~~

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ where = ['.']
1616

1717
[project]
1818
name = 'lexrpc'
19-
version = '0.3'
19+
version = '0.4'
2020
authors = [
2121
{ name='Ryan Barrett', email='lexrpc@ryanb.org' },
2222
]
@@ -29,6 +29,11 @@ dependencies = [
2929
'jsonschema>=4.0',
3030
'requests>=2.0',
3131
'simple-websocket',
32+
# we don't directly depend on typing-extensions; this is only here because
33+
# 4.6.0 introduced an incompatibility with the typing-validation package
34+
# that's still not fixed yet.
35+
# https://github.com/hashberg-io/typing-validation/issues/1
36+
'typing-extensions<4.6.0',
3237
]
3338
classifiers = [
3439
'Programming Language :: Python :: 3',

0 commit comments

Comments
 (0)