Django-js-asset

Latest version: v3.1.0

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

Scan your dependencies

Page 1 of 2

3.1

~~~~~~~~~~~~~~~~

- Made the ``id`` argument to ``JSON`` keyword-only. Also made the ``inline``
argument to ``CSS`` keyword-only.
- Added the ``media`` attribute to ``CSS`` classes.
- Added experimental support for shipping importmaps.

3.0

~~~~~~~~~~~~~~~~

- Rewrite the internals using dataclasses, drop compatibility with Django < 4.2
and Python < 3.10.
- Added a ``CSS`` and ``JSON`` class which can also be used with
``forms.Media``. It's recommended to pass them as JavaScript entries to
``forms.Media(js=[])`` because the ``js`` list doesn't use a media
dictionary.
- Added Django 5.1, Python 3.13.

2.2

~~~~~~~~~~~~~~~~

- Started running the tests periodically to detect breakages early.
- Added Django 5.0, Python 3.12.
- Fixed building with hatchling 1.19. Thanks Michał Górny!

2.1

~~~~~~~~~~~~~~~~

- Added Django 4.1, 4.2 and Python 3.11 to the CI.
- Removed the pytz dependency from the tests.
- Dropped Python < 3.8, Django < 3.2 from the CI.
- Switched to hatchling and ruff.

2.0

~~~~~~~~~~~~~~~~~~~

.. _2.0: https://github.com/matthiask/django-js-asset/compare/1.2...2.0

- Raised the minimum supported versions of Python to 3.6, Django to 2.2.
- Added pre-commit.
- Replaced the explicit configuration of whether ``static()`` should be used or
not with automatic configuration. The ``static`` argument is still accepted
but ignored and will be removed at a later time.
- Added support for boolean attributes when using Django 4.1 or better.

1.2.2

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

- Made ``JS()`` objects hashable so that they can be put into sets in
preparation for a possible fix for media ordering in Django 30179.
- Confirmed support for Django 3.0 and 3.1a1.
- Django dropped ``type="text/javascript"`` in 3.1, changed our tests to
pass again.
- Switched from Travis CI to GitHub actions.
- Dropped Django 1.7 from the CI jobs list because it somehow didn't
discover our tests.
- Renamed the main branch to ``main``.
- Added CI testing for Django 3.2.

Page 1 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.