Skip to content

Releases: mailgun/mailgun.js

v12.0.1

05 Mar 09:57
Compare
Choose a tag to compare

What's Changed

  • other: update x509 TLS certificate generation README by @laserchicken in #440
  • fix: Update package.json conditional exports to support "moduleResolution": "bundler" by @olexandr-mazepa in #442

New Contributors

Full Changelog: v12.0.0...v12.0.1

v12.0.0

24 Feb 12:59
Compare
Choose a tag to compare

What's Changed

BREAKING:

  • Exports of TypeScript types, interfaces, and enums have been moved to the mailgun.js/definitions submodule.
    In case you need them, starting from version 12, please use

    import { MailgunClientOptions, MessagesSendResult } from 'mailgun.js/definitions';

    instead of

    import { MailgunClientOptions, MessagesSendResult } from 'mailgun.js';
  • AMD import no longer requires using the .default property.
    So now this is

    <script>
    require('./dist/AMD/mailgun.amd.js', function(Mailgun) {
     const mailgun = new Mailgun(FormData); // default property is not needed anymore
    }
    </script>

    Instead of

    <script>
    require('./dist/AMD/mailgun.amd.js', function(Mailgun) {
     const mailgun = new Mailgun.default(FormData);  // default property was required previously
    });
    </script>

Features:

  • Added ESM bundles for browser and Node.js environments

Other:

  • Webpack has been replaced by Rollup
  • Mocha has been replaced by Jest to use one test runner for all tests
  • Added new tests that check ESM bundles exports
  • Updated TS documentation

Full Changelog: v11.1.0...v12.0.0

v11.1.0

09 Jan 12:55
Compare
Choose a tag to compare

What's Changed

  • created DomainTrackingClient to implement domain tracking API
  • getTracking and updateTracking methods moved from DomainsClient to DomainTrackingClient
  • getTracking and updateTracking methods marked as deprecated in DomainsClient

New Contributors

Full Changelog: v11.0.0...v11.1.0

v11.0.0

09 Jan 08:30
Compare
Choose a tag to compare

What's Changed

  • Removed DomainShortData type, because there is no difference between DomainShortData and DomainData in the new version.
  • created_at is now a Date object instead of a string in the TDomain type.
  • The query type for the domains.list method was extended by state, sort, authority, and search properties.
  • The domains.get method was extended, and now allows query.
  • Fixed domains.getConnection method to return data instead of undefined.
  • getIps, assignIp, deleteIp, linkIpPool, unlinkIpPoll, and updateWebPrefix methods in the DomainClient have been deprecated.
  • domains.updateDKIMSelector response shape is changed from { body: { message: 'DKIM selector changed' }, status: 200 } to {message: 'DKIM selector changed', status: 200 }

Full Changelog: v10.4.0...v11.0.0

v10.3.0

23 Dec 14:23
Compare
Choose a tag to compare

What's Changed

Full Changelog: v10.2.4...v10.3.0

v10.2.4

21 Nov 16:44
Compare
Choose a tag to compare

What's Changed

Full Changelog: v10.2.3...v10.2.4

v10.2.2

17 Jul 15:58
Compare
Choose a tag to compare

What's Changed

Full Changelog: v10.2.1...v10.2.2

v10.2.1

16 Feb 15:35
Compare
Choose a tag to compare

What's Changed

Full Changelog: v10.2.0...v10.2.1

v10.2.0

15 Feb 13:59
Compare
Choose a tag to compare

What's Changed

  • feature: Better types and handling for different FormData implementations by @olexandr-mazepa in #405

Full Changelog: v10.1.0...v10.2.0

v10.1.0

31 Jan 08:12
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v10.0.1...v10.1.0