mailchannels-sdk 1.5.0 → 1.5.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.
@@ -88,9 +88,10 @@ If your lockdown record uses `auth=` (account-wide authorization), omit `senderI
88
88
 
89
89
  ## With A Different Envelope-From Domain
90
90
 
91
- If the envelope-from domain used during delivery differs from the domain you are
92
- checking, provide it with `envelopeFromDomain` so SPF is evaluated against the
93
- correct domain:
91
+ If the envelope-from domain differs from the domain you pass as `domain`, provide
92
+ it as `envelopeFromDomain` so SPF and Domain Lockdown are evaluated against the
93
+ correct domain — otherwise SPF or Domain Lockdown failures may cause message delivery
94
+ to fail.
94
95
 
95
96
  ```ts
96
97
  const { data, error } = await mc.domains.check('example.com', {
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  [![TypeScript][typescript-src]][typescript-href]
10
10
  [![Node.js][node-src]][node-href]
11
11
 
12
- > Built and tested against Email API `1.7.0`
12
+ > Built and tested against Email API `1.7.1`
13
13
 
14
14
  Node.js SDK to integrate [MailChannels Email API](https://docs.mailchannels.com/email-api) into your JavaScript or TypeScript server-side applications.
15
15
 
@@ -914,9 +914,10 @@ interface DomainsCheckOptions {
914
914
  */
915
915
  dkim?: DomainsCheckDkim[] | DomainsCheckDkim;
916
916
  /**
917
- * Optional envelope-from domain. During message delivery, SPF is evaluated against the envelope sender domain.
918
- * If your envelope-from domain differs from the domain used for sending messages, provide it here to ensure SPF
919
- * is checked against the correct domain. Otherwise, SPF failures may cause recipient servers to reject messages.
917
+ * Optional envelope-from domain. During message delivery, SPF and Domain Lockdown verification are evaluated
918
+ * against the envelope sender domain. If your envelope-from domain differs from the domain used for sending
919
+ * messages, provide it here to ensure both checks are run against the correct domain. Otherwise, SPF or Domain
920
+ * Lockdown failures may cause message delivery to fail.
920
921
  */
921
922
  envelopeFromDomain?: string;
922
923
  /**
@@ -3,7 +3,7 @@ import { subtle } from "node:crypto";
3
3
  import { Buffer } from "node:buffer";
4
4
  import mime from "mime";
5
5
  var name = "mailchannels-sdk";
6
- var version = "1.5.0";
6
+ var version = "1.5.1";
7
7
  var MailChannelsClient = class MailChannelsClient {
8
8
  static DEFAULT_BASE_URL = "https://api.mailchannels.net";
9
9
  static DEFAULT_TIMEOUT = 12e4;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mailchannels-sdk",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Node.js SDK to integrate MailChannels Email API into your JavaScript or TypeScript server-side applications.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -51,20 +51,20 @@
51
51
  },
52
52
  "devDependencies": {
53
53
  "@stylistic/eslint-plugin": "^5.10.0",
54
- "@types/markdown-it": "^14.1.2",
54
+ "@types/markdown-it": "^14.2.0",
55
55
  "@types/node": "^26.2.0",
56
56
  "@types/nodemailer": "^8.0.1",
57
- "@vitest/coverage-v8": "^4.1.10",
57
+ "@vitest/coverage-v8": "^4.1.11",
58
58
  "changelogen": "^0.6.2",
59
59
  "nodemailer": "^9.0.5",
60
60
  "obuild": "^0.4.38",
61
- "oxlint": "^1.78.0",
61
+ "oxlint": "^1.79.0",
62
62
  "scule": "^1.3.0",
63
63
  "typescript": "^6.0.3",
64
64
  "vitepress": "^2.0.0-alpha.19",
65
65
  "vitepress-plugin-group-icons": "^1.7.6",
66
66
  "vitepress-plugin-llms": "^1.13.5",
67
- "vitest": "^4.1.10"
67
+ "vitest": "^4.1.11"
68
68
  },
69
69
  "engines": {
70
70
  "node": ">=20"