Skip to content

Releases: BenA-SA/drf-query-method

drf-query-method 0.3.0

Choose a tag to compare

@BenA-SA BenA-SA released this 30 Oct 21:29

Changed

  • On Django 4.2 to 6.1, add_query_method() (and so patch()) now treats QUERY as a safe method in Django's
    CsrfViewMiddleware, matching Django 6.2. QUERY requests no longer need a CSRF token on any supported version,
    including session-authenticated requests through DRF's SessionAuthentication.

Documentation

  • README and usage docs explain CSRF for QUERY, and the README no longer says the package is unreleased.

drf-query-method 0.2.0

Choose a tag to compare

@BenA-SA BenA-SA released this 30 Oct 20:29

Added

Changed

  • filter_params() caches its result on the request.

drf-query-method 0.1.0

Choose a tag to compare

@BenA-SA BenA-SA released this 30 Oct 20:01

These are the changes that will go out in the next release.

Added

  • patch(), which adds QUERY support to DRF in place, and to django-filter's DjangoFilterBackend when installed.
  • Opt-in routers, viewsets, filters, permissions, test clients and a django-filter backend, named after DRF's.
  • filter_params(), the URL query parameters with a QUERY request's body merged over them.
  • add_query_method(), which lets Django versions before 6.2 dispatch QUERY.
  • Documentation for both approaches, and for sending QUERY requests from clients.

drf-query-method started out as a project generated from Cookiecutter PyPackage containing:

  • Initial scaffold for drf-query-method.
  • src/drf_query_method/ package with a py.typed marker
  • Tests with pytest and pytest-django
  • CI via GitHub Actions: lint (Ruff), type check (ty), a Python/Django/DRF test matrix, coverage reporting
  • Security scanning: CodeQL analysis for public repositories, Dependabot, and a Zizmor workflow audit
  • Docs site with Zensical + mkdocstrings and a GitHub Pages deployment workflow
  • Trusted publishing to PyPI with OIDC and build provenance attestation
  • justfile with dev commands: qa, test, type-check, docs-serve, release
  • Issue templates, PR template, contributing guide, code of conduct, security policy
  • BSD 3-Clause license, .editorconfig, .gitignore

Contributors

@BenA-SA (Ben Atkinson) created drf-query-method.