Django-htmx-okayjack

Latest version: v2.0.2

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

Scan your dependencies

2.0.2

===================

Improvements
------------

* Added ``hx-fire-*`` attribute as a shorthand for ``hx-fire-after-receive``. This can be used in the html markup. Also added success and error variants for this shorthand.
* Added ``fire`` kwarg to the various Hx response classes as a shorthand for ``fire_after_receive``


Bug fixes
---------

* HxResponse context was being passed to HttpResponse (which doesn't support context)
* Updated tests to include context parameter

2.0

=================

Breaking change
---------------

* The ``hx-trigger-after-*`` (and the success and error variants) have been renamed to ``hx-fire-after-*``. Version 1's API avoided introducing a new term ("fire") so it could match the htmx API https://htmx.org/headers/hx-trigger/ but that made the markup a bit confusing for newcomers - so we're going to use ``fire`` now.

Improvements
------------

* Added a 'do-nothing' attribute. i.e. hx-do-nothing, hx-success-do-nothing, hx-error-do-nothing. This can be useful for being explicit about behaviour. e.g. hx-error-block="main_form" hx-error-target="index.htmlmainform" hx-success-do-nothing.
* Added tests, refactored code, fixed bugs

1.0

=================

* First PyPI release

Links

Releases

Has known vulnerabilities

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.