Flask v2.1.0 Release Notes
-
๐ Unreleased
- ๐ Drop support for Python 3.6. :pr:
4335
- โก๏ธ Update Click dependency to >= 8.0. :pr:
4008
๐ Remove previously deprecated code. :pr:
4337
- The CLI does not pass
script_info
to app factory functions. -
config.from_json
is replaced byconfig.from_file(name, load=json.load)
. -
json
functions no longer take anencoding
parameter. -
safe_join
is removed, usewerkzeug.utils.safe_join
instead. -
total_seconds
is removed, usetimedelta.total_seconds
instead. - The same blueprint cannot be registered with the same name. Use
name=
when registering to specify a unique name. - The test client's
as_tuple
parameter is removed. Useresponse.request.environ
instead. :pr:4417
- The CLI does not pass
Some parameters in
send_file
andsend_from_directory
were renamed in 2.0. The deprecation period for the old names is extended to 2.2. Be sure to test with deprecation warnings visible.-
attachment_filename
is renamed todownload_name
. -
cache_timeout
is renamed tomax_age
. -
add_etags
is renamed toetag
. -
filename
is renamed topath
.
-
๐ The
RequestContext.g
property is deprecated. Useg
directly orAppContext.g
instead. :issue:3898
copy_current_request_context
can decorate async functions. :pr:4303
- ๐ Drop support for Python 3.6. :pr: