Newsletters 0.1.9: Old newsletter lists retire in favour of CRM lists
Newsletters 0.1.9 completes the move of newsletter audiences to CRM lists and roles. The module’s own lists are gone: core migration V156 moves every old newsletter list into the CRM module and drops the old tables.
What is removed
The Lists, New list, Edit list and List members admin pages are gone, and a broadcast can no longer target an old newsletter list. Broadcasts now go to a CRM list or to roles. An unsubscribe link from an email sent to an old list still opens a page saying the link is invalid or expired, instead of crashing.
Role audiences on the details page
A broadcast aimed at roles now shows its audience on the details page: the role names as they were when it was sent, with a Roles badge, and a warning when a targeted role has since been deleted. Before, that card was blank.
Role audiences are also counted with one query instead of one per user, which matters in the editor, where the count updates on every role click.
Upgrading
Newsletters 0.1.9 needs PhoenixKit core 1.7.207 or later. Run core’s migrations to apply V156, which moves your lists into CRM.
Full release notes: Newsletters 0.1.9
0.1.9 · 22 July 2026
Removed
- The legacy list system (companion to core V156, which migrated every legacy newsletters list into CRM and dropped
phoenix_kit_newsletters_lists,..._list_members, andbroadcasts.list_uuid): the list management admin UI, thenewsletters_listbroadcast source end to end (editor,Broadcaster,DeliveryWorker,UnsubscribeController), and theList/ListMemberschemas. Requires core>= 1.7.207(V156); an already-delivered legacy unsubscribe link still resolves to a friendly “invalid or expired” page instead of a crash.
Added
- The broadcast details page now shows the recipient source for
user_group(role-sourced) broadcasts too — the frozen role-names snapshot with a “Roles” badge, plus a stale-roles warning when a targeted role has since been deleted. Previously this card rendered blank for role-sourced broadcasts.
Fixed
UserGroupSource.sendable_recipients/1andpreflight/1(the latter recomputed on every role-checkbox click in the broadcast editor) now issue one batched CRM contacts query instead of one query per resolved user.Broadcasts,BroadcastDetails, andPreferenceCenterLiveresolved viewer timezone/contact state frommount/3instead ofhandle_params/3— sincemount/3runs twice per connection (disconnected + connected render), this doubled an uncached settings query in the first two, and inPreferenceCenterLivecould run the account-linking CRM contact write during a disconnected GET. All three now resolve inhandle_params/3, matching the existing pattern inBroadcastEditor.
Newsletters 0.1.9. Install or update: {:phoenix_kit_newsletters, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.