sendgrid v2.0.0 Release Notes

Release Date: 2019-03-15 // about 5 years ago
  • โœจ Enhancements

    • Switch from using HTTPoison to using Tesla
    • Switch from using Poison to Jason 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 to SendGrid.Mail to better reflect the actual shape of SendGrid's API structure
    • SendGrid.Contacts.Recipients.add now requires a recipient to be built with SendGrid.Contacts.Recipient.build/2
    • SendGrid.Contacts.Lists.add returns {:ok, map()} instead of {:ok, integer()}.

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