-
-
Notifications
You must be signed in to change notification settings - Fork 944
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: clean up newsfragments & other docs for
4.0.0b1
(#2358)
* docs: clean up newsfragments & other docs for `4.0.0b1` * docs: add more `versionadded` directives * docs: clean up more newsfragments from the breakingchange section * docs: clean up xml_error_serialization docs & more * docs(newsfragments): clean up newandimproved up to #2110 * docs: clean up more newsfragments * docs: update wording as per review suggestion `docs/_newsfragments/2213.newandimproved.rst` Co-authored-by: Federico Caselli <cfederico87@gmail.com> * docs: show inherited members from base of test result classes --------- Co-authored-by: Federico Caselli <cfederico87@gmail.com>
- Loading branch information
Showing
21 changed files
with
114 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Basic typing annotations have been added to the most commonly used functions of | ||
Falcon's public interface to the package itself in order to better support | ||
`mypy <https://www.mypy-lang.org/>`_ users without having to install any | ||
third-party typeshed packages. | ||
Type annotations have been added to Falcon's public interface to the package | ||
itself in order to better support `Mypy <https://www.mypy-lang.org/>`__ | ||
(or other type checkers) users without having to install any third-party | ||
typeshed packages. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
The default error serializer will now use the response media handlers | ||
to better negotiate the response serialization with the client. | ||
to better negotiate the response content type with the client. | ||
The implementation still defaults to JSON if the client does not indicate any | ||
preference. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
The deprecated ``api_helpers`` was removed in favor of the ``app_helpers`` | ||
module. In addition, the deprecated ``body`` | ||
attributes for the :class:`~falcon.Response`, | ||
:class:`asgi.Response <falcon.asgi.Response>`, | ||
and :class:`~falcon.HTTPStatus` classes. | ||
module. In addition, the deprecated ``body`` attributes of the | ||
:class:`~falcon.Response`, :class:`asgi.Response <falcon.asgi.Response>`, and | ||
:class:`~falcon.HTTPStatus` classes were removed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
Added kwarg samesite to :meth:`~falcon.Response.unset_cookie` to allow override of default ``Lax`` setting of `SameSite` on the unset cookie | ||
A new keyword argument, `samesite`, was added to | ||
:meth:`~falcon.Response.unset_cookie` that allows to override the default | ||
``Lax`` setting of `SameSite` on the unset cookie. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Added kwarg ``partitioned`` to :meth:`~falcon.Response.set_cookie` | ||
to opt a cookie into partitioned storage, with a separate cookie jar per | ||
top-level site. | ||
See also | ||
A new keyword argument, `partitioned`, was added to | ||
:meth:`~falcon.Response.set_cookie` to opt a cookie into partitioned storage, | ||
with a separate cookie jar per each top-level site. | ||
(See also | ||
`CHIPS <https://developer.mozilla.org/en-US/docs/Web/Privacy/Privacy_sandbox/Partitioned_cookies>`__ | ||
for a more detailed description of this experimental web technology. | ||
for a more detailed description of this web technology.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
Add link-extension to :meth:`falcon.Response.append_link` as specified in | ||
`RFC 8288 Sec. 3.4.2 <https://datatracker.ietf.org/doc/html/rfc8288#section-3.4.2>`__. | ||
A new keyword argument, `link_extension`, was added to | ||
:meth:`falcon.Response.append_link` as specified in | ||
`RFC 8288, Section 3.4.2 | ||
<https://datatracker.ietf.org/doc/html/rfc8288#section-3.4.2>`__. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
The ``falcon.TimezoneGMT`` class was deprecated. Use the UTC timezone | ||
The :class:`falcon.TimezoneGMT` class was deprecated. Use the UTC timezone | ||
(:attr:`datetime.timezone.utc`) from the standard library instead. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
The :class:`~CORSMiddleware` now properly handles the missing ``Allow`` | ||
The :class:`~falcon.CORSMiddleware` now properly handles the missing ``Allow`` | ||
header case, by denying the preflight CORS request. | ||
The static resource has been updated to properly support CORS request, | ||
by allowing GET requests. | ||
The static file route has been updated to properly support CORS preflight, | ||
by allowing ``GET`` requests. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
Removed ``is_async`` argument from :meth:`~falcon.media.validators.jsonschema.validate` | ||
and the hooks :meth:`~falcon.before` and :meth:`~falcon.after` since it's | ||
no longer needed. | ||
Cython from 3.0 will correctly mark ``asnyc def`` as coroutine, making | ||
this argument no longer useful. | ||
The ``is_async`` keyword argument was removed from | ||
:meth:`~falcon.media.validators.jsonschema.validate`, as well as the hooks | ||
:meth:`~falcon.before` and :meth:`~falcon.after`, since it represented a niche | ||
use case that is even less relevant with the recent advances in the ecosystem: | ||
Cython 3.0+ will now correctly mark cythonized ``async def`` functions as | ||
coroutines, and pure-Python factory functions that return a coroutine can now | ||
be marked as such using :func:`inspect.markcoroutinefunction` | ||
(Python 3.12+ is required). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
Added a new flag :attr:`~falcon.ResponseOptions.xml_error_serialization` that | ||
can be used to disable XML serialization of :class:`~falcon.HTTPError` when | ||
using the default error serializer (and the client preferred it). | ||
This flag currently defaults to ``True``, keeping the same behavior as the previous | ||
Falcon series; Falcon 5.0 will change the default to ``False``, with the objective of | ||
completely removing support for it in a future version. | ||
User that whish to retain support for XML serialization of the errors in the default | ||
error serializer should add an XML media handler. | ||
A new flag, :attr:`~falcon.ResponseOptions.xml_error_serialization`, has been | ||
added to :attr:`~falcon.ResponseOptions` that can be used to disable automatic | ||
XML serialization of :class:`~falcon.HTTPError` when using the default error | ||
serializer (and the client prefers it). | ||
|
||
Deprecated the :meth:`~falcon.HTTPError.to_xml` method. | ||
This new flag currently defaults to ``True``, preserving the same behavior as | ||
the previous Falcon versions. Falcon 5.0 will either change the default to | ||
``False``, or remove the automatic XML error serialization altogether. | ||
If you wish to retain support for XML serialization in the default error | ||
serializer, you should add a | ||
:ref:`response media handler for XML <custom_media_handlers>`. | ||
|
||
In accordance with this change, the :meth:`falcon.HTTPError.to_xml` method was | ||
deprecated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters