Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jun 27, 2023

This PR contains the following updates:

Package Change Age Confidence
starlette (changelog) ~=0.35.1~=0.52.1 age confidence

Release Notes

Kludex/starlette (starlette)

v0.52.1: Version 0.52.1

Compare Source

What's Changed


Full Changelog: Kludex/starlette@0.52.0...0.52.1

v0.52.0: Version 0.52.0

Compare Source

In this release, State can be accessed using dictionary-style syntax for improved type safety (#​3036).

from collections.abc import AsyncIterator
from contextlib import asynccontextmanager
from typing import TypedDict

import httpx

from starlette.applications import Starlette
from starlette.requests import Request

class State(TypedDict):
    http_client: httpx.AsyncClient

@​asynccontextmanager
async def lifespan(app: Starlette) -> AsyncIterator[State]:
    async with httpx.AsyncClient() as client:
        yield {"http_client": client}

async def homepage(request: Request[State]):
    client = request.state["http_client"]
    # If you run the below line with mypy or pyright, it will reveal the correct type.
    reveal_type(client)  # Revealed type is 'httpx.AsyncClient'

See Accessing State for more details.


Full Changelog: Kludex/starlette@0.51.0...0.52.0

v0.51.0: Version 0.51.0

Compare Source

Added

  • Add allow_private_network in CORSMiddleware #​3065.

Changed

  • Increase warning stacklevel on DeprecationWarning for wsgi module #​3082.

New Contributors

Full Changelog: Kludex/starlette@0.50.0...0.51.0

v0.50.0: Version 0.50.0

Compare Source

Removed


Full Changelog: Kludex/starlette@0.49.3...0.50.0

v0.49.3: Version 0.49.3

Compare Source

Fixed

  • Relax strictness on Middleware type #​3059.

Full Changelog: Kludex/starlette@0.49.2...0.49.3

v0.49.2: Version 0.49.2

Compare Source

Fixed

  • Ignore if-modified-since header if if-none-match is present in StaticFiles #​3044.

Full Changelog: Kludex/starlette@0.49.1...0.49.2

v0.49.1: Version 0.49.1

Compare Source

This release fixes a security vulnerability in the parsing logic of the Range header in FileResponse.

You can view the full security advisory: GHSA-7f5h-v6xp-fcq8

Fixed


Full Changelog: Kludex/starlette@0.49.0...0.49.1

v0.49.0: Version 0.49.0

Compare Source

Added

  • Add encoding parameter to Config class #​2996.
  • Support multiple cookie headers in Request.cookies #​3029.
  • Use Literal type for WebSocketEndpoint encoding values #​3027.

Changed

  • Do not pollute exception context in Middleware when using BaseHTTPMiddleware #​2976.

New Contributors

Full Changelog: Kludex/starlette@0.48.0...0.49.0

v0.48.0: Version 0.48.0

Compare Source

Added

  • Add official Python 3.14 support #​3013.

Changed


New Contributors

Full Changelog: Kludex/starlette@0.47.3...0.48.0

v0.47.3: Version 0.47.3

Compare Source

Fixed


New Contributors

Full Changelog: Kludex/starlette@0.47.2...0.47.3

v0.47.2

Compare Source

Fixed

  • Make UploadFile check for future rollover #​2962.

New Contributors

Full Changelog: Kludex/starlette@0.47.1...0.47.2

v0.47.1: Version 0.47.1

Compare Source

Fixed

  • Use Self in TestClient.__enter__ #​2951
  • Allow async exception handlers to type-check #​2949

Full Changelog: Kludex/starlette@0.47.0...0.47.1

v0.47.0: Version 0.47.0

Compare Source

Added

  • Add support for ASGI pathsend extension #​2671.
  • Add partitioned attribute to Response.set_cookie #​2501.

Changed

  • Change methods parameter type from list[str] to Collection[str] #​2903.
  • Replace import typing by from typing import ... in the whole codebase #​2867.

Fixed

  • Mark ExceptionMiddleware.http_exception as async to prevent thread creation #​2922.

New Contributors

Full Changelog: Kludex/starlette@0.46.2...0.47.0

v0.46.2: Version 0.46.2

Compare Source

What's Changed

New Contributors

Full Changelog: Kludex/starlette@0.46.1...0.46.2

v0.46.1: Version 0.46.1

Compare Source

Fixed

  • Allow relative directory path when follow_symlinks=True #​2896.

Full Changelog: Kludex/starlette@0.46.0...0.46.1

v0.46.0: Version 0.46.0

Compare Source

Added

  • GZipMiddleware: Make sure Vary header is always added if a response can be compressed #​2865.

Fixed

  • Raise exception from background task on BaseHTTPMiddleware #​2812.
  • GZipMiddleware: Don't compress on server sent events #​2871.

Changed

  • MultiPartParser: Rename max_file_size to spool_max_size #​2780.

Deprecated

  • Add deprecated warning to TestClient(timeout=...) #​2840.

New Contributors

Full Changelog: Kludex/starlette@0.45.3...0.46.0

v0.45.3: Version 0.45.3

Compare Source

Fixed


Full Changelog: Kludex/starlette@0.45.2...0.45.3

v0.45.2: Version 0.45.2

Compare Source

Fixed
  • Make create_memory_object_stream compatible with old anyio versions once again, and bump anyio minimum version to 3.6.2 by @​graingert in #​2833.

Full Changelog: Kludex/starlette@0.45.1...0.45.2

v0.45.1: Version 0.45.1

Compare Source

Fixed
Refactor

Full Changelog: Kludex/starlette@0.45.0...0.45.1

v0.45.0: Version 0.45.0

Compare Source

Removed


Full Changelog: Kludex/starlette@0.44.0...0.45.0

v0.44.0: Version 0.44.0

Compare Source

Added

New Contributors

Full Changelog: Kludex/starlette@0.43.0...0.44.0

v0.43.0: Version 0.43.0

Compare Source

Removed

  • Remove deprecated allow_redirects argument from TestClient #​2808.

Added

  • Make UUID path parameter conversion more flexible #​2806.

New Contributors

Full Changelog: Kludex/starlette@0.42.0...0.43.0

v0.42.0: Version 0.42.0

Compare Source

Added

  • Raise ClientDisconnect on StreamingResponse #​2732.

Fixed

  • Use ETag from headers when parsing If-Range in FileResponse #​2761.
  • Follow directory symlinks in StaticFiles when follow_symlinks=True #​2711.
  • Bump minimum python-multipart version to 0.0.18 0ba8395.
  • Bump minimum httpx version to 0.27.0 #​2773.

New Contributors

Full Changelog: Kludex/starlette@0.41.3...0.42.0

v0.41.3: Version 0.41.3

Compare Source

Fixed

  • Exclude the query parameters from the scope[raw_path] on the TestClient #​2716.
  • Replace dict by Mapping on HTTPException.headers #​2749.
  • Correct middleware argument passing and improve factory pattern #​2752.

Full Changelog: Kludex/starlette@0.41.2...0.41.3

v0.41.2: Version 0.41.2

Compare Source

What's Changed


Full Changelog: Kludex/starlette@0.41.1...0.41.2

v0.41.1: Version 0.41.1

Compare Source

What's Changed


Full Changelog: Kludex/starlette@0.41.0...0.41.1

v0.41.0: Version 0.41.0

Compare Source

Added

  • Allow to raise HTTPException before websocket.accept() encode#2725

v0.40.0: Version 0.40.0

Compare Source

This release fixes a Denial of service (DoS) via multipart/form-data requests.

You can view the full security advisory:
GHSA-f96h-pmfr-66vw

Fixed

  • Add max_part_size to MultiPartParser to limit the size of parts in multipart/form-data
    requests fd038f3.

v0.39.2: Version 0.39.2

Compare Source

Fixed

  • Allow use of request.url_for when only "app" scope is available #​2672.
  • Fix internal type hints to support python-multipart==0.0.12 #​2708.

Full Changelog: Kludex/starlette@0.39.1...0.39.2

v0.39.1: Version 0.39.1

Compare Source

Fixed

  • Avoid regex re-compilation in responses.py and schemas.py #​2700.
  • Improve performance of get_route_path by removing regular expression usage #​2701.
  • Consider FileResponse.chunk_size when handling multiple ranges #​2703.
  • Use token_hex for generating multipart boundary strings #​2702.

Full Changelog: Kludex/starlette@0.39.0...0.39.1

v0.39.0: Version 0.39.0

Compare Source

Added

  • Add support for HTTP Range to FileResponse #​2697

Full Changelog: Kludex/starlette@0.38.6...0.39.0

v0.38.6: Version 0.38.6

Compare Source

Fixed

  • Close unclosed MemoryObjectReceiveStream in TestClient #​2693.

Full Changelog: Kludex/starlette@0.38.5...0.38.6

v0.38.5: Version 0.38.5

Compare Source

Fixed

  • Schedule BackgroundTasks from within BaseHTTPMiddleware #​2688.
    This behavior was removed in 0.38.3, and is now restored.

Full Changelog: Kludex/starlette@0.38.4...0.38.5

v0.38.4: Version 0.38.4

Compare Source

Fixed

  • Ensure accurate root_path removal in get_route_path function #​2600

Full Changelog: Kludex/starlette@0.38.3...0.38.4

v0.38.3: Version 0.38.3

Compare Source

Added
Fixed
  • Don't poll for disconnects in BaseHTTPMiddleware via StreamingResponse #​2620.

Full Changelog: Kludex/starlette@0.38.2...0.38.3

v0.38.2: Version 0.38.2

Compare Source

Fixed

  • Fix routing.get_name() not to assume all routines have __name__ #​2648

Full Changelog: Kludex/starlette@0.38.1...0.38.2

v0.38.1: Version 0.38.1

Compare Source

Removed

  • Revert "Add support for ASGI pathsend extension" #​2649.

Full Changelog: Kludex/starlette@0.38.0...0.38.1

v0.38.0: Version 0.38.0

Compare Source

Added

  • Allow use of memoryview in StreamingResponse and Response #​2576
    and #​2577.
  • Send 404 instead of 500 when filename requested is too long on StaticFiles #​2583.

Changed

  • Fail fast on invalid Jinja2Template instantiation parameters #​2568.
  • Check endpoint handler is async only once #​2536.

Fixed

  • Add proper synchronization to WebSocketTestSession #​2597.

Full Changelog: Kludex/starlette@0.37.2...0.38.0

v0.37.2: Version 0.37.2

Compare Source

Added
  • Add bytes to _RequestData type #​2510.
Fixed
  • Revert "Turn scope["client"] to None on TestClient (#​2377)" #​2525.
  • Remove deprecated app argument passed to httpx.Client on the TestClient #​2526.

Full Changelog: Kludex/starlette@0.37.1...0.37.2

v0.37.1: Version 0.37.1

Compare Source

Fixed
  • Warn instead of raise for missing env file on Config #​2485.

Full Changelog: Kludex/starlette@0.37.0...0.37.1

v0.37.0: Version 0.37.0

Compare Source

Added
  • Support the WebSocket Denial Response ASGI extension #​2041.

Full Changelog: Kludex/starlette@0.36.3...0.37.0

v0.36.3: Version 0.36.3

Compare Source

Fixed
  • Create anyio.Event on async context #​2459.

Full Changelog: Kludex/starlette@0.36.2...0.36.3

v0.36.2: Version 0.36.2

Compare Source

Fixed
  • Upgrade python-multipart to 0.0.7 13e5c26.
  • Avoid duplicate charset on Content-Type #​2443.

Full Changelog: Kludex/starlette@0.36.1...0.36.2

v0.36.1: Version 0.36.1

Compare Source

Fixed
  • Check if "extensions" in scope before checking the extension #​2438.

Full Changelog: Kludex/starlette@0.36.0...0.36.1

v0.36.0: Version 0.36.0

Compare Source

Added
  • Add support for ASGI pathsend extension #​2435.
  • Cancel WebSocketTestSession on close #​2427.
  • Raise WebSocketDisconnect when WebSocket.send() excepts IOError #​2425.
  • Raise FileNotFoundError when the env_file parameter on Config is not valid #​2422.

Full Changelog: Kludex/starlette@0.35.1...0.36.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title chore(deps): update dependency starlette to ~=0.28.0 chore(deps): update dependency starlette to ~=0.29.0 Jul 13, 2023
@renovate renovate bot force-pushed the renovate/starlette-0.x branch 2 times, most recently from f19a461 to 3fb1512 Compare July 13, 2023 13:34
@renovate renovate bot changed the title chore(deps): update dependency starlette to ~=0.29.0 chore(deps): update dependency starlette to ~=0.30.0 Jul 13, 2023
@renovate renovate bot changed the title chore(deps): update dependency starlette to ~=0.30.0 chore(deps): update dependency starlette to ~=0.31.0 Jul 24, 2023
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from 3fb1512 to 45cea04 Compare July 24, 2023 17:04
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from 45cea04 to 2e51c9e Compare August 13, 2023 04:09
@renovate renovate bot changed the title chore(deps): update dependency starlette to ~=0.31.0 Update dependency starlette to ~=0.31.0 Aug 13, 2023
@renovate renovate bot changed the title Update dependency starlette to ~=0.31.0 Update dependency starlette to ~=0.31.1 Aug 26, 2023
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from 2e51c9e to a478cfa Compare August 26, 2023 18:51
@renovate renovate bot changed the title Update dependency starlette to ~=0.31.1 Update dependency starlette to ~=0.32.0 Nov 4, 2023
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from a478cfa to 9756e59 Compare November 4, 2023 21:13
@renovate renovate bot changed the title Update dependency starlette to ~=0.32.0 Update dependency starlette to ~=0.32.0.post1 Nov 6, 2023
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from 9756e59 to c28f468 Compare November 6, 2023 07:31
@renovate renovate bot changed the title Update dependency starlette to ~=0.32.0.post1 Update dependency starlette to ~=0.33.0 Dec 1, 2023
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from c28f468 to 17a35ce Compare December 1, 2023 15:36
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from 17a35ce to 9182c64 Compare December 16, 2023 16:54
@renovate renovate bot changed the title Update dependency starlette to ~=0.33.0 Update dependency starlette to ~=0.34.0 Dec 16, 2023
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from 9182c64 to 4b9f979 Compare January 11, 2024 15:59
@renovate renovate bot changed the title Update dependency starlette to ~=0.34.0 Update dependency starlette to ~=0.35.0 Jan 11, 2024
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from 4b9f979 to 0c349f0 Compare January 11, 2024 22:41
@renovate renovate bot changed the title Update dependency starlette to ~=0.35.0 Update dependency starlette to ~=0.35.1 Jan 11, 2024
@renovate renovate bot changed the title Update dependency starlette to ~=0.35.1 Update dependency starlette to ~=0.36.0 Jan 22, 2024
@renovate renovate bot force-pushed the renovate/starlette-0.x branch 2 times, most recently from 41e88e2 to bfb3654 Compare January 23, 2024 05:47
@renovate renovate bot changed the title Update dependency starlette to ~=0.36.0 Update dependency starlette to ~=0.36.1 Jan 23, 2024
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from bfb3654 to 710104f Compare January 23, 2024 11:11
@renovate renovate bot changed the title Update dependency starlette to ~=0.36.1 Update dependency starlette to ~=0.36.2 Feb 3, 2024
@renovate renovate bot force-pushed the renovate/starlette-0.x branch 2 times, most recently from 162d18e to 4d02e11 Compare February 4, 2024 19:00
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from a8f62ef to c83cc21 Compare March 8, 2025 13:43
@renovate renovate bot changed the title Update dependency starlette to ~=0.46.0 Update dependency starlette to ~=0.46.1 Mar 8, 2025
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from c83cc21 to 8ae2925 Compare April 13, 2025 14:41
@renovate renovate bot changed the title Update dependency starlette to ~=0.46.1 Update dependency starlette to ~=0.46.2 Apr 13, 2025
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from 8ae2925 to ee0c022 Compare May 29, 2025 17:08
@renovate renovate bot changed the title Update dependency starlette to ~=0.46.2 Update dependency starlette to ~=0.47.0 May 29, 2025
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from ee0c022 to 8c075c1 Compare June 21, 2025 06:02
@renovate renovate bot changed the title Update dependency starlette to ~=0.47.0 Update dependency starlette to ~=0.47.1 Jun 21, 2025
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from 8c075c1 to e08f7b9 Compare July 20, 2025 18:49
@renovate renovate bot changed the title Update dependency starlette to ~=0.47.1 Update dependency starlette to ~=0.47.2 Jul 20, 2025
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from e08f7b9 to dcea4a0 Compare August 10, 2025 13:01
@renovate renovate bot changed the title Update dependency starlette to ~=0.47.2 Update dependency starlette to ~=0.47.3 Aug 24, 2025
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from dcea4a0 to 4d8afa4 Compare August 24, 2025 17:51
@renovate renovate bot changed the title Update dependency starlette to ~=0.47.3 Update dependency starlette to ~=0.48.0 Sep 13, 2025
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from 4d8afa4 to 2a3d093 Compare September 13, 2025 23:25
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from 2a3d093 to cc585fd Compare October 28, 2025 12:04
@renovate renovate bot changed the title Update dependency starlette to ~=0.48.0 Update dependency starlette to ~=0.49.0 Oct 28, 2025
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from cc585fd to d733f47 Compare October 28, 2025 19:57
@renovate renovate bot changed the title Update dependency starlette to ~=0.49.0 Update dependency starlette to ~=0.49.1 Oct 28, 2025
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from d733f47 to a4b4fab Compare November 1, 2025 13:01
@renovate renovate bot changed the title Update dependency starlette to ~=0.49.1 Update dependency starlette to ~=0.49.2 Nov 1, 2025
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from a4b4fab to 0563aba Compare November 1, 2025 17:59
@renovate renovate bot changed the title Update dependency starlette to ~=0.49.2 Update dependency starlette to ~=0.50.0 Nov 1, 2025
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from 0563aba to 0a696e6 Compare January 10, 2026 21:02
@renovate renovate bot changed the title Update dependency starlette to ~=0.50.0 Update dependency starlette to ~=0.51.0 Jan 10, 2026
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from 0a696e6 to 272eea0 Compare January 18, 2026 12:26
@renovate renovate bot changed the title Update dependency starlette to ~=0.51.0 Update dependency starlette to ~=0.52.0 Jan 18, 2026
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from 272eea0 to d4c5878 Compare January 18, 2026 17:32
@renovate renovate bot changed the title Update dependency starlette to ~=0.52.0 Update dependency starlette to ~=0.52.1 Jan 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants