typedmailer 1.4.0 → 2.1.0
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.
- package/README.md +12 -6
- package/dist/config.d.ts +4 -0
- package/dist/config.js +18 -8
- package/dist/errors.d.ts +6 -0
- package/dist/errors.js +42 -26
- package/dist/index.d.ts +3 -3
- package/dist/index.js +38 -2
- package/dist/providers/registry.d.ts +31 -16
- package/dist/providers/registry.js +9 -7
- package/dist/providers/resend.js +1 -1
- package/dist/providers/sendgrid.js +1 -1
- package/dist/providers/smtp.js +8 -1
- package/dist/testing.js +5 -3
- package/dist/types.d.ts +24 -0
- package/dist/webhooks/normalize.d.ts +1 -1
- package/dist/webhooks/normalize.js +20 -3
- package/dist/webhooks/signatures.d.ts +5 -2
- package/dist/webhooks/signatures.js +26 -5
- package/dist/webhooks/types.d.ts +7 -0
- package/dist/webhooks.js +11 -5
- package/docs/framework-webhooks.md +60 -0
- package/docs/migration-v2.md +35 -0
- package/docs/provider-contracts.md +11 -3
- package/docs/reliability.md +59 -0
- package/docs/webhooks.md +6 -2
- package/examples/reliability/durable-mail.ts +134 -0
- package/examples/reliability/schema.sql +20 -0
- package/package.json +12 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typedmailer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "A type-safe Node.js email library with one API for Resend, Brevo, Postmark, SendGrid, Mailgun, Amazon SES, or SMTP.",
|
|
5
5
|
"author": "Erol Senol",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,7 +36,11 @@
|
|
|
36
36
|
"docs/integration-testing.md",
|
|
37
37
|
"docs/quickstart.md",
|
|
38
38
|
"docs/webhooks.md",
|
|
39
|
-
"CODE_OF_CONDUCT.md"
|
|
39
|
+
"CODE_OF_CONDUCT.md",
|
|
40
|
+
"docs/migration-v2.md",
|
|
41
|
+
"docs/framework-webhooks.md",
|
|
42
|
+
"docs/reliability.md",
|
|
43
|
+
"examples/reliability"
|
|
40
44
|
],
|
|
41
45
|
"scripts": {
|
|
42
46
|
"build": "tsc -p tsconfig.build.json",
|
|
@@ -67,7 +71,7 @@
|
|
|
67
71
|
"zod": "^4.6.5"
|
|
68
72
|
},
|
|
69
73
|
"peerDependencies": {
|
|
70
|
-
"@aws-sdk/client-sesv2": ">=3.
|
|
74
|
+
"@aws-sdk/client-sesv2": ">=3.797.0 <4",
|
|
71
75
|
"@getbrevo/brevo": ">=6.0.1 <7",
|
|
72
76
|
"@sendgrid/mail": ">=8.0.0 <9",
|
|
73
77
|
"form-data": ">=4.0.0 <5",
|
|
@@ -103,16 +107,20 @@
|
|
|
103
107
|
}
|
|
104
108
|
},
|
|
105
109
|
"devDependencies": {
|
|
106
|
-
"@aws-sdk/client-sesv2": ">=3.
|
|
110
|
+
"@aws-sdk/client-sesv2": ">=3.797.0 <4",
|
|
111
|
+
"@electric-sql/pglite": "^0.5.8",
|
|
107
112
|
"@getbrevo/brevo": ">=6.0.1 <7",
|
|
108
113
|
"@sendgrid/mail": ">=8.0.0 <9",
|
|
114
|
+
"@types/express": "^5.0.6",
|
|
109
115
|
"@types/node": "^26.6.3",
|
|
110
116
|
"@types/nodemailer": "^8.0.2",
|
|
111
117
|
"eslint": "^10.11.0",
|
|
118
|
+
"express": "^5.2.1",
|
|
112
119
|
"form-data": ">=4.0.0 <5",
|
|
113
120
|
"husky": "^9.1.7",
|
|
114
121
|
"lint-staged": "^17.6.0",
|
|
115
122
|
"mailgun.js": ">=14.0.0 <15",
|
|
123
|
+
"nock": "^14.0.17",
|
|
116
124
|
"nodemailer": ">=7.0.0 <11",
|
|
117
125
|
"postmark": ">=5.0.0 <6",
|
|
118
126
|
"prettier": "^3.9.9",
|