Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update whitenoise to 6.7.0 #498

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pyup-bot
Copy link
Collaborator

This PR updates whitenoise from 5.3.0 to 6.7.0.

Changelog

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.

6.0.0

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

* Drop support for Python 3.5 and 3.6.

* Add support for Python 3.9 and 3.10.

* Drop support for Django 1.11, 2.0, and 2.1.

* Add support for Django 4.0.

* Import new MIME types from Nginx, changes:

- ``.avif`` files are now served with the ``image/avif`` MIME type.

- Open Document files with extensions ``.odg``, ``.odp``, ``.ods``, and ``.odt`` are now served with their respective ``application/vnd.oasis.opendocument.*`` MIME types.

* The ``whitenoise.__version__`` attribute has been removed.
Use ``importlib.metadata.version()`` to check the version of Whitenoise if you need to.

* Requests using the ``Range`` header can no longer read beyond the end of the requested range.

Thanks to Richard Tibbles in `PR 322 <https://github.com/evansd/whitenoise/pull/322>`__.

* Treat empty and ``"*"`` values for ``Accept-Encoding`` as if the client doesn’t support any encoding.

Thanks to Richard Tibbles in `PR 323 <https://github.com/evansd/whitenoise/pull/323>`__.
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.

None yet

1 participant