Skip to content

Commit 5c37fb3

Browse files
committed
chore: Release 2.21.0
1 parent 4559996 commit 5c37fb3

3 files changed

Lines changed: 496 additions & 484 deletions

File tree

docs/release-notes/changelog.rst

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,30 @@
33
Litestar 2 Changelog
44
====================
55

6+
.. changelog:: 2.21.0
7+
:date: 2026-02-14
8+
9+
.. change:: DI: Fix handling of bound methods returning (async) generators
10+
:type: bugfix
11+
:issue: 4596
12+
:pr: 4597
13+
14+
Fix a regression introced in github.com/litestar-org/litestar/pull/4459, that
15+
would lead to lead to async generators returned from bound methods of DI
16+
providers being recognised as a synchronous callable, instead of an async
17+
generator.
18+
19+
.. change:: Add ``after_exception`` option for ``OpenTelemetryConfig``
20+
:type: feature
21+
:pr: 4595
22+
:issue: 4594
23+
24+
Add an ``after_exception`` option to
25+
:class:`~litestar.contrib.opentelemetry.OpenTelemetryConfig`, which will
26+
add that hook to the applications ``after_exception`` hooks, allowing the
27+
middleware to react to exception, without handling them.
28+
29+
630
.. changelog:: 2.20.0
731
:date: 2026-02-08
832

@@ -6539,4 +6563,4 @@ Litestar 2 Changelog
65396563
:issue: 1149
65406564

65416565
A middleware's ``exclude`` parameter would sometimes not be honoured if the path was used to serve static files
6542-
using ``StaticFilesConfig``
6566+
using ``StaticFilesConfig``

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ maintainers = [
6464
name = "litestar"
6565
readme = "docs/PYPI_README.md"
6666
requires-python = ">=3.8,<4.0"
67-
version = "2.20.0"
67+
version = "2.21.0"
6868

6969
[project.urls]
7070
Blog = "https://blog.litestar.dev"

0 commit comments

Comments
 (0)