Skip to content

Releases: mailgun/mailgun-go

Release v3.3.4

19 Apr 19:32
33eaa4c
Compare
Choose a tag to compare
  • Event iterator now returns false if it encounters a event parse error. #182

Release 3.3.3

01 Apr 17:47
bc20c00
Compare
Choose a tag to compare

Fixed marshalling for event changes

Release 3.3.2

28 Mar 18:59
9f84664
Compare
Choose a tag to compare
  • Uncommented DeliveryStatus.Code and change it to an integer (See #175)
  • Added UserVariables to all Message events (See #176)

Release 3.3.1

13 Mar 20:00
Compare
Choose a tag to compare

[3.3.1] - 2019-03-13

Changes

  • Updated Template calls to reflect the most recent Template API changes.
  • GetStoredMessage() now accepts a URL instead of an id
  • Deprecated GetStoredMessageForURL()
  • Deprecated GetStoredMessageRawForURL()
  • Fixed GetUnsubscribed()

Added

  • Added GetStoredAttachment()

Removed

  • Method DeleteStoredMessage() mailgun API no long allows this call

Release v3.3.0

28 Jan 16:15
Compare
Choose a tag to compare

Changes

  • Changed signature of CreateDomain() Now returns JSON response
  • Changed signature of GetDomain() Now returns a single DomainResponse
  • Clarified installation notes for non golang module users
  • Changed 'Public Key' to 'Public Validation Key' in readme
  • Fixed issue with Next() for limit/skip based iterators

Added

  • Added VerifyDomain()

Release Candidate 3.3.0-rc.1

24 Jan 16:47
ed858ce
Compare
Choose a tag to compare
Pre-release
  • Changed signature of CreateDomain() Now returns JSON response
  • Changed signature of GetDomain() Now returns a single DomainResponse
  • Clarified installation notes for non golang module users
  • Changed 'Public Key' to 'Public Validation Key' in readme

Release v3.2.0

23 Jan 16:29
89aabae
Compare
Choose a tag to compare

Added support for Mailgun Webhooks 2.0

  • Deprecated mg.VerifyWebhookRequest()
  • Added mailgun.ParseEvent()
  • Added mailgun.ParseEvents()
  • Added mg.VerifyWebhookSignature()

Release 3.1.0

16 Jan 22:49
Compare
Choose a tag to compare

Changes

  • Removed context.Context from ListDomains() signature
  • ListEventOptions.Begin and End are no longer pointers to time.Time

Added

  • Added mg.ReSend() to public Mailgun interface
  • Added Message.SetSkipVerification()
  • Added Message.SetRequireTLS()

Release v3.0.1

16 Jan 18:54
Compare
Choose a tag to compare

Templates API now marshals RFC2822 dates to time.Time instead of string

Release v3.0.0

15 Jan 21:54
Compare
Choose a tag to compare

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