Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 0.21.0 #1812

Merged
merged 14 commits into from Sep 26, 2022
18 changes: 18 additions & 0 deletions docs/release-notes.md
@@ -1,3 +1,21 @@
## 0.21.0

Kludex marked this conversation as resolved.
Show resolved Hide resolved
September 24, 2022
Kludex marked this conversation as resolved.
Show resolved Hide resolved

This release replaces the underneath 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.
Kludex marked this conversation as resolved.
Show resolved Hide resolved

### Changed
* Replace HTTP client on TestClient from `requests` to `httpx` [#1376](https://github.com/encode/starlette/pull/1376).
Kludex marked this conversation as resolved.
Show resolved Hide resolved

### Added
* Add `WebSocketException` and support for WS handlers [#1263](https://github.com/encode/starlette/pull/1263).
Kludex marked this conversation as resolved.
Show resolved Hide resolved
* Add `middleware` parameter to `Mount` class [#1649](https://github.com/encode/starlette/pull/1649).
Kludex marked this conversation as resolved.
Show resolved Hide resolved
Kludex marked this conversation as resolved.
Show resolved Hide resolved
Kludex marked this conversation as resolved.
Show resolved Hide resolved
* Oficially support Python 3.11 [1863](https://github.com/encode/starlette/pull/1863).
Kludex marked this conversation as resolved.
Show resolved Hide resolved
* Implement `__repr__` for route classes [#1864](https://github.com/encode/starlette/pull/1864).
Kludex marked this conversation as resolved.
Show resolved Hide resolved

### 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
Expand Down
2 changes: 1 addition & 1 deletion starlette/__init__.py
@@ -1 +1 @@
__version__ = "0.20.4"
__version__ = "0.21.0"