Skip to content

Release v3.0.0

Compare
Choose a tag to compare
@thrawn01 thrawn01 released this 15 Jan 21:54
· 269 commits to master since this release

NOTE: This release introduces go module support and requires the latests golang version to support versioned import paths.

List of added methods

  • Added AddDomainIP()
  • Added ListDomainIPS()
  • Added DeleteDomainIP()
  • Added ListIPS()
  • Added GetIP()
  • Added GetDomainTracking()
  • Added GetDomainConnection()
  • Added UpdateDomainConnection()
  • Added CreateExport()
  • Added ListExports()
  • Added GetExports()
  • Added GetExportLink()
  • Added CreateTemplate()
  • Added GetTemplate()
  • Added UpdateTemplate()
  • Added DeleteTemplate()
  • Added ListTemplates()
  • Added AddTemplateVersion()
  • Added GetTemplateVersion()
  • Added UpdateTemplateVersion()
  • Added DeleteTemplateVersion()
  • Added ListTemplateVersions()

List of improvements

  • Added a mailgun.MockServer which duplicates part of the mailgun API; suitable for testing
  • ListMailingLists() now uses the /pages API and returns an iterator
  • ListMembers() now uses the /pages API and returns an iterator
  • Renamed public interface methods to be consistent. IE: GetThing(), ListThing(), CreateThing()
  • Moved event objects into the mailgun/events package, so names like MailingList returned by API calls and MailingList as an event object don't conflict and confuse users.
  • Now using context.Context for all network operations
  • Test suite will run without MG_ env vars defined
  • ListRoutes() now uses the iterator interface
  • Added SkipNetworkTest()
  • Removed ginkgo and gomega tests
  • Removed GetStats() As the /stats endpoint is depreciated
  • Renamed GetStatsTotals() to GetStats()
  • Renamed GetUnsubscribes to ListUnsubscribes()
  • Renamed Unsubscribe() to CreateUnsubscribe()
  • Renamed RemoveUnsubscribe() to DeleteUnsubscribe()
  • GetStats() now takes an *opt argument to pass optional parameters
  • Modified GetUnsubscribe() to follow the API
  • Now using golang modules
  • Removed deprecated methods NewMessage and NewMIMEMessage
  • ListCredentials() now returns an iterator
  • ListUnsubscribes() now returns an paging iterator
  • CreateDomain now accepts CreateDomainOption{}
  • CreateDomain() now supports all optional parameters not just spam_action and wildcard.
  • ListComplaints() now returns a page iterator
  • Renamed TagItem to Tag
  • ListBounces() now returns a page iterator
  • API responses with CreatedAt fields are now unmarshalled into RFC2822
  • Removed GetCode() from Bounce struct. Verified API returns 'string' and not 'int'
  • DomainList() now returns an iterator
  • Updated godoc documentation
  • Removed more deprecated types
  • Renamed ApiBase to APIBase
  • Removed gobuffalo/envy dependency
  • Updated copyright to 2019
  • Removed mailgun cli from project
  • Remove mention of the CLI in the README
  • Fix #142 - Allow only CC or BCC recipients
  • Fix #138 - Send() now warns if domain or api key is not provided
  • Fix #113 - Send() now responds with a useful error if the server closed connection prematurely
  • Fix #112 - Now unquote variables added to the message before send
  • ListEvents() now returns a list of typed events