From 2d1332ded5b4b93ba30c1c9fdd420090ab43e5e8 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Mon, 20 Dec 2021 18:15:26 +0100 Subject: [PATCH 1/6] Version 0.18.0 --- docs/release-notes.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/release-notes.md b/docs/release-notes.md index bd36079f9..968a11660 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,3 +1,18 @@ +## 0.18.0 + +December 20, 2021 # CHANGE THIS + +#### 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). +* Allow HEAD method on `HttpEndpoint` [#1346](https://github.com/encode/starlette/pull/1346). + +#### 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). +* 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). + ## 0.17.1 November 17, 2021 From b63c37c40ae7625a37d2ce15d55021c8aa03d0ec Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Fri, 14 Jan 2022 10:50:06 +0100 Subject: [PATCH 2/6] Add changes until 14 jan --- docs/release-notes.md | 9 +++++++-- starlette/__init__.py | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/release-notes.md b/docs/release-notes.md index 968a11660..885aed82e 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,15 +1,20 @@ ## 0.18.0 -December 20, 2021 # CHANGE THIS +January 14, 2022 #### 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). * Allow HEAD method on `HttpEndpoint` [#1346](https://github.com/encode/starlette/pull/1346). +* Accept additional headers on `websocket.accept` message [#1361](https://github.com/encode/starlette/pull/1361). +* Add headers attribute to `UploadFile` [#1382](https://github.com/encode/starlette/pull/1382). +* Don't omit `Content-Length` header for `Content-Length: 0` cases [#1395](https://github.com/encode/starlette/pull/1395). +* 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 -* 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). +* 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). diff --git a/starlette/__init__.py b/starlette/__init__.py index c6eae9f8a..1317d7554 100644 --- a/starlette/__init__.py +++ b/starlette/__init__.py @@ -1 +1 @@ -__version__ = "0.17.1" +__version__ = "0.18.0" From 55ff9405129a10bf93336a9278bde83014a0f7cd Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Thu, 20 Jan 2022 20:47:30 +0100 Subject: [PATCH 3/6] 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 885aed82e..c00df6a76 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,11 +1,12 @@ ## 0.18.0 -January 14, 2022 +January 20, 2022 #### 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). +* Allow environment options in `Jinja2Templates` [#1401](https://github.com/encode/starlette/pull/1401). * Allow HEAD method on `HttpEndpoint` [#1346](https://github.com/encode/starlette/pull/1346). * Accept additional headers on `websocket.accept` message [#1361](https://github.com/encode/starlette/pull/1361). * Add headers attribute to `UploadFile` [#1382](https://github.com/encode/starlette/pull/1382). From 3ffa70b66bebd84fe94b707b68887e7e197be7e5 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Sat, 22 Jan 2022 19:45:51 +0100 Subject: [PATCH 4/6] 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 c00df6a76..242cab94e 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -8,7 +8,8 @@ January 20, 2022 * Add `StaticFiles` packages with directory [#1350](https://github.com/encode/starlette/pull/1350). * Allow environment options in `Jinja2Templates` [#1401](https://github.com/encode/starlette/pull/1401). * Allow HEAD method on `HttpEndpoint` [#1346](https://github.com/encode/starlette/pull/1346). -* Accept additional headers on `websocket.accept` message [#1361](https://github.com/encode/starlette/pull/1361). +* Accept additional headers on `websocket.accept` message [#1361](https://github.com/encode/starlette/pull/1361) and [#1422](https://github.com/encode/starlette/pull/1422). +* Add `reason` to `WebSocket` close ASGI event [#1417](https://github.com/encode/starlette/pull/1417). * Add headers attribute to `UploadFile` [#1382](https://github.com/encode/starlette/pull/1382). * Don't omit `Content-Length` header for `Content-Length: 0` cases [#1395](https://github.com/encode/starlette/pull/1395). * Don't set headers for responses with 1xx, 204 and 304 status code [#1397](https://github.com/encode/starlette/pull/1397). From e271856b45f004222b83e1d60c745950a5003200 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Sat, 22 Jan 2022 19:54:07 +0100 Subject: [PATCH 5/6] 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 242cab94e..e83ebcf53 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,6 +1,6 @@ ## 0.18.0 -January 20, 2022 +January 22, 2022 #### Added * Change default chunk size from 4Kb to 64Kb on `FileResponse` [#1345](https://github.com/encode/starlette/pull/1345). From 6667d6c4acbbf1181a8761af1c45975e4eb90635 Mon Sep 17 00:00:00 2001 From: Marcelo Trylesinski Date: Sun, 23 Jan 2022 12:05:17 +0100 Subject: [PATCH 6/6] 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 e83ebcf53..672b22409 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,6 +1,6 @@ ## 0.18.0 -January 22, 2022 +January 23, 2022 #### Added * Change default chunk size from 4Kb to 64Kb on `FileResponse` [#1345](https://github.com/encode/starlette/pull/1345).