Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cibuildwheel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ jobs:
platforms: all

- name: Build wheels
uses: pypa/cibuildwheel@1828c10ab37f080699c7b81cea34097c684a7074 # v4.2.0
uses: pypa/cibuildwheel@e090b81e30c4d855ea63bf4b6e59204c09a101ae # v4.2.1
env:
# NOTE(vytas): Uncomment to test against alpha/beta CPython
# (usually May-July until rc1).
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
platforms: all

- name: Build wheels
uses: pypa/cibuildwheel@1828c10ab37f080699c7b81cea34097c684a7074 # v4.2.0
uses: pypa/cibuildwheel@e090b81e30c4d855ea63bf4b6e59204c09a101ae # v4.2.1
env:
# NOTE(vytas): Uncomment to test against alpha/beta CPython
# (usually May-July until rc1).
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zizmor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
persist-credentials: false

- name: Run Zizmor
uses: zizmorcore/zizmor-action@b1d7e1fb5de872772f31590499237e7cce841e8e # v0.5.3
uses: zizmorcore/zizmor-action@cc914d7f3750a2d13d75c7f184a1060aa0e9d482 # v0.6.4
with:
version: latest
advanced-security: false
Expand Down
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ listed below by date of first contribution:
* Ashay (AshayK003)
* Chaz0rk
* Imran Rahman (infraredCoding)
* Patrick Lowry (pattyolowry)

(et al.)

Expand Down
5 changes: 0 additions & 5 deletions docs/_newsfragments/1942.newandimproved.rst

This file was deleted.

11 changes: 0 additions & 11 deletions docs/_newsfragments/2585.newandimproved.rst

This file was deleted.

6 changes: 0 additions & 6 deletions docs/_newsfragments/2667.bugfix.rst

This file was deleted.

5 changes: 0 additions & 5 deletions docs/_newsfragments/2670.bugfix.rst

This file was deleted.

5 changes: 0 additions & 5 deletions docs/_newsfragments/2671.bugfix.rst

This file was deleted.

15 changes: 0 additions & 15 deletions docs/_newsfragments/2735.newandimproved.rst

This file was deleted.

4 changes: 0 additions & 4 deletions docs/_newsfragments/2745.bugfix.rst

This file was deleted.

3 changes: 0 additions & 3 deletions docs/_newsfragments/857.newandimproved.rst

This file was deleted.

86 changes: 82 additions & 4 deletions docs/changes/4.4.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,18 @@ Changelog for Falcon 4.4.0
Summary
-------

Falcon 4.4 is in development. The progress is tracked via the
`Version 4.4 milestone <https://github.com/falconry/falcon/milestone/46>`__
on GitHub.
This is the first release candidate of Falcon 4.4.

As Falcon 4.4 is now feature-complete, we would really be thankful if you could
take it for a spin with your apps, and
:ref:`let us know if you run into any issues <chat>`!

As always, you can grab this pre-release
`from PyPI <https://pypi.org/project/falcon/4.4.0rc1/>`__::

pip install falcon==4.4.0rc1

Thank You!


Changes to Supported Platforms
Expand All @@ -16,7 +25,73 @@ Changes to Supported Platforms
(`#2593 <https://github.com/falconry/falcon/issues/2593>`__)


.. towncrier release notes start

New & Improved
--------------

- A new :ref:`built-in field converter <routing_builtin_converters>`,
:class:`~falcon.routing.RegexConverter`, has been added to support regex-based
path variable matching. (`#857 <https://github.com/falconry/falcon/issues/857>`__)
- A new :class:`~falcon.App` method, :meth:`~falcon.App.set_error_reporter`,
was added for observing all exceptions raised while processing requests
(for instance, in order to log them, or to submit them to an error tracking or
observability service).
Error reporters are supported by both WSGI and ASGI applications. (`#1942 <https://github.com/falconry/falcon/issues/1942>`__)
- Previously, it was not possible to cleanly test the case where a
:ref:`WebSocket <ws>` responder would keep running without sending or receiving
any messages --
:meth:`ASGIConductor.simulate_ws <falcon.testing.ASGIConductor.simulate_ws>`
would hang forever upon exiting the context.

