Skip to content

PhoenixKit 2.37.1: Compiles again on Elixir 1.18 with OTP 28

PhoenixKit 2.37.1 fixes 2.37.0 for apps on Elixir 1.18 with OTP 28, where it did not compile at all.

The code that reads a photo’s capture date from its file name kept its patterns in a form that Elixir 1.18 cannot build on OTP 28, so the build stopped with cannot inject attribute @filename_patterns. The patterns are the same and are now built another way. Nothing else changes; apps on other versions can update as usual.

Full release notes: PhoenixKit 2.37.1

2.37.1 · 22 September 2026

Fixed

  • 2.37.0 did not compile on Elixir 1.18 / OTP 28 (#856, #855). Storage.CaptureDate kept its file-name date patterns as a list of ~r sigils in a module attribute; on OTP 28 a compiled regex carries a reference that Elixir 1.18 cannot escape into a function body, so every host on that toolchain failed with cannot inject attribute @filename_patterns. The list is now built in a private function — same patterns, no behaviour change.

PhoenixKit 2.37.1. Install or update: {:phoenix_kit, "~> 2.37"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.