Skip to content

Commit e086fc2

Browse files
Version 0.19.0 (#1439)
* Version 0.19.0 * Add missing links * Update release-notes.md * Update release-notes.md * Update docs/release-notes.md * Add PR 1459 * Update docs/release-notes.md * Update docs/release-notes.md * Apply suggestions from code review * Update docs/release-notes.md * Update release-notes.md * Update docs/release-notes.md * Update __init__.py Co-authored-by: Tom Christie <tom@tomchristie.com>
1 parent 6798311 commit e086fc2

File tree

2 files changed

+32
-3
lines changed

2 files changed

+32
-3
lines changed

docs/release-notes.md

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,37 @@
1+
## 0.19.0
2+
3+
March 9, 2022
4+
5+
### Added
6+
* Error handler will always run, even if the error happens on a background task [#761](https://github.com/encode/starlette/pull/761).
7+
* Add `headers` parameter to `HTTPException` [#1435](https://github.com/encode/starlette/pull/1435).
8+
* 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).
9+
* The `content` argument in `JSONResponse` is now required [#1431](https://github.com/encode/starlette/pull/1431).
10+
* Add custom URL convertor register [#1437](https://github.com/encode/starlette/pull/1437).
11+
* Add content disposition type parameter to `FileResponse` [#1266](https://github.com/encode/starlette/pull/1266).
12+
* Add next query param with original request URL in requires decorator [#920](https://github.com/encode/starlette/pull/920).
13+
* Add `raw_path` to `TestClient` scope [#1445](https://github.com/encode/starlette/pull/1445).
14+
* Add union operators to `MutableHeaders` [#1240](https://github.com/encode/starlette/pull/1240).
15+
* Display missing route details on debug page [#1363](https://github.com/encode/starlette/pull/1363).
16+
* 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).
17+
* Add `typing-extensions>=3.10` requirement - used only on lower versions than Python 3.10 [#1475](https://github.com/encode/starlette/pull/1475).
18+
19+
### Fixed
20+
* Prevent `BaseHTTPMiddleware` from hiding errors of `StreamingResponse` and mounted applications [#1459](https://github.com/encode/starlette/pull/1459).
21+
* `SessionMiddleware` uses an explicit `path=...`, instead of defaulting to the ASGI 'root_path' [#1512](https://github.com/encode/starlette/pull/1512).
22+
* `Request.client` is now compliant with the ASGI specifications [#1462](https://github.com/encode/starlette/pull/1462).
23+
* Raise `KeyError` at early stage for missing boundary [#1349](https://github.com/encode/starlette/pull/1349).
24+
25+
### Deprecated
26+
* Deprecate WSGIMiddleware in favor of a2wsgi [#1504](https://github.com/encode/starlette/pull/1504).
27+
* Deprecate `run_until_first_complete` [#1443](https://github.com/encode/starlette/pull/1443).
28+
29+
130
## 0.18.0
231

332
January 23, 2022
433

5-
#### Added
34+
### Added
635
* Change default chunk size from 4Kb to 64Kb on `FileResponse` [#1345](https://github.com/encode/starlette/pull/1345).
736
* Add support for `functools.partial` in `WebSocketRoute` [#1356](https://github.com/encode/starlette/pull/1356).
837
* Add `StaticFiles` packages with directory [#1350](https://github.com/encode/starlette/pull/1350).
@@ -15,7 +44,7 @@ January 23, 2022
1544
* Don't set headers for responses with 1xx, 204 and 304 status code [#1397](https://github.com/encode/starlette/pull/1397).
1645
* `SessionMiddleware.max_age` now accepts `None`, so cookie can last as long as the browser session [#1387](https://github.com/encode/starlette/pull/1387).
1746

18-
#### Fixed
47+
### Fixed
1948
* 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).
2049
* Fix `path_params` type on `url_path_for()` method i.e. turn `str` into `Any` [#1341](https://github.com/encode/starlette/pull/1341).
2150
* `Host` now ignores `port` on routing [#1322](https://github.com/encode/starlette/pull/1322).

starlette/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.18.0"
1+
__version__ = "0.19.0"

0 commit comments

Comments
 (0)