This release includes major changes to the low-level asynchronous parts of Starlette. As a result, Starlette now depends on AnyIO and some minor API changes have occurred. Another significant change with this release is the deprecation of built-in GraphQL support.
Added
Starlette now supports Trio as an async runtime via AnyIO - #1157.
TestClient.websocket_connect() now must be used as a context manager.
Improved exception messages in the case of duplicated path parameter names - #1177.
RedirectResponse now uses quote instead of quote_plus encoding for the Location header to better match the behaviour in other frameworks such as Django - #1164.
Exception causes are now preserved in more cases - #1158.
Session cookies now use the ASGI root path in the case of mounted applications - #1147.
Fixed a cache invalidation bug when static files were deleted in certain circumstances - #1023.
Improved memory usage of BaseHTTPMiddleware when handling large responses - #1012 fixed via #1157
Deprecated/removed
Built-in GraphQL support via the GraphQLApp class has been deprecated and will be removed in a future release. Please see #619. GraphQL is not supported on Python 3.10.
The executor parameter to GraphQLApp was removed. Use executor_class instead.
The workers parameter to WSGIMiddleware was removed. This hasn't had any effect since Starlette v0.6.3.
This release includes major changes to the low-level asynchronous parts of Starlette. As a result,
Starlette now depends on AnyIO and some minor API
changes have occurred. Another significant change with this release is the
deprecation of built-in GraphQL support.
Added
Starlette now supports Trio as an async runtime via
AnyIO - #1157.
TestClient.websocket_connect() now must be used as a context manager.
Improved exception messages in the case of duplicated path parameter names -
#1177.
RedirectResponse now uses quote instead of quote_plus encoding for the Location header
to better match the behaviour in other frameworks such as Django -
#1164.
Exception causes are now preserved in more cases -
#1158.
Session cookies now use the ASGI root path in the case of mounted applications -
#1147.
Fixed a cache invalidation bug when static files were deleted in certain circumstances -
#1023.
Improved memory usage of BaseHTTPMiddleware when handling large responses -
#1012 fixed via #1157
Deprecated/removed
Built-in GraphQL support via the GraphQLApp class has been deprecated and will be removed in a
future release. Please see #619. GraphQL is not
supported on Python 3.10.
The executor parameter to GraphQLApp was removed. Use executor_class instead.
The workers parameter to WSGIMiddleware was removed. This hasn't had any effect since
Starlette v0.6.3.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps starlette from 0.14.2 to 0.15.0.
Release notes
Sourced from starlette's releases.
Changelog
Sourced from starlette's changelog.
Commits
119c427
Prepare version 0.15.0 (#1202)7ed2890
Fixed TestClient error when response headers missing (#1200)ab0fff9
Test on Python 3.10 (#1201)a839d92
Use coverage directly instead of pytest-cov (#1204)d917501
Clean up last bit of aiofiles after #1157 (#1203)42592d6
anyio integration (#1157)15761fb
Deduplicate failure text in CORS preflight response (#1199)310194e
Cleanup param "workers" in WSGIMiddleware (#1146)467eb1c
Add compresslevel to GZipMiddleware (#1128)f7aa776
Small Pythonic code changes for datastructures.py file (#1167)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)