PhoenixKit 1.7.186: The update task registers both asset compilers
PhoenixKit 1.7.186 fixes mix phoenix_kit.install and mix phoenix_kit.update on apps where only one of PhoenixKit’s two asset compilers ended up in mix.exs, so the JavaScript fix of 1.7.185 never ran.
The two compilers, one for CSS and one for JavaScript, were added to the :compilers list in two separate steps. When the list did not exist yet, the second step failed with only a warning in the output, so some older apps got the CSS compiler and never the JavaScript one. Both are now added in one step, and an app already stuck in that state is repaired.
Upgrading
Update the dependency and run mix phoenix_kit.update, then check that mix.exs lists :phoenix_kit_js_sources among its compilers.
Full release notes: PhoenixKit 1.7.186
1.7.186 · 12 July 2026
Fixed
- The 1.7.185
phoenix_kit.jsself-heal never ran on hosts whosemix.exswas missing the:phoenix_kit_js_sourcescompiler — exactly the older installs that need it most. Root cause (found by a downstream agent bisecting a host stuck on stale JS after upgrading): registering:phoenix_kit_css_sourcesand:phoenix_kit_js_sourceswas two SEPARATEIgniter.Project.MixProject.update/4calls against the samemix.exs:compilerskey. The first call, hitting an absent key, has to insert[atom] ++ Mix.compilers()— a++call, not a literal list, sinceMix.compilers()is a live call that can’t be flattened at install time. The second call then lands on that++node instead of a list, andIgniter.Code.List.prepend_new_to_list/2(which only understands literal lists) silently fails into a{:warning, ...}easy to miss in the wall ofmix phoenix_kit.update/installoutput — so the second compiler never actually got registered even though the run reported success. This is exactly what happened in production: a host had:phoenix_kit_css_sourcesfrom the first call but never:phoenix_kit_js_sourcesfrom the second, across manyphoenix_kit.updateruns, so the JS-hooks compiler (and therefore 1.7.185’s vendoring fix) never ran.PhoenixKit.Install.Common.ensure_compilers_registered/2now registers every PhoenixKit compiler in ONE call — used by bothmix phoenix_kit.installandmix phoenix_kit.update— and, for hosts already stuck in the broken[atom] ++ Mix.compilers()shape, descends into the literal list on the left of++and repairs it there instead of bailing. Covered by a regression test that reproduces the exact broken shape and asserts both compilers end up present, not just the notice claiming they do.
PhoenixKit 1.7.186. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.