Flask v2.0.1 Release Notes
-
๐ Released 2021-05-21
- Re-add the
filename
parameter insend_from_directory
. Thefilename
parameter has been renamed topath
, the old name is deprecated. :pr:4019
- Mark top-level names as exported so type checking understands
imports in user projects. :issue:
4024
- Fix type annotation for
g
and inform mypy that it is a namespace object that has arbitrary attributes. :issue:4020
- Fix some types that weren't available in Python 3.6.0. :issue:
4040
- Improve typing for
send_file
,send_from_directory
, andget_send_file_max_age
. :issue:4044
, :pr:4026
- ๐จ Show an error when a blueprint name contains a dot. The
.
has special meaning, it is used to separate (nested) blueprint names and the endpoint name. :issue:4041
- ๐จ Combine URL prefixes when nesting blueprints that were created with
a
url_prefix
value. :issue:4037
- Roll back a change to the order that URL matching was done. The
URL is again matched after the session is loaded, so the session is
available in custom URL converters. :issue:
4053
- ๐ Re-add deprecated
Config.from_json
, which was accidentally removed early. :issue:4078
- Improve typing for some functions using
Callable
in their type signatures, focusing on decorator factories. :issue:4060
- ๐จ Nested blueprints are registered with their dotted name. This allows
different blueprints with the same name to be nested at different
locations. :issue:
4069
- ๐จ
register_blueprint
takes aname
option to change the (pre-dotted) name the blueprint is registered with. This allows the same blueprint to be registered multiple times with unique names forurl_for
. Registering the same blueprint with the same name multiple times is deprecated. :issue:1091
- Improve typing for
stream_with_context
. :issue:4052
- Re-add the