Skip to content

Update dependency starlette to ~=0.52.1#20

Open
renovate[bot] wants to merge 1 commit intodmdatafrom
renovate/starlette-0.x
Open

Update dependency starlette to ~=0.52.1#20
renovate[bot] wants to merge 1 commit intodmdatafrom
renovate/starlette-0.x

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 changed the title Update dependency starlette to ~=0.38.1 Update dependency starlette to ~=0.38.2 Jul 27, 2024
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from ff3bf8d to af66e33 Compare July 27, 2024 18:37
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from af66e33 to dcd2eb1 Compare September 1, 2024 10:21
@renovate renovate bot changed the title Update dependency starlette to ~=0.38.2 Update dependency starlette to ~=0.38.3 Sep 1, 2024
@renovate renovate bot changed the title Update dependency starlette to ~=0.38.3 Update dependency starlette to ~=0.38.4 Sep 1, 2024
@renovate renovate bot force-pushed the renovate/starlette-0.x branch 2 times, most recently from ada6b66 to 941de6a Compare September 8, 2024 10:38
@renovate renovate bot changed the title Update dependency starlette to ~=0.38.4 Update dependency starlette to ~=0.38.5 Sep 8, 2024
@renovate renovate bot changed the title Update dependency starlette to ~=0.38.5 Update dependency starlette to ~=0.38.6 Sep 22, 2024
@renovate renovate bot force-pushed the renovate/starlette-0.x branch 2 times, most recently from 4ab4d13 to 60cc540 Compare September 23, 2024 08:15
@renovate renovate bot changed the title Update dependency starlette to ~=0.38.6 Update dependency starlette to ~=0.39.0 Sep 23, 2024
@renovate renovate bot changed the title Update dependency starlette to ~=0.39.0 Update dependency starlette to ~=0.39.1 Sep 25, 2024
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from 60cc540 to baf2c75 Compare September 25, 2024 17:04
@renovate renovate bot changed the title Update dependency starlette to ~=0.39.1 Update dependency starlette to ~=0.39.2 Sep 29, 2024
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from baf2c75 to 130f286 Compare September 29, 2024 13:42
@renovate renovate bot changed the title Update dependency starlette to ~=0.39.2 Update dependency starlette to ~=0.40.0 Oct 15, 2024
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from 130f286 to be617b9 Compare October 15, 2024 10:02
@renovate renovate bot changed the title Update dependency starlette to ~=0.40.0 Update dependency starlette to ~=0.41.0 Oct 15, 2024
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from be617b9 to ad1f7dc Compare October 15, 2024 18:19
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from ad1f7dc to 719e2b5 Compare October 27, 2024 09:21
@renovate renovate bot changed the title Update dependency starlette to ~=0.41.0 Update dependency starlette to ~=0.41.2 Oct 27, 2024
@renovate renovate bot changed the title Update dependency starlette to ~=0.41.2 Update dependency starlette to ~=0.41.3 Nov 18, 2024
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from 719e2b5 to 9b7da9f Compare November 18, 2024 20:08
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from 9b7da9f to 2b7386d Compare December 14, 2024 09:43
@renovate renovate bot changed the title Update dependency starlette to ~=0.41.3 Update dependency starlette to ~=0.42.0 Dec 14, 2024
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from 2b7386d to 30c52a4 Compare December 25, 2024 17:06
@renovate renovate bot changed the title Update dependency starlette to ~=0.42.0 Update dependency starlette to ~=0.43.0 Dec 25, 2024
@renovate renovate bot force-pushed the renovate/starlette-0.x branch from 30c52a4 to 0b4c2f6 Compare December 28, 2024 10:12
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