After a very long, long waiting time Flask finally got a new release. There really was no good reason that there has not been a release in such a long time but unfortunately once things are postponed for too long a certain release anxiety kicks in.
In this case this was long tagged as 1.0 but we decided for renaming it to 0.11 and back out some of the more controversial changes. In particular the new command line interface for Flask was modified a bit to not depend on some specific functionality in the supporting Click library.
Highlights of this release are the improved development experience which now stalls the browser on reload instead of bringing up a "connection reset" page and the new command line support.
This is also the first Flask release under the new pallets organization and from now on we hope to bring you releases more frequently. Ideally with the next release we also update the website to find a new home for the showcase, flask extension list as well as the snippet section to allow the community to take care of those things themselves.
flask.jsonify
. This
introduces a security risk in ancient browsers. See
json-security
for details.**kwargs
to flask.Test.test_client
to support passing
additional keyword arguments to the constructor of
flask.Flask.test_client_class
.SESSION_REFRESH_EACH_REQUEST
config key that controls the
set-cookie behavior. If set to True
a permanent session will be
refreshed each request and get their lifetime extended, if set to
False
it will only be modified if the session actually modifies.
Non permanent sessions are not affected by this and will always
expire if the browser window closes.(response, headers)
from a view function.flask.Config.from_json
.flask.Flask.config_class
.flask.config.Config.get_namespace
.TEMPLATES_AUTO_RELOAD
config key.flask
command and the flask.cli
module to start the local
debug server through the click CLI system. This is recommended over the old
flask.run()
method as it works faster and more reliable due to a
different design and also replaces Flask-Script
.werkzeug.exceptions
). This makes it possible
for an extension author to create exceptions that will by default
result in the HTTP error of their choosing, but may be caught with
a custom error handler if desired.flask.Config.from_mapping
.LOGGER_HANDLER_POLICY
configuration key.EXPLAIN_TEMPLATE_LOADING
config flag which when enabled will
instruct Flask to explain how it locates templates. This should help
users debug when the wrong templates are loaded.request.json
in favour of request.get_json()
.OPTIONS
method is now correctly disabled if
the user registered an overriding rule with the lowercase-version
options
(issue #1288
).flask.json.jsonify
now supports the datetime.date
type (pull request
#1326
).#1393
).#1422
).flask.g
now has pop()
and setdefault
methods.flask.templating.render_template_string
by default
(pull request #1515
).flask.ext
is now deprecated (pull request #1484
).send_from_directory
now raises BadRequest if the filename is invalid on
the server OS (pull request #1763
).JSONIFY_MIMETYPE
configuration variable (pull request #1728
).