From 871d7f5ea570ea21f353aaf3518af99cacf7b634 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Thu, 27 Jan 2022 14:14:44 +0100 Subject: [PATCH 01/13] Version 0.19.0 --- docs/release-notes.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/release-notes.md b/docs/release-notes.md index 672b22409..30f5925a0 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,3 +1,13 @@ +## 0.19.0 + +January, 27, 2022 + +#### Added + +* Add `headers` parameter to `HTTPException` [#1435](). +* Responses with `405 Method Not Allowed` returned from Starlette now insert an `Allow` header, as described by [RFC 7231](https://datatracker.ietf.org/doc/html/rfc7231#section-6.5.5) [#1436](). +* The `content` argument in `JSONResponse` is now required [#1431](). + ## 0.18.0 January 23, 2022 From 129c285589ecb258a4cab3e77fe44194c0ee96af Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Thu, 27 Jan 2022 14:18:19 +0100 Subject: [PATCH 02/13] Add missing links --- 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 30f5925a0..b4622c64a 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -4,9 +4,9 @@ January, 27, 2022 #### Added -* Add `headers` parameter to `HTTPException` [#1435](). -* Responses with `405 Method Not Allowed` returned from Starlette now insert an `Allow` header, as described by [RFC 7231](https://datatracker.ietf.org/doc/html/rfc7231#section-6.5.5) [#1436](). -* The `content` argument in `JSONResponse` is now required [#1431](). +* Add `headers` parameter to `HTTPException` [#1435](https://github.com/encode/starlette/pull/1435). +* Responses with `405 Method Not Allowed` returned from Starlette now insert an `Allow` header, as described by [RFC 7231](https://datatracker.ietf.org/doc/html/rfc7231#section-6.5.5) [#1436](https://github.com/encode/starlette/pull/1436). +* The `content` argument in `JSONResponse` is now required [#1431](https://github.com/encode/starlette/pull/1431). ## 0.18.0 From 79466fe6b3be711904380c08083273c042d33d5e Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Thu, 27 Jan 2022 14:30:04 +0100 Subject: [PATCH 03/13] Update 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 b4622c64a..3115735cc 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -5,7 +5,7 @@ January, 27, 2022 #### Added * Add `headers` parameter to `HTTPException` [#1435](https://github.com/encode/starlette/pull/1435). -* Responses with `405 Method Not Allowed` returned from Starlette now insert an `Allow` header, as described by [RFC 7231](https://datatracker.ietf.org/doc/html/rfc7231#section-6.5.5) [#1436](https://github.com/encode/starlette/pull/1436). +* Internal responses with `405` status code insert an `Allow` header, as described by [RFC 7231](https://datatracker.ietf.org/doc/html/rfc7231#section-6.5.5) [#1436](https://github.com/encode/starlette/pull/1436). * The `content` argument in `JSONResponse` is now required [#1431](https://github.com/encode/starlette/pull/1431). ## 0.18.0 From 885af6d054be97032ddf48bde25ce2cc43ec77f7 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Fri, 28 Jan 2022 18:05:04 +0100 Subject: [PATCH 04/13] Update release-notes.md --- 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 3115735cc..522a4fb45 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,12 +1,13 @@ ## 0.19.0 -January, 27, 2022 +January, 28, 2022 #### Added * Add `headers` parameter to `HTTPException` [#1435](https://github.com/encode/starlette/pull/1435). * Internal responses with `405` status code insert an `Allow` header, as described by [RFC 7231](https://datatracker.ietf.org/doc/html/rfc7231#section-6.5.5) [#1436](https://github.com/encode/starlette/pull/1436). * The `content` argument in `JSONResponse` is now required [#1431](https://github.com/encode/starlette/pull/1431). +* Add custom URL convertor register [#1437](https://github.com/encode/starlette/pull/1437). ## 0.18.0 From bc85dbe49e7d2861f6a8aad2a3035e8e5802b39a Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Mon, 31 Jan 2022 10:41:09 +0100 Subject: [PATCH 05/13] 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 522a4fb45..66ef02822 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -8,6 +8,7 @@ January, 28, 2022 * Internal responses with `405` status code insert an `Allow` header, as described by [RFC 7231](https://datatracker.ietf.org/doc/html/rfc7231#section-6.5.5) [#1436](https://github.com/encode/starlette/pull/1436). * The `content` argument in `JSONResponse` is now required [#1431](https://github.com/encode/starlette/pull/1431). * Add custom URL convertor register [#1437](https://github.com/encode/starlette/pull/1437). +* Add `raw_path` to `TestClient` scope [#1445](https://github.com/encode/starlette/pull/1445). ## 0.18.0 From 5a9f05fc4b96b21cd4e39fce63348aa0c2fa0a7b Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Mon, 31 Jan 2022 11:15:39 +0100 Subject: [PATCH 06/13] Add PR 1459 --- docs/release-notes.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/release-notes.md b/docs/release-notes.md index 66ef02822..d83bed12a 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -2,19 +2,21 @@ January, 28, 2022 -#### Added - +### Added * Add `headers` parameter to `HTTPException` [#1435](https://github.com/encode/starlette/pull/1435). * Internal responses with `405` status code insert an `Allow` header, as described by [RFC 7231](https://datatracker.ietf.org/doc/html/rfc7231#section-6.5.5) [#1436](https://github.com/encode/starlette/pull/1436). * The `content` argument in `JSONResponse` is now required [#1431](https://github.com/encode/starlette/pull/1431). * Add custom URL convertor register [#1437](https://github.com/encode/starlette/pull/1437). * Add `raw_path` to `TestClient` scope [#1445](https://github.com/encode/starlette/pull/1445). +### Fixed +* Prevent `BaseHTTPMiddleware` from hiding errors of `StreamingResponse` and mounted applications [#1459](https://github.com/encode/starlette/pull/1459). + ## 0.18.0 January 23, 2022 -#### Added +### Added * Change default chunk size from 4Kb to 64Kb on `FileResponse` [#1345](https://github.com/encode/starlette/pull/1345). * Add support for `functools.partial` in `WebSocketRoute` [#1356](https://github.com/encode/starlette/pull/1356). * Add `StaticFiles` packages with directory [#1350](https://github.com/encode/starlette/pull/1350). @@ -27,7 +29,7 @@ January 23, 2022 * Don't set headers for responses with 1xx, 204 and 304 status code [#1397](https://github.com/encode/starlette/pull/1397). * `SessionMiddleware.max_age` now accepts `None`, so cookie can last as long as the browser session [#1387](https://github.com/encode/starlette/pull/1387). -#### Fixed +### Fixed * Tweak `hashlib.md5()` function on `FileResponse`s ETag generation. The parameter [`usedforsecurity`](https://bugs.python.org/issue9216) flag is set to `False`, if the flag is available on the system. This fixes an error raised on systems with [FIPS](https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/FIPS_Mode_-_an_explanation) enabled [#1366](https://github.com/encode/starlette/pull/1366) and [#1410](https://github.com/encode/starlette/pull/1410). * Fix `path_params` type on `url_path_for()` method i.e. turn `str` into `Any` [#1341](https://github.com/encode/starlette/pull/1341). * `Host` now ignores `port` on routing [#1322](https://github.com/encode/starlette/pull/1322). From 58385ff64a181696395d99440b1c7ccd94c3c78e Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Tue, 1 Feb 2022 00:29:20 +0100 Subject: [PATCH 07/13] 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 d83bed12a..a8a3b7cb6 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -8,6 +8,7 @@ January, 28, 2022 * The `content` argument in `JSONResponse` is now required [#1431](https://github.com/encode/starlette/pull/1431). * Add custom URL convertor register [#1437](https://github.com/encode/starlette/pull/1437). * Add `raw_path` to `TestClient` scope [#1445](https://github.com/encode/starlette/pull/1445). +* Bump `anyio` minimal version to `3.4.0` [#1421](https://github.com/encode/starlette/pull/#1421). ### Fixed * Prevent `BaseHTTPMiddleware` from hiding errors of `StreamingResponse` and mounted applications [#1459](https://github.com/encode/starlette/pull/1459). From bd4da1a8da2d98518b4a8e43f39bb1ad9cff564b Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Tue, 1 Feb 2022 00:30:41 +0100 Subject: [PATCH 08/13] 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 a8a3b7cb6..299d0328b 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -8,7 +8,7 @@ January, 28, 2022 * The `content` argument in `JSONResponse` is now required [#1431](https://github.com/encode/starlette/pull/1431). * Add custom URL convertor register [#1437](https://github.com/encode/starlette/pull/1437). * Add `raw_path` to `TestClient` scope [#1445](https://github.com/encode/starlette/pull/1445). -* Bump `anyio` minimal version to `3.4.0` [#1421](https://github.com/encode/starlette/pull/#1421). +* Bump `anyio` minimal version to `3.4.0` [#1421](https://github.com/encode/starlette/pull/1421). ### Fixed * Prevent `BaseHTTPMiddleware` from hiding errors of `StreamingResponse` and mounted applications [#1459](https://github.com/encode/starlette/pull/1459). From 89e77e08156399b3c8b6b358ae36a363c6640496 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Tue, 1 Feb 2022 15:15:13 +0100 Subject: [PATCH 09/13] Apply suggestions from code review --- docs/release-notes.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/release-notes.md b/docs/release-notes.md index 299d0328b..48e833901 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -3,6 +3,7 @@ January, 28, 2022 ### Added +* Error handler will always run, even if the error happens on a background task [#761](https://github.com/encode/starlette/pull/761). * Add `headers` parameter to `HTTPException` [#1435](https://github.com/encode/starlette/pull/1435). * Internal responses with `405` status code insert an `Allow` header, as described by [RFC 7231](https://datatracker.ietf.org/doc/html/rfc7231#section-6.5.5) [#1436](https://github.com/encode/starlette/pull/1436). * The `content` argument in `JSONResponse` is now required [#1431](https://github.com/encode/starlette/pull/1431). @@ -12,6 +13,7 @@ January, 28, 2022 ### Fixed * Prevent `BaseHTTPMiddleware` from hiding errors of `StreamingResponse` and mounted applications [#1459](https://github.com/encode/starlette/pull/1459). +* `Request.client` is now compliant with the ASGI specifications [#1462](https://github.com/encode/starlette/pull/1462). ## 0.18.0 From 07d6770013fa38ed94ad50f5df8c50f8118842eb Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Tue, 1 Feb 2022 15:15:33 +0100 Subject: [PATCH 10/13] 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 48e833901..9b28ba3ad 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,6 +1,6 @@ ## 0.19.0 -January, 28, 2022 +February, 1, 2022 ### Added * Error handler will always run, even if the error happens on a background task [#761](https://github.com/encode/starlette/pull/761). From c9a0a1673b011516216daebad4c1341bf8429bf4 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Wed, 9 Mar 2022 09:53:41 +0100 Subject: [PATCH 11/13] Update release-notes.md --- docs/release-notes.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/release-notes.md b/docs/release-notes.md index 9b28ba3ad..c0146bd45 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,6 +1,6 @@ ## 0.19.0 -February, 1, 2022 +March, 9, 2022 ### Added * Error handler will always run, even if the error happens on a background task [#761](https://github.com/encode/starlette/pull/761). @@ -8,12 +8,24 @@ February, 1, 2022 * Internal responses with `405` status code insert an `Allow` header, as described by [RFC 7231](https://datatracker.ietf.org/doc/html/rfc7231#section-6.5.5) [#1436](https://github.com/encode/starlette/pull/1436). * The `content` argument in `JSONResponse` is now required [#1431](https://github.com/encode/starlette/pull/1431). * Add custom URL convertor register [#1437](https://github.com/encode/starlette/pull/1437). +* Add content disposition type parameter to `FileResponse` [#1266](https://github.com/encode/starlette/pull/1266). +* Add next query param with original request URL in requires decorator [#920](https://github.com/encode/starlette/pull/920). * Add `raw_path` to `TestClient` scope [#1445](https://github.com/encode/starlette/pull/1445). -* Bump `anyio` minimal version to `3.4.0` [#1421](https://github.com/encode/starlette/pull/1421). +* Add union operators to `MutableHeaders` [#1240](https://github.com/encode/starlette/pull/1240). +* Display missing route details on debug page [#1363](https://github.com/encode/starlette/pull/1363). +* Change `anyio` required version range to `>=3.4.0,<5.0` [#1421](https://github.com/encode/starlette/pull/1421) and [#1460](https://github.com/encode/starlette/pull/1460). +* Add `typing-extensions>=3.10` requirement - used only on lower versions than Python 3.10 [#1475](https://github.com/encode/starlette/pull/1475). ### Fixed * Prevent `BaseHTTPMiddleware` from hiding errors of `StreamingResponse` and mounted applications [#1459](https://github.com/encode/starlette/pull/1459). +* `SessionMiddleware` uses an explicit `path=...`, instead of defaulting to the ASGI 'root_path' [#1512](https://github.com/encode/starlette/pull/1512). * `Request.client` is now compliant with the ASGI specifications [#1462](https://github.com/encode/starlette/pull/1462). +* Raise `KeyError` at early stage for missing boundary [#1349](https://github.com/encode/starlette/pull/1349). + +### Deprecated +* Deprecate WSGIMiddleware in favor of a2wsgi [#1504](https://github.com/encode/starlette/pull/1504). +* Deprecate `run_until_first_complete` [#1443](https://github.com/encode/starlette/pull/1443). + ## 0.18.0 From b65864b251108cc4aa919eabb3569d38752dbbc3 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Wed, 9 Mar 2022 10:09:19 +0100 Subject: [PATCH 12/13] 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 c0146bd45..f2cb34cce 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,6 +1,6 @@ ## 0.19.0 -March, 9, 2022 +March 9, 2022 ### Added * Error handler will always run, even if the error happens on a background task [#761](https://github.com/encode/starlette/pull/761). From 01e183cf348c7cbcb9fd77d41dcd657df4d616a0 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Wed, 9 Mar 2022 10:10:17 +0100 Subject: [PATCH 13/13] Update __init__.py --- starlette/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/starlette/__init__.py b/starlette/__init__.py index 1317d7554..11ac8e1a9 100644 --- a/starlette/__init__.py +++ b/starlette/__init__.py @@ -1 +1 @@ -__version__ = "0.18.0" +__version__ = "0.19.0"