All notable changes to this project are documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[0.7.1] - 2026-11-17
Fixed
SwooshCloudflare.Queues.pull/3sets:eventonly for Email Sending envelopes (cf.email.sending.*); other queue messages getnil.- README: the Queues example now builds the acknowledged and retried lease ids it uses.
[0.7.0] - 2026-11-17
Added
SwooshCloudflare.Subdomainsto list, get, create, update and delete sending subdomains and to fetch their DNS records. (#21)SwooshCloudflare.Event, a struct andparse/1for Email Sending lifecycle events. (#20)SwooshCloudflare.Queues, an HTTP pull consumer (pull/3,ack/4) for receiving those events from a Cloudflare Queue. (#20)SwooshCloudflare.Analyticswithquery/3for the GraphQL Analytics API andmessage_events/4to look up the events of one message. GraphQLerrorsare returned as{:error, {status, :graphql_error, errors}}. (#22)
Changed
- The internal HTTP client can now call any path under
:base_url, not only/accounts/{account_id}/email/sending. Existing behavior, error shapes and telemetry are unchanged. The new modules report the full path after the base URL in the[:swoosh_cloudflare, :request]telemetry metadata.
0.6.0 - 2026-11-17
Changed
- Minimum Elixir is now 1.16, matching Swoosh.
Added
:req_optionsconfig, merged into theReqoptions of every request (proxy, Finch pool,retry, timeouts,Req.Testplugs). Precedence is library defaults <:req_options< per-call options. (#15)Swoosh.Email.provider_optionsare merged into the JSON payload as an escape hatch for API fields the adapter does not map yet. (#15)- Validation of custom headers before any request: platform-controlled headers and headers that have a dedicated API field are rejected with
{:error, {:invalid_header, name, reason}}. (#16) SwooshCloudflare.put_list_unsubscribe/3for one-click unsubscribe headers. (#16)Telemetry span
[:swoosh_cloudflare, :request, :start | :stop | :exception]around every HTTP request.telemetryis now a direct dependency. (#17):max_concurrencyconfig fordeliver_many/2. (#18)- Public types
Swoosh.Adapters.Cloudflare.send_result/0andSwoosh.Adapters.Cloudflare.error/0. (#19) LICENSE,CHANGELOG.md, CI workflow, Credo and Dialyxir. (#19)
Changed
deliver_many/2task timeout is now the effectivereceive_timeoutplus 5 seconds, instead of a fixed 30 seconds. (#18)
0.5.1 - 2026-11-17
Fixed
- Raise
Swoosh.AttachmentContentErrorfor attachments without content. - Fall back on the HTTP status when the error code is unknown.
- Inline attachments fall back to the filename as
content_id, and attachment content is read through Swoosh. - Accept a list of addresses in
reply_to. deliver_many/2returns{:ok, results}.
Documentation
- Document
api_client: falseandruntime.exsconfiguration.
0.5.0 - 2026-11-16
Added
SwooshCloudflare.send_raw/4to send pre-built MIME messages. (#7)SwooshCloudflare.Suppressionsmodule to manage the suppression list. (#6)
Changed
- Share request handling between the adapter,
send_raw/4andSuppressionsin a single client.
Removed
- Placeholder
hello/0function.
0.4.0 - 2026-11-16
Added
- Send message ID and
suppressed_recipientsin the success result. (#3) - Send named addresses as
{address, name}objects. (#4)
Fixed
- Send
content_idfor inline attachments. (#2)
Documentation
- Update limits and examples. (#5)
0.3.1 - 2026-11-16
Changed
- Dependency and version bump only.
0.3.0 - 2026-11-16
Changed
- Map error codes per Cloudflare's documentation, keep the response body in error tuples and never raise on HTTP errors. (#1)
Fixed
- Correct attachment fields to match the REST API spec.
Documentation
- Clarify that telemetry works out of the box via
Swoosh.Mailer.