PhoenixKit 1.7.185: phoenix_kit.js survives a clean asset build
PhoenixKit 1.7.185 fixes production sites where PhoenixKit’s menus, drawers and modals stopped working after a deploy, because the core JavaScript file was missing.
phoenix_kit.js was copied into priv/static/assets/vendor/ only when mix phoenix_kit.install or mix phoenix_kit.update ran. A deploy that clears priv/static and rebuilds assets, as most pipelines do, shipped without it or with an old copy, and no error appeared anywhere. The :phoenix_kit_js_sources compiler now copies the file on every mix compile, so it comes back on its own.
mix phoenix_kit.update now stops with an error when the copy fails, instead of reporting success. mix phoenix_kit.assets.rebuild refreshes phoenix_kit.js too.
Full release notes: PhoenixKit 1.7.185
1.7.185 · 11 July 2026
Fixed
phoenix_kit.js(core JS hooks —RowMenu, drawer/modal toggles, etc.) could silently 404 in production, breaking every PhoenixKit JS hook with no error anywhere. It was only ever copied into a host’spriv/static/assets/vendor/by the one-shotFile.cp/2inmix phoenix_kit.install/mix phoenix_kit.update— a deploy that doesrm -rf priv/static+ asset rebuild without re-runningphoenix_kit.update(true of most CI/CD pipelines) shipped the stale or missing file, so a bug fix landing in this same JS file could ship correctly in every other respect (compiled.ex/.heexchanges apply the moment the dependency bumps) while the JS fix itself never reached the browser. The:phoenix_kit_js_sourcescompiler — which already regeneratedphoenix_kit_modules.js(the external-module hook bundle) on everymix compile— now also vendorsphoenix_kit.jsitself the same way: self-healing after anypriv/staticwipe, with zero dependency onphoenix_kit.updateever running again after the initial install.JsIntegration.update_js_file/0swallowed copy failures (rescue→Logger.warning→{:error, reason}that its one caller,mix phoenix_kit.update, never checked) —mix phoenix_kit.updatecould report success while the vendored file silently stayed stale or absent. Now raises (Mix.raise/1) on a resolution/copy failure and verifies the destination file exists and is non-empty as a post-condition.mix phoenix_kit.assets.rebuild— billed as the asset-rebuild task — now also refreshesphoenix_kit.jsvia the same path, not just the CSS pipeline.
PhoenixKit 1.7.185. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.