From 12d0d99b8e6b09613305efc2aa1b87f5a4044529 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Thu, 18 Aug 2022 08:08:49 +0200 Subject: [PATCH 1/9] Version 0.21.0 --- docs/release-notes.md | 2 ++ starlette/__init__.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/release-notes.md b/docs/release-notes.md index c2d098eb8..cc18eff89 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,3 +1,5 @@ +## 0.21.0 + ## 0.20.4 June 28, 2022 diff --git a/starlette/__init__.py b/starlette/__init__.py index 8b8252f48..6a726d853 100644 --- a/starlette/__init__.py +++ b/starlette/__init__.py @@ -1 +1 @@ -__version__ = "0.20.4" +__version__ = "0.21.0" From 84f7d5cefa2d830e5316d2f967dcb7c5363211bd Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Wed, 21 Sep 2022 21:52:24 +0200 Subject: [PATCH 2/9] Update docs/release-notes.md --- docs/release-notes.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/release-notes.md b/docs/release-notes.md index cc18eff89..5f8b74f81 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,5 +1,15 @@ ## 0.21.0 +September 21, 2022 + +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. + +### Changed +* Replace HTTP client on TestClient from `requests` to `httpx` [#1376](https://github.com/encode/starlette/pull/1376). + +### Added +* Add `WebSocketException` and support for WS handlers [#1263](https://github.com/encode/starlette/pull/1263). +* Add `middleware` parameter to `Mount` class [#1649](https://github.com/encode/starlette/pull/1649). ## 0.20.4 June 28, 2022 From 9cab891c2fe4530b069459df054bc046c6b13a68 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Wed, 21 Sep 2022 21:53:53 +0200 Subject: [PATCH 3/9] Update docs/release-notes.md --- docs/release-notes.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/release-notes.md b/docs/release-notes.md index 5f8b74f81..ddd753a85 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -10,6 +10,7 @@ This release replaces the underneath HTTP client used on the `TestClient` (`requ ### Added * Add `WebSocketException` and support for WS handlers [#1263](https://github.com/encode/starlette/pull/1263). * Add `middleware` parameter to `Mount` class [#1649](https://github.com/encode/starlette/pull/1649). + ## 0.20.4 June 28, 2022 From fedf629169fb69659dd8ca32a4736d3c07dd6f48 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Fri, 23 Sep 2022 16:43:18 +0200 Subject: [PATCH 4/9] Apply suggestions from code review --- docs/release-notes.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/release-notes.md b/docs/release-notes.md index ddd753a85..041094874 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,6 +1,6 @@ ## 0.21.0 -September 21, 2022 +September 24, 2022 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. @@ -10,6 +10,7 @@ This release replaces the underneath HTTP client used on the `TestClient` (`requ ### Added * Add `WebSocketException` and support for WS handlers [#1263](https://github.com/encode/starlette/pull/1263). * Add `middleware` parameter to `Mount` class [#1649](https://github.com/encode/starlette/pull/1649). +* Implement `__repr__` for route classes [#1864](https://github.com/encode/starlette/pull/1864). ## 0.20.4 From 3e39f977bc29597b693f35a2b436c2fc1635f9cc Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Fri, 23 Sep 2022 16:44:49 +0200 Subject: [PATCH 5/9] Update docs/release-notes.md --- docs/release-notes.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/release-notes.md b/docs/release-notes.md index 041094874..929795bf9 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -10,6 +10,7 @@ This release replaces the underneath HTTP client used on the `TestClient` (`requ ### Added * Add `WebSocketException` and support for WS handlers [#1263](https://github.com/encode/starlette/pull/1263). * Add `middleware` parameter to `Mount` class [#1649](https://github.com/encode/starlette/pull/1649). +* Oficially 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). ## 0.20.4 From a29d28fb6af40d61c529f0c404425f29bd480e65 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Sat, 24 Sep 2022 07:38:52 +0200 Subject: [PATCH 6/9] Update docs/release-notes.md --- docs/release-notes.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/release-notes.md b/docs/release-notes.md index 929795bf9..63a50412e 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -13,6 +13,9 @@ This release replaces the underneath HTTP client used on the `TestClient` (`requ * Oficially 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 From 3ae230fbd3149657bccf58ed0621c9c0d61a2cb6 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Sat, 24 Sep 2022 07:40:47 +0200 Subject: [PATCH 7/9] Update docs/release-notes.md --- docs/release-notes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/release-notes.md b/docs/release-notes.md index 63a50412e..07d0fec19 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -10,7 +10,7 @@ This release replaces the underneath HTTP client used on the `TestClient` (`requ ### Added * Add `WebSocketException` and support for WS handlers [#1263](https://github.com/encode/starlette/pull/1263). * Add `middleware` parameter to `Mount` class [#1649](https://github.com/encode/starlette/pull/1649). -* Oficially support Python 3.11 [1863](https://github.com/encode/starlette/pull/1863). +* 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 From d3d5446bbcfcaccea43c6c4b4fe6b0975baa42b0 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Mon, 26 Sep 2022 17:12:23 +0100 Subject: [PATCH 8/9] Apply suggestions from code review Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com> --- docs/release-notes.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/release-notes.md b/docs/release-notes.md index 07d0fec19..4ba91c48a 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -2,13 +2,13 @@ September 24, 2022 -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. +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 HTTP client on TestClient from `requests` to `httpx` [#1376](https://github.com/encode/starlette/pull/1376). +* Replace `requests` with `httpx` in `TestClient` [#1376](https://github.com/encode/starlette/pull/1376). ### Added -* Add `WebSocketException` and support for WS handlers [#1263](https://github.com/encode/starlette/pull/1263). +* 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). From d7b3403d825ccd90f0f25ed745859887020f2307 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Mon, 26 Sep 2022 18:06:23 +0100 Subject: [PATCH 9/9] Update docs/release-notes.md --- docs/release-notes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/release-notes.md b/docs/release-notes.md index 4ba91c48a..f71f00acf 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,6 +1,6 @@ ## 0.21.0 -September 24, 2022 +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.