2010-04-20 20:21:01 +02:00
|
|
|
Flask Changelog
|
|
|
|
|
===============
|
|
|
|
|
|
|
|
|
|
Here you can see the full list of changes between each Flask release.
|
|
|
|
|
|
2016-06-02 13:53:35 +02:00
|
|
|
Version 0.12
|
|
|
|
|
------------
|
|
|
|
|
|
|
|
|
|
- the cli command now responds to `--version`.
|
2016-06-02 10:04:48 -07:00
|
|
|
- Mimetype guessing for ``send_file`` has been removed, as per issue ``#104``.
|
|
|
|
|
See pull request ``#1849``.
|
2016-06-02 13:53:35 +02:00
|
|
|
|
2016-06-03 18:43:32 +02:00
|
|
|
Version 0.11.1
|
|
|
|
|
--------------
|
|
|
|
|
|
|
|
|
|
Bugfix release, unreleased.
|
|
|
|
|
|
|
|
|
|
- Fixed a bug that prevented ``FLASK_APP=foobar/__init__.py`` from working. See
|
|
|
|
|
pull request ``#1872``.
|
|
|
|
|
|
2016-05-26 21:05:39 +02:00
|
|
|
Version 0.11
|
|
|
|
|
------------
|
2013-07-30 16:43:41 +02:00
|
|
|
|
2016-05-29 11:01:22 +02:00
|
|
|
Released on May 29th 2016, codename Absinthe.
|
2013-07-30 16:43:41 +02:00
|
|
|
|
2015-12-30 03:11:53 -08:00
|
|
|
- Added support to serializing top-level arrays to :func:`flask.jsonify`. This
|
|
|
|
|
introduces a security risk in ancient browsers. See
|
2016-01-25 15:02:27 -08:00
|
|
|
:ref:`json-security` for details.
|
2015-06-17 11:59:04 +00:00
|
|
|
- Added before_render_template signal.
|
2014-10-20 15:18:38 -04:00
|
|
|
- Added `**kwargs` to :meth:`flask.Test.test_client` to support passing
|
|
|
|
|
additional keyword arguments to the constructor of
|
|
|
|
|
:attr:`flask.Flask.test_client_class`.
|
2013-07-30 16:43:54 +02:00
|
|
|
- Added ``SESSION_REFRESH_EACH_REQUEST`` config key that controls the
|
2014-11-05 06:04:58 +03:00
|
|
|
set-cookie behavior. If set to ``True`` a permanent session will be
|
2013-07-30 16:43:54 +02:00
|
|
|
refreshed each request and get their lifetime extended, if set to
|
2014-11-05 06:04:58 +03:00
|
|
|
``False`` it will only be modified if the session actually modifies.
|
2013-07-30 16:43:54 +02:00
|
|
|
Non permanent sessions are not affected by this and will always
|
|
|
|
|
expire if the browser window closes.
|
2014-02-08 17:01:13 +00:00
|
|
|
- Made Flask support custom JSON mimetypes for incoming data.
|
2014-02-08 17:33:42 +00:00
|
|
|
- Added support for returning tuples in the form ``(response, headers)``
|
|
|
|
|
from a view function.
|
2014-02-12 23:53:51 +01:00
|
|
|
- Added :meth:`flask.Config.from_json`.
|
2014-02-20 19:15:42 +01:00
|
|
|
- Added :attr:`flask.Flask.config_class`.
|
2016-05-30 23:20:23 +02:00
|
|
|
- Added :meth:`flask.Config.get_namespace`.
|
2014-10-30 18:40:38 +03:00
|
|
|
- Templates are no longer automatically reloaded outside of debug mode. This
|
|
|
|
|
can be configured with the new ``TEMPLATES_AUTO_RELOAD`` config key.
|
2014-04-11 13:31:17 +02:00
|
|
|
- Added a workaround for a limitation in Python 3.3's namespace loader.
|
2014-04-11 19:59:54 +02:00
|
|
|
- Added support for explicit root paths when using Python 3.3's namespace
|
|
|
|
|
packages.
|
2014-11-05 07:03:55 +03:00
|
|
|
- Added :command:`flask` and the ``flask.cli`` module to start the local
|
2014-04-28 13:27:07 +02:00
|
|
|
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``.
|
2013-08-17 22:40:06 +00:00
|
|
|
- Error handlers that match specific classes are now checked first,
|
|
|
|
|
thereby allowing catching exceptions that are subclasses of HTTP
|
2014-09-20 10:41:46 +04:00
|
|
|
exceptions (in ``werkzeug.exceptions``). This makes it possible
|
2013-08-17 22:40:06 +00:00
|
|
|
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.
|
2014-07-27 11:19:52 +02:00
|
|
|
- Added :meth:`flask.Config.from_mapping`.
|
2014-08-27 01:08:12 +02:00
|
|
|
- Flask will now log by default even if debug is disabled. The log format is
|
|
|
|
|
now hardcoded but the default log handling can be disabled through the
|
|
|
|
|
``LOGGER_HANDLER_POLICY`` configuration key.
|
2015-03-05 21:53:20 +01:00
|
|
|
- Removed deprecated module functionality.
|
2014-09-03 17:57:44 +02:00
|
|
|
- Added the ``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.
|
2014-09-03 20:12:06 +02:00
|
|
|
- Enforce blueprint handling in the order they were registered for template
|
|
|
|
|
loading.
|
2014-10-27 11:31:01 +01:00
|
|
|
- Ported test suite to py.test.
|
2014-10-19 19:54:41 +02:00
|
|
|
- Deprecated ``request.json`` in favour of ``request.get_json()``.
|
2014-10-13 16:30:45 -04:00
|
|
|
- Add "pretty" and "compressed" separators definitions in jsonify() method.
|
|
|
|
|
Reduces JSON response size when JSONIFY_PRETTYPRINT_REGULAR=False by removing
|
|
|
|
|
unnecessary white space included by default after separators.
|
2014-11-29 08:58:50 -08:00
|
|
|
- JSON responses are now terminated with a newline character, because it is a
|
|
|
|
|
convention that UNIX text files end with a newline and some clients don't
|
|
|
|
|
deal well when this newline is missing. See
|
2016-04-03 23:11:38 +02:00
|
|
|
https://github.com/pallets/flask/pull/1262 -- this came up originally as a
|
2014-11-29 08:58:50 -08:00
|
|
|
part of https://github.com/kennethreitz/httpbin/issues/168
|
2014-12-26 20:16:25 +01:00
|
|
|
- The automatically provided ``OPTIONS`` method is now correctly disabled if
|
|
|
|
|
the user registered an overriding rule with the lowercase-version
|
|
|
|
|
``options`` (issue ``#1288``).
|
2015-01-23 14:54:30 +01:00
|
|
|
- ``flask.json.jsonify`` now supports the ``datetime.date`` type (pull request
|
|
|
|
|
``#1326``).
|
2015-03-23 16:43:44 +01:00
|
|
|
- Don't leak exception info of already catched exceptions to context teardown
|
|
|
|
|
handlers (pull request ``#1393``).
|
2015-06-06 03:31:51 +02:00
|
|
|
- Allow custom Jinja environment subclasses (pull request ``#1422``).
|
2015-06-20 17:49:50 +02:00
|
|
|
- ``flask.g`` now has ``pop()`` and ``setdefault`` methods.
|
2015-06-30 11:00:14 -07:00
|
|
|
- Turn on autoescape for ``flask.templating.render_template_string`` by default
|
|
|
|
|
(pull request ``#1515``).
|
2016-04-02 21:08:58 +02:00
|
|
|
- ``flask.ext`` is now deprecated (pull request ``#1484``).
|
2016-04-02 21:10:24 +02:00
|
|
|
- ``send_from_directory`` now raises BadRequest if the filename is invalid on
|
|
|
|
|
the server OS (pull request ``#1763``).
|
2016-04-08 19:30:47 -03:00
|
|
|
- Added the ``JSONIFY_MIMETYPE`` configuration variable (pull request ``#1728``).
|
2016-05-26 21:46:56 +02:00
|
|
|
- Exceptions during teardown handling will no longer leave bad application
|
|
|
|
|
contexts lingering around.
|
2013-09-30 18:40:35 +03:00
|
|
|
|
2013-06-27 16:49:27 +02:00
|
|
|
Version 0.10.2
|
|
|
|
|
--------------
|
|
|
|
|
|
|
|
|
|
(bugfix release, release date to be announced)
|
|
|
|
|
|
|
|
|
|
- Fixed broken `test_appcontext_signals()` test case.
|
2013-08-13 15:53:58 +02:00
|
|
|
- Raise an :exc:`AttributeError` in :func:`flask.helpers.find_package` with a
|
|
|
|
|
useful message explaining why it is raised when a PEP 302 import hook is used
|
|
|
|
|
without an `is_package()` method.
|
2013-10-16 20:12:20 +02:00
|
|
|
- Fixed an issue causing exceptions raised before entering a request or app
|
|
|
|
|
context to be passed to teardown handlers.
|
2014-02-08 17:19:00 +00:00
|
|
|
- Fixed an issue with query parameters getting removed from requests in
|
|
|
|
|
the test client when absolute URLs were requested.
|
2014-02-08 17:39:26 +00:00
|
|
|
- Made `@before_first_request` into a decorator as intended.
|
2014-02-08 17:46:02 +00:00
|
|
|
- Fixed an etags bug when sending a file streams with a name.
|
2014-02-09 13:01:54 +00:00
|
|
|
- Fixed `send_from_directory` not expanding to the application root path
|
|
|
|
|
correctly.
|
2014-02-09 13:26:32 +00:00
|
|
|
- Changed logic of before first request handlers to flip the flag after
|
|
|
|
|
invoking. This will allow some uses that are potentially dangerous but
|
|
|
|
|
should probably be permitted.
|
2015-07-16 12:01:25 +02:00
|
|
|
- Fixed Python 3 bug when a handler from `app.url_build_error_handlers`
|
|
|
|
|
reraises the `BuildError`.
|
2013-06-27 16:49:27 +02:00
|
|
|
|
2013-06-13 23:36:50 +01:00
|
|
|
Version 0.10.1
|
|
|
|
|
--------------
|
|
|
|
|
|
2013-06-14 09:53:40 +01:00
|
|
|
(bugfix release, released on June 14th 2013)
|
2013-06-13 23:36:50 +01:00
|
|
|
|
2013-06-14 00:05:09 +01:00
|
|
|
- Fixed an issue where ``|tojson`` was not quoting single quotes which
|
|
|
|
|
made the filter not work properly in HTML attributes. Now it's
|
|
|
|
|
possible to use that filter in single quoted attributes. This should
|
|
|
|
|
make using that filter with angular.js easier.
|
2013-06-14 00:24:17 +01:00
|
|
|
- Added support for byte strings back to the session system. This broke
|
|
|
|
|
compatibility with the common case of people putting binary data for
|
|
|
|
|
token verification into the session.
|
2013-06-15 00:01:34 +05:30
|
|
|
- Fixed an issue where registering the same method twice for the same endpoint
|
2013-06-14 09:41:20 +01:00
|
|
|
would trigger an exception incorrectly.
|
2013-06-14 00:05:09 +01:00
|
|
|
|
2012-08-11 02:36:14 +01:00
|
|
|
Version 0.10
|
|
|
|
|
------------
|
|
|
|
|
|
2015-10-23 16:20:02 +08:00
|
|
|
Released on June 13th 2013, codename Limoncello.
|
2012-08-11 02:36:14 +01:00
|
|
|
|
|
|
|
|
- Changed default cookie serialization format from pickle to JSON to
|
|
|
|
|
limit the impact an attacker can do if the secret key leaks. See
|
|
|
|
|
:ref:`upgrading-to-010` for more information.
|
2012-10-07 12:53:36 +02:00
|
|
|
- Added ``template_test`` methods in addition to the already existing
|
|
|
|
|
``template_filter`` method family.
|
2013-01-27 00:46:19 +00:00
|
|
|
- Added ``template_global`` methods in addition to the already existing
|
|
|
|
|
``template_filter`` method family.
|
2012-10-07 15:24:03 +02:00
|
|
|
- Set the content-length header for x-sendfile.
|
2012-10-07 15:33:25 +02:00
|
|
|
- ``tojson`` filter now does not escape script blocks in HTML5 parsers.
|
2013-06-03 12:25:08 +01:00
|
|
|
- ``tojson`` used in templates is now safe by default due. This was
|
|
|
|
|
allowed due to the different escaping behavior.
|
2012-10-07 17:13:12 +02:00
|
|
|
- Flask will now raise an error if you attempt to register a new function
|
|
|
|
|
on an already used endpoint.
|
2012-10-07 23:31:48 +02:00
|
|
|
- Added wrapper module around simplejson and added default serialization
|
|
|
|
|
of datetime objects. This allows much easier customization of how
|
|
|
|
|
JSON is handled by Flask or any Flask extension.
|
2012-10-08 06:48:13 +02:00
|
|
|
- Removed deprecated internal ``flask.session`` module alias. Use
|
|
|
|
|
``flask.sessions`` instead to get the session module. This is not to
|
|
|
|
|
be confused with ``flask.session`` the session proxy.
|
2012-10-08 07:01:49 +02:00
|
|
|
- Templates can now be rendered without request context. The behavior is
|
|
|
|
|
slightly different as the ``request``, ``session`` and ``g`` objects
|
|
|
|
|
will not be available and blueprint's context processors are not
|
|
|
|
|
called.
|
|
|
|
|
- The config object is now available to the template as a real global and
|
|
|
|
|
not through a context processor which makes it available even in imported
|
|
|
|
|
templates by default.
|
2012-10-18 00:48:15 +01:00
|
|
|
- Added an option to generate non-ascii encoded JSON which should result
|
|
|
|
|
in less bytes being transmitted over the network. It's disabled by
|
|
|
|
|
default to not cause confusion with existing libraries that might expect
|
|
|
|
|
``flask.json.dumps`` to return bytestrings by default.
|
2012-12-21 11:45:42 +01:00
|
|
|
- ``flask.g`` is now stored on the app context instead of the request
|
|
|
|
|
context.
|
2013-06-09 12:06:33 +01:00
|
|
|
- ``flask.g`` now gained a ``get()`` method for not erroring out on non
|
|
|
|
|
existing items.
|
|
|
|
|
- ``flask.g`` now can be used with the ``in`` operator to see what's defined
|
|
|
|
|
and it now is iterable and will yield all attributes stored.
|
2012-12-21 11:45:42 +01:00
|
|
|
- ``flask.Flask.request_globals_class`` got renamed to
|
|
|
|
|
``flask.Flask.app_ctx_globals_class`` which is a better name to what it
|
|
|
|
|
does since 0.10.
|
2012-12-21 11:47:27 +01:00
|
|
|
- `request`, `session` and `g` are now also added as proxies to the template
|
|
|
|
|
context which makes them available in imported templates. One has to be
|
|
|
|
|
very careful with those though because usage outside of macros might
|
|
|
|
|
cause caching.
|
2013-01-21 17:44:32 +00:00
|
|
|
- Flask will no longer invoke the wrong error handlers if a proxy
|
|
|
|
|
exception is passed through.
|
2013-01-28 15:08:54 +00:00
|
|
|
- Added a workaround for chrome's cookies in localhost not working
|
|
|
|
|
as intended with domain names.
|
2013-01-29 19:31:45 +00:00
|
|
|
- Changed logic for picking defaults for cookie values from sessions
|
|
|
|
|
to work better with Google Chrome.
|
2013-03-21 21:04:06 +00:00
|
|
|
- Added `message_flashed` signal that simplifies flashing testing.
|
2013-05-14 11:00:04 +01:00
|
|
|
- Added support for copying of request contexts for better working with
|
|
|
|
|
greenlets.
|
2013-05-23 13:59:10 +01:00
|
|
|
- Removed custom JSON HTTP exception subclasses. If you were relying on them
|
|
|
|
|
you can reintroduce them again yourself trivially. Using them however is
|
|
|
|
|
strongly discouraged as the interface was flawed.
|
2013-05-18 17:06:25 +02:00
|
|
|
- Python requirements changed: requiring Python 2.6 or 2.7 now to prepare
|
|
|
|
|
for Python 3.3 port.
|
2013-05-30 18:15:17 +01:00
|
|
|
- Changed how the teardown system is informed about exceptions. This is now
|
|
|
|
|
more reliable in case something handles an exception halfway through
|
|
|
|
|
the error handling process.
|
2013-06-02 21:47:28 +01:00
|
|
|
- Request context preservation in debug mode now keeps the exception
|
|
|
|
|
information around which means that teardown handlers are able to
|
|
|
|
|
distinguish error from success cases.
|
2013-06-01 00:20:00 +01:00
|
|
|
- Added the ``JSONIFY_PRETTYPRINT_REGULAR`` configuration variable.
|
2013-06-01 19:24:03 +01:00
|
|
|
- Flask now orders JSON keys by default to not trash HTTP caches due to
|
|
|
|
|
different hash seeds between different workers.
|
2013-06-05 09:53:26 +01:00
|
|
|
- Added `appcontext_pushed` and `appcontext_popped` signals.
|
2013-06-07 00:46:30 +01:00
|
|
|
- The builtin run method now takes the ``SERVER_NAME`` into account when
|
|
|
|
|
picking the default port to run on.
|
2013-06-12 16:27:48 +01:00
|
|
|
- Added `flask.request.get_json()` as a replacement for the old
|
|
|
|
|
`flask.request.json` property.
|
2012-08-11 02:36:14 +01:00
|
|
|
|
2011-09-29 23:36:57 +02:00
|
|
|
Version 0.9
|
|
|
|
|
-----------
|
|
|
|
|
|
2012-07-02 00:38:27 +03:00
|
|
|
Released on July 1st 2012, codename Campari.
|
2011-09-29 23:36:57 +02:00
|
|
|
|
2012-03-08 16:41:39 -05:00
|
|
|
- The :func:`flask.Request.on_json_loading_failed` now returns a JSON formatted
|
|
|
|
|
response by default.
|
2011-10-06 10:57:03 -04:00
|
|
|
- The :func:`flask.url_for` function now can generate anchors to the
|
|
|
|
|
generated links.
|
2011-11-04 02:46:22 +01:00
|
|
|
- The :func:`flask.url_for` function now can also explicitly generate
|
|
|
|
|
URL rules specific to a given HTTP method.
|
2011-10-11 19:09:37 -07:00
|
|
|
- Logger now only returns the debug log setting if it was not set
|
|
|
|
|
explicitly.
|
2011-11-05 17:43:40 +01:00
|
|
|
- Unregister a circular dependency between the WSGI environment and
|
|
|
|
|
the request object when shutting down the request. This means that
|
2014-11-05 06:04:58 +03:00
|
|
|
environ ``werkzeug.request`` will be ``None`` after the response was
|
2011-11-05 17:43:40 +01:00
|
|
|
returned to the WSGI server but has the advantage that the garbage
|
|
|
|
|
collector is not needed on CPython to tear down the request unless
|
|
|
|
|
the user created circular dependencies themselves.
|
2011-11-20 16:54:40 +01:00
|
|
|
- Session is now stored after callbacks so that if the session payload
|
|
|
|
|
is stored in the session you can still modify it in an after
|
|
|
|
|
request callback.
|
2012-01-16 20:53:20 -05:00
|
|
|
- The :class:`flask.Flask` class will avoid importing the provided import name
|
|
|
|
|
if it can (the required first parameter), to benefit tools which build Flask
|
|
|
|
|
instances programmatically. The Flask class will fall back to using import
|
|
|
|
|
on systems with custom module hooks, e.g. Google App Engine, or when the
|
|
|
|
|
import name is inside a zip archive (usually a .egg) prior to Python 2.7.
|
|
|
|
|
- Blueprints now have a decorator to add custom template filters application
|
|
|
|
|
wide, :meth:`flask.Blueprint.app_template_filter`.
|
|
|
|
|
- The Flask and Blueprint classes now have a non-decorator method for adding
|
|
|
|
|
custom template filters application wide,
|
|
|
|
|
:meth:`flask.Flask.add_template_filter` and
|
|
|
|
|
:meth:`flask.Blueprint.add_app_template_filter`.
|
2012-01-16 23:10:21 -05:00
|
|
|
- The :func:`flask.get_flashed_messages` function now allows rendering flashed
|
|
|
|
|
message categories in separate blocks, through a ``category_filter``
|
|
|
|
|
argument.
|
2014-11-05 06:04:58 +03:00
|
|
|
- The :meth:`flask.Flask.run` method now accepts ``None`` for `host` and `port`
|
|
|
|
|
arguments, using default values when ``None``. This allows for calling run
|
2012-01-16 23:38:36 -05:00
|
|
|
using configuration values, e.g. ``app.run(app.config.get('MYHOST'),
|
|
|
|
|
app.config.get('MYPORT'))``, with proper behavior whether or not a config
|
|
|
|
|
file is provided.
|
2012-02-24 09:33:11 -05:00
|
|
|
- The :meth:`flask.render_template` method now accepts a either an iterable of
|
|
|
|
|
template names or a single template name. Previously, it only accepted a
|
|
|
|
|
single template name. On an iterable, the first template found is rendered.
|
2012-04-09 15:22:36 +01:00
|
|
|
- Added :meth:`flask.Flask.app_context` which works very similar to the
|
|
|
|
|
request context but only provides access to the current application. This
|
|
|
|
|
also adds support for URL generation without an active request context.
|
2012-03-11 20:45:58 -07:00
|
|
|
- View functions can now return a tuple with the first instance being an
|
|
|
|
|
instance of :class:`flask.Response`. This allows for returning
|
|
|
|
|
``jsonify(error="error msg"), 400`` from a view function.
|
2012-04-24 01:48:05 -04:00
|
|
|
- :class:`~flask.Flask` and :class:`~flask.Blueprint` now provide a
|
|
|
|
|
:meth:`~flask.Flask.get_send_file_max_age` hook for subclasses to override
|
|
|
|
|
behavior of serving static files from Flask when using
|
|
|
|
|
:meth:`flask.Flask.send_static_file` (used for the default static file
|
|
|
|
|
handler) and :func:`~flask.helpers.send_file`. This hook is provided a
|
|
|
|
|
filename, which for example allows changing cache controls by file extension.
|
|
|
|
|
The default max-age for `send_file` and static files can be configured
|
|
|
|
|
through a new ``SEND_FILE_MAX_AGE_DEFAULT`` configuration variable, which is
|
|
|
|
|
used in the default `get_send_file_max_age` implementation.
|
2012-04-01 11:33:42 -04:00
|
|
|
- Fixed an assumption in sessions implementation which could break message
|
|
|
|
|
flashing on sessions implementations which use external storage.
|
2012-04-09 15:56:33 +01:00
|
|
|
- Changed the behavior of tuple return values from functions. They are no
|
|
|
|
|
longer arguments to the response object, they now have a defined meaning.
|
2012-04-18 20:46:07 -04:00
|
|
|
- Added :attr:`flask.Flask.request_globals_class` to allow a specific class to
|
|
|
|
|
be used on creation of the :data:`~flask.g` instance of each request.
|
2012-05-08 12:51:26 +01:00
|
|
|
- Added `required_methods` attribute to view functions to force-add methods
|
|
|
|
|
on registration.
|
2012-05-08 13:14:32 +01:00
|
|
|
- Added :func:`flask.after_this_request`.
|
2012-06-27 15:06:39 +01:00
|
|
|
- Added :func:`flask.stream_with_context` and the ability to push contexts
|
|
|
|
|
multiple times without producing unexpected behavior.
|
2011-10-06 10:57:03 -04:00
|
|
|
|
2011-10-02 01:06:22 +02:00
|
|
|
Version 0.8.1
|
|
|
|
|
-------------
|
|
|
|
|
|
2012-07-01 19:31:53 +03:00
|
|
|
Bugfix release, released on July 1st 2012
|
2011-10-02 01:06:22 +02:00
|
|
|
|
2011-10-02 01:08:54 +02:00
|
|
|
- Fixed an issue with the undocumented `flask.session` module to not
|
|
|
|
|
work properly on Python 2.5. It should not be used but did cause
|
|
|
|
|
some problems for package managers.
|
|
|
|
|
|
2011-07-07 11:26:53 +02:00
|
|
|
Version 0.8
|
|
|
|
|
-----------
|
|
|
|
|
|
2011-09-29 23:33:46 +02:00
|
|
|
Released on September 29th 2011, codename Rakija
|
2011-07-07 11:26:53 +02:00
|
|
|
|
2011-07-07 11:27:22 +02:00
|
|
|
- Refactored session support into a session interface so that
|
|
|
|
|
the implementation of the sessions can be changed without
|
|
|
|
|
having to override the Flask class.
|
2011-07-07 12:29:58 +02:00
|
|
|
- Empty session cookies are now deleted properly automatically.
|
2011-07-14 14:18:42 +02:00
|
|
|
- View functions can now opt out of getting the automatic
|
|
|
|
|
OPTIONS implementation.
|
2011-08-08 21:47:26 +02:00
|
|
|
- HTTP exceptions and Bad Request errors can now be trapped so that they
|
2011-08-05 12:35:41 +02:00
|
|
|
show up normally in the traceback.
|
2011-08-05 16:43:42 +02:00
|
|
|
- Flask in debug mode is now detecting some common problems and tries to
|
|
|
|
|
warn you about them.
|
2011-08-07 02:30:34 +02:00
|
|
|
- Flask in debug mode will now complain with an assertion error if a view
|
|
|
|
|
was attached after the first request was handled. This gives earlier
|
|
|
|
|
feedback when users forget to import view code ahead of time.
|
2011-08-07 12:43:38 +02:00
|
|
|
- Added the ability to register callbacks that are only triggered once at
|
|
|
|
|
the beginning of the first request. (:meth:`Flask.before_first_request`)
|
2011-08-08 21:47:26 +02:00
|
|
|
- Malformed JSON data will now trigger a bad request HTTP exception instead
|
|
|
|
|
of a value error which usually would result in a 500 internal server
|
|
|
|
|
error if not handled. This is a backwards incompatible change.
|
2011-08-10 13:34:58 +02:00
|
|
|
- Applications now not only have a root path where the resources and modules
|
2011-10-13 11:49:51 +03:00
|
|
|
are located but also an instance path which is the designated place to
|
2011-08-10 13:34:58 +02:00
|
|
|
drop files that are modified at runtime (uploads etc.). Also this is
|
|
|
|
|
conceptionally only instance depending and outside version control so it's
|
2011-08-10 13:55:57 +02:00
|
|
|
the perfect place to put configuration files etc. For more information
|
|
|
|
|
see :ref:`instance-folders`.
|
2011-08-25 12:13:55 +01:00
|
|
|
- Added the ``APPLICATION_ROOT`` configuration variable.
|
2011-08-25 15:18:39 +01:00
|
|
|
- Implemented :meth:`~flask.testing.TestClient.session_transaction` to
|
|
|
|
|
easily modify sessions from the test environment.
|
2011-08-25 20:47:50 +01:00
|
|
|
- Refactored test client internally. The ``APPLICATION_ROOT`` configuration
|
|
|
|
|
variable as well as ``SERVER_NAME`` are now properly used by the test client
|
|
|
|
|
as defaults.
|
2011-08-25 22:09:48 +01:00
|
|
|
- Added :attr:`flask.views.View.decorators` to support simpler decorating of
|
2012-01-31 13:54:46 +01:00
|
|
|
pluggable (class-based) views.
|
2011-09-30 14:03:01 +03:00
|
|
|
- Fixed an issue where the test client if used with the "with" statement did not
|
2011-08-26 14:01:46 +01:00
|
|
|
trigger the execution of the teardown handlers.
|
2011-08-30 14:36:50 +02:00
|
|
|
- Added finer control over the session cookie parameters.
|
2011-09-17 19:39:10 +02:00
|
|
|
- HEAD requests to a method view now automatically dispatch to the `get`
|
|
|
|
|
method if no handler was implemented.
|
2011-09-18 12:51:10 +02:00
|
|
|
- Implemented the virtual :mod:`flask.ext` package to import extensions from.
|
2011-09-24 20:27:38 +02:00
|
|
|
- The context preservation on exceptions is now an integral component of
|
|
|
|
|
Flask itself and no longer of the test client. This cleaned up some
|
|
|
|
|
internal logic and lowers the odds of runaway request contexts in unittests.
|
2011-07-07 11:27:22 +02:00
|
|
|
|
2011-07-16 01:16:03 +02:00
|
|
|
Version 0.7.3
|
|
|
|
|
-------------
|
|
|
|
|
|
|
|
|
|
Bugfix release, release date to be decided
|
|
|
|
|
|
|
|
|
|
- Fixed the Jinja2 environment's list_templates method not returning the
|
|
|
|
|
correct names when blueprints or modules were involved.
|
|
|
|
|
|
2011-07-06 10:18:03 +02:00
|
|
|
Version 0.7.2
|
|
|
|
|
-------------
|
|
|
|
|
|
|
|
|
|
Bugfix release, released on July 6th 2011
|
|
|
|
|
|
|
|
|
|
- Fixed an issue with URL processors not properly working on
|
|
|
|
|
blueprints.
|
|
|
|
|
|
2011-06-28 23:36:39 +02:00
|
|
|
Version 0.7.1
|
|
|
|
|
-------------
|
|
|
|
|
|
2011-07-06 10:26:59 +02:00
|
|
|
Bugfix release, released on June 29th 2011
|
2011-06-28 23:36:39 +02:00
|
|
|
|
|
|
|
|
- Added missing future import that broke 2.5 compatibility.
|
2011-06-29 18:31:48 +02:00
|
|
|
- Fixed an infinite redirect issue with blueprints.
|
2011-06-28 23:36:39 +02:00
|
|
|
|
2010-07-27 14:40:21 +02:00
|
|
|
Version 0.7
|
|
|
|
|
-----------
|
|
|
|
|
|
2011-06-28 14:36:49 +02:00
|
|
|
Released on June 28th 2011, codename Grappa
|
2010-07-27 14:40:21 +02:00
|
|
|
|
2010-07-28 01:39:25 +02:00
|
|
|
- Added :meth:`~flask.Flask.make_default_options_response`
|
|
|
|
|
which can be used by subclasses to alter the default
|
2014-11-05 06:13:01 +03:00
|
|
|
behavior for ``OPTIONS`` responses.
|
2010-08-07 13:02:53 +02:00
|
|
|
- Unbound locals now raise a proper :exc:`RuntimeError` instead
|
|
|
|
|
of an :exc:`AttributeError`.
|
2010-08-07 13:36:39 +02:00
|
|
|
- Mimetype guessing and etag support based on file objects is now
|
|
|
|
|
deprecated for :func:`flask.send_file` because it was unreliable.
|
|
|
|
|
Pass filenames instead or attach your own etags and provide a
|
|
|
|
|
proper mimetype by hand.
|
2010-10-19 09:09:55 +02:00
|
|
|
- Static file handling for modules now requires the name of the
|
|
|
|
|
static folder to be supplied explicitly. The previous autodetection
|
|
|
|
|
was not reliable and caused issues on Google's App Engine. Until
|
2012-04-19 11:51:38 -04:00
|
|
|
1.0 the old behavior will continue to work but issue dependency
|
2010-10-19 09:09:55 +02:00
|
|
|
warnings.
|
|
|
|
|
- fixed a problem for Flask to run on jython.
|
2014-11-05 07:10:49 +03:00
|
|
|
- added a ``PROPAGATE_EXCEPTIONS`` configuration variable that can be
|
2010-11-29 08:57:38 +01:00
|
|
|
used to flip the setting of exception propagation which previously
|
2014-11-05 07:10:49 +03:00
|
|
|
was linked to ``DEBUG`` alone and is now linked to either ``DEBUG`` or
|
|
|
|
|
``TESTING``.
|
2011-01-16 17:13:25 +01:00
|
|
|
- Flask no longer internally depends on rules being added through the
|
|
|
|
|
`add_url_rule` function and can now also accept regular werkzeug
|
|
|
|
|
rules added to the url map.
|
2011-01-24 13:50:14 +01:00
|
|
|
- Added an `endpoint` method to the flask application object which
|
|
|
|
|
allows one to register a callback to an arbitrary endpoint with
|
|
|
|
|
a decorator.
|
2011-02-05 17:41:02 +01:00
|
|
|
- Use Last-Modified for static file sending instead of Date which
|
|
|
|
|
was incorrectly introduced in 0.6.
|
2011-02-21 21:56:37 +01:00
|
|
|
- Added `create_jinja_loader` to override the loader creation process.
|
2011-03-14 14:21:28 -04:00
|
|
|
- Implemented a silent flag for `config.from_pyfile`.
|
2011-03-14 13:00:34 -04:00
|
|
|
- Added `teardown_request` decorator, for functions that should run at the end
|
2011-05-27 20:29:03 +02:00
|
|
|
of a request regardless of whether an exception occurred. Also the behavior
|
|
|
|
|
for `after_request` was changed. It's now no longer executed when an exception
|
|
|
|
|
is raised. See :ref:`upgrading-to-new-teardown-handling`
|
2011-03-14 16:13:58 -04:00
|
|
|
- Implemented :func:`flask.has_request_context`
|
2011-03-18 09:15:28 +01:00
|
|
|
- Deprecated `init_jinja_globals`. Override the
|
|
|
|
|
:meth:`~flask.Flask.create_jinja_environment` method instead to
|
|
|
|
|
achieve the same functionality.
|
2011-06-27 08:21:09 +02:00
|
|
|
- Added :func:`flask.safe_join`
|
2011-05-24 16:30:08 +02:00
|
|
|
- The automatic JSON request data unpacking now looks at the charset
|
|
|
|
|
mimetype parameter.
|
2011-05-24 16:42:06 +02:00
|
|
|
- Don't modify the session on :func:`flask.get_flashed_messages` if there
|
|
|
|
|
are no messages in the session.
|
2011-05-27 20:29:03 +02:00
|
|
|
- `before_request` handlers are now able to abort requests with errors.
|
2011-06-05 10:27:15 +02:00
|
|
|
- it is not possible to define user exception handlers. That way you can
|
|
|
|
|
provide custom error messages from a central hub for certain errors that
|
|
|
|
|
might occur during request processing (for instance database connection
|
|
|
|
|
errors, timeouts from remote resources etc.).
|
|
|
|
|
- Blueprints can provide blueprint specific error handlers.
|
2012-01-31 13:54:46 +01:00
|
|
|
- Implemented generic :ref:`views` (class-based views).
|
2010-07-28 01:39:25 +02:00
|
|
|
|
2010-07-28 01:26:15 +02:00
|
|
|
Version 0.6.1
|
|
|
|
|
-------------
|
|
|
|
|
|
2010-12-31 15:21:46 +01:00
|
|
|
Bugfix release, released on December 31st 2010
|
2010-07-27 14:40:21 +02:00
|
|
|
|
2014-11-05 06:13:01 +03:00
|
|
|
- Fixed an issue where the default ``OPTIONS`` response was
|
2014-11-05 07:23:47 +03:00
|
|
|
not exposing all valid methods in the ``Allow`` header.
|
2010-08-09 15:16:02 +02:00
|
|
|
- Jinja2 template loading syntax now allows "./" in front of
|
|
|
|
|
a template load path. Previously this caused issues with
|
|
|
|
|
module setups.
|
2010-08-20 11:20:09 +02:00
|
|
|
- Fixed an issue where the subdomain setting for modules was
|
|
|
|
|
ignored for the static folder.
|
2010-12-23 14:18:14 +01:00
|
|
|
- Fixed a security problem that allowed clients to download arbitrary files
|
|
|
|
|
if the host server was a windows based operating system and the client
|
|
|
|
|
uses backslashes to escape the directory the files where exposed from.
|
2010-07-28 01:25:08 +02:00
|
|
|
|
2010-07-06 16:28:47 +02:00
|
|
|
Version 0.6
|
|
|
|
|
-----------
|
|
|
|
|
|
2010-07-27 14:38:59 +02:00
|
|
|
Released on July 27th 2010, codename Whisky
|
2010-07-06 16:28:47 +02:00
|
|
|
|
2010-07-12 18:04:10 +02:00
|
|
|
- after request functions are now called in reverse order of
|
|
|
|
|
registration.
|
2010-07-12 23:04:24 +02:00
|
|
|
- OPTIONS is now automatically implemented by Flask unless the
|
2010-11-13 11:28:42 +00:00
|
|
|
application explicitly adds 'OPTIONS' as method to the URL rule.
|
2010-07-12 23:04:24 +02:00
|
|
|
In this case no automatic OPTIONS handling kicks in.
|
2010-07-13 23:14:53 +02:00
|
|
|
- static rules are now even in place if there is no static folder
|
|
|
|
|
for the module. This was implemented to aid GAE which will
|
|
|
|
|
remove the static folder if it's part of a mapping in the .yml
|
|
|
|
|
file.
|
2010-07-13 23:30:29 +02:00
|
|
|
- the :attr:`~flask.Flask.config` is now available in the templates
|
|
|
|
|
as `config`.
|
|
|
|
|
- context processors will no longer override values passed directly
|
|
|
|
|
to the render function.
|
2010-07-14 10:47:57 +02:00
|
|
|
- added the ability to limit the incoming request data with the
|
|
|
|
|
new ``MAX_CONTENT_LENGTH`` configuration value.
|
2010-07-15 14:35:44 +02:00
|
|
|
- the endpoint for the :meth:`flask.Module.add_url_rule` method
|
|
|
|
|
is now optional to be consistent with the function of the
|
|
|
|
|
same name on the application object.
|
2010-07-17 11:36:16 +02:00
|
|
|
- added a :func:`flask.make_response` function that simplifies
|
|
|
|
|
creating response object instances in views.
|
2010-07-17 14:39:28 +02:00
|
|
|
- added signalling support based on blinker. This feature is currently
|
|
|
|
|
optional and supposed to be used by extensions and applications. If
|
|
|
|
|
you want to use it, make sure to have `blinker`_ installed.
|
2010-11-13 11:28:42 +00:00
|
|
|
- refactored the way URL adapters are created. This process is now
|
2010-07-17 15:56:58 +02:00
|
|
|
fully customizable with the :meth:`~flask.Flask.create_url_adapter`
|
|
|
|
|
method.
|
2010-07-23 13:29:21 +01:00
|
|
|
- modules can now register for a subdomain instead of just an URL
|
|
|
|
|
prefix. This makes it possible to bind a whole module to a
|
|
|
|
|
configurable subdomain.
|
2010-07-17 14:39:28 +02:00
|
|
|
|
2014-04-26 01:30:28 +02:00
|
|
|
.. _blinker: https://pypi.python.org/pypi/blinker
|
2010-07-12 18:04:10 +02:00
|
|
|
|
2010-07-15 20:03:58 +02:00
|
|
|
Version 0.5.2
|
|
|
|
|
-------------
|
|
|
|
|
|
|
|
|
|
Bugfix Release, released on July 15th 2010
|
|
|
|
|
|
|
|
|
|
- fixed another issue with loading templates from directories when
|
|
|
|
|
modules were used.
|
|
|
|
|
|
2010-07-06 19:11:51 +02:00
|
|
|
Version 0.5.1
|
|
|
|
|
-------------
|
|
|
|
|
|
|
|
|
|
Bugfix Release, released on July 6th 2010
|
|
|
|
|
|
2010-07-06 19:24:50 +02:00
|
|
|
- fixes an issue with template loading from directories when modules
|
|
|
|
|
where used.
|
2010-07-06 19:11:51 +02:00
|
|
|
|
2010-06-18 17:14:43 +02:00
|
|
|
Version 0.5
|
|
|
|
|
-----------
|
|
|
|
|
|
2010-07-06 19:11:51 +02:00
|
|
|
Released on July 6th 2010, codename Calvados
|
2010-06-18 17:14:43 +02:00
|
|
|
|
2010-06-29 01:13:40 +02:00
|
|
|
- fixed a bug with subdomains that was caused by the inability to
|
|
|
|
|
specify the server name. The server name can now be set with
|
2014-11-05 07:10:49 +03:00
|
|
|
the ``SERVER_NAME`` config key. This key is now also used to set
|
2010-07-06 10:43:38 +02:00
|
|
|
the session cookie cross-subdomain wide.
|
2010-07-04 11:16:24 +02:00
|
|
|
- autoescaping is no longer active for all templates. Instead it
|
|
|
|
|
is only active for ``.html``, ``.htm``, ``.xml`` and ``.xhtml``.
|
2012-04-19 11:51:38 -04:00
|
|
|
Inside templates this behavior can be changed with the
|
2010-07-04 11:16:24 +02:00
|
|
|
``autoescape`` tag.
|
2010-07-04 11:37:39 +02:00
|
|
|
- refactored Flask internally. It now consists of more than a
|
|
|
|
|
single file.
|
2010-07-04 11:56:08 +02:00
|
|
|
- :func:`flask.send_file` now emits etags and has the ability to
|
|
|
|
|
do conditional responses builtin.
|
2010-07-04 12:14:00 +02:00
|
|
|
- (temporarily) dropped support for zipped applications. This was a
|
2012-04-19 11:51:38 -04:00
|
|
|
rarely used feature and led to some confusing behavior.
|
2010-07-04 14:13:30 +02:00
|
|
|
- added support for per-package template and static-file directories.
|
2010-07-04 14:20:20 +02:00
|
|
|
- removed support for `create_jinja_loader` which is no longer used
|
|
|
|
|
in 0.5 due to the improved module support.
|
2010-07-05 10:25:51 +02:00
|
|
|
- added a helper function to expose files from any directory.
|
2010-06-29 01:13:40 +02:00
|
|
|
|
2010-05-28 01:25:19 +02:00
|
|
|
Version 0.4
|
|
|
|
|
-----------
|
|
|
|
|
|
2010-06-18 17:10:31 +02:00
|
|
|
Released on June 18th 2010, codename Rakia
|
2010-05-28 01:25:19 +02:00
|
|
|
|
2010-05-31 17:38:05 +02:00
|
|
|
- added the ability to register application wide error handlers
|
|
|
|
|
from modules.
|
2010-06-02 18:32:23 +02:00
|
|
|
- :meth:`~flask.Flask.after_request` handlers are now also invoked
|
|
|
|
|
if the request dies with an exception and an error handling page
|
|
|
|
|
kicks in.
|
2010-06-03 15:26:07 +02:00
|
|
|
- test client has not the ability to preserve the request context
|
|
|
|
|
for a little longer. This can also be used to trigger custom
|
|
|
|
|
requests that do not pop the request stack for testing.
|
2010-06-03 16:21:23 +02:00
|
|
|
- because the Python standard library caches loggers, the name of
|
|
|
|
|
the logger is configurable now to better support unittests.
|
2014-11-05 07:10:49 +03:00
|
|
|
- added ``TESTING`` switch that can activate unittesting helpers.
|
|
|
|
|
- the logger switches to ``DEBUG`` mode now if debug is enabled.
|
2010-05-31 17:38:05 +02:00
|
|
|
|
2010-05-28 21:06:39 +02:00
|
|
|
Version 0.3.1
|
|
|
|
|
-------------
|
|
|
|
|
|
2010-07-06 19:11:51 +02:00
|
|
|
Bugfix release, released on May 28th 2010
|
2010-05-28 21:06:39 +02:00
|
|
|
|
|
|
|
|
- fixed a error reporting bug with :meth:`flask.Config.from_envvar`
|
2010-05-28 21:07:28 +02:00
|
|
|
- removed some unused code from flask
|
2010-05-28 21:21:28 +02:00
|
|
|
- release does no longer include development leftover files (.git
|
|
|
|
|
folder for themes, built documentation in zip and pdf file and
|
|
|
|
|
some .pyc files)
|
2010-05-28 21:06:39 +02:00
|
|
|
|
2010-05-28 01:18:29 +02:00
|
|
|
Version 0.3
|
2010-05-12 01:32:29 +02:00
|
|
|
-----------
|
|
|
|
|
|
2010-06-18 17:10:31 +02:00
|
|
|
Released on May 28th 2010, codename Schnaps
|
2010-05-12 01:32:29 +02:00
|
|
|
|
2010-05-17 00:37:55 +02:00
|
|
|
- added support for categories for flashed messages.
|
2010-05-17 16:06:30 +02:00
|
|
|
- the application now configures a :class:`logging.Handler` and will
|
|
|
|
|
log request handling exceptions to that logger when not in debug
|
|
|
|
|
mode. This makes it possible to receive mails on server errors
|
|
|
|
|
for example.
|
2010-05-24 18:37:48 +02:00
|
|
|
- added support for context binding that does not require the use of
|
|
|
|
|
the with statement for playing in the console.
|
|
|
|
|
- the request context is now available within the with statement making
|
|
|
|
|
it possible to further push the request context or pop it.
|
2010-05-28 01:30:46 +02:00
|
|
|
- added support for configurations.
|
2010-05-17 00:37:55 +02:00
|
|
|
|
2010-04-20 20:21:01 +02:00
|
|
|
Version 0.2
|
|
|
|
|
-----------
|
|
|
|
|
|
2010-06-18 17:10:31 +02:00
|
|
|
Released on May 12th 2010, codename Jägermeister
|
2010-04-20 20:21:01 +02:00
|
|
|
|
|
|
|
|
- various bugfixes
|
|
|
|
|
- integrated JSON support
|
|
|
|
|
- added :func:`~flask.get_template_attribute` helper function.
|
|
|
|
|
- :meth:`~flask.Flask.add_url_rule` can now also register a
|
|
|
|
|
view function.
|
2010-05-12 01:29:25 +02:00
|
|
|
- refactored internal request dispatching.
|
2010-04-20 21:45:36 +02:00
|
|
|
- server listens on 127.0.0.1 by default now to fix issues with chrome.
|
2010-05-02 19:10:44 +02:00
|
|
|
- added external URL support.
|
2010-05-10 11:27:42 +02:00
|
|
|
- added support for :func:`~flask.send_file`
|
2010-05-04 16:41:04 +02:00
|
|
|
- module support and internal request handling refactoring
|
|
|
|
|
to better support pluggable applications.
|
2010-05-12 01:29:25 +02:00
|
|
|
- sessions can be set to be permanent now on a per-session basis.
|
|
|
|
|
- better error reporting on missing secret keys.
|
|
|
|
|
- added support for Google Appengine.
|
2010-04-20 20:21:01 +02:00
|
|
|
|
|
|
|
|
Version 0.1
|
|
|
|
|
-----------
|
|
|
|
|
|
|
|
|
|
First public preview release.
|