]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
Version 0.21.0 (#1812) 0.21.0
authorMarcelo Trylesinski <marcelotryle@gmail.com>
Mon, 26 Sep 2022 17:09:36 +0000 (18:09 +0100)
committerGitHub <noreply@github.com>
Mon, 26 Sep 2022 17:09:36 +0000 (18:09 +0100)
Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
docs/release-notes.md
starlette/__init__.py

index c2d098eb8e6b42fdd3ad7790fb3e2a47440521a1..f71f00acf189642ca52b51369605999c222b4eb8 100644 (file)
@@ -1,3 +1,21 @@
+## 0.21.0
+
+September 26, 2022
+
+This release replaces the underlying HTTP client used on the `TestClient` (`requests` :arrow_right: `httpx`), and as those clients [differ _a bit_ on their API](https://www.python-httpx.org/compatibility/), your test suite will likely break. To make the migration smoother, you can use the [`bump-testclient`](https://github.com/Kludex/bump-testclient) tool.
+
+### Changed
+* Replace `requests` with `httpx` in `TestClient` [#1376](https://github.com/encode/starlette/pull/1376).
+
+### Added
+* Add `WebSocketException` and support for WebSocket exception handlers [#1263](https://github.com/encode/starlette/pull/1263).
+* Add `middleware` parameter to `Mount` class [#1649](https://github.com/encode/starlette/pull/1649).
+* Officially support Python 3.11 [1863](https://github.com/encode/starlette/pull/1863).
+* Implement `__repr__` for route classes [#1864](https://github.com/encode/starlette/pull/1864).
+
+### Fixed
+* Fix bug on which `BackgroundTasks` were cancelled when using `BaseHTTPMiddleware` and client disconnected [#1715](https://github.com/encode/starlette/pull/1715).
+
 ## 0.20.4
 
 June 28, 2022
index 8b8252f4847d39f3290ae5fc748fd94d27f87195..6a726d853bc5b05a092d56af6a9ff05cfe4a7b7a 100644 (file)
@@ -1 +1 @@
-__version__ = "0.20.4"
+__version__ = "0.21.0"