Skip to content

Releases: yaakovLowenstein/hx-requests

v0.40.1

14 Jan 20:42

Choose a tag to compare

Fix

  • Change HxRequestRegistry to use AST parsing and lazy imports (0f57ca7)

v0.40.0

30 Dec 15:42

Choose a tag to compare

Feature

  • Add support for nested subdirectories in hx_requests folder (e258c0e)

Documentation

  • Add documentation for nested subdirectories in hx_requests folder (3a0662f)

v0.39.0

28 Oct 20:59

Choose a tag to compare

Feature

  • Just to update version 🤦 (6a8bd6f)

Breaking

  • The attribute hx_requests_allow_additive on HtmxViewMixin has been renamed to use_global_hx_rules and its default value changed from False to True. Update your views accordingly. (6a8bd6f)

v0.38.2

27 Oct 20:27

Choose a tag to compare

Fix

  • Fix wrong named attribute for allowed_hx_requests in HtmxViewMixin (764d8cb)

v0.38.1

27 Oct 17:42

Choose a tag to compare

Fix

  • Fix bug in HxRequests allowlist logic (bf5f4d3)

v0.38.0

27 Oct 17:36

Choose a tag to compare

Feature

  • Add security controls for requiring authentication (d43ce23)
  • Change security contorls to be on view and not hxrequest class (b35fb01)

Breaking

  • The new setting HX_REQUESTS_REQUIRE_AUTH defaults to True, meaning that all HxRequests now require an authenticated user by default. Existing projects must explicitly set HX_REQUESTS_REQUIRE_AUTH = False in their settings to restore the previous behavior of allowing unauthenticated HxRequests or add HX_REQUESTS_UNAUTHENTICATED_ALLOW to specify which HxRequests are allowed without authentication. (d43ce23)
  • The security controls for HxRequests have been reworked. Instead of defining allowed apps and urls on the HxRequest class, views can now define an allow list of HxRequest names that are permitted to be used in that view. (b35fb01)

Documentation

  • Docs for securing HxRequests via authentication (d632c41)
  • Update docs to reflect per-view HxRequest controls (0d147e1)

v0.37.2

24 Oct 20:42

Choose a tag to compare

Fix

  • Strip app namespace from view names in urlname_from_request (c085240)

v0.37.1

24 Oct 17:08

Choose a tag to compare

Fix

  • Fix hx_name assignment in HtmxViewMixin (e8e0f42)

v0.37.0

24 Oct 16:49

Choose a tag to compare

Feature

  • Add security controls for HxRequests to enforce app boundaries (5fe7060)

Breaking

  • HxRequests are now restricted by default. Update settings and HxRequest classes to allow cross-app usage as needed. (5fe7060)

Documentation

v0.36.2

27 Aug 13:30

Choose a tag to compare

Fix

  • Set return types to HttpResponse in FormHxRequest (22cf268)