]> git.ipfire.org Git - thirdparty/starlette.git/log
thirdparty/starlette.git
23 months agoUpdate link to itsdangerous (#2343)
Ofek Lev [Thu, 23 Nov 2023 02:01:17 +0000 (21:01 -0500)] 
Update link to itsdangerous (#2343)

* Update link to itsdangerous

* here too

23 months agoFix typo in docs (#2344)
Ofek Lev [Wed, 22 Nov 2023 18:26:45 +0000 (13:26 -0500)] 
Fix typo in docs (#2344)

23 months agoReplace black with ruff formatter (#2330)
Amin Alaee [Wed, 8 Nov 2023 16:43:38 +0000 (17:43 +0100)] 
Replace black with ruff formatter (#2330)

23 months agoVersion 0.32.0.post1 (#2327) 0.32.0.post1
Marcelo Trylesinski [Mon, 6 Nov 2023 06:28:32 +0000 (07:28 +0100)] 
Version 0.32.0.post1 (#2327)

23 months agoAdd Starlette-StaticResources to third-party-packages (#2286)
David Ventura [Mon, 6 Nov 2023 02:36:15 +0000 (03:36 +0100)] 
Add Starlette-StaticResources to third-party-packages (#2286)

23 months agoFix link in release-notes.md (#2325)
Grvzard [Mon, 6 Nov 2023 01:51:06 +0000 (09:51 +0800)] 
Fix link in release-notes.md (#2325)

Co-authored-by: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
23 months agoRevert "Bump mkdocs-material from 9.1.17 to 9.4.7 (#2320)" (#2326)
Marcelo Trylesinski [Sun, 5 Nov 2023 16:26:36 +0000 (17:26 +0100)] 
Revert "Bump mkdocs-material from 9.1.17 to 9.4.7 (#2320)" (#2326)

23 months agoVersion 0.32.0 (#2324) 0.32.0
Marcelo Trylesinski [Sat, 4 Nov 2023 12:16:33 +0000 (13:16 +0100)] 
Version 0.32.0 (#2324)

* Version 0.32.0

* Update docs/release-notes.md

23 months agoAdd Apitally to third party packages section in docs (#2313)
Simon Gurcke [Sat, 4 Nov 2023 11:30:27 +0000 (21:30 +1000)] 
Add Apitally to third party packages section in docs (#2313)

23 months agoAdd `domain` parameter to `SessionMiddleware` (#2280)
zllvm [Fri, 3 Nov 2023 12:17:43 +0000 (13:17 +0100)] 
Add `domain` parameter to `SessionMiddleware` (#2280)

* feat: add domain argument to SessionMiddleware

* docs: keep existing formatting

* fix: add newline at end of file

* fix: comply with formatting

* fix: comply with formatting rules

* fix: set domain default value to empty string

* Make `domain` `Optional[str]`

---------

Co-authored-by: max <max@maxlabs.se>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
23 months agoBump ruff from 0.0.291 to 0.1.3 (#2321)
dependabot[bot] [Fri, 3 Nov 2023 02:42:49 +0000 (02:42 +0000)] 
Bump ruff from 0.0.291 to 0.1.3 (#2321)

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.291 to 0.1.3.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/v0.0.291...v0.1.3)

---
updated-dependencies:
- dependency-name: ruff
  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>
Co-authored-by: Aber <me@abersheeran.com>
23 months agoDeleting docs/js folder and extra_javascript in mkdocs.yaml (#2311)
Mahmoud [Thu, 2 Nov 2023 11:45:38 +0000 (13:45 +0200)] 
Deleting docs/js folder and extra_javascript in mkdocs.yaml (#2311)

23 months agoBump mkdocs-material from 9.1.17 to 9.4.7 (#2320)
dependabot[bot] [Wed, 1 Nov 2023 20:49:49 +0000 (15:49 -0500)] 
Bump mkdocs-material from 9.1.17 to 9.4.7 (#2320)

Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.1.17 to 9.4.7.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.1.17...9.4.7)

---
updated-dependencies:
- dependency-name: mkdocs-material
  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>
23 months agoBump typing-extensions from 4.7.1 to 4.8.0 (#2319)
dependabot[bot] [Wed, 1 Nov 2023 20:41:20 +0000 (15:41 -0500)] 
Bump typing-extensions from 4.7.1 to 4.8.0 (#2319)

Bumps [typing-extensions](https://github.com/python/typing_extensions) from 4.7.1 to 4.8.0.
- [Release notes](https://github.com/python/typing_extensions/releases)
- [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md)
- [Commits](https://github.com/python/typing_extensions/compare/4.7.1...4.8.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>
23 months agoBump black from 23.7.0 to 23.10.1 (#2318)
dependabot[bot] [Wed, 1 Nov 2023 20:33:51 +0000 (15:33 -0500)] 
Bump black from 23.7.0 to 23.10.1 (#2318)

Bumps [black](https://github.com/psf/black) from 23.7.0 to 23.10.1.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/23.7.0...23.10.1)

---
updated-dependencies:
- dependency-name: black
  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>
23 months agoBump mkdocs from 1.5.2 to 1.5.3 (#2317)
dependabot[bot] [Wed, 1 Nov 2023 20:08:45 +0000 (15:08 -0500)] 
Bump mkdocs from 1.5.2 to 1.5.3 (#2317)

Bumps [mkdocs](https://github.com/mkdocs/mkdocs) from 1.5.2 to 1.5.3.
- [Release notes](https://github.com/mkdocs/mkdocs/releases)
- [Commits](https://github.com/mkdocs/mkdocs/compare/1.5.2...1.5.3)

---
updated-dependencies:
- dependency-name: mkdocs
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoSend reason on `WebSocketDisconnect` (#2309)
Marcelo Trylesinski [Sun, 22 Oct 2023 18:44:09 +0000 (20:44 +0200)] 
Send reason on `WebSocketDisconnect` (#2309)

2 years agoBump build from 0.10.0 to 1.0.3 (#2290)
dependabot[bot] [Mon, 2 Oct 2023 04:33:16 +0000 (04:33 +0000)] 
Bump build from 0.10.0 to 1.0.3 (#2290)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump actions/checkout from 3 to 4 (#2289)
dependabot[bot] [Mon, 2 Oct 2023 04:16:01 +0000 (04:16 +0000)] 
Bump actions/checkout from 3 to 4 (#2289)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump types-contextvars from 2.4.7.2 to 2.4.7.3 (#2293)
dependabot[bot] [Mon, 2 Oct 2023 04:13:13 +0000 (04:13 +0000)] 
Bump types-contextvars from 2.4.7.2 to 2.4.7.3 (#2293)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump ruff from 0.0.285 to 0.0.291 (#2291)
dependabot[bot] [Mon, 2 Oct 2023 04:10:41 +0000 (22:10 -0600)] 
Bump ruff from 0.0.285 to 0.0.291 (#2291)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump coverage from 7.3.0 to 7.3.1 (#2292)
dependabot[bot] [Mon, 2 Oct 2023 04:06:04 +0000 (22:06 -0600)] 
Bump coverage from 7.3.0 to 7.3.1 (#2292)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump types-pyyaml from 6.0.12.11 to 6.0.12.12 (#2294)
dependabot[bot] [Sun, 1 Oct 2023 21:18:52 +0000 (02:48 +0530)] 
Bump types-pyyaml from 6.0.12.11 to 6.0.12.12 (#2294)

2 years agoBump AnyIO on the test suite (#2285)
Marcelo Trylesinski [Mon, 18 Sep 2023 08:20:19 +0000 (10:20 +0200)] 
Bump AnyIO on the test suite (#2285)

2 years agoEnsure event ordering in test_app_receives_http_disconnect_while_sending_if_discarded...
Jean Hominal [Sun, 17 Sep 2023 00:27:52 +0000 (02:27 +0200)] 
Ensure event ordering in test_app_receives_http_disconnect_while_sending_if_discarded (#2284)

2 years agoInherit from HTMLResponse instead of Response on _TemplateResponse (#2272) (#2274)
Sergi [Thu, 7 Sep 2023 04:08:44 +0000 (21:08 -0700)] 
Inherit from HTMLResponse instead of Response on _TemplateResponse (#2272) (#2274)

2 years agoFix MultiDict tests (#2270)
Godot [Wed, 6 Sep 2023 07:56:32 +0000 (15:56 +0800)] 
Fix MultiDict tests (#2270)

2 years agoBump typing-extensions from 4.7.0 to 4.7.1 (#2269)
dependabot[bot] [Sat, 2 Sep 2023 07:55:13 +0000 (09:55 +0200)] 
Bump typing-extensions from 4.7.0 to 4.7.1 (#2269)

2 years agoBump mypy from 1.4.1 to 1.5.1 (#2265)
dependabot[bot] [Sat, 2 Sep 2023 07:44:53 +0000 (09:44 +0200)] 
Bump mypy from 1.4.1 to 1.5.1 (#2265)

2 years agoBump coverage from 7.2.7 to 7.3.0 (#2266)
dependabot[bot] [Sat, 2 Sep 2023 06:50:15 +0000 (08:50 +0200)] 
Bump coverage from 7.2.7 to 7.3.0 (#2266)

2 years agoBump importlib-metadata from 6.6.0 to 6.8.0 (#2268)
dependabot[bot] [Sat, 2 Sep 2023 06:23:10 +0000 (08:23 +0200)] 
Bump importlib-metadata from 6.6.0 to 6.8.0 (#2268)

2 years agoChange Response.render content argument typing (#2264)
Amin Alaee [Fri, 1 Sep 2023 14:54:51 +0000 (16:54 +0200)] 
Change Response.render content argument typing (#2264)

2 years agoAdd copy button on documentation (#2257)
Marcelo Trylesinski [Sun, 27 Aug 2023 12:07:33 +0000 (14:07 +0200)] 
Add copy button on documentation (#2257)

2 years agoTweak documentation a bit (#2258)
Marcelo Trylesinski [Sun, 27 Aug 2023 07:15:48 +0000 (09:15 +0200)] 
Tweak documentation a bit (#2258)

2 years agoVersion 0.31.1 (#2247) 0.31.1
Marcelo Trylesinski [Sat, 26 Aug 2023 16:42:17 +0000 (18:42 +0200)] 
Version 0.31.1 (#2247)

2 years agoSet `url_for` global for custom jinja envs (#2230)
Alex Oleshkevich [Fri, 25 Aug 2023 19:11:44 +0000 (21:11 +0200)] 
Set `url_for` global for custom jinja envs (#2230)

2 years agoFix `Lifespan State` docs typing import (#2236)
Bartosz Magiera [Fri, 25 Aug 2023 19:00:30 +0000 (21:00 +0200)] 
Fix `Lifespan State` docs typing import (#2236)

2 years agoRemove useless brackets from code example in documentation. (#2234)
Josiah Kaviani [Fri, 25 Aug 2023 18:57:40 +0000 (22:57 +0400)] 
Remove useless brackets from code example in documentation. (#2234)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoBump ruff from 0.0.275 to 0.0.285 (#2254)
dependabot[bot] [Fri, 25 Aug 2023 18:55:38 +0000 (12:55 -0600)] 
Bump ruff from 0.0.275 to 0.0.285 (#2254)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoBump mkdocs from 1.4.3 to 1.5.2 (#2253)
dependabot[bot] [Fri, 25 Aug 2023 18:47:12 +0000 (12:47 -0600)] 
Bump mkdocs from 1.4.3 to 1.5.2 (#2253)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump black from 23.3.0 to 23.7.0 (#2238)
dependabot[bot] [Fri, 25 Aug 2023 18:40:20 +0000 (12:40 -0600)] 
Bump black from 23.3.0 to 23.7.0 (#2238)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump types-pyyaml from 6.0.12.10 to 6.0.12.11 (#2237)
dependabot[bot] [Fri, 25 Aug 2023 18:35:26 +0000 (12:35 -0600)] 
Bump types-pyyaml from 6.0.12.10 to 6.0.12.11 (#2237)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoFixed import error when exceptiongroup isn't available (#2231)
Alex Grönholm [Fri, 25 Aug 2023 18:29:44 +0000 (21:29 +0300)] 
Fixed import error when exceptiongroup isn't available (#2231)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoVersion 0.31.0 (#2224) 0.31.0
Marcelo Trylesinski [Mon, 24 Jul 2023 15:46:24 +0000 (16:46 +0100)] 
Version 0.31.0 (#2224)

2 years agoUse mypy `strict` (#2180)
Viicos [Sun, 23 Jul 2023 21:41:50 +0000 (23:41 +0200)] 
Use mypy `strict` (#2180)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoUpgraded to AnyIO 4.0 (#2211)
Alex Grönholm [Sun, 23 Jul 2023 06:26:35 +0000 (09:26 +0300)] 
Upgraded to AnyIO 4.0 (#2211)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoDon't group duplicated headers on a single string on the `TestClient` (#2219)
ooknimm [Sun, 23 Jul 2023 06:07:24 +0000 (15:07 +0900)] 
Don't group duplicated headers on a single string on the `TestClient` (#2219)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoAdded official Python 3.12 support (#2214)
Alex Grönholm [Thu, 13 Jul 2023 19:23:03 +0000 (22:23 +0300)] 
Added official Python 3.12 support (#2214)

2 years agoFix publish Github Action (#2213) 0.30.0
Amin Alaee [Thu, 13 Jul 2023 11:21:10 +0000 (13:21 +0200)] 
Fix publish Github Action (#2213)

2 years agoVersion 0.30.0 (#2212)
Marcelo Trylesinski [Thu, 13 Jul 2023 09:30:04 +0000 (11:30 +0200)] 
Version 0.30.0 (#2212)

2 years agoDrop support for Python 3.7 (#2178)
Marcelo Trylesinski [Thu, 13 Jul 2023 08:19:12 +0000 (10:19 +0200)] 
Drop support for Python 3.7 (#2178)

2 years agoVersion 0.29.0 (#2209) 0.29.0
Marcelo Trylesinski [Thu, 13 Jul 2023 08:12:07 +0000 (10:12 +0200)] 
Version 0.29.0 (#2209)

2 years agoAdd `request` argument to `TemplateResponse` (#2191)
Alex Oleshkevich [Thu, 13 Jul 2023 07:58:13 +0000 (09:58 +0200)] 
Add `request` argument to `TemplateResponse` (#2191)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoStop `body_stream` in case `more_body=False` (#2194)
Marcelo Trylesinski [Thu, 13 Jul 2023 07:48:10 +0000 (09:48 +0200)] 
Stop `body_stream` in case `more_body=False` (#2194)

2 years agoAdd `follow_redirects` parameter to `TestClient` (#2207)
Alex Oleshkevich [Thu, 6 Jul 2023 16:27:45 +0000 (18:27 +0200)] 
Add `follow_redirects` parameter to `TestClient` (#2207)

2 years agoWarn users when using `lifespan` together with `on_startup`/`on_shutdown` (#2193)
Stratos Gerakakis [Wed, 5 Jul 2023 20:55:54 +0000 (22:55 +0200)] 
Warn users when using `lifespan` together with `on_startup`/`on_shutdown` (#2193)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoUpdate pyproject.toml (#2205)
Amin Alaee [Mon, 3 Jul 2023 07:13:59 +0000 (09:13 +0200)] 
Update pyproject.toml (#2205)

2 years agoBump typing-extensions from 4.5.0 to 4.7.0 (#2202)
dependabot[bot] [Sat, 1 Jul 2023 22:35:45 +0000 (00:35 +0200)] 
Bump typing-extensions from 4.5.0 to 4.7.0 (#2202)

Bumps [typing-extensions](https://github.com/python/typing_extensions) from 4.5.0 to 4.7.0.
- [Release notes](https://github.com/python/typing_extensions/releases)
- [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md)
- [Commits](https://github.com/python/typing_extensions/compare/4.5.0...4.7.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>
2 years agoBump mypy from 1.3.0 to 1.4.1 (#2203)
dependabot[bot] [Sat, 1 Jul 2023 21:48:16 +0000 (23:48 +0200)] 
Bump mypy from 1.3.0 to 1.4.1 (#2203)

Bumps [mypy](https://github.com/python/mypy) from 1.3.0 to 1.4.1.
- [Commits](https://github.com/python/mypy/compare/v1.3.0...v1.4.1)

---
updated-dependencies:
- dependency-name: mypy
  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>
2 years agoBump ruff from 0.0.263 to 0.0.275 (#2201)
dependabot[bot] [Sat, 1 Jul 2023 21:41:13 +0000 (23:41 +0200)] 
Bump ruff from 0.0.263 to 0.0.275 (#2201)

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.263 to 0.0.275.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md)
- [Commits](https://github.com/astral-sh/ruff/compare/v0.0.263...v0.0.275)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump mkdocs-material from 9.1.15 to 9.1.17 (#2200)
dependabot[bot] [Sat, 1 Jul 2023 21:38:10 +0000 (23:38 +0200)] 
Bump mkdocs-material from 9.1.15 to 9.1.17 (#2200)

Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.1.15 to 9.1.17.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.1.15...9.1.17)

---
updated-dependencies:
- dependency-name: mkdocs-material
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump coverage from 7.2.5 to 7.2.7 (#2204)
dependabot[bot] [Sat, 1 Jul 2023 21:33:14 +0000 (23:33 +0200)] 
Bump coverage from 7.2.5 to 7.2.7 (#2204)

Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.2.5 to 7.2.7.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.2.5...7.2.7)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoFix empty str(exception) when initialized with kwargs (#2181)
bowugit [Tue, 20 Jun 2023 18:35:45 +0000 (02:35 +0800)] 
Fix empty str(exception) when initialized with kwargs (#2181)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoChange JSONResponse headers type annotation to match other Response classes (#2187)
Stefan Mejlgaard [Fri, 16 Jun 2023 13:04:17 +0000 (15:04 +0200)] 
Change JSONResponse headers type annotation to match other Response classes (#2187)

2 years agoCollect routes from Host to generate the OpenAPI schema (#2183)
Thanh Nguyen [Tue, 13 Jun 2023 06:22:29 +0000 (13:22 +0700)] 
Collect routes from Host to generate the OpenAPI schema (#2183)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoFix minor typo in Starlette docstring (#2179)
Albert Villanova del Moral [Thu, 8 Jun 2023 20:57:37 +0000 (22:57 +0200)] 
Fix minor typo in Starlette docstring (#2179)

2 years agoVersion 0.28.0 (#2169) 0.28.0
Marcelo Trylesinski [Wed, 7 Jun 2023 06:25:45 +0000 (08:25 +0200)] 
Version 0.28.0 (#2169)

2 years agoMove exception handling logic to Route (#2026)
Adrian Garcia Badaracco [Wed, 7 Jun 2023 06:19:32 +0000 (01:19 -0500)] 
Move exception handling logic to Route (#2026)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoAdd clear error message when httpx is not installed (#2177)
Marcelo Trylesinski [Tue, 6 Jun 2023 21:19:38 +0000 (23:19 +0200)] 
Add clear error message when httpx is not installed (#2177)

2 years agoAdd env argument to Jinja2Templates, deprecate **env_options. (ref #2134) (#2159)
Alex Oleshkevich [Mon, 5 Jun 2023 18:20:36 +0000 (20:20 +0200)] 
Add env argument to Jinja2Templates, deprecate **env_options. (ref #2134) (#2159)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoUpdate pull request template to add notes on changes (#2168)
Marcelo Trylesinski [Sun, 4 Jun 2023 17:17:21 +0000 (19:17 +0200)] 
Update pull request template to add notes on changes (#2168)

2 years agoBump mkdocs from 1.4.2 to 1.4.3 (#2164)
dependabot[bot] [Thu, 1 Jun 2023 20:53:56 +0000 (14:53 -0600)] 
Bump mkdocs from 1.4.2 to 1.4.3 (#2164)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump types-pyyaml from 6.0.12.9 to 6.0.12.10 (#2163)
dependabot[bot] [Thu, 1 Jun 2023 20:49:05 +0000 (14:49 -0600)] 
Bump types-pyyaml from 6.0.12.9 to 6.0.12.10 (#2163)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump importlib-metadata from 4.13.0 to 6.6.0 (#2162)
dependabot[bot] [Thu, 1 Jun 2023 20:44:33 +0000 (14:44 -0600)] 
Bump importlib-metadata from 4.13.0 to 6.6.0 (#2162)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump mypy from 1.2.0 to 1.3.0 (#2165)
dependabot[bot] [Thu, 1 Jun 2023 20:39:13 +0000 (14:39 -0600)] 
Bump mypy from 1.2.0 to 1.3.0 (#2165)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump mkdocs-material from 9.1.8 to 9.1.15 (#2166)
dependabot[bot] [Thu, 1 Jun 2023 20:34:07 +0000 (14:34 -0600)] 
Bump mkdocs-material from 9.1.8 to 9.1.15 (#2166)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoReuse Request's body buffer for call_next in BaseHTTPMiddleware (#1692)
Adrian Garcia Badaracco [Thu, 1 Jun 2023 18:57:28 +0000 (13:57 -0500)] 
Reuse Request's body buffer for call_next in BaseHTTPMiddleware (#1692)

2 years agoAdd testclient test for domain restricted cookies (#2154)
Nicolas Dietrich [Wed, 31 May 2023 16:39:50 +0000 (18:39 +0200)] 
Add testclient test for domain restricted cookies (#2154)

2 years agoAllow "name" argument on templates url_for() (#2127)
Ross Titmarsh [Wed, 31 May 2023 15:57:17 +0000 (16:57 +0100)] 
Allow "name" argument on templates url_for() (#2127)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoAdd missing type hints to Jinja2Templates() (#2157)
Dr. Matthew Swabey [Wed, 31 May 2023 15:55:08 +0000 (16:55 +0100)] 
Add missing type hints to Jinja2Templates() (#2157)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoInclude all files in sdist archives (#2149)
Michał Górny [Wed, 24 May 2023 09:27:22 +0000 (11:27 +0200)] 
Include all files in sdist archives (#2149)

Remove the restriction on files inclduded in sdist archives in order
to include documentation sources and tests there.  This is the default
hatchling behavior and it is helpful to packagers (such as Linux
distributions or Conda) as it permits using sdist archives to do
packaging (instead of GitHub archives that are not guaranteed
to be reproducible).  Most of the ordinary users will not be affected
since starlette is a pure Python package and therefore pip will prefer
wheels to install it everywhere.

2 years agoMove configuration of tools to pyproject.toml (#2148)
Amin Alaee [Tue, 16 May 2023 13:50:46 +0000 (17:20 +0330)] 
Move configuration of tools to pyproject.toml (#2148)

2 years agoVersion 0.27.0 (#2147) 0.27.0
Amin Alaee [Tue, 16 May 2023 10:56:45 +0000 (14:26 +0330)] 
Version 0.27.0 (#2147)

* Version 0.27.0

* Update release-notes.md

* Update docs/release-notes.md

* Update docs/release-notes.md

* Update docs/release-notes.md

* Update release-notes.md

* Update docs/release-notes.md

* Update release-notes.md

* Update docs/release-notes.md

* Update docs/release-notes.md

* Update docs/release-notes.md

---------

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoMerge pull request from GHSA-v5gw-mw7f-84px
Amin Alaee [Tue, 16 May 2023 10:33:57 +0000 (14:03 +0330)] 
Merge pull request from GHSA-v5gw-mw7f-84px

2 years agoadd 3rd party middleware link for secure-cookie (#2144)
Elias Gabriel [Wed, 10 May 2023 05:16:46 +0000 (01:16 -0400)] 
add 3rd party middleware link for secure-cookie (#2144)

2 years agoRun black before ruff (#2143)
Adrian Garcia Badaracco [Thu, 4 May 2023 19:05:27 +0000 (14:05 -0500)] 
Run black before ruff (#2143)

2 years agoCorrect the RuntimeError message content in websockets (#2141)
Grvzard [Wed, 3 May 2023 08:57:00 +0000 (16:57 +0800)] 
Correct the RuntimeError message content in websockets (#2141)

2 years agoBump ruff from 0.0.260 to 0.0.263 (#2136)
dependabot[bot] [Tue, 2 May 2023 06:13:14 +0000 (00:13 -0600)] 
Bump ruff from 0.0.260 to 0.0.263 (#2136)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoBump mkdocs-material from 9.0.15 to 9.1.8 (#2139)
dependabot[bot] [Mon, 1 May 2023 21:34:59 +0000 (23:34 +0200)] 
Bump mkdocs-material from 9.0.15 to 9.1.8 (#2139)

Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.0.15 to 9.1.8.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.0.15...9.1.8)

---
updated-dependencies:
- dependency-name: mkdocs-material
  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>
2 years agoBump mypy from 1.0.1 to 1.2.0 (#2137)
dependabot[bot] [Mon, 1 May 2023 21:29:31 +0000 (23:29 +0200)] 
Bump mypy from 1.0.1 to 1.2.0 (#2137)

Bumps [mypy](https://github.com/python/mypy) from 1.0.1 to 1.2.0.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v1.0.1...v1.2.0)

---
updated-dependencies:
- dependency-name: mypy
  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>
2 years agoBump coverage from 7.1.0 to 7.2.5 (#2138)
dependabot[bot] [Mon, 1 May 2023 21:25:06 +0000 (23:25 +0200)] 
Bump coverage from 7.1.0 to 7.2.5 (#2138)

Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.1.0 to 7.2.5.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.1.0...7.2.5)

---
updated-dependencies:
- dependency-name: coverage
  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>
2 years agoBump pytest from 7.2.2 to 7.3.1 (#2140)
dependabot[bot] [Mon, 1 May 2023 21:05:30 +0000 (23:05 +0200)] 
Bump pytest from 7.2.2 to 7.3.1 (#2140)

Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.2.2 to 7.3.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/7.2.2...7.3.1)

---
updated-dependencies:
- dependency-name: pytest
  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>
2 years agoMinify JSON websocket data via `send_json` (#2128)
dosisod [Fri, 28 Apr 2023 02:45:03 +0000 (19:45 -0700)] 
Minify JSON websocket data via `send_json` (#2128)

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2 years agoConvert ImportErrors into ModuleNotFoundError (#2135)
Adrian Garcia Badaracco [Wed, 26 Apr 2023 15:56:46 +0000 (09:56 -0600)] 
Convert ImportErrors into ModuleNotFoundError (#2135)

2 years agoUpdate `scripts/check` (#2133)
Amin Alaee [Tue, 25 Apr 2023 13:17:38 +0000 (15:17 +0200)] 
Update `scripts/check` (#2133)

2 years agoUpdate pull_request_template.md (#2122)
Marcelo Trylesinski [Tue, 18 Apr 2023 12:43:01 +0000 (14:43 +0200)] 
Update pull_request_template.md (#2122)

2 years agoFix types in lifespan examples (#2123)
Alex Oleshkevich [Mon, 17 Apr 2023 10:52:15 +0000 (12:52 +0200)] 
Fix types in lifespan examples (#2123)

2 years agoUpdate black (#2114)
Amin Alaee [Wed, 5 Apr 2023 12:38:44 +0000 (14:38 +0200)] 
Update black (#2114)

2 years agoUse ruff instead of flake8, autoflake and isort (#2110)
Marcelo Trylesinski [Wed, 5 Apr 2023 12:30:01 +0000 (14:30 +0200)] 
Use ruff instead of flake8, autoflake and isort (#2110)

2 years agoBump typing-extensions from 4.4.0 to 4.5.0 (#2103)
dependabot[bot] [Sun, 2 Apr 2023 08:50:14 +0000 (10:50 +0200)] 
Bump typing-extensions from 4.4.0 to 4.5.0 (#2103)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>