From: Sebastián Ramírez Date: Wed, 9 Oct 2019 18:16:45 +0000 (-0500) Subject: :bookmark: Release version 0.42.0: Answer to the Ultimate Question of Life, the Unive... X-Git-Tag: 0.42.0 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=65536cbf63318d111bf608960378d651b6c1596a;p=thirdparty%2Ffastapi%2Ffastapi.git :bookmark: Release version 0.42.0: Answer to the Ultimate Question of Life, the Universe, and Everything --- diff --git a/docs/release-notes.md b/docs/release-notes.md index daeb5031b4..8af3a3b7d2 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -1,5 +1,7 @@ ## Latest changes +## 0.42.0 + * Add dependencies with `yield`, a.k.a. exit steps, context managers, cleanup, teardown, ... * This allows adding extra code after a dependency is done. It can be used, for example, to close database connections. * Dependencies with `yield` can be normal or `async`, **FastAPI** will run normal dependencies in a threadpool. diff --git a/fastapi/__init__.py b/fastapi/__init__.py index 76c25d5055..61d981fea9 100644 --- a/fastapi/__init__.py +++ b/fastapi/__init__.py @@ -1,6 +1,6 @@ """FastAPI framework, high performance, easy to learn, fast to code, ready for production""" -__version__ = "0.41.0" +__version__ = "0.42.0" from starlette.background import BackgroundTasks