Skip to content

Catalogue 0.12.2: Code clean-up, no change for a running site

Catalogue 0.12.2 is a code clean-up release. No change for a running site.

The mix phoenix_kit_catalogue.audit_supplier_refs task was split into smaller functions so it passes the project’s strict code checks, with the same behaviour. Update the dependency when convenient.

Full release notes: Catalogue 0.12.2

0.12.2 · 20 July 2026

Fixed

  • mix precommit was failing credo --strict — mix.tasks.phoenix_kit_catalogue.audit_supplier_refs‘s audit_junction_rows/2 exceeded the nesting-depth and cyclomatic-complexity limits; split into per-source-pattern-matched resolve_junction_row/3 and a bucket_junction_result/2 reducer, same behavior. The remaining apply/2,3 calls to the optional PhoenixKitCRM.PartyRoles module (in this task and in Catalogue.Suppliers) are intentional — they avoid a hard compile-time reference to a soft dependency that may not be present — so they’re marked credo:disable-for-next-line instead of being rewritten.

Notes

  • Verification: mix format, mix compile --warnings-as-errors, mix credo --strict, and mix dialyzer are all clean. mix test could not be run in this environment (no local Postgres).

Catalogue 0.12.2. Install or update: {:phoenix_kit_catalogue, "~> 0.12"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.