|
1 | 1 | ## 0.15.0 |
2 | 2 |
|
3 | | -Unreleased |
| 3 | +June 23, 2021 |
4 | 4 |
|
5 | | -### Deprecated |
| 5 | +This release includes major changes to the low-level asynchronous parts of Starlette. As a result, |
| 6 | +**Starlette now depends on [AnyIO](https://anyio.readthedocs.io/en/stable/)** and some minor API |
| 7 | +changes have occurred. Another significant change with this release is the |
| 8 | +**deprecation of built-in GraphQL support**. |
| 9 | + |
| 10 | +### Added |
| 11 | +* Starlette now supports [Trio](https://trio.readthedocs.io/en/stable/) as an async runtime via |
| 12 | + AnyIO - [#1157](https://github.com/encode/starlette/pull/1157). |
| 13 | +* `TestClient.websocket_connect()` now must be used as a context manager. |
| 14 | +* Initial support for Python 3.10 - [#1201](https://github.com/encode/starlette/pull/1201). |
| 15 | +* The compression level used in `GZipMiddleware` is now adjustable - |
| 16 | + [#1128](https://github.com/encode/starlette/pull/1128). |
| 17 | + |
| 18 | +### Fixed |
| 19 | +* Several fixes to `CORSMiddleware`. See [#1111](https://github.com/encode/starlette/pull/1111), |
| 20 | + [#1112](https://github.com/encode/starlette/pull/1112), |
| 21 | + [#1113](https://github.com/encode/starlette/pull/1113), |
| 22 | + [#1199](https://github.com/encode/starlette/pull/1199). |
| 23 | +* Improved exception messages in the case of duplicated path parameter names - |
| 24 | + [#1177](https://github.com/encode/starlette/pull/1177). |
| 25 | +* `RedirectResponse` now uses `quote` instead of `quote_plus` encoding for the `Location` header |
| 26 | + to better match the behaviour in other frameworks such as Django - |
| 27 | + [#1164](https://github.com/encode/starlette/pull/1164). |
| 28 | +* Exception causes are now preserved in more cases - |
| 29 | + [#1158](https://github.com/encode/starlette/pull/1158). |
| 30 | +* Session cookies now use the ASGI root path in the case of mounted applications - |
| 31 | + [#1147](https://github.com/encode/starlette/pull/1147). |
| 32 | +* Fixed a cache invalidation bug when static files were deleted in certain circumstances - |
| 33 | + [#1023](https://github.com/encode/starlette/pull/1023). |
| 34 | +* Improved memory usage of `BaseHTTPMiddleware` when handling large responses - |
| 35 | + [#1012](https://github.com/encode/starlette/issues/1012) fixed via #1157 |
| 36 | + |
| 37 | +### Deprecated/removed |
6 | 38 |
|
7 | 39 | * Built-in GraphQL support via the `GraphQLApp` class has been deprecated and will be removed in a |
8 | | - future release. Please see [#619](https://github.com/encode/starlette/issues/619). |
| 40 | + future release. Please see [#619](https://github.com/encode/starlette/issues/619). GraphQL is not |
| 41 | + supported on Python 3.10. |
| 42 | +* The `executor` parameter to `GraphQLApp` was removed. Use `executor_class` instead. |
| 43 | +* The `workers` parameter to `WSGIMiddleware` was removed. This hasn't had any effect since |
| 44 | + Starlette v0.6.3. |
9 | 45 |
|
10 | 46 | ## 0.14.2 |
11 | 47 |
|
|
0 commit comments