Commit graph

143 commits

Author SHA1 Message Date
David Lord
7b0088693e
fix typing 2026-02-19 08:42:33 -08:00
David Lord
daca74d93a
Merge branch 'stable' 2026-02-18 21:56:24 -08:00
David Lord
c17f379390
request context tracks session access 2026-02-18 19:02:54 -08:00
David Lord
c77a520343
deprecate should_ignore_error 2026-01-24 19:50:30 -08:00
David Lord
5880befcd2
Merge branch 'stable' 2026-01-24 19:05:26 -08:00
David Lord
3709c4a9a8
update ruff hook and noqa
co-authored-by: Christian Clauss <cclauss@me.com>
2026-01-24 18:58:45 -08:00
David Lord
6a64969009
pass context through dispatch methods 2025-09-19 17:33:30 -07:00
David Lord
c2705ffd9c
merge app and request context 2025-09-19 16:43:53 -07:00
David Lord
0109e496f6
use uv 2025-05-11 17:58:53 -07:00
David Lord
11c45eeba3
update dev dependencies 2025-05-11 05:58:48 -07:00
David Lord
165af0a090
update dev dependencies 2025-03-29 14:44:59 -07:00
David Lord
4f7156f2c3
configure and check trusted_hosts 2024-11-12 21:01:55 -08:00
David Lord
4995a775df
fix subdomain_matching=False behavior 2024-11-12 08:58:08 -08:00
David Lord
e13373f838
enable secret key rotation 2024-11-08 08:09:01 -08:00
David Lord
9efc1ebeeb
add SESSION_COOKIE_PARTITIONED config
co-authored-by: Jose Cespedes <josecespedes@ibm.com>
2024-11-01 16:24:15 -07:00
David Lord
c7a53888a1
add config and docs for limits 2024-11-01 13:17:53 -07:00
David Lord
1d610e44b3
drop support for Python 3.8 2024-10-31 12:30:53 -07:00
bre-17387639
9e831e915f
fix pyright type errors 2024-10-24 14:46:34 -07:00
David Lord
28d5a4d718
add encoding parameter to open_resource
co-authored-by: mark <lopkophacked@protonmail.com>
2024-07-10 19:14:06 -07:00
pgjones
d718ecf6d3 Provide a configuration option to control automatic option responses
By default Flask will provide responses to OPTIONS requests that are
automatically generated. These responses list the valid methods in the
response headers. Whilst this is useful, it can be frowned on by
auditors hence an ability to disable it wholesale is useful.
2024-06-07 19:04:18 +00:00
pgjones
5fdce4c331
Don't set the cli attribute in the sansio scaffold
It is (currently) Flask specific and hence cannot be shared in the
sansio shared code.
2024-04-07 12:13:02 -07:00
David Lord
6000e80acf
address mypy strict findings 2024-01-16 10:11:13 -08:00
David Lord
54e05a2824
use ruff linter and formatter 2023-11-15 12:14:37 -08:00
pgjones
438edcdf01 Allow self as an argument to url_for
This makes the Flask.url_for self argument positional only (Flask
supports Python 3.8+) thereby restoring the ability to pass self as a
value argument to url_for.
2023-09-30 15:25:31 +01:00
pgjones
65271c105f Remove print left in by accident
This was added as per 0ec7f713d6 by
mistake.
2023-08-27 07:12:04 -07:00
pgjones
3f6b243cec Support async template context processors
This is useful as there is contextual information that could be loaded
via IO e.g. information from a database. This also matches Quart and
hence makes the shared signature easier to manage.
2023-08-19 18:35:15 +01:00
pgjones
0ec7f713d6 Split the App and Blueprint into Sansio and IO parts
This follows a similar structure in Werkzeug and allows for async
based IO projects, specifically Quart, to base themselves on
Flask.

Note that the globals, and signals are specific to Flask and hence
specific to Flask's IO. This means they cannot be moved to the sansio
part of the codebase.
2023-08-19 18:35:14 +01:00
pgjones
a64588f87a Move file to sansio
This is preperation for refactoring the files so that there are sansio
and flask specific versions. This structure follows the Werkzeug
structure/pattern.
2023-08-19 18:35:00 +01:00
David Lord
04994df59f
remove deprecated code 2023-08-16 15:00:49 -07:00
David Lord
9532cba45d
fix mypy finding 2023-05-01 08:10:25 -07:00
David Lord
79ebf6c39c
update minimum requirements 2023-04-25 12:28:59 -06:00
David Lord
2e8fe7b2f2
drop support for python 3.7 2023-04-20 11:09:55 -07:00
David Lord
44ffe6c6d6
add __future__ annotations 2023-04-20 09:24:44 -07:00
pgjones
8239765a44
allow async signal receivers 2023-04-13 08:05:42 -07:00
David Lord
7ee9ceb71e
Merge branch '2.2.x' 2023-03-11 08:23:08 -08:00
David Lord
c4b39ba2f3
replace werkzeug.urls with urllib.parse 2023-03-11 08:19:22 -08:00
David Lord
4256fc6304
deprecate locked_cached_property 2023-02-23 10:05:57 -08:00
David Lord
2a33c17854
deprecate got_first_request property 2023-02-23 09:28:42 -08:00
David Lord
6650764e97
remove previously deprecated code 2023-02-23 08:35:16 -08:00
David Lord
604de4b1dc
Merge branch '2.2.x' 2023-02-16 06:27:41 -08:00
David Lord
c4c7f504be
update dependencies 2023-02-16 06:27:25 -08:00
Jonah Lawrence
79032ca5f1
Add .svg to select_jinja_autoescape (#4840)
As SVG files are a type of XML file and are similar in nearly
all aspects to XML, .svg should also be autoescaped.
2022-12-24 11:27:20 -07:00
David Lord
7464e17c5e
Merge branch '2.2.x' 2022-12-24 11:21:59 -07:00
Maxim G. Ivanov
09112cfc47
template_folder type allows pathlib 2022-12-24 11:17:52 -07:00
David Lord
066a35dd32
Merge branch '2.2.x' 2022-11-25 07:51:37 -08:00
David Lord
d178653b5f
update requirements 2022-11-25 07:39:54 -08:00
Jonah Lawrence
cc66213e57
Add .svg to select_jinja_autoescape (#4840)
As SVG files are a type of XML file and are similar in nearly 
all aspects to XML, .svg should also be autoescaped.
2022-10-30 14:55:51 +00:00
Yang Yang
0d8c8ba71b
Fix docstring of test_request_context (#4821)
Add missing `app.`.
2022-09-18 04:53:47 -07:00
David Lord
a6a7a57380
fix default value of app.env 2022-08-04 07:24:20 -07:00
David Lord
714ccefeca
show deprecation warning on json_encoder/decoder access 2022-08-03 09:22:03 -07:00