From: Sebastián Ramírez Date: Sun, 1 Mar 2020 20:58:36 +0000 (+0100) Subject: :memo: Update release notes X-Git-Tag: 0.51.0~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c65fdc4bed71a82c795a0868a15c93ef148be555;p=thirdparty%2Ffastapi%2Ffastapi.git :memo: Update release notes --- diff --git a/docs/release-notes.md b/docs/release-notes.md index a87cdc60ee..29e229ee6c 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -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).