Skip to content

Commit 0192eab

Browse files
committed
📝 Update release notes
1 parent 3f9f4a0 commit 0192eab

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/release-notes.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
## Latest changes
22

3+
* Add dependencies with `yield`, a.k.a. exit steps, context managers, cleanup, teardown, ...
4+
* This allows adding extra code after a dependency is done. It can be used, for example, to close database connections.
5+
* Dependencies with `yield` can be normal or `async`, **FastAPI** will run normal dependencies in a threadpool.
6+
* They can be combined with normal dependencies.
7+
* It's possible to have arbitrary trees/levels of dependencies with `yield` and exit steps are handled in the correct order automatically.
8+
* It works by default in Python 3.7 or above. For Python 3.6, it requires the extra backport dependencies:
9+
* `async-exit-stack`
10+
* `async-generator`
11+
* New docs at [Dependencies with `yield`](https://fastapi.tiangolo.com/tutorial/dependencies/dependencies-with-yield/).
12+
* Updated database docs [SQL (Relational) Databases: Main **FastAPI** app](https://fastapi.tiangolo.com/tutorial/sql-databases/#main-fastapi-app).
13+
* PR [#595](https://github.com/tiangolo/fastapi/pull/595).
314
* Fix `sitemap.xml` in website. PR [#598](https://github.com/tiangolo/fastapi/pull/598) by [@samuelcolvin](https://github.com/samuelcolvin).
415

516
## 0.41.0

0 commit comments

Comments
 (0)