Emails 0.2.0: The email module moves to PhoenixKit 2.0
Emails 0.2.0 moves the PhoenixKit email module to PhoenixKit 2.0. The module itself works as before: this release only changes which PhoenixKit it installs with.
No change in the module
The admin pages, sending, tracking and settings are the same as in 0.1.23. The only other change is a stronger test around the SES webhook, which changes nothing on a running site.
Upgrading
Emails 0.2 needs PhoenixKit 2.0 and no longer installs alongside core 1.7, so the work is in upgrading PhoenixKit itself.
PhoenixKit 2.0 squashes its migrations into one starting point, V135, and mix ecto.migrate refuses to run on a database below it. Before you update, run mix phoenix_kit.status. If the database is below V135, first install phoenix_kit 1.7.236, the last release with the full migration chain, and migrate until the reported version is at least V135. Only then move to PhoenixKit 2.0 and Emails 0.2.
The email module has no migration of its own in this release.
Full release notes: Emails 0.2.0
0.2.0 · 10 August 2026
Changed
-
⚠️ Requires
phoenix_kit ~> 2.0. The core pin moved to~> 2.0, so this release no longer resolves against core 1.7.Core 2.0.0 squashes the migration chain into a single
V135baseline and makes V135 the chain’s floor:mix ecto.migratenow refuses on a database below it rather than migrating. Checkmix phoenix_kit.statusbefore upgrading. A host below V135 must installphoenix_kit 1.7.236— the migration bridge, the last release carrying the full pre-squash chain — migrate until the reported version is at least V135, and only then move to 2.0.This package does not call migration internals, so the change is the pin itself.
Added
- The webhook CSRF regression test now pins the before state too (PR #28).
A fixture router wires the webhook through a
:browserpipeline withprotect_from_forgery— the exact shape the bug had — and asserts a cold POST raisesInvalidCSRFTokenError. The previous test asserted only that a cold POST returns 200, which would also pass if the route had never gone through:browserat all; it silently depended onRoutes.generate/1staying broken to mean anything.
Emails 0.2.0. Install or update: {:phoenix_kit_emails, "~> 0.2"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.