To afford this scenario, a new optional `timeout` keyword argument was added to
:meth:`~falcon.testing.ASGIConductor.simulate_ws` that limits how long the test
harness waits, both for the handshake (accept or deny), and for the app's task
to complete after the connection is closed; when the deadline passes, an
instance of :class:`TimeoutError` is raised. (`#2585 <https://github.com/falconry/falcon/issues/2585>`__)
- An optional `allow_multiple` keyword argument was added to the query string
parameter helpers (:meth:`~falcon.Request.get_param`,
:meth:`~falcon.Request.get_param_as_bool`,
:meth:`~falcon.Request.get_param_as_date`,
:meth:`~falcon.Request.get_param_as_datetime`,
:meth:`~falcon.Request.get_param_as_dict`,
:meth:`~falcon.Request.get_param_as_float`,
:meth:`~falcon.Request.get_param_as_int`,
:meth:`~falcon.Request.get_param_as_json`,
:meth:`~falcon.Request.get_param_as_media`, and
:meth:`~falcon.Request.get_param_as_uuid`).

When it is set to ``False``, and the parameter resolves to more than one value,
an :class:`~falcon.HTTPInvalidParam` error is raised instead of picking an
arbitrary one of those values (default ``True``). (`#2735 <https://github.com/falconry/falcon/issues/2735>`__)


Fixed
-----

- As prescribed by PEP 3333, WSGI servers tunnel non-ASCII characters in the
request path via ISO-8859-1, and Falcon has long decoded ``PATH_INFO`` back
to UTF-8. The ``SCRIPT_NAME`` variable was, however, used verbatim when
populating :attr:`req.root_path <falcon.Request.root_path>`.
This has been fixed, and the tunneled ``SCRIPT_NAME`` is now decoded in the
same way as the request path. (`#2667 <https://github.com/falconry/falcon/issues/2667>`__)
- When decoding with ``unquote_plus=False``, the cythonized variant of
:func:`falcon.uri.decode` mistook a literal plus sign followed by two
hexadecimal digits for a percent-encoded byte.
This has been fixed, and a literal plus is now preserved
just like in the pure-Python case. (`#2670 <https://github.com/falconry/falcon/issues/2670>`__)
- When a route was only served by a catch-all ``on_request()`` responder, with
no HTTP methods explicitly mapped via ``on_get()``, ``on_post()``, etc., the
default OPTIONS responder rendered an empty Allow header, misleadingly
indicating that the resource allows no methods at all.
The Allow header is now omitted when the list of allowed methods is empty. (`#2671 <https://github.com/falconry/falcon/issues/2671>`__)
- When a :func:`simulated <falcon.testing.simulate_request>` ASGI request bubbled
up an unhandled exception, the :class:`test client <falcon.testing.TestClient>`'s
lifespan task was left pending, emitting a stray ``"Task was destroyed but it is pending!"``
warning upon garbage collection. Such orphaned lifespan tasks are now cancelled cleanly. (`#2745 <https://github.com/falconry/falcon/issues/2745>`__)





Contributors to this Release
----------------------------
Expand All @@ -30,8 +105,11 @@ Many thanks to all of our talented and stylish contributors for this release!
- `Chaz0rk <https://github.com/Chaz0rk>`__
- `chbndrhnns <https://github.com/chbndrhnns>`__
- `infraredCoding <https://github.com/infraredCoding>`__
- `jap <https://github.com/jap>`__
- `KetanHegde <https://github.com/KetanHegde>`__
- `kgriffs <https://github.com/kgriffs>`__
- `maxtaran2010 <https://github.com/maxtaran2010>`__
- `MeGaurav4 <https://github.com/MeGaurav4>`__
- `mvanhorn <https://github.com/mvanhorn>`__
- `pattyolowry <https://github.com/pattyolowry>`__
- `vytas7 <https://github.com/vytas7>`__
2 changes: 1 addition & 1 deletion falcon/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@

"""Falcon version."""

__version__ = '4.4.0.dev1'
__version__ = '4.4.0rc1'
"""Current version of Falcon."""
Loading