AI 0.17.1: No more deprecation warning on every compile
AI 0.17.1 removes a compile warning that host apps could not fix themselves. The module called Scope.admin?/1, which core deprecated in favour of Scope.can_access_admin_area?/1, so every compile of the library printed a deprecation warning.
It now calls the new name. The old one only passed the call on, so nothing behaves differently.
Upgrading
AI 0.17.1 needs PhoenixKit 1.7.214 or later, the first release with can_access_admin_area?/1.
Full release notes: AI 0.17.1
0.17.1 · 27 July 2026
Changed
- Stop calling the deprecated
PhoenixKit.Users.Auth.Scope.admin?/1.PhoenixKitAI.Web.AuthHelpers.admin?/1now callsScope.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. Our ownAuthHelpers.admin?/1keeps its name (it feeds the"admin" | "user"actor_rolestring inactor_opts/1), but its doc now states what it actually reports: admin-area access, true for any permission holder rather than only the Admin role. - Dependency floor raised to
phoenix_kit >= 1.7.214—can_access_admin_area?/1does not exist below it, so an older core would be anUndefinedFunctionErrorat call time rather than a warning.
AI 0.17.1. Install or update: {:phoenix_kit_ai, "~> 0.17"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.