]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
Version 0.18.0 (#1380) 0.18.0
authorMarcelo Trylesinski <marcelotryle@gmail.com>
Sun, 23 Jan 2022 11:10:50 +0000 (12:10 +0100)
committerGitHub <noreply@github.com>
Sun, 23 Jan 2022 11:10:50 +0000 (12:10 +0100)
* Version 0.18.0

* Add changes until 14 jan

* Update release-notes.md

* Update release-notes.md

* Update release-notes.md

* Update release-notes.md

Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Co-authored-by: Amin Alaee <mohammadamin.alaee@gmail.com>
docs/release-notes.md
starlette/__init__.py

index bd36079f91056a99bd22c84365c7aef1e8baab09..672b2240942bfd400c91dc4940f69ca76ff0ffcb 100644 (file)
@@ -1,3 +1,25 @@
+## 0.18.0
+
+January 23, 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) 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).
+* `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) 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).
+
 ## 0.17.1
 
 November 17, 2021
index c6eae9f8a379b599e5a98816ae21c123ad6f9abb..1317d7554a122e7cc9d78efe6699a25fb8b7c9bd 100644 (file)
@@ -1 +1 @@
-__version__ = "0.17.1"
+__version__ = "0.18.0"