From f8d03194b8f541a4459c27fe51599526a73ee2ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Janek=20Nouvertn=C3=A9?= <25355197+provinzkraut@users.noreply.github.com> Date: Sun, 4 Feb 2024 19:03:31 +0100 Subject: [PATCH] v2.5.5 --- docs/release-notes/changelog.rst | 16 +++++++++++++++- pyproject.toml | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/docs/release-notes/changelog.rst b/docs/release-notes/changelog.rst index b77ebed6ba..bae18fd51d 100644 --- a/docs/release-notes/changelog.rst +++ b/docs/release-notes/changelog.rst @@ -3,8 +3,22 @@ 2.x Changelog ============= +.. changelog:: 2.5.5 + :date: 2024/02/04 + + .. change:: Fix scope ``state`` key handling + :type: bugfix + :pr: 3070 + + Fix a regression introduced in #2751 that would wrongfully assume the ``state`` + key is always present within the ASGI Scope. This is *only* the case when the + Litestar root application is invoked first, since we enforce such a key there, + but the presence of that key is not actually guaranteed by the ASGI spec and + some servers, such as hypercorn, do not provide it. + + .. changelog:: 2.5.4 - :date: 2024-01-31 + :date: 2024/01/31 .. change:: Handle ``KeyError`` when `root_path` is not present in ASGI scope :type: bugfix diff --git a/pyproject.toml b/pyproject.toml index e7e0f87451..51173302aa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,7 +57,7 @@ maintainers = [ name = "litestar" readme = "README.md" requires-python = ">=3.8,<4.0" -version = "2.5.4" +version = "2.5.5" [project.urls] Blog = "https://blog.litestar.dev"