]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:memo: Update release notes
authorSebastián Ramírez <tiangolo@gmail.com>
Sun, 1 Mar 2020 20:58:36 +0000 (21:58 +0100)
committerSebastián Ramírez <tiangolo@gmail.com>
Sun, 1 Mar 2020 20:58:36 +0000 (21:58 +0100)
docs/release-notes.md

index a87cdc60ee097aa2269ed0dffd8f9c198e102f74..29e229ee6c9dd5fee6503ea223c92a5c36a425ef 100644 (file)
@@ -1,5 +1,15 @@
 ## Latest changes
 
+* Re-export utils from Starlette:
+    * This allows using things like `from fastapi.responses import JSONResponse` instead of `from starlette.responses import JSONResponse`.
+    * It's mainly syntax sugar, a convenience for developer experience.
+    * Now `Request`, `Response`, `WebSocket`, `status` can be imported directly from `fastapi` as in `from fastapi import Response`. This is because those are frequently used, to use the request directly, to set headers and cookies, to get status codes, etc.
+    * Documentation changes in many places, but new docs and noticeable improvements:
+        * [Custom Response - HTML, Stream, File, others](https://fastapi.tiangolo.com/advanced/custom-response/).
+        * [Advanced Middleware](https://fastapi.tiangolo.com/advanced/middleware/).
+        * [Including WSGI - Flask, Django, others](https://fastapi.tiangolo.com/advanced/wsgi/).
+    * PR [#1064](https://github.com/tiangolo/fastapi/pull/1064).
+
 ## 0.50.0
 
 * Add link to Release Notes from docs about pinning versions for deployment. PR [#1058](https://github.com/tiangolo/fastapi/pull/1058).