resend 4.0.0 → 4.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.
- package/dist/chunk-2HHXE2I7.mjs +16534 -0
- package/dist/chunk-FPVDTWJX.mjs +2216 -0
- package/dist/chunk-RO5RSJWE.mjs +83 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +36 -7
- package/dist/index.mjs +26 -7
- package/dist/node-CCXSG6KK.mjs +11003 -0
- package/dist/node-I5GQK35D.mjs +9996 -0
- package/dist/server.node-2SV4OLOR.mjs +5 -0
- package/dist/server.node-UI4W6O6F.mjs +14327 -0
- package/package.json +4 -4
- package/readme.md +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "resend",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "Node.js library for the Resend API",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|
|
26
26
|
"test": "jest",
|
|
27
27
|
"test:watch": "jest --watch",
|
|
28
|
-
"format:apply": "biome check --
|
|
28
|
+
"format:apply": "biome check --write .",
|
|
29
29
|
"format:check": "biome format .",
|
|
30
30
|
"format": "biome format --write .",
|
|
31
31
|
"lint": "biome check .",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
},
|
|
43
43
|
"homepage": "https://github.com/resendlabs/resend-node#readme",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@react-email/render": "
|
|
45
|
+
"@react-email/render": "1.0.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@biomejs/biome": "1.
|
|
48
|
+
"@biomejs/biome": "1.9.4",
|
|
49
49
|
"@types/jest": "29.5.12",
|
|
50
50
|
"@types/node": "18.19.44",
|
|
51
51
|
"@types/react": "18.3.3",
|
package/readme.md
CHANGED
|
@@ -36,6 +36,7 @@ Send your first email:
|
|
|
36
36
|
await resend.emails.send({
|
|
37
37
|
from: 'you@example.com',
|
|
38
38
|
to: 'user@gmail.com',
|
|
39
|
+
replyTo: 'you@example.com',
|
|
39
40
|
subject: 'hello world',
|
|
40
41
|
text: 'it works!',
|
|
41
42
|
});
|
|
@@ -49,6 +50,7 @@ Send an email custom HTML content:
|
|
|
49
50
|
await resend.emails.send({
|
|
50
51
|
from: 'you@example.com',
|
|
51
52
|
to: 'user@gmail.com',
|
|
53
|
+
replyTo: 'you@example.com',
|
|
52
54
|
subject: 'hello world',
|
|
53
55
|
html: '<strong>it works!</strong>',
|
|
54
56
|
});
|
|
@@ -79,6 +81,7 @@ import EmailTemplate from '../components/EmailTemplate';
|
|
|
79
81
|
await resend.emails.send({
|
|
80
82
|
from: 'you@example.com',
|
|
81
83
|
to: 'user@gmail.com',
|
|
84
|
+
replyTo: 'you@example.com',
|
|
82
85
|
subject: 'hello world',
|
|
83
86
|
react: <EmailTemplate firstName="John" product="MyApp" />,
|
|
84
87
|
});
|