Skip to content

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, and broadcasts.list_uuid): the list management admin UI, the newsletters_list broadcast source end to end (editor, Broadcaster, DeliveryWorker, UnsubscribeController), and the List/ListMember schemas. 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/1 and preflight/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, and PreferenceCenterLive resolved viewer timezone/contact state from mount/3 instead of handle_params/3 — since mount/3 runs twice per connection (disconnected + connected render), this doubled an uncached settings query in the first two, and in PreferenceCenterLive could run the account-linking CRM contact write during a disconnected GET. All three now resolve in handle_params/3, matching the existing pattern in BroadcastEditor.

Newsletters 0.1.9. Install or update: {:phoenix_kit_newsletters, "~> 0.1"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.