resend 6.2.0-preview-contacts.0 → 6.2.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resend",
3
- "version": "6.2.0-preview-contacts.0",
3
+ "version": "6.2.0",
4
4
  "description": "Node.js library for the Resend API",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -43,8 +43,11 @@
43
43
  "url": "https://github.com/resendlabs/resend-node/issues"
44
44
  },
45
45
  "homepage": "https://github.com/resendlabs/resend-node#readme",
46
+ "dependencies": {
47
+ "svix": "1.76.1"
48
+ },
46
49
  "peerDependencies": {
47
- "@react-email/render": "^1.1.0"
50
+ "@react-email/render": "*"
48
51
  },
49
52
  "peerDependenciesMeta": {
50
53
  "@react-email/render": {
@@ -53,13 +56,13 @@
53
56
  },
54
57
  "devDependencies": {
55
58
  "@biomejs/biome": "2.2.0",
56
- "@types/node": "22.17.2",
57
- "@types/react": "19.1.10",
58
- "pkg-pr-new": "0.0.56",
59
+ "@types/node": "22.18.6",
60
+ "@types/react": "19.1.15",
61
+ "pkg-pr-new": "0.0.60",
59
62
  "tsup": "8.5.0",
60
63
  "typescript": "5.9.2",
61
64
  "vitest": "3.2.4",
62
65
  "vitest-fetch-mock": "0.4.5"
63
66
  },
64
- "packageManager": "pnpm@10.15.0"
67
+ "packageManager": "pnpm@10.17.1"
65
68
  }
package/readme.md CHANGED
@@ -119,7 +119,20 @@ console.log(`Email ${data.id} with a React template has been sent`);
119
119
  ```
120
120
 
121
121
  > [!NOTE]
122
- > If your endpoint is a JS/TS file, render the template (i.e., pass `EmailTemplate({ firstName: "John", product: "MyApp" })` instead of the component).
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
+ >```
123
136
 
124
137
  ## License
125
138