summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/changelog.txt10
-rw-r--r--docs/quickstart.txt7
-rw-r--r--docs/settings.txt7
-rw-r--r--docs/usage.txt19
4 files changed, 29 insertions, 14 deletions
diff --git a/docs/changelog.txt b/docs/changelog.txt
index 3d19a44..0f1a447 100644
--- a/docs/changelog.txt
+++ b/docs/changelog.txt
@@ -1,6 +1,16 @@
Changelog
=========
+v4.0 (2022-03-23)
+-----------------
+
+`Full Changelog <https://github.com/django-compressor/django-compressor/compare/3.1...4.0>`_
+
+- Fix intermittent No such file or directory errors by changing strategy to
+ deal with duplicate filenames in CompressorFileStorage
+- Deprecate SlimItFilter, stop testing it with Python 3.7 or higher
+
+
v3.1 (2021-12-18)
-----------------
diff --git a/docs/quickstart.txt b/docs/quickstart.txt
index 86d09c2..f6f23a4 100644
--- a/docs/quickstart.txt
+++ b/docs/quickstart.txt
@@ -64,13 +64,6 @@ Optional Dependencies
pip install html5lib
-- `Slim It`_
-
- For the :ref:`Slim It filter <slimit_filter>`
- ``compressor.filters.jsmin.SlimItFilter``::
-
- pip install slimit
-
- `Calmjs`_
For the :ref:`Calmjs filter <calmjs_filter>`
diff --git a/docs/settings.txt b/docs/settings.txt
index b164ad8..7b65b66 100644
--- a/docs/settings.txt
+++ b/docs/settings.txt
@@ -201,13 +201,6 @@ Backend settings
A filter that uses the jsmin implementation rJSmin_ to compress
JavaScript code (installed by default).
- .. _slimit_filter:
-
- - ``compressor.filters.jsmin.SlimItFilter``
-
- A filter that uses the jsmin implementation `Slim It`_ to compress
- JavaScript code.
-
.. _calmjs_filter:
- ``compressor.filters.jsmin.CalmjsFilter``
diff --git a/docs/usage.txt b/docs/usage.txt
index ac572c7..f038668 100644
--- a/docs/usage.txt
+++ b/docs/usage.txt
@@ -79,6 +79,25 @@ Result:
<script type="text/javascript" src="/static/CACHE/js/base.3f33b9146e12.js" charset="utf-8"></script>
+Javascript ``async`` and ``defer`` are supported:
+
+ .. code-block:: django
+
+ {% compress js %}
+ <script src="/static/js/one.js" async></script>
+ {% endcompress %}
+ {% compress js %}
+ <script src="/static/js/one.js" defer></script>
+ {% endcompress %}
+
+Result:
+
+ .. code-block:: django
+
+ <script async src="/static/CACHE/js/output.ccbb802fbf33.js"></script>
+ <script defer src="/static/CACHE/js/output.5bd495b0eb05.js"></script>
+
+
.. note::
Remember that django-compressor will try to :ref:`group outputs by media <css_notes>`.