Starlette

Latest version: v0.37.2

Safety actively analyzes 630390 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 8

0.32.0

Not secure
Added

* Send `reason` on `WebSocketDisconnect` [2309](https:://github.com/encode/starlette/pull/2309).
* Add `domain` parameter to `SessionMiddleware` [2280](https:://github.com/encode/starlette/pull/2280).

Changed

* Inherit from `HTMLResponse` instead of `Response` on `_TemplateResponse` [2274](https://github.com/encode/starlette/pull/2274).
* Restore the `Response.render` type annotation to its pre-0.31.0 state [2264](https://github.com/encode/starlette/pull/2264).

---

**Full Changelog**: https://github.com/encode/starlette/compare/0.31.1...0.32.0

0.31.1

Not secure
Fixed

* Fix import error when `exceptiongroup` isn't available [2231](https://github.com/encode/starlette/pull/2231).
* Set `url_for` global for custom Jinja environments [2230](https://github.com/encode/starlette/pull/2230).

**Full Changelog**: https://github.com/encode/starlette/compare/0.31.0...0.31.1

0.31.0

Not secure
Added

* Officially support Python 3.12 [2214](https://github.com/encode/starlette/pull/2214).
* Support AnyIO 4.0 [2211](https://github.com/encode/starlette/pull/2211).
* Strictly type annotate Starlette (strict mode on mypy) [2180](https://github.com/encode/starlette/pull/2180).

Fixed

* Don't group duplicated headers on a single string when using the `TestClient` [2219](https://github.com/encode/starlette/pull/2219).

---

**Full Changelog**: https://github.com/encode/starlette/compare/0.30.0...0.31.0

0.30.0

Not secure
Removed

* Drop Python 3.7 support [2178](https://github.com/encode/starlette/pull/2178).

0.29.0

Not secure
Added

* Add `follow_redirects` parameter to `TestClient` [2207](https://github.com/encode/starlette/pull/2207).
* Add `__str__` to `HTTPException` and `WebSocketException` [2181](https://github.com/encode/starlette/pull/2181).
* Warn users when using `lifespan` together with `on_startup`/`on_shutdown` [2193](https://github.com/encode/starlette/pull/2193).
* Collect routes from `Host` to generate the OpenAPI schema [2183](https://github.com/encode/starlette/pull/2183).
* Add `request` argument to `TemplateResponse` [2191](https://github.com/encode/starlette/pull/2191).

Fixed

* Stop `body_stream` in case `more_body=False` on `BaseHTTPMiddleware` [2194](https://github.com/encode/starlette/pull/2194).

**Full Changelog**: https://github.com/encode/starlette/compare/0.28.0...0.29.0

0.28.0

Not secure
Changed
* Reuse `Request`'s body buffer for call_next in `BaseHTTPMiddleware` [1692](https://github.com/encode/starlette/pull/1692).
* Move exception handling logic to `Route` [2026](https://github.com/encode/starlette/pull/2026).

Added
* Add `env` parameter to `Jinja2Templates`, and deprecate `**env_options` [2159](https://github.com/encode/starlette/pull/2159).
* Add clear error message when `httpx` is not installed [2177](https://github.com/encode/starlette/pull/2177).

Fixed
* Allow "name" argument on `templates url_for()` [2127](https://github.com/encode/starlette/pull/2127).

**Full Changelog**: https://github.com/encode/starlette/compare/0.27.0...0.28.0

Page 3 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.