starlette.websockets.WebSocket instances are now hashable and compare by identity
#1039
A number of fixes related to running task groups in lifespan
#1213,
#1227
Deprecated/removed
The method starlette.templates.Jinja2Templates.get_env was removed
#1218
The ClassVar starlette.testclient.TestClient.async_backend was removed,
the backend is now configured using constructor kwargs
#1211
Passing an Async Generator Function or a Generator Function to starlette.router.Router(lifespan_context=) is deprecated. You should wrap your lifespan in @contextlib.asynccontextmanager.
#1227#1110
Version 0.15.0
0.15.0
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.
starlette.websockets.WebSocket instances are now hashable and compare by identity
#1039
A number of fixes related to running task groups in lifespan
#1213,
#1227
Deprecated/removed
The method starlette.templates.Jinja2Templates.get_env was removed
#1218
The ClassVar starlette.testclient.TestClient.async_backend was removed,
the backend is now configured using constructor kwargs
#1211
Passing an Async Generator Function or a Generator Function to starlette.router.Router(lifespan_context=) is deprecated. You should wrap your lifespan in @contextlib.asynccontextmanager.
#1227#1110
0.15.0
June 23, 2021
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.
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.16.0.
Release notes
Sourced from starlette's releases.
Changelog
Sourced from starlette's changelog.
... (truncated)
Commits
e45c579
prepare release 0.16.0 (#1233)b0a6d6f
ignore charset_normalizer related warning (#1242)8a3e41a
Document the lifespan event handler parameter (#1110)537ab6a
use an async context manager factory for lifespan (#1227)254d0d9
ensure TestClient requests run in the same EventLoop as lifespan (#1213)d222b87
TestClient accepts backend and backend_options as arguments to constructor (#...906e907
reset the__eq__
and__hash__
of HTTPConnection to allow WebSockets to be...0ef4418
:wrench: Add funding option (#1219)070d749
Make Jinja2Templates.get_env private & rename (#1218)6626636
mkdocs: Set site_url (#1215)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)