Skip to content

Conversation

@pyup-bot
Copy link
Collaborator

This PR updates whitenoise from 6.0.0 to 6.11.0.

Changelog

6.11.0

-------------------

* Support Django 6.0.

6.10.0

-------------------

* Support Python 3.14.

6.9.0

------------------

* Support Django 5.2.

6.8.2

------------------

* Fix compression speed gains for the thread pool when running Django’s ``collectstatic``.
The thread pool had no effect due to use of a generator for the results, a refactoring introduced when reviewing the initial PR.

Thanks to Petr Přikryl for the investigation and fix in `PR 616 <https://github.com/evansd/whitenoise/pull/616>`__.

6.8.1

------------------

* Raise any errors from threads in the ``whitenoise.compress`` command.

Regression in 6.8.0.
Thanks to Tom Grainger for the spotting this with a `comment on PR 484 <https://github.com/evansd/whitenoise/pull/484#discussion_r1818989096>`__.

6.8.0

------------------

* Drop Django 3.2 to 4.1 support.

* Drop Python 3.8 support.

* Support Python 3.13.

* Fix a bug introduced in version 6.0.0 where ``Range`` requests could lead to database connection errors in other requests.

Thanks to Per Myren for the detailed investigation and fix in `PR 612 <https://github.com/evansd/whitenoise/pull/612>`__.

* Use Django’s |FORCE_SCRIPT_NAME|__ setting correctly.
This reverts a change from version 5.3.0 that added a call to Django’s |get_script_prefix() method|__ outside of the request-response cycle.

.. |FORCE_SCRIPT_NAME| replace:: ``FORCE_SCRIPT_NAME``
__ https://docs.djangoproject.com/en/stable/ref/settings/#std:setting-FORCE_SCRIPT_NAME

.. |get_script_prefix() method| replace:: ``get_script_prefix()`` method
__ https://docs.djangoproject.com/en/stable/ref/urlresolvers/#django.urls.get_script_prefix

Thanks to Sarah Boyce in `PR 486 <https://github.com/evansd/whitenoise/pull/486>`__.

* Compress files using a thread pool.
This speeds up the compression step up to four times in benchmarks.

Thanks to Anthony Ricaud in `PR 484 <https://github.com/evansd/whitenoise/pull/484>`__.

6.7.0

------------------

* Support Django 5.1.

6.6.0

------------------

* Support Django 5.0.

* Drop Python 3.7 support.

6.5.0

------------------

* Support Python 3.12.

* Changed documentation site URL from ``https://whitenoise.evans.io/`` to ``https://whitenoise.readthedocs.io/``.

6.4.0

------------------

* Support Django 4.2.

* Remove further support for byte strings from the ``root`` and ``prefix`` arguments to ``WhiteNoise``, and Django’s ``STATIC_ROOT`` setting.
Like in the previous release, this seems to be a remnant of Python 2 support.
Again, this change may be backwards incompatible for a small number of projects, but it’s unlikely.
Django does not support ``STATIC_ROOT`` being a byte string.

6.3.0

------------------

* Add some video file extensions to be ignored during compression.
Since such files are already heavily compressed, further compression rarely helps.

Thanks to Jon Ribbens in `PR 431 <https://github.com/evansd/whitenoise/pull/431>`__.

* Remove the behaviour of decoding byte strings passed for settings that take strings.
This seemed to be left around from supporting Python 2.
This change may be backwards incompatible for a small number of projects.

* Document “hidden” feature of setting ``max_age`` to ``None`` to disable the ``Cache-Control`` header.

* Drop support for working as old-style Django middleware, as support was `removed in Django 2.0 <https://docs.djangoproject.com/en/dev/releases/2.0/#features-removed-in-2-0>`__.

6.2.0

------------------

* Support Python 3.11.

* Support Django 4.1.

6.1.0

------------------

* Drop support for Django 2.2, 3.0, and 3.1.
Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants