David Lord
43d2fff317
release version 2.2.2
2022-08-08 16:21:40 -07:00
David Lord
de16718b39
require werkzeug >= 2.2.2
2022-08-08 16:14:00 -07:00
David Lord
e3df23374c
remove env from shell banner
2022-08-05 11:29:39 -07:00
David Lord
a6a7a57380
fix default value of app.env
2022-08-04 07:24:20 -07:00
David Lord
4984753dbf
start version 2.2.2
2022-08-04 07:21:17 -07:00
David Lord
52c54b2ce1
release version 2.2.1
2022-08-03 16:40:28 -07:00
David Lord
714ccefeca
show deprecation warning on json_encoder/decoder access
2022-08-03 09:22:03 -07:00
David Lord
9a1b25fce4
start version 2.2.1
2022-08-03 06:47:31 -07:00
David Lord
292c7e5c5d
release version 2.2.0
2022-08-01 17:09:49 -07:00
David Lord
bfdd37110c
deprecate config attributes
2022-08-01 16:58:55 -07:00
David Lord
ef95998d79
deprecate FLASK_ENV
2022-08-01 15:11:21 -07:00
David Lord
7d53a129cf
remove __traceback_hide__
2022-08-01 10:52:12 -07:00
David Lord
5d8e35653f
refactor lazy loading
...
Remove the `--eager-loading/--lazy-loading` options and the
`DispatchingApp` middleware. The `run` command handles loading
exceptions directly. The reloader always prints out tracebacks
immediately and always defers raising the error.
2022-08-01 10:34:13 -07:00
David Lord
095651be9e
fix has_app_context and has_request_context
2022-07-25 07:35:17 -07:00
Matthijs van der Vleuten
4bf7415a96
allow TypedDict as a response value
2022-07-14 14:15:05 -07:00
David Lord
48fe96588c
Merge branch '2.1.x'
2022-07-13 13:58:07 -07:00
David Lord
134aebe601
release version 2.1.3
2022-07-13 13:51:42 -07:00
Yourun-Proger
58f3536a8f
error for render_template outside app context
2022-07-13 13:45:42 -07:00
David Lord
69f9845ef2
add json provider interface
2022-07-13 07:42:52 -07:00
pgjones
91044c4d76
Change _cv_req -> _cv_request
...
This is a clearer name for the variable.
2022-07-09 13:41:35 +01:00
David Lord
e0dad45481
update docs about contexts
2022-07-08 11:13:09 -07:00
David Lord
82c2e0366c
remove uses of LocalStack
2022-07-08 11:13:09 -07:00
David Lord
d597db67de
contexts no longer use LocalStack
2022-07-08 11:13:09 -07:00
David Lord
0b2f809f9b
access names as proxies directly
2022-07-08 11:13:09 -07:00
Phil Jones
9b44bf2818
Improve decorator typing ( #4676 )
...
* Add a missing setupmethod decorator
* Improve the decorator typing
This will allow type checkers to understand that the decorators return
the same function signature as passed as an argument. This follows the
guidelines from
https://mypy.readthedocs.io/en/stable/generics.html#declaring-decorators .
I've chosen to keep a TypeVar per module and usage as I think
encouraged by PEP 695, which I hope is accepted as the syntax is much
nicer.
2022-07-06 14:05:20 -07:00
Ties Jan Hefting
9dfcb90c92
Document serialization of Decimal in JSONEncoder
...
The Flask JSONEncoder serializes Decimal types to strings, but this
behavior is missing from the docs. The docs are updated accordingly.
2022-07-06 11:47:50 +02:00
David Lord
60b845ebab
update typing tests for json
2022-07-02 21:41:37 -07:00
David Lord
f8cb0b0dd5
update docs about json
2022-07-02 21:41:37 -07:00
Grey Li
ca2bfbb0ac
Support returning list as JSON
2022-07-02 21:41:32 -07:00
David Lord
c2810ffdd2
remove deprecated send_file argument names
2022-07-01 13:59:44 -07:00
David Lord
9e686d93b6
remove deprecated RequestContext.g
2022-07-01 13:44:31 -07:00
David Lord
84c722044a
new debug/test preserve context implementation
2022-07-01 12:01:44 -07:00
David Lord
5544d09477
re-add flag to skip unguarded app.run from CLI
2022-06-29 21:19:28 -07:00
pgjones
46433e9807
add generate_template and generate_template_string functions
2022-06-18 12:20:53 -07:00
pgjones
762382e436
view functions can return generators as responses directly
2022-06-18 11:25:05 -07:00
Kevin Kirsche
ed42e92928
session expiration datetime is UTC timezone-aware
2022-06-17 12:01:48 -07:00
David Lord
c9e000b9ce
with_appcontext lasts for the lifetime of the click context
2022-06-17 11:52:01 -07:00
David Lord
99fa3c36ab
add --app, --env, --debug, and --env-file CLI options
2022-06-17 08:19:55 -07:00
David Lord
aa801c431a
FlaskGroup can be nested
2022-06-15 14:09:56 -07:00
David Lord
4f03a769d4
edit some cli messages
...
dev server message doesn't show one of the lines in grey
app.run message uses click.secho instead of warning
2022-06-15 12:45:22 -07:00
David Lord
dcd1a1e0b6
Merge branch '2.1.x'
2022-06-11 14:16:51 -07:00
Dan Mirsky
9934528c8f
Update send_from_directory docstring
2022-06-09 09:12:10 -07:00
David Lord
45174bf9a1
use __init_subclass__ instead of metaclass for MethodView
2022-06-06 15:48:36 -07:00
David Lord
bab5a65e6e
rewrite class-based view docs
2022-06-06 15:33:46 -07:00
David Lord
6e23239567
add View.init_every_request attribute
2022-06-06 15:11:01 -07:00
David Lord
96c97dec09
deprecate before_first_request
2022-06-06 10:04:05 -07:00
David Lord
7a2d5fb6df
Merge branch '2.1.x'
2022-06-06 09:30:30 -07:00
David Lord
3ba37d2afe
fix uninstalled package tests under tox
2022-06-06 08:24:05 -07:00
Evgeny Prigorodov
88bcf78439
instance_path for namespace packages uses path closest to submodule
2022-06-06 08:16:00 -07:00
David Lord
fb89745408
Merge pull request #4579 from lecovi/docs/#4574-test-typing
2022-06-05 15:54:08 -07:00