Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 336 lines (282 sloc) 14.143 kb
260b4df @mitsuhiko Added changelog, restructured docs a bit.
authored
1 Flask Changelog
2 ===============
3
4 Here you can see the full list of changes between each Flask release.
5
3765cc2 @mitsuhiko This is 0.9-dev
authored
6 Version 0.9
7 -----------
8
9 Relase date to be decided, codename to be chosen.
10
1759d8e @mitsuhiko Added support for anchor link generation.
authored
11 - The :func:`flask.url_for` function now can generate anchors to the
12 generated links.
f52e7a9 @mitsuhiko Added support for _method to url_for()
authored
13 - The :func:`flask.url_for` function now can also explicitly generate
14 URL rules specific to a given HTTP method.
61a9519 @mitsuhiko Changed logic for debug level log settings
authored
15 - Logger now only returns the debug log setting if it was not set
16 explicitly.
7f4c12b @mitsuhiko Break up a circular dependency on shutdown
authored
17 - Unregister a circular dependency between the WSGI environment and
18 the request object when shutting down the request. This means that
19 environ ``werkzeug.request`` will be `None` after the response was
20 returned to the WSGI server but has the advantage that the garbage
21 collector is not needed on CPython to tear down the request unless
22 the user created circular dependencies themselves.
d628df6 @mitsuhiko Store session after callbacks. This fixes #351
authored
23 - Session is now stored after callbacks so that if the session payload
24 is stored in the session you can still modify it in an after
25 request callback.
96f7beb @rduplain Document recent changes.
rduplain authored
26 - The :class:`flask.Flask` class will avoid importing the provided import name
27 if it can (the required first parameter), to benefit tools which build Flask
28 instances programmatically. The Flask class will fall back to using import
29 on systems with custom module hooks, e.g. Google App Engine, or when the
30 import name is inside a zip archive (usually a .egg) prior to Python 2.7.
31 - Blueprints now have a decorator to add custom template filters application
32 wide, :meth:`flask.Blueprint.app_template_filter`.
33 - The Flask and Blueprint classes now have a non-decorator method for adding
34 custom template filters application wide,
35 :meth:`flask.Flask.add_template_filter` and
36 :meth:`flask.Blueprint.add_app_template_filter`.
37
1759d8e @mitsuhiko Added support for anchor link generation.
authored
38
766522c @mitsuhiko Prepare for an 0.8.1 release
authored
39 Version 0.8.1
40 -------------
41
42 Bugfix release, release date to be decided
43
0dd9dc3 @mitsuhiko Fixed an issue with an unused module for Python 2.5 (flask.session)
authored
44 - Fixed an issue with the undocumented `flask.session` module to not
45 work properly on Python 2.5. It should not be used but did cause
46 some problems for package managers.
47
1a61b12 @mitsuhiko Added a row for Flask 0.8 to the changelog
authored
48 Version 0.8
49 -----------
50
585ff1d @mitsuhiko This will be Rakija
authored
51 Released on September 29th 2011, codename Rakija
1a61b12 @mitsuhiko Added a row for Flask 0.8 to the changelog
authored
52
0fccfe7 @mitsuhiko Refactored session interface
authored
53 - Refactored session support into a session interface so that
54 the implementation of the sessions can be changed without
55 having to override the Flask class.
5cbfbd2 @mitsuhiko Documented a change in the session system
authored
56 - Empty session cookies are now deleted properly automatically.
3b31df8 @mitsuhiko View functions can opt out of the default OPTIONS implementation
authored
57 - View functions can now opt out of getting the automatic
58 OPTIONS implementation.
ce70131 @mitsuhiko If JSON parsing fails it now issues a BadRequest exception.
authored
59 - HTTP exceptions and Bad Request errors can now be trapped so that they
7155f11 @mitsuhiko Added HTTP exception trapping. This should fix #294
authored
60 show up normally in the traceback.
2e022cb @mitsuhiko Added debughelpers. Flask will now tell you if you forget enctype
authored
61 - Flask in debug mode is now detecting some common problems and tries to
62 warn you about them.
5500986 @mitsuhiko Flask in debug mode will now complain if views are attached after the…
authored
63 - Flask in debug mode will now complain with an assertion error if a view
64 was attached after the first request was handled. This gives earlier
65 feedback when users forget to import view code ahead of time.
02a1317 @mitsuhiko Added the ability to trigger functions before the first request to th…
authored
66 - Added the ability to register callbacks that are only triggered once at
67 the beginning of the first request. (:meth:`Flask.before_first_request`)
ce70131 @mitsuhiko If JSON parsing fails it now issues a BadRequest exception.
authored
68 - Malformed JSON data will now trigger a bad request HTTP exception instead
69 of a value error which usually would result in a 500 internal server
70 error if not handled. This is a backwards incompatible change.
153ecbc @mitsuhiko Implemented instance paths
authored
71 - Applications now not only have a root path where the resources and modules
4ab9704 @SimonSapin Typo fix
SimonSapin authored
72 are located but also an instance path which is the designated place to
153ecbc @mitsuhiko Implemented instance paths
authored
73 drop files that are modified at runtime (uploads etc.). Also this is
74 conceptionally only instance depending and outside version control so it's
187cb80 @mitsuhiko Documented instance root
authored
75 the perfect place to put configuration files etc. For more information
76 see :ref:`instance-folders`.
c844d02 @mitsuhiko Added the APPLICATION_ROOT configuration variable which is used by se…
authored
77 - Added the ``APPLICATION_ROOT`` configuration variable.
a5da2c9 @mitsuhiko Implemented flask.testing.TestClient.session_transaction for quick se…
authored
78 - Implemented :meth:`~flask.testing.TestClient.session_transaction` to
79 easily modify sessions from the test environment.
e853a0f @mitsuhiko The test client and test_request_context are now both using the same …
authored
80 - Refactored test client internally. The ``APPLICATION_ROOT`` configuration
81 variable as well as ``SERVER_NAME`` are now properly used by the test client
82 as defaults.
ef0f626 @mitsuhiko Added flask.views.View.decorators to automatically decorate class bas…
authored
83 - Added :attr:`flask.views.View.decorators` to support simpler decorating of
84 pluggable (class based) views.
e2cb8d2 fixed typo, quote "with" statement
ThomasWaldmann authored
85 - Fixed an issue where the test client if used with the "with" statement did not
d49221b @mitsuhiko The test client now properly pops response contexts on __exit__
authored
86 trigger the execution of the teardown handlers.
ccf4641 @mitsuhiko Added finer control over the session cookie parameters
authored
87 - Added finer control over the session cookie parameters.
32c7e43 @mitsuhiko Simplified HEAD handling for method views
authored
88 - HEAD requests to a method view now automatically dispatch to the `get`
89 method if no handler was implemented.
1e6c5f0 @mitsuhiko Documented flask.ext.
authored
90 - Implemented the virtual :mod:`flask.ext` package to import extensions from.
c631613 @mitsuhiko Context preserving is now part of Flask and not the test client. Thi…
authored
91 - The context preservation on exceptions is now an integral component of
92 Flask itself and no longer of the test client. This cleaned up some
93 internal logic and lowers the odds of runaway request contexts in unittests.
0fccfe7 @mitsuhiko Refactored session interface
authored
94
c9a2ad2 @mitsuhiko Fixed a bug in list_templates
authored
95 Version 0.7.3
96 -------------
97
98 Bugfix release, release date to be decided
99
100 - Fixed the Jinja2 environment's list_templates method not returning the
101 correct names when blueprints or modules were involved.
102
343d8a9 @mitsuhiko Added changelog entry
authored
103 Version 0.7.2
104 -------------
105
106 Bugfix release, released on July 6th 2011
107
108 - Fixed an issue with URL processors not properly working on
109 blueprints.
110
5aabc40 @mitsuhiko Added changelog entry
authored
111 Version 0.7.1
112 -------------
113
1c05f47 @mitsuhiko Forgot to cherry-pick the release date for 0.7.1 in master
authored
114 Bugfix release, released on June 29th 2011
5aabc40 @mitsuhiko Added changelog entry
authored
115
116 - Added missing future import that broke 2.5 compatibility.
a101cfc @mitsuhiko Worked around a werkzeug bug with redirects
authored
117 - Fixed an infinite redirect issue with blueprints.
5aabc40 @mitsuhiko Added changelog entry
authored
118
16b101e @mitsuhiko HEAD is 0.7-dev
authored
119 Version 0.7
120 -----------
121
97c54fd @mitsuhiko Correct release date
authored
122 Released on June 28th 2011, codename Grappa
16b101e @mitsuhiko HEAD is 0.7-dev
authored
123
952967f @mitsuhiko In 0.7, make_default_options_response is a public API
authored
124 - Added :meth:`~flask.Flask.make_default_options_response`
125 which can be used by subclasses to alter the default
126 behaviour for `OPTIONS` responses.
faa1c71 @mitsuhiko Request local objects now fail properly with a RuntimeError. This fi…
authored
127 - Unbound locals now raise a proper :exc:`RuntimeError` instead
128 of an :exc:`AttributeError`.
fda1467 @mitsuhiko Deprecated send_file etag support and mimetype guessing for file-like…
authored
129 - Mimetype guessing and etag support based on file objects is now
130 deprecated for :func:`flask.send_file` because it was unreliable.
131 Pass filenames instead or attach your own etags and provide a
132 proper mimetype by hand.
1d2a308 @mitsuhiko merged
authored
133 - Static file handling for modules now requires the name of the
134 static folder to be supplied explicitly. The previous autodetection
135 was not reliable and caused issues on Google's App Engine. Until
136 1.0 the old behaviour will continue to work but issue dependency
137 warnings.
138 - fixed a problem for Flask to run on jython.
8569dfe @mitsuhiko Added a PROPAGATE_EXCEPTIONS flag
authored
139 - added a `PROPAGATE_EXCEPTIONS` configuration variable that can be
140 used to flip the setting of exception propagation which previously
141 was linked to `DEBUG` alone and is now linked to either `DEBUG` or
142 `TESTING`.
99be2ec @mitsuhiko Flask no longer internally depends on rules being added through the a…
authored
143 - Flask no longer internally depends on rules being added through the
144 `add_url_rule` function and can now also accept regular werkzeug
145 rules added to the url map.
785e94b @mitsuhiko Added changelog entry and entry into authors file
authored
146 - Added an `endpoint` method to the flask application object which
147 allows one to register a callback to an arbitrary endpoint with
148 a decorator.
0bf777e @mitsuhiko Do not use Date, use Last-Modified. This fixes #164
authored
149 - Use Last-Modified for static file sending instead of Date which
150 was incorrectly introduced in 0.6.
00c5b7a @mitsuhiko added create_jinja_loader
authored
151 - Added `create_jinja_loader` to override the loader creation process.
34a4947 @mitsuhiko Documented some changes in config handling.
authored
152 - Implemented a silent flag for `config.from_pyfile`.
04e70bd @glyphobet Add teardown_request decorator. Fixes issue #174
glyphobet authored
153 - Added `teardown_request` decorator, for functions that should run at the end
115d31d @mitsuhiko More documentation updates
authored
154 of a request regardless of whether an exception occurred. Also the behavior
155 for `after_request` was changed. It's now no longer executed when an exception
156 is raised. See :ref:`upgrading-to-new-teardown-handling`
fbd4886 @mitsuhiko Implemented flask.has_request_context()
authored
157 - Implemented :func:`flask.has_request_context`
0da56d7 @mitsuhiko deprecated init_jinja_globals
authored
158 - Deprecated `init_jinja_globals`. Override the
159 :meth:`~flask.Flask.create_jinja_environment` method instead to
160 achieve the same functionality.
1c47d8a @SimonSapin Fix a link in the changelog.
SimonSapin authored
161 - Added :func:`flask.safe_join`
2a81c8a @mitsuhiko Documented change
authored
162 - The automatic JSON request data unpacking now looks at the charset
163 mimetype parameter.
34e6933 @mitsuhiko Documented change in flashing
authored
164 - Don't modify the session on :func:`flask.get_flashed_messages` if there
165 are no messages in the session.
115d31d @mitsuhiko More documentation updates
authored
166 - `before_request` handlers are now able to abort requests with errors.
f5ec995 @mitsuhiko Added blueprint specific error handling
authored
167 - it is not possible to define user exception handlers. That way you can
168 provide custom error messages from a central hub for certain errors that
169 might occur during request processing (for instance database connection
170 errors, timeouts from remote resources etc.).
171 - Blueprints can provide blueprint specific error handlers.
ee001e1 @SimonSapin Add a link to pluggable views docs in the changelog.
SimonSapin authored
172 - Implemented generic :ref:`views` (class based views).
952967f @mitsuhiko In 0.7, make_default_options_response is a public API
authored
173
8a14a87 @mitsuhiko Added the upcoming bugfix release to the mainbranches CHANGES
authored
174 Version 0.6.1
175 -------------
176
4c76607 @mitsuhiko Released 0.6.1
authored
177 Bugfix release, released on December 31st 2010
16b101e @mitsuhiko HEAD is 0.7-dev
authored
178
dbf55de @mitsuhiko Fixed an issue where the default `OPTIONS` response was
authored
179 - Fixed an issue where the default `OPTIONS` response was
180 not exposing all valid methods in the `Allow` header.
a3a8439 @mitsuhiko normpath is now used before loading templates
authored
181 - Jinja2 template loading syntax now allows "./" in front of
182 a template load path. Previously this caused issues with
183 module setups.
6e3dd9b @mitsuhiko Added a changelog entry for #108
authored
184 - Fixed an issue where the subdomain setting for modules was
185 ignored for the static folder.
b92120b @mitsuhiko Documented security fix in changelog
authored
186 - Fixed a security problem that allowed clients to download arbitrary files
187 if the host server was a windows based operating system and the client
188 uses backslashes to escape the directory the files where exposed from.
dbf55de @mitsuhiko Fixed an issue where the default `OPTIONS` response was
authored
189
3f7ab17 @mitsuhiko HEAD is 0.6-dev
authored
190 Version 0.6
191 -----------
192
5cadd9d @mitsuhiko Picked codename for 0.6
authored
193 Released on July 27th 2010, codename Whisky
3f7ab17 @mitsuhiko HEAD is 0.6-dev
authored
194
d12d732 @mitsuhiko Reverse order of execution of post-request handlers. This fixes #82
authored
195 - after request functions are now called in reverse order of
196 registration.
5e1b103 @mitsuhiko Added support for automagic OPTIONS
authored
197 - OPTIONS is now automatically implemented by Flask unless the
ed517c7 @jasondavies Minor spelling fixes
jasondavies authored
198 application explicitly adds 'OPTIONS' as method to the URL rule.
5e1b103 @mitsuhiko Added support for automagic OPTIONS
authored
199 In this case no automatic OPTIONS handling kicks in.
ed16ae2 @mitsuhiko Always register URL rules. This fixes #81
authored
200 - static rules are now even in place if there is no static folder
201 for the module. This was implemented to aid GAE which will
202 remove the static folder if it's part of a mapping in the .yml
203 file.
aa3d839 @mitsuhiko Config is now available in templates, context processors no longer ov…
authored
204 - the :attr:`~flask.Flask.config` is now available in the templates
205 as `config`.
206 - context processors will no longer override values passed directly
207 to the render function.
b1790cc @mitsuhiko Added MAX_CONTENT_LENGTH config key
authored
208 - added the ability to limit the incoming request data with the
209 new ``MAX_CONTENT_LENGTH`` configuration value.
4aeb445 @mitsuhiko Documented change
authored
210 - the endpoint for the :meth:`flask.Module.add_url_rule` method
211 is now optional to be consistent with the function of the
212 same name on the application object.
6fc1492 @mitsuhiko Added make_response
authored
213 - added a :func:`flask.make_response` function that simplifies
214 creating response object instances in views.
e0712b4 @mitsuhiko Added support for signals
authored
215 - added signalling support based on blinker. This feature is currently
216 optional and supposed to be used by extensions and applications. If
217 you want to use it, make sure to have `blinker`_ installed.
ed517c7 @jasondavies Minor spelling fixes
jasondavies authored
218 - refactored the way URL adapters are created. This process is now
405d449 @mitsuhiko Documented more changes
authored
219 fully customizable with the :meth:`~flask.Flask.create_url_adapter`
220 method.
7680d52 @mitsuhiko Added support for subdomain bound modules
authored
221 - modules can now register for a subdomain instead of just an URL
222 prefix. This makes it possible to bind a whole module to a
223 configurable subdomain.
e0712b4 @mitsuhiko Added support for signals
authored
224
225 .. _blinker: http://pypi.python.org/pypi/blinker
d12d732 @mitsuhiko Reverse order of execution of post-request handlers. This fixes #82
authored
226
82b143f @mitsuhiko Changelog entry for 0.5.2
authored
227 Version 0.5.2
228 -------------
229
230 Bugfix Release, released on July 15th 2010
231
232 - fixed another issue with loading templates from directories when
233 modules were used.
234
596ae0c @mitsuhiko Updated changelog
authored
235 Version 0.5.1
236 -------------
237
238 Bugfix Release, released on July 6th 2010
239
0a93c55 @mitsuhiko Fixed a template lookup error
authored
240 - fixes an issue with template loading from directories when modules
241 where used.
596ae0c @mitsuhiko Updated changelog
authored
242
528ae04 @mitsuhiko HEAD is 0.5-dev
authored
243 Version 0.5
244 -----------
245
596ae0c @mitsuhiko Updated changelog
authored
246 Released on July 6th 2010, codename Calvados
528ae04 @mitsuhiko HEAD is 0.5-dev
authored
247
f195d92 @mitsuhiko Added proper subdomain support
authored
248 - fixed a bug with subdomains that was caused by the inability to
249 specify the server name. The server name can now be set with
60e143e @mitsuhiko Documented change regarding the session cookie domain policy in the C…
authored
250 the `SERVER_NAME` config key. This key is now also used to set
251 the session cookie cross-subdomain wide.
7599046 @mitsuhiko Started working on refactoring Jinja integration
authored
252 - autoescaping is no longer active for all templates. Instead it
253 is only active for ``.html``, ``.htm``, ``.xml`` and ``.xhtml``.
254 Inside templates this behaviour can be changed with the
255 ``autoescape`` tag.
88d9315 @mitsuhiko We should now have the same public API as before
authored
256 - refactored Flask internally. It now consists of more than a
257 single file.
d0c6ad7 @mitsuhiko Added support for conditional responses to send_file
authored
258 - :func:`flask.send_file` now emits etags and has the ability to
259 do conditional responses builtin.
fedc06c @mitsuhiko dropped pkg_resources
authored
260 - (temporarily) dropped support for zipped applications. This was a
261 rarely used feature and led to some confusing behaviour.
f694456 @mitsuhiko Documented changes
authored
262 - added support for per-package template and static-file directories.
362cf49 @mitsuhiko Documented the create_jinja_loader removal
authored
263 - removed support for `create_jinja_loader` which is no longer used
264 in 0.5 due to the improved module support.
c34b03e @mitsuhiko Documented send_from_directory
authored
265 - added a helper function to expose files from any directory.
f195d92 @mitsuhiko Added proper subdomain support
authored
266
d29a976 @mitsuhiko HEAD is 0.4dev
authored
267 Version 0.4
268 -----------
269
7698c3f @mitsuhiko This will become 0.4
authored
270 Released on June 18th 2010, codename Rakia
d29a976 @mitsuhiko HEAD is 0.4dev
authored
271
50bca8c @mitsuhiko Updated AUTHORS file and added missing versionadded
authored
272 - added the ability to register application wide error handlers
273 from modules.
9373608 @mitsuhiko Documented changes in after_request handlers.
authored
274 - :meth:`~flask.Flask.after_request` handlers are now also invoked
275 if the request dies with an exception and an error handling page
276 kicks in.
bc00fd1 @mitsuhiko Added support for deferred context cleanup. test_client users can now…
authored
277 - test client has not the ability to preserve the request context
278 for a little longer. This can also be used to trigger custom
279 requests that do not pop the request stack for testing.
9983e84 @mitsuhiko Fixed after_request handlers being called twice in some cases and imp…
authored
280 - because the Python standard library caches loggers, the name of
281 the logger is configurable now to better support unittests.
f5fb457 @mitsuhiko Added TESTING flag. This fixes #58.
authored
282 - added `TESTING` switch that can activate unittesting helpers.
fe35105 @mitsuhiko Updated design decisions. This fixes #63
authored
283 - the logger switches to `DEBUG` mode now if debug is enabled.
50bca8c @mitsuhiko Updated AUTHORS file and added missing versionadded
authored
284
6cb0855 @mitsuhiko Fixed an error reporting bug with flask.Config.from_envvar
authored
285 Version 0.3.1
286 -------------
287
596ae0c @mitsuhiko Updated changelog
authored
288 Bugfix release, released on May 28th 2010
6cb0855 @mitsuhiko Fixed an error reporting bug with flask.Config.from_envvar
authored
289
290 - fixed a error reporting bug with :meth:`flask.Config.from_envvar`
dba42ae @mitsuhiko Added missing message
authored
291 - removed some unused code from flask
8e4bcaf @mitsuhiko Fixed build process
authored
292 - release does no longer include development leftover files (.git
293 folder for themes, built documentation in zip and pdf file and
294 some .pyc files)
6cb0855 @mitsuhiko Fixed an error reporting bug with flask.Config.from_envvar
authored
295
ce6e4cb @mitsuhiko 0.5 is 0.3 now, why skip numbers?
authored
296 Version 0.3
07581b2 @mitsuhiko HEAD is 0.5-dev
authored
297 -----------
298
7698c3f @mitsuhiko This will become 0.4
authored
299 Released on May 28th 2010, codename Schnaps
07581b2 @mitsuhiko HEAD is 0.5-dev
authored
300
35ed617 @mitsuhiko Added support for flashing categories.
authored
301 - added support for categories for flashed messages.
e7f67e1 @mitsuhiko Added logging support.
authored
302 - the application now configures a :class:`logging.Handler` and will
303 log request handling exceptions to that logger when not in debug
304 mode. This makes it possible to receive mails on server errors
305 for example.
ef0dc18 @mitsuhiko Added interactive Python docs, fixed part style.
authored
306 - added support for context binding that does not require the use of
307 the with statement for playing in the console.
308 - the request context is now available within the with statement making
309 it possible to further push the request context or pop it.
6913dc1 @mitsuhiko Added missing changelog entry
authored
310 - added support for configurations.
35ed617 @mitsuhiko Added support for flashing categories.
authored
311
260b4df @mitsuhiko Added changelog, restructured docs a bit.
authored
312 Version 0.2
313 -----------
314
7698c3f @mitsuhiko This will become 0.4
authored
315 Released on May 12th 2010, codename Jägermeister
260b4df @mitsuhiko Added changelog, restructured docs a bit.
authored
316
317 - various bugfixes
318 - integrated JSON support
319 - added :func:`~flask.get_template_attribute` helper function.
320 - :meth:`~flask.Flask.add_url_rule` can now also register a
321 view function.
b0ab127 @mitsuhiko Added logo with new slogan
authored
322 - refactored internal request dispatching.
9cf2ea2 @mitsuhiko Documented hostname change.
authored
323 - server listens on 127.0.0.1 by default now to fix issues with chrome.
75461c1 @mitsuhiko Added _external support to url_for
authored
324 - added external URL support.
2d87e9b @mitsuhiko Added support for send_file
authored
325 - added support for :func:`~flask.send_file`
b93ec14 @mitsuhiko Documented module changes in CHANGES
authored
326 - module support and internal request handling refactoring
327 to better support pluggable applications.
b0ab127 @mitsuhiko Added logo with new slogan
authored
328 - sessions can be set to be permanent now on a per-session basis.
329 - better error reporting on missing secret keys.
330 - added support for Google Appengine.
260b4df @mitsuhiko Added changelog, restructured docs a bit.
authored
331
332 Version 0.1
333 -----------
334
335 First public preview release.
Something went wrong with that request. Please try again.