Skip to content

Releases: encode/starlette

Version 0.26.0.post1

09 Mar 23:56
796b2f7
Compare
Choose a tag to compare

Fixed

  • Replace reference from Events to Lifespan on the mkdocs.yml #2072.

Version 0.26.0

09 Mar 23:09
a5b0088
Compare
Choose a tag to compare

Added

Changed

  • Change url_for signature to return a URL instance #1385.

Fixed

  • Allow "name" argument on url_for() and url_path_for() #2050.

Deprecated

  • Deprecate on_startup and on_shutdown events #2070.

Full Changelog: 0.25.0...0.26.0

Version 0.25.0

14 Feb 09:06
fc48089
Compare
Choose a tag to compare

Fixed

  • Limit the number of fields and files when parsing multipart/form-data on the MultipartParser 8c74c2c and #2036.

Version 0.24.0

06 Feb 16:01
218a6b4
Compare
Choose a tag to compare

Added

  • Allow StaticFiles to follow symlinks #1683.
  • Allow Request.form() as a context manager #1903.
  • Add size attribute to UploadFile #1405.
  • Add env_prefix argument to Config #1990.
  • Add template context processors #1904.
  • Support str and datetime on expires parameter on the Response.set_cookie method #1908.

Changed

  • Lazily build the middleware stack #2017.
  • Make the file argument required on UploadFile #1413.
  • Use debug extension instead of custom response template extension #1991.

Fixed

  • Fix url parsing of ipv6 urls on URL.replace #1965.

Version 0.23.1

09 Dec 14:46
d755851
Compare
Choose a tag to compare

Fixed

  • Only stop receiving stream on body_stream if body is empty on the BaseHTTPMiddleware #1940.

Version 0.23.0

05 Dec 12:35
035afb3
Compare
Choose a tag to compare

Added

  • Add headers parameter to the TestClient #1966.

Deprecated

  • Deprecate Starlette and Router decorators #1897.

Fixed

  • Fix bug on FloatConvertor regex #1973.

Version 0.22.0

17 Nov 06:27
549345e
Compare
Choose a tag to compare

Changed

  • Bypass GZipMiddleware when response includes Content-Encoding #1901.

Fixed

  • Remove unneeded unquote() from query parameters on the TestClient #1953.
  • Make sure MutableHeaders._list is actually a list #1917.
  • Import compatibility with the next version of AnyIO #1936.

Version 0.21.0

26 Sep 17:09
0b8a775
Compare
Choose a tag to compare

This release replaces the underlying HTTP client used on the TestClient (requests ➑️ httpx), and as those clients differ a bit on their API, your test suite will likely break. To make the migration smoother, you can use the bump-testclient tool.

Changed

  • Replace requests with httpx in TestClient #1376.

Added

  • Add WebSocketException and support for WebSocket exception handlers #1263.
  • Add middleware parameter to Mount class #1649.
  • Officially support Python 3.11 #1863.
  • Implement __repr__ for route classes #1864.

Fixed

  • Fix bug on which BackgroundTasks were cancelled when using BaseHTTPMiddleware and client disconnected #1715.

Version 0.20.4

28 Jun 12:08
0b132ee
Compare
Choose a tag to compare

Fixed

  • Remove converter from path when generating OpenAPI schema #1648.

Version 0.20.3

10 Jun 05:16
ccd486e
Compare
Choose a tag to compare

Fixed

  • Revert "Allow StaticFiles to follow symlinks" #1681.