Skip to content

Commit

Permalink
chore(release): prepare for v2.5.4 (#3052)
Browse files Browse the repository at this point in the history
* chore(release): prepare for v2.5.4


---------

Co-authored-by: Alc-Alc <alc@localhost>
  • Loading branch information
Alc-Alc and Alc-Alc authored Jan 31, 2024
1 parent eb1f617 commit 11a0db5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions docs/release-notes/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,36 @@
2.x Changelog
=============

.. changelog:: 2.5.4
:date: 2024-01-31

.. change:: Handle ``KeyError`` when `root_path` is not present in ASGI scope
:type: bugfix
:pr: 3051

Nginx Unit ASGI server does not set "root_path" in the ASGI scope, which is expected as part of the changes done in #3039. This PR fixes the assumption that the key is always present and instead tries to optionally retrieve it.


Issue originally reported over at [Discord](https://discord.com/channels/919193495116337154/919193495690936353/1202204676003745792)

.. code-block::
KeyError on GET /
'root_path'
.. change:: ServerSentEvent typing error
:type: bugfix
:pr: 3048

fixes small typing error:

.. code-block::
error: Argument 1 to "ServerSentEvent" has incompatible type "AsyncIterable[ServerSentEventMessage]"; expected "str | bytes | Iterable[str | bytes] | Iterator[str | bytes] | AsyncIterable[str | bytes] | AsyncIterator[str | bytes]" [arg-type]
inside ``test_sse`` there was a ``Any`` I changed to trigger the test then solved it.


.. changelog:: 2.5.3
:date: 2024/01/29

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ maintainers = [
name = "litestar"
readme = "README.md"
requires-python = ">=3.8,<4.0"
version = "2.5.3"
version = "2.5.4"

[project.urls]
Blog = "https://blog.litestar.dev"
Expand Down

0 comments on commit 11a0db5

Please sign in to comment.