tiangolo/fastapi (fastapi)
### [`v0.110.0`](https://togithub.com/tiangolo/fastapi/releases/tag/0.110.0)
[Compare Source](https://togithub.com/tiangolo/fastapi/compare/0.109.2...0.110.0)
##### Breaking Changes
- π Fix unhandled growing memory for internal server errors, refactor dependencies with `yield` and `except` to require raising again as in regular Python. PR [#11191](https://togithub.com/tiangolo/fastapi/pull/11191) by [@tiangolo](https://togithub.com/tiangolo).
- This is a breaking change (and only slightly) if you used dependencies with `yield`, used `except` in those dependencies, and didn't raise again.
- This was reported internally by [@rushilsrivastava](https://togithub.com/rushilsrivastava) as a memory leak when the server had unhandled exceptions that would produce internal server errors, the memory allocated before that point would not be released.
- Read the new docs: [Dependencies with `yield` and `except`](https://fastapi.tiangolo.com/tutorial/dependencies/dependencies-with-yield/#dependencies-with-yield-and-except).
In short, if you had dependencies that looked like:
```Python
def my_dep():
try:
yield
except SomeException:
pass
```
Now you need to make sure you raise again after `except`, just as you would in regular Python:
```Python
def my_dep():
try:
yield
except SomeException:
raise
```
##### Docs
- βοΈ Fix minor typos in `docs/ko/docs/`. PR [#11126](https://togithub.com/tiangolo/fastapi/pull/11126) by [@KaniKim](https://togithub.com/KaniKim).
- βοΈ Fix minor typo in `fastapi/applications.py`. PR [#11099](https://togithub.com/tiangolo/fastapi/pull/11099) by [@JacobHayes](https://togithub.com/JacobHayes).
##### Translations
- π Add German translation for `docs/de/docs/reference/background.md`. PR [#10820](https://togithub.com/tiangolo/fastapi/pull/10820) by [@nilslindemann](https://togithub.com/nilslindemann).
- π Add German translation for `docs/de/docs/reference/templating.md`. PR [#10842](https://togithub.com/tiangolo/fastapi/pull/10842) by [@nilslindemann](https://togithub.com/nilslindemann).
- π Add German translation for `docs/de/docs/external-links.md`. PR [#10852](https://togithub.com/tiangolo/fastapi/pull/10852) by [@nilslindemann](https://togithub.com/nilslindemann).
- π Update Turkish translation for `docs/tr/docs/tutorial/query-params.md`. PR [#11162](https://togithub.com/tiangolo/fastapi/pull/11162) by [@hasansezertasan](https://togithub.com/hasansezertasan).
- π Add German translation for `docs/de/docs/reference/encoders.md`. PR [#10840](https://togithub.com/tiangolo/fastapi/pull/10840) by [@nilslindemann](https://togithub.com/nilslindemann).
- π Add German translation for `docs/de/docs/reference/responses.md`. PR [#10825](https://togithub.com/tiangolo/fastapi/pull/10825) by [@nilslindemann](https://togithub.com/nilslindemann).
- π Add German translation for `docs/de/docs/reference/request.md`. PR [#10821](https://togithub.com/tiangolo/fastapi/pull/10821) by [@nilslindemann](https://togithub.com/nilslindemann).
- π Add Turkish translation for `docs/tr/docs/tutorial/query-params.md`. PR [#11078](https://togithub.com/tiangolo/fastapi/pull/11078) by [@emrhnsyts](https://togithub.com/emrhnsyts).
- π Add German translation for `docs/de/docs/reference/fastapi.md`. PR [#10813](https://togithub.com/tiangolo/fastapi/pull/10813) by [@nilslindemann](https://togithub.com/nilslindemann).
- π Add German translation for `docs/de/docs/newsletter.md`. PR [#10853](https://togithub.com/tiangolo/fastapi/pull/10853) by [@nilslindemann](https://togithub.com/nilslindemann).
- π Add Traditional Chinese translation for `docs/zh-hant/docs/learn/index.md`. PR [#11142](https://togithub.com/tiangolo/fastapi/pull/11142) by [@hsuanchi](https://togithub.com/hsuanchi).
- π Add Korean translation for `/docs/ko/docs/tutorial/dependencies/global-dependencies.md`. PR [#11123](https://togithub.com/tiangolo/fastapi/pull/11123) by [@riroan](https://togithub.com/riroan).
- π Add Korean translation for `/docs/ko/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md`. PR [#11124](https://togithub.com/tiangolo/fastapi/pull/11124) by [@riroan](https://togithub.com/riroan).
- π Add Korean translation for `/docs/ko/docs/tutorial/schema-extra-example.md`. PR [#11121](https://togithub.com/tiangolo/fastapi/pull/11121) by [@KaniKim](https://togithub.com/KaniKim).
- π Add Korean translation for `/docs/ko/docs/tutorial/body-fields.md`. PR [#11112](https://togithub.com/tiangolo/fastapi/pull/11112) by [@KaniKim](https://togithub.com/KaniKim).
- π Add Korean translation for `/docs/ko/docs/tutorial/cookie-params.md`. PR [#11118](https://togithub.com/tiangolo/fastapi/pull/11118) by [@riroan](https://togithub.com/riroan).
- π Update Korean translation for `/docs/ko/docs/dependencies/index.md`. PR [#11114](https://togithub.com/tiangolo/fastapi/pull/11114) by [@KaniKim](https://togithub.com/KaniKim).
- π Update Korean translation for `/docs/ko/docs/deployment/docker.md`. PR [#11113](https://togithub.com/tiangolo/fastapi/pull/11113) by [@KaniKim](https://togithub.com/KaniKim).
- π Update Turkish translation for `docs/tr/docs/tutorial/first-steps.md`. PR [#11094](https://togithub.com/tiangolo/fastapi/pull/11094) by [@hasansezertasan](https://togithub.com/hasansezertasan).
- π Add Spanish translation for `docs/es/docs/advanced/security/index.md`. PR [#2278](https://togithub.com/tiangolo/fastapi/pull/2278) by [@Xaraxx](https://togithub.com/Xaraxx).
- π Add Spanish translation for `docs/es/docs/advanced/response-headers.md`. PR [#2276](https://togithub.com/tiangolo/fastapi/pull/2276) by [@Xaraxx](https://togithub.com/Xaraxx).
- π Add Spanish translation for `docs/es/docs/deployment/index.md` and `~/deployment/versions.md`. PR [#9669](https://togithub.com/tiangolo/fastapi/pull/9669) by [@pabloperezmoya](https://togithub.com/pabloperezmoya).
- π Add Spanish translation for `docs/es/docs/benchmarks.md`. PR [#10928](https://togithub.com/tiangolo/fastapi/pull/10928) by [@pablocm83](https://togithub.com/pablocm83).
- π Add Spanish translation for `docs/es/docs/advanced/response-change-status-code.md`. PR [#11100](https://togithub.com/tiangolo/fastapi/pull/11100) by [@alejsdev](https://togithub.com/alejsdev).
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 has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
0.109.2
->0.110.0
Release Notes
tiangolo/fastapi (fastapi)
### [`v0.110.0`](https://togithub.com/tiangolo/fastapi/releases/tag/0.110.0) [Compare Source](https://togithub.com/tiangolo/fastapi/compare/0.109.2...0.110.0) ##### Breaking Changes - π Fix unhandled growing memory for internal server errors, refactor dependencies with `yield` and `except` to require raising again as in regular Python. PR [#11191](https://togithub.com/tiangolo/fastapi/pull/11191) by [@tiangolo](https://togithub.com/tiangolo). - This is a breaking change (and only slightly) if you used dependencies with `yield`, used `except` in those dependencies, and didn't raise again. - This was reported internally by [@rushilsrivastava](https://togithub.com/rushilsrivastava) as a memory leak when the server had unhandled exceptions that would produce internal server errors, the memory allocated before that point would not be released. - Read the new docs: [Dependencies with `yield` and `except`](https://fastapi.tiangolo.com/tutorial/dependencies/dependencies-with-yield/#dependencies-with-yield-and-except). In short, if you had dependencies that looked like: ```Python def my_dep(): try: yield except SomeException: pass ``` Now you need to make sure you raise again after `except`, just as you would in regular Python: ```Python def my_dep(): try: yield except SomeException: raise ``` ##### Docs - βοΈ Fix minor typos in `docs/ko/docs/`. PR [#11126](https://togithub.com/tiangolo/fastapi/pull/11126) by [@KaniKim](https://togithub.com/KaniKim). - βοΈ Fix minor typo in `fastapi/applications.py`. PR [#11099](https://togithub.com/tiangolo/fastapi/pull/11099) by [@JacobHayes](https://togithub.com/JacobHayes). ##### Translations - π Add German translation for `docs/de/docs/reference/background.md`. PR [#10820](https://togithub.com/tiangolo/fastapi/pull/10820) by [@nilslindemann](https://togithub.com/nilslindemann). - π Add German translation for `docs/de/docs/reference/templating.md`. PR [#10842](https://togithub.com/tiangolo/fastapi/pull/10842) by [@nilslindemann](https://togithub.com/nilslindemann). - π Add German translation for `docs/de/docs/external-links.md`. PR [#10852](https://togithub.com/tiangolo/fastapi/pull/10852) by [@nilslindemann](https://togithub.com/nilslindemann). - π Update Turkish translation for `docs/tr/docs/tutorial/query-params.md`. PR [#11162](https://togithub.com/tiangolo/fastapi/pull/11162) by [@hasansezertasan](https://togithub.com/hasansezertasan). - π Add German translation for `docs/de/docs/reference/encoders.md`. PR [#10840](https://togithub.com/tiangolo/fastapi/pull/10840) by [@nilslindemann](https://togithub.com/nilslindemann). - π Add German translation for `docs/de/docs/reference/responses.md`. PR [#10825](https://togithub.com/tiangolo/fastapi/pull/10825) by [@nilslindemann](https://togithub.com/nilslindemann). - π Add German translation for `docs/de/docs/reference/request.md`. PR [#10821](https://togithub.com/tiangolo/fastapi/pull/10821) by [@nilslindemann](https://togithub.com/nilslindemann). - π Add Turkish translation for `docs/tr/docs/tutorial/query-params.md`. PR [#11078](https://togithub.com/tiangolo/fastapi/pull/11078) by [@emrhnsyts](https://togithub.com/emrhnsyts). - π Add German translation for `docs/de/docs/reference/fastapi.md`. PR [#10813](https://togithub.com/tiangolo/fastapi/pull/10813) by [@nilslindemann](https://togithub.com/nilslindemann). - π Add German translation for `docs/de/docs/newsletter.md`. PR [#10853](https://togithub.com/tiangolo/fastapi/pull/10853) by [@nilslindemann](https://togithub.com/nilslindemann). - π Add Traditional Chinese translation for `docs/zh-hant/docs/learn/index.md`. PR [#11142](https://togithub.com/tiangolo/fastapi/pull/11142) by [@hsuanchi](https://togithub.com/hsuanchi). - π Add Korean translation for `/docs/ko/docs/tutorial/dependencies/global-dependencies.md`. PR [#11123](https://togithub.com/tiangolo/fastapi/pull/11123) by [@riroan](https://togithub.com/riroan). - π Add Korean translation for `/docs/ko/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md`. PR [#11124](https://togithub.com/tiangolo/fastapi/pull/11124) by [@riroan](https://togithub.com/riroan). - π Add Korean translation for `/docs/ko/docs/tutorial/schema-extra-example.md`. PR [#11121](https://togithub.com/tiangolo/fastapi/pull/11121) by [@KaniKim](https://togithub.com/KaniKim). - π Add Korean translation for `/docs/ko/docs/tutorial/body-fields.md`. PR [#11112](https://togithub.com/tiangolo/fastapi/pull/11112) by [@KaniKim](https://togithub.com/KaniKim). - π Add Korean translation for `/docs/ko/docs/tutorial/cookie-params.md`. PR [#11118](https://togithub.com/tiangolo/fastapi/pull/11118) by [@riroan](https://togithub.com/riroan). - π Update Korean translation for `/docs/ko/docs/dependencies/index.md`. PR [#11114](https://togithub.com/tiangolo/fastapi/pull/11114) by [@KaniKim](https://togithub.com/KaniKim). - π Update Korean translation for `/docs/ko/docs/deployment/docker.md`. PR [#11113](https://togithub.com/tiangolo/fastapi/pull/11113) by [@KaniKim](https://togithub.com/KaniKim). - π Update Turkish translation for `docs/tr/docs/tutorial/first-steps.md`. PR [#11094](https://togithub.com/tiangolo/fastapi/pull/11094) by [@hasansezertasan](https://togithub.com/hasansezertasan). - π Add Spanish translation for `docs/es/docs/advanced/security/index.md`. PR [#2278](https://togithub.com/tiangolo/fastapi/pull/2278) by [@Xaraxx](https://togithub.com/Xaraxx). - π Add Spanish translation for `docs/es/docs/advanced/response-headers.md`. PR [#2276](https://togithub.com/tiangolo/fastapi/pull/2276) by [@Xaraxx](https://togithub.com/Xaraxx). - π Add Spanish translation for `docs/es/docs/deployment/index.md` and `~/deployment/versions.md`. PR [#9669](https://togithub.com/tiangolo/fastapi/pull/9669) by [@pabloperezmoya](https://togithub.com/pabloperezmoya). - π Add Spanish translation for `docs/es/docs/benchmarks.md`. PR [#10928](https://togithub.com/tiangolo/fastapi/pull/10928) by [@pablocm83](https://togithub.com/pablocm83). - π Add Spanish translation for `docs/es/docs/advanced/response-change-status-code.md`. PR [#11100](https://togithub.com/tiangolo/fastapi/pull/11100) by [@alejsdev](https://togithub.com/alejsdev).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.
This PR has been generated by Mend Renovate. View repository job log here.