mailgun.js 12.0.0 → 12.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- // mailgun.js v11.1.0 Copyright (c) 2025 Mailgun and contributors
1
+ // mailgun.js v12.0.0 Copyright (c) 2025 Mailgun and contributors
2
2
  define(['exports'], (function (exports) { 'use strict';
3
3
 
4
4
  var Resolution;
package/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [12.0.1](https://github.com/mailgun/mailgun.js/compare/v12.0.0...v12.0.1) (2025-03-05)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * Update package.json conditional exports to support "moduleResolution": "bundler" ([a75329e](https://github.com/mailgun/mailgun.js/commits/a75329e37beada8787092fb84470e69a8309f7ac))
11
+
12
+
13
+ ### Other changes
14
+
15
+ * Revert TS version ([855c01a](https://github.com/mailgun/mailgun.js/commits/855c01adf8d64235a0bae6b181b6e2adbd66729a))
16
+ * update x509 TLS certificate generation README ([77b8615](https://github.com/mailgun/mailgun.js/commits/77b86154ed36377a8a3762221b0d6c5f3890d670))
17
+
5
18
  ## [12.0.0](https://github.com/mailgun/mailgun.js/compare/v11.1.0...v12.0.0) (2025-02-24)
6
19
 
7
20
 
@@ -9,6 +22,35 @@ All notable changes to this project will be documented in this file. See [standa
9
22
 
10
23
  * Move types, interfaces, enums into submodule ([dba1dd9](https://github.com/mailgun/mailgun.js/commits/dba1dd9a39c213760faa631ca2ce209b34a9eea2))
11
24
 
25
+ - Exports of TypeScript types, interfaces, and enums have been moved to the `mailgun.js/definitions` submodule.
26
+ In case you need them, starting from version 12, please use
27
+ ```JS
28
+ import { MailgunClientOptions, MessagesSendResult } from 'mailgun.js/definitions';
29
+ ```
30
+ instead of
31
+ ```JS
32
+ import { MailgunClientOptions, MessagesSendResult } from 'mailgun.js';
33
+ ```
34
+ - AMD import no longer requires using the `.default` property.
35
+ So now this is
36
+ ``` HTML
37
+ <script>
38
+ require('./dist/AMD/mailgun.amd.js', function(Mailgun) {
39
+ const mailgun = new Mailgun(FormData); // default property is not needed anymore
40
+ }
41
+ </script>
42
+ ```
43
+ Instead of
44
+
45
+
46
+ ```HTML
47
+ <script>
48
+ require('./dist/AMD/mailgun.amd.js', function(Mailgun) {
49
+ const mailgun = new Mailgun.default(FormData); // default property was required previously
50
+ });
51
+ </script>
52
+ ```
53
+
12
54
 
13
55
  ### Other changes
14
56
 
@@ -1,4 +1,4 @@
1
- // mailgun.js v11.1.0 Copyright (c) 2025 Mailgun and contributors
1
+ // mailgun.js v12.0.0 Copyright (c) 2025 Mailgun and contributors
2
2
  'use strict';
3
3
 
4
4
  var Resolution;
@@ -1,4 +1,4 @@
1
- // mailgun.js v11.1.0 Copyright (c) 2025 Mailgun and contributors
1
+ // mailgun.js v12.0.0 Copyright (c) 2025 Mailgun and contributors
2
2
  var Resolution;
3
3
  (function (Resolution) {
4
4
  Resolution["HOUR"] = "hour";
@@ -1,4 +1,4 @@
1
- // mailgun.js v11.1.0 Copyright (c) 2025 Mailgun and contributors
1
+ // mailgun.js v12.0.0 Copyright (c) 2025 Mailgun and contributors
2
2
  var Resolution;
3
3
  (function (Resolution) {
4
4
  Resolution["HOUR"] = "hour";
package/README.md CHANGED
@@ -1747,14 +1747,14 @@ The following service methods are available to instantiated clients. The example
1747
1747
  ```
1748
1748
 
1749
1749
  - #### generate
1750
- Initiates generation of a TLS certificate for the tracking domain in a background task. Once generation is enqueued, you may poll the status endpoint in location field to check for success
1750
+ Initiates generation of a TLS certificate for the tracking domain in a background task. Once generation is enqueued, you may poll the status endpoint in location field to check for success. Domain address must be formatted as `webPrefix.domainName` from domains settings
1751
1751
 
1752
1752
  `mg.domains.domainTracking.generate(domainAddress)` [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Domain-Tracking/#tag/Domain-Tracking/operation/httpapi.(*HttpAPI).generateStatusV2-fm-8)
1753
1753
 
1754
1754
  Example:
1755
1755
 
1756
1756
  ```JS
1757
- mg.domains.domainTracking.generate('foobar.example.com')
1757
+ mg.domains.domainTracking.generate('email.foobar.example.com')
1758
1758
  .then(msg => console.log(msg)) // logs response data
1759
1759
  .catch(err => console.error(err)); // logs any error
1760
1760
  ```
@@ -1770,14 +1770,14 @@ The following service methods are available to instantiated clients. The example
1770
1770
  ```
1771
1771
 
1772
1772
  - #### regenerate
1773
- Initiates regeneration of an expired TLS certificate for the tracking domain in a background task. Once generation is enqueued, you may poll status endpoint in location field to check for success. This will not regenerate an existing certificate that is still valid
1773
+ Initiates regeneration of an expired TLS certificate for the tracking domain in a background task. Once generation is enqueued, you may poll status endpoint in location field to check for success. This will not regenerate an existing certificate that is still valid. Domain address must be formatted as `webPrefix.domainName` from domains settings
1774
1774
 
1775
1775
  `mg.domains.domainTracking.regenerate(domainAddress)` [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Domain-Tracking/#tag/Domain-Tracking/operation/httpapi.(*HttpAPI).generateStatusV2-fm-8)
1776
1776
 
1777
1777
  Example:
1778
1778
 
1779
1779
  ```JS
1780
- mg.domains.domainTracking.regenerate('foobar.example.com')
1780
+ mg.domains.domainTracking.regenerate('email.foobar.example.com')
1781
1781
  .then(msg => console.log(msg)) // logs response data
1782
1782
  .catch(err => console.error(err)); // logs any error
1783
1783
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mailgun.js",
3
- "version": "12.0.0",
3
+ "version": "12.0.1",
4
4
  "author": "Mailgun",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -22,28 +22,30 @@
22
22
  "node": {
23
23
  "import": "./ESM/mailgun.node.js",
24
24
  "require": "./CJS/mailgun.node.cjs",
25
- "types": "./Types/index.d.ts",
26
25
  "default": "./CJS/mailgun.node.js"
27
26
  },
28
27
  "browser": {
29
28
  "import": "./ESM/mailgun.browser.js",
30
29
  "require": "./AMD/mailgun.amd.js",
31
- "types": "./Types/index.d.ts",
32
30
  "default": "./AMD/mailgun.amd.js"
31
+ },
32
+ "default": {
33
+ "types": "./Types/index.d.ts"
33
34
  }
34
35
  },
35
36
  "./definitions": {
36
37
  "node": {
37
38
  "import": "./ESM/definitions.node.js",
38
39
  "require": "./CJS/definitions.cjs",
39
- "types": "./Types/definitions.d.ts",
40
40
  "default": "./CJS/definitions.js"
41
41
  },
42
42
  "browser": {
43
43
  "import": "./ESM/definitions.browser.js",
44
44
  "require": "./AMD/definitions.js",
45
- "types": "./Types/definitions.d.ts",
46
45
  "default": "./AMD/definitions.js"
46
+ },
47
+ "default": {
48
+ "types": "./Types/definitions.d.ts"
47
49
  }
48
50
  }
49
51
  },
package/version.md CHANGED
@@ -1 +1 @@
1
- 12.0.0
1
+ 12.0.1