@depup/resend 6.9.4-depup.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/package.json ADDED
@@ -0,0 +1,113 @@
1
+ {
2
+ "name": "@depup/resend",
3
+ "version": "6.9.4-depup.0",
4
+ "description": "Node.js library for the Resend API (with updated dependencies)",
5
+ "main": "./dist/index.cjs",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.mts",
8
+ "files": [
9
+ "dist/**",
10
+ "changes.json",
11
+ "README.md"
12
+ ],
13
+ "engines": {
14
+ "node": ">=20"
15
+ },
16
+ "devEngines": {
17
+ "runtime": {
18
+ "name": "node",
19
+ "version": ">=22.0.0"
20
+ }
21
+ },
22
+ "exports": {
23
+ ".": {
24
+ "import": {
25
+ "types": "./dist/index.d.mts",
26
+ "default": "./dist/index.mjs"
27
+ },
28
+ "require": {
29
+ "types": "./dist/index.d.cts",
30
+ "default": "./dist/index.cjs"
31
+ }
32
+ }
33
+ },
34
+ "scripts": {
35
+ "build": "tsdown src/index.ts --format esm,cjs --dts",
36
+ "integration:nextjs": "cd ./integrations/nextjs && next build --turbopack",
37
+ "lint": "biome check .",
38
+ "lint:fix": "biome check . --write",
39
+ "test": "vitest run",
40
+ "test:dev": "cross-env TEST_MODE=dev vitest run",
41
+ "test:integrations": "vitest run integrations",
42
+ "test:record": "rimraf --glob \"**/__recordings__\" && cross-env TEST_MODE=record vitest run",
43
+ "test:watch": "vitest",
44
+ "typecheck": "tsc --noEmit"
45
+ },
46
+ "repository": {
47
+ "type": "git",
48
+ "url": "git+https://github.com/resend/resend-node.git"
49
+ },
50
+ "author": "",
51
+ "license": "MIT",
52
+ "bugs": {
53
+ "url": "https://github.com/resend/resend-node/issues"
54
+ },
55
+ "homepage": "https://github.com/resend/resend-node#readme",
56
+ "dependencies": {
57
+ "postal-mime": "^2.7.4",
58
+ "svix": "^1.88.0"
59
+ },
60
+ "peerDependencies": {
61
+ "@react-email/render": "*"
62
+ },
63
+ "peerDependenciesMeta": {
64
+ "@react-email/render": {
65
+ "optional": true
66
+ }
67
+ },
68
+ "devDependencies": {
69
+ "@biomejs/biome": "2.4.7",
70
+ "@pollyjs/adapter-fetch": "6.0.7",
71
+ "@pollyjs/core": "6.0.6",
72
+ "@pollyjs/persister-fs": "6.0.6",
73
+ "@types/mailparser": "3.4.6",
74
+ "@types/node": "24.11.0",
75
+ "@types/react": "19.2.14",
76
+ "cross-env": "10.1.0",
77
+ "dotenv": "17.3.1",
78
+ "pkg-pr-new": "0.0.65",
79
+ "react": "19.2.4",
80
+ "react-dom": "19.2.4",
81
+ "rimraf": "6.1.3",
82
+ "tsdown": "0.21.0",
83
+ "typescript": "5.9.3",
84
+ "vitest": "4.0.18",
85
+ "vitest-fetch-mock": "0.4.5"
86
+ },
87
+ "packageManager": "pnpm@10.30.3",
88
+ "keywords": [
89
+ "resend",
90
+ "depup",
91
+ "updated-dependencies",
92
+ "security",
93
+ "latest",
94
+ "patched"
95
+ ],
96
+ "depup": {
97
+ "changes": {
98
+ "postal-mime": {
99
+ "from": "2.7.3",
100
+ "to": "^2.7.4"
101
+ },
102
+ "svix": {
103
+ "from": "1.86.0",
104
+ "to": "^1.88.0"
105
+ }
106
+ },
107
+ "depsUpdated": 2,
108
+ "originalPackage": "resend",
109
+ "originalVersion": "6.9.4",
110
+ "processedAt": "2026-03-18T23:28:24.194Z",
111
+ "smokeTest": "passed"
112
+ }
113
+ }
package/readme.md ADDED
@@ -0,0 +1,139 @@
1
+
2
+ ![nodejs-og](https://github.com/user-attachments/assets/7bc8f7c1-1877-4ddd-89f9-4f8d9bc32ed5)
3
+
4
+ <p align="center">
5
+ <a href="https://resend.com/docs/send-with-nodejs">Quickstart Docs</a>
6
+ </p>
7
+
8
+ <p align="center">
9
+ Framework guides
10
+ </p>
11
+ <p align="center">
12
+ <a
13
+ - <a href="https://resend.com/docs/send-with-nextjs">Next.js</a>
14
+ - <a href="https://resend.com/docs/send-with-remix">Remix</a>
15
+ - <a href="https://resend.com/docs/send-with-nuxt">Nuxt</a>
16
+ - <a href="https://resend.com/docs/send-with-express">Express</a>
17
+ - <a href="https://resend.com/docs/send-with-redwoodjs">RedwoodJS</a>
18
+ - <a href="https://resend.com/docs/send-with-hono">Hono</a>
19
+ - <a href="https://resend.com/docs/send-with-bun">Bun</a>
20
+ - <a href="https://resend.com/docs/send-with-astro">Astro</a>
21
+ </p>
22
+
23
+ # Resend Node.js SDK
24
+
25
+ Node.js library for the Resend API.
26
+
27
+ ## Install
28
+
29
+ ```bash
30
+ npm install resend
31
+ # or
32
+ yarn add resend
33
+ ```
34
+
35
+ ## Examples
36
+
37
+ Send email with:
38
+
39
+ - [Node.js](https://github.com/resend/resend-node-example)
40
+ - [Next.js (App Router)](https://github.com/resend/resend-nextjs-app-router-example)
41
+ - [Next.js (Pages Router)](https://github.com/resend/resend-nextjs-pages-router-example)
42
+ - [Express](https://github.com/resend/resend-express-example)
43
+
44
+ ## Setup
45
+
46
+ First, you need to get an API key, which is available in the [Resend Dashboard](https://resend.com/api-keys).
47
+
48
+ ```js
49
+ import { Resend } from 'resend';
50
+ const resend = new Resend('re_xxxx...xxxxxx');
51
+ ```
52
+
53
+ ## Usage
54
+
55
+ Send your first email:
56
+
57
+ ```js
58
+ const { data } = await resend.emails.send({
59
+ from: 'you@example.com',
60
+ to: 'user@gmail.com',
61
+ replyTo: 'you@example.com',
62
+ subject: 'hello world',
63
+ text: 'it works!',
64
+ });
65
+
66
+ console.log(`Email ${data.id} has been sent`);
67
+ ```
68
+
69
+ > [!NOTE]
70
+ > In order to send from your own domain, you will first need to verify your domain in the [Resend Dashboard](https://resend.com/domains).
71
+
72
+ ## Send email using HTML
73
+
74
+ Send an email custom HTML content:
75
+
76
+ ```js
77
+ const { data } = await resend.emails.send({
78
+ from: 'you@example.com',
79
+ to: 'user@gmail.com',
80
+ replyTo: 'you@example.com',
81
+ subject: 'hello world',
82
+ html: '<strong>it works!</strong>',
83
+ });
84
+
85
+ console.log(`Emaill ${data.id} with customer HTML content has been sent.`);
86
+ ```
87
+
88
+ ## Send email using React
89
+
90
+ Start by creating your email template as a React component.
91
+
92
+ ```jsx
93
+ import React from 'react';
94
+
95
+ export default function EmailTemplate({ firstName, product }) {
96
+ return (
97
+ <div>
98
+ <h1>Welcome, {firstName}!</h1>
99
+ <p>Thanks for trying {product}. We’re thrilled to have you on board.</p>
100
+ </div>
101
+ );
102
+ }
103
+ ```
104
+
105
+ Then import the template component and pass it to the `react` property.
106
+
107
+ ```jsx
108
+ import EmailTemplate from '../components/EmailTemplate';
109
+
110
+ const { data } = await resend.emails.send({
111
+ from: 'you@example.com',
112
+ to: 'user@gmail.com',
113
+ replyTo: 'you@example.com',
114
+ subject: 'hello world',
115
+ react: <EmailTemplate firstName="John" product="MyApp" />,
116
+ });
117
+
118
+ console.log(`Email ${data.id} with a React template has been sent`);
119
+ ```
120
+
121
+ > [!NOTE]
122
+ > If you're sending emails from a file that doesn't have JSX transpilation set up (e.g., in a `.js`/`.ts` file instead of JSX/TSX), use React's `jsx` runtime function instead of passing the component as JSX:
123
+ >
124
+ >```js
125
+ >import { jsx } from 'react/jsx-runtime'
126
+ >import EmailTemplate from '../components/EmailTemplate';
127
+ >
128
+ >await resend.emails.send({
129
+ > from: 'you@example.com',
130
+ > to: 'user@gmail.com',
131
+ > replyTo: 'you@example.com',
132
+ > subject: 'hello world',
133
+ > react: jsx(EmailTemplate, { firstName:"John", product:"MyApp" }),
134
+ >});
135
+ >```
136
+
137
+ ## License
138
+
139
+ MIT License