Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: encode/starlette
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.34.0
Choose a base ref
...
head repository: encode/starlette
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.35.0
Choose a head ref
  • 11 commits
  • 27 files changed
  • 8 contributors

Commits on Dec 20, 2023

  1. Add *args to Middleware and improve its type hints (#2381)

    Co-authored-by: Paweł Rubin <pawel.rubin@ocado.com>
    pawelrubin and Paweł Rubin authored Dec 20, 2023
    Copy the full SHA
    866a15f View commit details
  2. Use Iterable instead Iterator on iterate_in_threadpool (#2362)

    * Fixed AsyncContentStream to be AsyncIterator
    
    * Updating isinstance check too
    
    * Standardizing on Iterable/AsyncIterable
    
    * Moved iterate_in_threadpool to make an iter internally
    
    * Added test of iterate_in_threadpool accepting an Iterable
    
    * Renamed arg to iterator, and fixed type hint in return to be AsyncIterator
    
    ---------
    
    Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
    jamesbraza and Kludex authored Dec 20, 2023
    Copy the full SHA
    966f0fc View commit details

Commits on Dec 25, 2023

  1. Turn scope["client"] to None on TestClient (#2377)

    * Remove client scope from testclient
    
    * remove test
    
    * Update testclient.py
    
    ---------
    
    Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
    aminalaee and Kludex authored Dec 25, 2023
    Copy the full SHA
    483849a View commit details

Commits on Jan 1, 2024

  1. Bump actions/setup-python from 4 to 5 (#2392)

    Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
    - [Release notes](https://github.com/actions/setup-python/releases)
    - [Commits](actions/setup-python@v4...v5)
    
    ---
    updated-dependencies:
    - dependency-name: actions/setup-python
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jan 1, 2024
    Copy the full SHA
    d57f1bb View commit details
  2. Bump importlib-metadata from 6.9.0 to 7.0.1 (#2394)

    Bumps [importlib-metadata](https://github.com/python/importlib_metadata) from 6.9.0 to 7.0.1.
    - [Release notes](https://github.com/python/importlib_metadata/releases)
    - [Changelog](https://github.com/python/importlib_metadata/blob/main/NEWS.rst)
    - [Commits](python/importlib_metadata@v6.9.0...v7.0.1)
    
    ---
    updated-dependencies:
    - dependency-name: importlib-metadata
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jan 1, 2024
    Copy the full SHA
    8924759 View commit details
  3. Bump typing-extensions from 4.8.0 to 4.9.0 (#2393)

    Bumps [typing-extensions](https://github.com/python/typing_extensions) from 4.8.0 to 4.9.0.
    - [Release notes](https://github.com/python/typing_extensions/releases)
    - [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md)
    - [Commits](python/typing_extensions@4.8.0...4.9.0)
    
    ---
    updated-dependencies:
    - dependency-name: typing-extensions
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jan 1, 2024
    Copy the full SHA
    04684c2 View commit details
  4. Copy the full SHA
    5f9da0b View commit details

Commits on Jan 8, 2024

  1. Bump ruff from 0.1.6 to 0.1.9 (#2396)

    * Bump ruff from 0.1.6 to 0.1.9
    
    Bumps [ruff](https://github.com/astral-sh/ruff) from 0.1.6 to 0.1.9.
    - [Release notes](https://github.com/astral-sh/ruff/releases)
    - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
    - [Commits](astral-sh/ruff@v0.1.6...v0.1.9)
    
    ---
    updated-dependencies:
    - dependency-name: ruff
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    * Fix code
    
    ---------
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
    dependabot[bot] and Kludex authored Jan 8, 2024
    Copy the full SHA
    d28d491 View commit details
  2. Bump trio from 0.22.2 to 0.23.2 (#2395)

    * Bump trio from 0.22.2 to 0.23.2
    
    Bumps [trio](https://github.com/python-trio/trio) from 0.22.2 to 0.23.2.
    - [Release notes](https://github.com/python-trio/trio/releases)
    - [Commits](python-trio/trio@v0.22.2...v0.23.2)
    
    ---
    updated-dependencies:
    - dependency-name: trio
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    * Remove AnyIO from requirements.txt
    
    ---------
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
    dependabot[bot] and Kludex authored Jan 8, 2024
    Copy the full SHA
    8f2307d View commit details

Commits on Jan 9, 2024

  1. ♻️ Refactor logic to handle root_path to keep compatibility with AS…

    …GI and compatibility with other non-Starlette-specific libraries like a2wsgi (#2400)
    
    * ✨ Add util to get route path from scope
    
    * ♻️ Refactor extracting the local route_path from the scope, and creating the child scope with its own root_pat, this allows sub-apps (e.g. WSGIMiddleware) to know
    where it was mounted, and from which path prefix starts the path its sub-app should handle
    
    * ♻️ Refactor datastructures and request to be conformant with the ASGI spec, respecting root_path
    
    * ✅ Add and update tests for root_path with mounted apps that don't know about Starlette internals (e.g. the route_root_path extension scope key that was added in
    
    * ✅ Update test for root_path, TestClient was not requiring paths under a root_path to pass the root_path, which is what clients would have to do if the app is
    mounted.
    
    * 🎨 Fix formatting
    
    * 🎨 Remove type ignore
    
    * 🔥 Remove unnecessary comment
    
    * ✨ Update (deprecated) WSGIMiddleware to be compatible with the updated root_path, taking pieces from a2wsgi
    
    * 🎨 Fix types
    
    * ✅ Update test for WSGIMiddleware with root_path
    
    * 🔥 Remove logic/features not in the original (deprecated) WSGIMiddleware
    
    ---------
    
    Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
    Co-authored-by: Aber <me@abersheeran.com>
    3 people authored Jan 9, 2024
    Copy the full SHA
    c3c6314 View commit details

Commits on Jan 11, 2024

  1. Version 0.35.0 (#2404)

    * Version 0.35.0
    
    * Update release-notes.md
    Kludex authored Jan 11, 2024
    Copy the full SHA
    1081520 View commit details
Loading