Entities 0.2.9: No more deprecation warning from the admin check
Entities 0.2.9 stops calling a PhoenixKit function that had been renamed, which made every app using the module print a deprecation warning on each compile. Nothing changes in behaviour.
The admin pages for entities and the data navigator checked admin access with the old name of the function; they now use its new name, can_access_admin_area?/1. The old name only passed the call on to the new one, so who can open those pages is the same.
Upgrading
The module now needs PhoenixKit 1.7.214 or later, the first release with the new name.
Full release notes: Entities 0.2.9
0.2.9 · 27 July 2026
Changed
- Stop calling the deprecated
PhoenixKit.Users.Auth.Scope.admin?/1. All 16 call sites (13 inWeb.DataNavigator, 3 inWeb.Entities) now callScope.can_access_admin_area?/1, the name core renamed it to in phoenix_kit 1.7.214. The old name is a pure@deprecateddelegate to the new one, so no behavior changes — this only silences the deprecation warning host apps were eating on every compile of this library, with no way to fix it themselves.test/support/live_case.exdoc comments updated to match; note the predicate is true for any permission holder, not only the Admin role, which is why core renamed it. - Dependency floor raised to
phoenix_kit ~> 1.7.214(from~> 1.7.189) —can_access_admin_area?/1does not exist below it, so an older core would be anUndefinedFunctionErrorat call time rather than a warning. This mattered concretely here: the lockfile was resolving 1.7.210, below the new floor. - Dependency lockfile bumps:
phoenix_kit1.7.210 → 1.7.216,phoenix_live_view1.2.7 → 1.2.8,bandit1.12.0 → 1.12.4,igniter0.8.2 → 0.8.3,leaf0.3.0 → 0.3.2.
Fixed
test/test_helper.exsno longer aborts the entire suite on a machine with nopsqlclient on PATH.System.cmd/3raisesErlangErrorwhen the binary is absent rather than returning a non-zero tuple, so the existing_ -> :try_connectfallback — written for exactly this “couldn’t determine the DB via psql” case — could never fire, andmix testdied with:enoentbefore running a single test. Now rescued and routed to that same fallback.
Entities 0.2.9. Install or update: {:phoenix_kit_entities, "~> 0.2"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.