From 8b14a9c22fdcf174b9c6ebd49ad7b3411fe944be Mon Sep 17 00:00:00 2001 From: Vytautas Liuolia Date: Sun, 27 Sep 2026 12:39:11 +0200 Subject: [PATCH 1/5] chore(release): prepare `4.4.0rc1` --- AUTHORS | 1 + docs/_newsfragments/1942.newandimproved.rst | 5 -- docs/_newsfragments/2585.newandimproved.rst | 11 ----- docs/_newsfragments/2667.bugfix.rst | 6 --- docs/_newsfragments/2670.bugfix.rst | 5 -- docs/_newsfragments/2671.bugfix.rst | 5 -- docs/_newsfragments/2745.bugfix.rst | 4 -- docs/_newsfragments/857.newandimproved.rst | 3 -- docs/changes/4.4.0.rst | 54 ++++++++++++++++++++- falcon/version.py | 2 +- 10 files changed, 55 insertions(+), 41 deletions(-) delete mode 100644 docs/_newsfragments/1942.newandimproved.rst delete mode 100644 docs/_newsfragments/2585.newandimproved.rst delete mode 100644 docs/_newsfragments/2667.bugfix.rst delete mode 100644 docs/_newsfragments/2670.bugfix.rst delete mode 100644 docs/_newsfragments/2671.bugfix.rst delete mode 100644 docs/_newsfragments/2745.bugfix.rst delete mode 100644 docs/_newsfragments/857.newandimproved.rst diff --git a/AUTHORS b/AUTHORS index ed563740e..65eda7917 100644 --- a/AUTHORS +++ b/AUTHORS @@ -240,6 +240,7 @@ listed below by date of first contribution: * Ashay (AshayK003) * Chaz0rk * Imran Rahman (infraredCoding) +* Patrick Lowry (pattyolowry) (et al.) diff --git a/docs/_newsfragments/1942.newandimproved.rst b/docs/_newsfragments/1942.newandimproved.rst deleted file mode 100644 index e086e8346..000000000 --- a/docs/_newsfragments/1942.newandimproved.rst +++ /dev/null @@ -1,5 +0,0 @@ -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. diff --git a/docs/_newsfragments/2585.newandimproved.rst b/docs/_newsfragments/2585.newandimproved.rst deleted file mode 100644 index 92283aaa1..000000000 --- a/docs/_newsfragments/2585.newandimproved.rst +++ /dev/null @@ -1,11 +0,0 @@ -Previously, it was not possible to cleanly test the case where a -:ref:`WebSocket ` responder would keep running without sending or receiving -any messages -- -:meth:`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. diff --git a/docs/_newsfragments/2667.bugfix.rst b/docs/_newsfragments/2667.bugfix.rst deleted file mode 100644 index 0db5d1072..000000000 --- a/docs/_newsfragments/2667.bugfix.rst +++ /dev/null @@ -1,6 +0,0 @@ -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 `. -This has been fixed, and the tunneled ``SCRIPT_NAME`` is now decoded in the -same way as the request path. diff --git a/docs/_newsfragments/2670.bugfix.rst b/docs/_newsfragments/2670.bugfix.rst deleted file mode 100644 index 2cfcfb899..000000000 --- a/docs/_newsfragments/2670.bugfix.rst +++ /dev/null @@ -1,5 +0,0 @@ -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. diff --git a/docs/_newsfragments/2671.bugfix.rst b/docs/_newsfragments/2671.bugfix.rst deleted file mode 100644 index 25dc42735..000000000 --- a/docs/_newsfragments/2671.bugfix.rst +++ /dev/null @@ -1,5 +0,0 @@ -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. diff --git a/docs/_newsfragments/2745.bugfix.rst b/docs/_newsfragments/2745.bugfix.rst deleted file mode 100644 index 09ae20906..000000000 --- a/docs/_newsfragments/2745.bugfix.rst +++ /dev/null @@ -1,4 +0,0 @@ -When a :func:`simulated ` ASGI request bubbled -up an unhandled exception, the :class:`test client `'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. diff --git a/docs/_newsfragments/857.newandimproved.rst b/docs/_newsfragments/857.newandimproved.rst deleted file mode 100644 index cdecf5e8c..000000000 --- a/docs/_newsfragments/857.newandimproved.rst +++ /dev/null @@ -1,3 +0,0 @@ -A new :ref:`built-in field converter `, -:class:`~falcon.routing.RegexConverter`, has been added to support regex-based -path variable matching. diff --git a/docs/changes/4.4.0.rst b/docs/changes/4.4.0.rst index d2f27a2e3..8ff19b920 100644 --- a/docs/changes/4.4.0.rst +++ b/docs/changes/4.4.0.rst @@ -16,7 +16,58 @@ Changes to Supported Platforms (`#2593 `__) -.. towncrier release notes start + +New & Improved +-------------- + +- A new :ref:`built-in field converter `, + :class:`~falcon.routing.RegexConverter`, has been added to support regex-based + path variable matching. (`#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 `__) +- Previously, it was not possible to cleanly test the case where a + :ref:`WebSocket ` responder would keep running without sending or receiving + any messages -- + :meth:`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 `__) + + +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 `. + This has been fixed, and the tunneled ``SCRIPT_NAME`` is now decoded in the + same way as the request path. (`#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 `__) +- 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 `__) +- When a :func:`simulated ` ASGI request bubbled + up an unhandled exception, the :class:`test client `'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 `__) + + + + Contributors to this Release ---------------------------- @@ -34,4 +85,5 @@ Many thanks to all of our talented and stylish contributors for this release! - `maxtaran2010 `__ - `MeGaurav4 `__ - `mvanhorn `__ +- `pattyolowry `__ - `vytas7 `__ diff --git a/falcon/version.py b/falcon/version.py index a3a7406d6..0af3e5eee 100644 --- a/falcon/version.py +++ b/falcon/version.py @@ -14,5 +14,5 @@ """Falcon version.""" -__version__ = '4.4.0.dev1' +__version__ = '4.4.0rc1' """Current version of Falcon.""" From 24f94d7629104ebed46e389fe9909dfa5f974841 Mon Sep 17 00:00:00 2001 From: Vytautas Liuolia Date: Sun, 27 Sep 2026 12:47:18 +0200 Subject: [PATCH 2/5] docs(changes): update the 4.4.0 changelog banner --- docs/changes/4.4.0.rst | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/docs/changes/4.4.0.rst b/docs/changes/4.4.0.rst index 8ff19b920..03d50c382 100644 --- a/docs/changes/4.4.0.rst +++ b/docs/changes/4.4.0.rst @@ -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 `__ -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 `! + +As always, you can grab this pre-release +`from PyPI `__:: + + pip install falcon==4.4.0rc1 + +Thank You! Changes to Supported Platforms @@ -82,6 +91,7 @@ Many thanks to all of our talented and stylish contributors for this release! - `chbndrhnns `__ - `infraredCoding `__ - `KetanHegde `__ +- `kgriffs `__ - `maxtaran2010 `__ - `MeGaurav4 `__ - `mvanhorn `__ From d2ed4e36e20ce4400ba024c4a96a2ba35d88e64e Mon Sep 17 00:00:00 2001 From: Vytautas Liuolia Date: Sun, 27 Sep 2026 13:03:41 +0200 Subject: [PATCH 3/5] chore(workflows): bump up cibw & zizmor --- .github/workflows/cibuildwheel.yaml | 2 +- .github/workflows/test-wheels.yaml | 7 ++++++- .github/workflows/zizmor.yaml | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cibuildwheel.yaml b/.github/workflows/cibuildwheel.yaml index 057f5c3b7..3d74c939f 100644 --- a/.github/workflows/cibuildwheel.yaml +++ b/.github/workflows/cibuildwheel.yaml @@ -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). diff --git a/.github/workflows/test-wheels.yaml b/.github/workflows/test-wheels.yaml index 6921f830b..f04444d39 100644 --- a/.github/workflows/test-wheels.yaml +++ b/.github/workflows/test-wheels.yaml @@ -8,6 +8,11 @@ on: branches: - master + # TODO: Remove (temporary testing of a Draft PR). + pull_request: + branches: + - master + jobs: test-emulated: name: "cibuildwheel: ${{ matrix.platform.build }}" @@ -46,7 +51,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). diff --git a/.github/workflows/zizmor.yaml b/.github/workflows/zizmor.yaml index a86f421de..9dd06b43c 100644 --- a/.github/workflows/zizmor.yaml +++ b/.github/workflows/zizmor.yaml @@ -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 From 175225bb0687e5d63e9fd5146c5e376eddd263b0 Mon Sep 17 00:00:00 2001 From: Vytautas Liuolia Date: Sun, 27 Sep 2026 13:17:21 +0200 Subject: [PATCH 4/5] chore(workflows): revert CI prototyping --- .github/workflows/test-wheels.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/test-wheels.yaml b/.github/workflows/test-wheels.yaml index f04444d39..c2ac6e8ba 100644 --- a/.github/workflows/test-wheels.yaml +++ b/.github/workflows/test-wheels.yaml @@ -8,11 +8,6 @@ on: branches: - master - # TODO: Remove (temporary testing of a Draft PR). - pull_request: - branches: - - master - jobs: test-emulated: name: "cibuildwheel: ${{ matrix.platform.build }}" From 801adae521917f96f03efa3847a0f3bc7e2fd55d Mon Sep 17 00:00:00 2001 From: Vytautas Liuolia Date: Mon, 28 Sep 2026 10:20:10 +0200 Subject: [PATCH 5/5] docs(changes): manually fold the last-minute newsfragment for #2735 --- docs/_newsfragments/2735.newandimproved.rst | 15 --------------- docs/changes/4.4.0.rst | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 15 deletions(-) delete mode 100644 docs/_newsfragments/2735.newandimproved.rst diff --git a/docs/_newsfragments/2735.newandimproved.rst b/docs/_newsfragments/2735.newandimproved.rst deleted file mode 100644 index df8d0b2e6..000000000 --- a/docs/_newsfragments/2735.newandimproved.rst +++ /dev/null @@ -1,15 +0,0 @@ -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``). diff --git a/docs/changes/4.4.0.rst b/docs/changes/4.4.0.rst index 03d50c382..4fac9e6e3 100644 --- a/docs/changes/4.4.0.rst +++ b/docs/changes/4.4.0.rst @@ -48,6 +48,21 @@ New & Improved 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 `__) +- 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 `__) Fixed @@ -90,6 +105,7 @@ Many thanks to all of our talented and stylish contributors for this release! - `Chaz0rk `__ - `chbndrhnns `__ - `infraredCoding `__ +- `jap `__ - `KetanHegde `__ - `kgriffs `__ - `maxtaran2010 `__