Releases: mailgun/mailgun.js
Releases · mailgun/mailgun.js
v12.0.1
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
- @laserchicken made their first contribution in #440
Full Changelog: v12.0.0...v12.0.1
v12.0.0
What's Changed
- breaking: Add ESM support by @olexandr-mazepa in #437
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 useimport { 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
What's Changed
- feature: Adding Secure Tracking API support by @olexandr-mazepa and @Szasza in #435
- created
DomainTrackingClient
to implement domain tracking API getTracking
andupdateTracking
methods moved fromDomainsClient
toDomainTrackingClient
getTracking
andupdateTracking
methods marked as deprecated inDomainsClient
New Contributors
Full Changelog: v11.0.0...v11.1.0
v11.0.0
What's Changed
- other: Update readme by domain templates by @olexandr-mazepa in #433
- breaking: Update domains client to use v4 of API by @olexandr-mazepa in #434
- Removed
DomainShortData
type, because there is no difference betweenDomainShortData
andDomainData
in the new version. created_at
is now a Date object instead of a string in theTDomain
type.- The query type for the
domains.list
method was extended bystate
,sort
,authority
, andsearch
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
, andupdateWebPrefix
methods in theDomainClient
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
What's Changed
- feature: Add support for Inbox Placements by @olexandr-mazepa in #419
Full Changelog: v10.2.4...v10.3.0
v10.2.4
What's Changed
- chore(deps): bump axios from 1.7.2 to 1.7.4 by @dependabot in #422
- chore(deps-dev): bump webpack from 5.76.0 to 5.94.0 by @dependabot in #421
- fix: Fix vulnarable dependency by @olexandr-mazepa in #430
- other: Add tests coverage thresholds by @olexandr-mazepa in #431
Full Changelog: v10.2.3...v10.2.4
v10.2.2
What's Changed
- fix: Update dependencies by @olexandr-mazepa in #416
Full Changelog: v10.2.1...v10.2.2
v10.2.1
What's Changed
- fix: Source.on is not a function for t:variables by @olexandr-mazepa in #406
Full Changelog: v10.2.0...v10.2.1
v10.2.0
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
What's Changed
- fix(docs): Add url param for EU infrastructure by @davidgarciab in #391
- feature: Add proxy configuration to the client by @olexandr-mazepa in #402
New Contributors
- @davidgarciab made their first contribution in #391
Full Changelog: v10.0.1...v10.1.0