sendgrid v2.0.0 Release Notes
Release Date: 2019-03-15 // over 5 years ago-
โจ Enhancements
- Switch from using
HTTPoison
to usingTesla
- Switch from using
Poison
toJason
for JSON serialization SendGrid.Email
is now responsible for configuring its own JSON serialization- An API key can be set manually for any API call as a keyword option, bypassing the need for a global API key
- An API key can be set with the
{:system, "ENV_VAR"}
to use values at runtime - Add dialyzer for validing typespecs
- Add support for dynamic template data
- Add struct for handling Contact Recipient encoding
- Working config added for testing
- Add support for multiple personalizations in a single sent Email request
๐ Bug Fixes
- Typespecs are now correct
๐ฅ Breaking Changes
SendGrid.Mailer
has been renamed toSendGrid.Mail
to better reflect the actual shape of SendGrid's API structureSendGrid.Contacts.Recipients.add
now requires a recipient to be built withSendGrid.Contacts.Recipient.build/2
SendGrid.Contacts.Lists.add
returns{:ok, map()}
instead of{:ok, integer()}
.
- Switch from using
Previous changes from v1.8.0
-
โจ Enhancements
- Raise runtime error whenever API isn't configured whenever making an API call
๐ Bug Fixes
- custom headers are properly sent when V3 of the SendGrid API