Debian Codegraph @

CHANGELOG

raw
1 Changelog
2 =========
3
4 This document describes changes between past releases. For information about
5 future releases, check `milestones`_ and :doc:`/about/vision`.
6
7
8 2.4 (2024-08-05)
9 ----------------
10
11 - Drop support for Python 3.6
12 - Escape malicious filenames
13 - Handle headers in XAccel responses
14
15
16 2.3 (2022-01-11)
17 ----------------
18
19 - Drop Django 3.0 support
20 - Add Django 3.2 support
21 - Add support for Python 3.10
22 - Add support for Django 4.0
23 - Remove support for Python 3.5 and Django 1.11
24 - Add support for Python 3.9 and Django 3.1
25 - Remove old urls syntax and adopt the new one
26 - Move the project to the jazzband organization
27 - Adopt black automatic formatting rules
28
29
30 2.1.1 (2020-01-14)
31 ------------------
32
33 - Fix missing function parameter. (#152)
34
35
36 2.1 (2020-01-13)
37 ----------------
38
39 - Add a SignedFileSystemStorage that signs file URLs for clients. (#151)
40
41
42 2.0 (2020-01-07)
43 ----------------
44
45 - Drop support for Python 2.7.
46 - Add black and isort.
47
48
49 1.10 (2020-01-07)
50 -----------------
51
52 - Introduced support from Django 1.11, 2.2 and 3.0.
53 - Drop support of Django 1.5, 1.6, 1.7, 1.8, 1.9, 1.10, 2.0 and 2.1
54
55
56 1.9 (2016-03-15)
57 ----------------
58
59 - Feature #112 - Introduced support of Django 1.9.
60
61 - Feature #113 - Introduced support of Python 3.5.
62
63 - Feature #116 - ``HTTPFile`` has ``content_type`` property. It makes
64 ``HTTPDownloadView`` proxy ``Content-Type`` header from remote location.
65
66
67 1.8 (2015-07-20)
68 ----------------
69
70 Bugfixes.
71
72 - Bugfix #103 - ``PathDownloadView.get_file()`` makes a single call to
73 ``PathDownloadView.get_file()`` (was doing it twice).
74
75 - Bugfix #104 - Pass numeric timestamp to Django's ``was_modified_since()``
76 (was passing a datetime).
77
78
79 1.7 (2015-06-13)
80 ----------------
81
82 Bugfixes.
83
84 - Bugfix #87 - Filenames with commas are now supported. In download responses,
85 filename is now surrounded by double quotes.
86
87 - Bugfix #97 - ``HTTPFile`` proxies bytes as ``BytesIteratorIO`` (was undecoded
88 urllib3 file object). ``StringIteratorIO`` has been split into
89 ``TextIteratorIO`` and ``BytesIteratorIO``. ``StringIteratorIO`` is
90 deprecated but kept for backward compatibility as an alias for
91 ``TextIteratorIO``.
92
93 - Bugfix #92 - Run demo using ``make demo runserver`` (was broken).
94
95 - Feature #99 - Tox runs project's tests with Python 2.7, 3.3 and 3.4, and with
96 Django 1.5 to 1.8.
97
98 - Refactoring #98 - Refreshed development environment: packaging, Tox and
99 Sphinx.
100
101
102 1.6 (2014-03-03)
103 ----------------
104
105 Python 3 support, development environment refactoring.
106
107 - Feature #46: introduced support for Python>=3.3.
108
109 - Feature #80: added documentation about "how to serve a file inline VS how to
110 serve a file as attachment". Improved documentation of views' base options
111 inherited from ``DownloadMixin``.
112
113 - Feature #74: the Makefile in project's repository no longer creates a
114 virtualenv. Developers setup the environment as they like, i.e. using
115 virtualenv, virtualenvwrapper or whatever. Tests are run with tox.
116
117
118 1.5 (2013-11-29)
119 ----------------
120
121 X-Sendfile support and helpers to migrate for `django-sendfile`.
122
123 - Feature #2 - Introduced support of Lighttpd's x-Sendfile.
124
125 - Feature #36 - Introduced support of Apache's mod_xsendfile.
126
127 - Feature #41 - ``django_downloadview.sendfile`` is a port of
128 `django-sendfile`'s ``sendfile`` function. The documentation contains notes
129 about migrating from `django-sendfile` to `django-downloadview`.
130
131
132 1.4 (2013-11-24)
133 ----------------
134
135 Bugfixes and documentation features.
136
137 - Bugfix #43 - ``ObjectDownloadView`` returns HTTP 404 if model instance's file
138 field is empty (was HTTP 500).
139
140 - Bugfix #7 - Special characters in file names (``Content-Disposition`` header)
141 are urlencoded. An US-ASCII fallback is also provided.
142
143 - Feature #10 - `django-downloadview` is registered on djangopackages.com.
144
145 - Feature #65 - INSTALL documentation shows "known good set" (KGS) of versions,
146 i.e. versions that have been used in test environment.
147
148
149 1.3 (2013-11-08)
150 ----------------
151
152 Big refactoring around middleware configuration, API readability and
153 documentation.
154
155 - Bugfix #57 - ``PathDownloadView`` opens files in binary mode (was text mode).
156
157 - Bugfix #48 - Fixed ``basename`` assertion in ``assert_download_response``:
158 checks ``Content-Disposition`` header.
159
160 - Bugfix #49 - Fixed ``content`` assertion in ``assert_download_response``:
161 checks only response's ``streaming_content`` attribute.
162
163 - Bugfix #60 - ``VirtualFile.__iter__`` uses ``force_bytes()`` to support both
164 "text-mode" and "binary-mode" content.
165 See https://code.djangoproject.com/ticket/21321
166
167 - Feature #50 - Introduced ``django_downloadview.DownloadDispatcherMiddleware``
168 that iterates over a list of configurable download middlewares. Allows to
169 plug several download middlewares with different configurations.
170
171 This middleware is mostly dedicated to internal usage. It is used by
172 ``SmartDownloadMiddleware`` described below.
173
174 - Feature #42 - Documentation shows how to stream generated content (yield).
175 Introduced ``django_downloadview.StringIteratorIO``.
176
177 - Refactoring #51 - Dropped support of Python 2.6
178
179 - Refactoring #25 - Introduced ``django_downloadview.SmartDownloadMiddleware``
180 which allows to setup multiple optimization rules for one backend.
181
182 Deprecates the following settings related to previous single-and-global
183 middleware:
184
185 * ``NGINX_DOWNLOAD_MIDDLEWARE_MEDIA_ROOT``
186 * ``NGINX_DOWNLOAD_MIDDLEWARE_MEDIA_URL``
187 * ``NGINX_DOWNLOAD_MIDDLEWARE_EXPIRES``
188 * ``NGINX_DOWNLOAD_MIDDLEWARE_WITH_BUFFERING``
189 * ``NGINX_DOWNLOAD_MIDDLEWARE_LIMIT_RATE``
190
191 - Refactoring #52 - ObjectDownloadView now inherits from SingleObjectMixin and
192 BaseDownloadView (was DownloadMixin and BaseDetailView).
193 Simplified DownloadMixin.render_to_response() signature.
194
195 - Refactoring #40 - Documentation includes examples from demo project.
196
197 - Refactoring #39 - Documentation focuses on usage, rather than API. Improved
198 narrative documentation.
199
200 - Refactoring #53 - Added base classes in ``django_downloadview.middlewares``,
201 such as ``ProxiedDownloadMiddleware``.
202
203 - Refactoring #54 - Expose most Python API directly in `django_downloadview`
204 package. Simplifies ``import`` statements in client applications.
205 Splitted nginx module in a package.
206
207 - Added unit tests, improved code coverage.
208
209
210 1.2 (2013-05-28)
211 ----------------
212
213 Bugfixes and documentation improvements.
214
215 - Bugfix #26 - Prevented computation of virtual file's size, unless the file
216 wrapper implements was_modified_since() method.
217
218 - Bugfix #34 - Improved support of files that do not implement modification
219 time.
220
221 - Bugfix #35 - Fixed README conversion from reStructuredText to HTML (PyPI).
222
223
224 1.1 (2013-04-11)
225 ----------------
226
227 Various improvements.
228 Contains **backward incompatible changes.**
229
230 - Added HTTPDownloadView to proxy to arbitrary URL.
231
232 - Added VirtualDownloadView to support files living in memory.
233
234 - Using StreamingHttpResponse introduced with Django 1.5. Makes Django 1.5 a
235 requirement!
236
237 - Added ``django_downloadview.test.assert_download_response`` utility.
238
239 - Download views and response now use file wrappers. Most logic around file
240 attributes, formerly in views, moved to wrappers.
241
242 - Replaced DownloadView by PathDownloadView and StorageDownloadView. Use the
243 right one depending on the use case.
244
245
246 1.0 (2012-12-04)
247 ----------------
248
249 - Introduced optimizations for Nginx X-Accel: a middleware and a decorator
250 - Introduced generic views: DownloadView and ObjectDownloadView
251 - Initialized project
252
253
254 .. rubric:: Notes & references
255
256 .. target-notes::
257
258 .. _`milestones`: https://github.com/jazzband/django-downloadview/milestones