Skip to content

Releases: alexgaribay/sendgrid_elixir

v2.0.0

15 Mar 14:26
Compare
Choose a tag to compare

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()}.

v1.8.0

19 Jan 05:15
Compare
Choose a tag to compare

Enhancements

  • Raise runtime error whenever API isn't configured whenever making an API call

Fixes

  • custom headers are properly sent when V3 of the SendGrid API

v1.7.0

12 Sep 04:10
Compare
Choose a tag to compare

Enhancements

  • Add add/1, all_recipients/3, and delete_recipient/2 to SendGrid.Contacts.Lists
  • Remove compile warnings for Phoenix.View

v.1.6.0

15 Jul 01:40
Compare
Choose a tag to compare

Enhancements

  • Relax dependency versions
  • add put_phoenix_layout/2 in SendGrid.Email to render views in

Breaking Changes

  • put_phoenix_template/3 now expects an atom for implicit template rendering

v1.5.0

04 Jul 01:55
Compare
Choose a tag to compare

Enhancements

  • update docs
  • upgrade to Elixir 1.4
  • add support for Phoenix Views

v1.4.0

16 Feb 01:28
Compare
Choose a tag to compare

Enhancements

  • update httpoison to 0.11.0 and poison to 3.0
  • clean up compiler warnings when using Elixir 1.3

v1.3.0

05 Nov 17:54
Compare
Choose a tag to compare

Changes

  • Enhancements
    • add add_custom_arg for custom arguments
    • remove raise when no API key is provided at compile-time

v1.2.0

28 Sep 14:21
Compare
Choose a tag to compare

Changes

  • Enhancements
    • add add_attachment for attachments
    • bump :poison version to 2

v1.1.0

31 Aug 03:00
Compare
Choose a tag to compare

Changes

  • Enhancements
    • add add_header to be sent with an email

v1.0.3

03 Aug 14:12
Compare
Choose a tag to compare

Changes

  • Fixes
    • replace documentation using to put_to with add_to