sendgrid v2.0.0 Release Notes

Release Date: 2019-03-15 // about 1 year 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