Django-structlog

Latest version: v8.1.0

Safety actively analyzes 642283 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 10

4.1.1

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

*New:*
- Add :class:`django_structlog.middlewares.request_middleware_router` to choose automatically between Async or Sync middleware

*Rollbacks from 4.1.0:*
- Rollback ``RequestMiddleware`` not being a class anymore, its an internal ``SyncRequestMiddleware``

*Others:*
- Migrate project to ``pyproject.toml`` instead of ``setup.py``
- Add `asgi` server to demo project see :ref:`development`.

4.1.0

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

*New:*
- Add `async view <https://docs.djangoproject.com/en/4.1/topics/async/#async-views>`_ support. See `180 <https://github.com/jrobichaud/django-structlog/pull/180>`_. Special thanks to `DamianMel <https://github.com/DamianMel>`_.

*Changes:*
- ``RequestMiddleware`` is no longer a class but a function due to async view support. This should only affect projects using the middleware not as intended. If this cause you problems, please refer to this issue `183 <https://github.com/jrobichaud/django-structlog/issues/183>`_, `the documentation <https://django-structlog.readthedocs.io>`_ or feel free to open a new issue. Special thanks to `gvangool <https://github.com/gvangool>`_ for pointing that out.

*Others:*
- Add colours in log in the demo project. See `63bdb4d <https://github.com/jrobichaud/django-structlog/commit/63bdb4d>`_ to update your projects. Special thanks to `RoscoeTheDog <https://github.com/RoscoeTheDog>`_.
- Upgrade or remove various development packages

4.0.1

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

*New:*
- Add support to ``python`` 3.11. See `142 <https://github.com/jrobichaud/django-structlog/pull/142>`_. Special thanks to `jairhenrique <https://github.com/jairhenrique>`_.

4.0.0

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

See: :ref:`upgrade_4.0`

*Changes:*
- ``django-structlog`` will now on follow LTS versions of Python, Django, and Celery. See `110 <https://github.com/jrobichaud/django-structlog/pull/110>`_. Special thanks to `jairhenrique <https://github.com/jairhenrique>`_ for his convincing arguments.

*New:*
- You can now install ``django-structlog`` with ``celery`` extra. Specifying ``django-structlog[celery]==4.0.0`` in ``requirements.txt`` will make sure your ``celery``'s version is compatible.

*Others:*
- Upgrade or remove various development packages
- Upgrade local development environment from python 3.7 to 3.10 and from django 3.2 to django 4.1
- Added a `gh-pages <https://jrobichaud.github.io/django-structlog/>`_

3.0.1

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

*Fixes:*
- ``AttributeError`` with custom User without ``pk``. See `80 <https://github.com/jrobichaud/django-structlog/issues/80>`_. Special thanks to `mlegner <https://github.com/mlegner>`_.

*Others:*
- Add ``dependabot`` to manage dependencies. See `83 <https://github.com/jrobichaud/django-structlog/pull/83>`_. Special thanks to `jairhenrique <https://github.com/jairhenrique>`_.
- Upgrade various development packages

3.0.0

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

See: :ref:`upgrade_3.0`

*Changes:*
- ``django-structlog`` now uses ``structlog.contextvars`` instead of ``structlog.threadlocal``. See the upgrade guide for more information (:ref:`upgrade_3.0`) and `78 <https://github.com/jrobichaud/django-structlog/pull/78>`_. Special thanks to `AndrewGuenther <https://github.com/AndrewGuenther>`_ and `shimizukawa <https://github.com/shimizukawa>`_.
- removed ``django_structlog.processors.inject_context_dict``
- minimum requirements change to ``python`` 3.7+
- minimum requirements change to ``structlog`` 21.5

*New:*
- Add python 3.10, celery 5.2 and django 4.0 to the test matrix.

*Others:*
- Remove ``wrapper_class`` from the configuration

Page 3 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.