diff --git a/app/utils/email.server.ts b/app/utils/email.server.ts index f62a369e..5ca9264e 100644 --- a/app/utils/email.server.ts +++ b/app/utils/email.server.ts @@ -1,4 +1,4 @@ -import { renderAsync } from '@react-email/components' +import { render } from '@react-email/components' import { type ReactElement } from 'react' import { z } from 'zod' @@ -91,8 +91,8 @@ export async function sendEmail({ async function renderReactEmail(react: ReactElement) { const [html, text] = await Promise.all([ - renderAsync(react), - renderAsync(react, { plainText: true }), + render(react), + render(react, { plainText: true }), ]) return { html, text } } diff --git a/package-lock.json b/package-lock.json index da348c05..2ce306c9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,7 +23,7 @@ "@radix-ui/react-slot": "^1.1.0", "@radix-ui/react-toast": "^1.2.2", "@radix-ui/react-tooltip": "^1.1.3", - "@react-email/components": "0.0.25", + "@react-email/components": "0.0.27", "@remix-run/express": "2.13.1", "@remix-run/node": "2.13.1", "@remix-run/react": "2.13.1", @@ -3527,9 +3527,9 @@ } }, "node_modules/@react-email/button": { - "version": "0.0.17", - "resolved": "https://registry.npmjs.org/@react-email/button/-/button-0.0.17.tgz", - "integrity": "sha512-ioHdsk+BpGS/PqjU6JS7tUrVy9yvbUx92Z+Cem2+MbYp55oEwQ9VHf7u4f5NoM0gdhfKSehBwRdYlHt/frEMcg==", + "version": "0.0.18", + "resolved": "https://registry.npmjs.org/@react-email/button/-/button-0.0.18.tgz", + "integrity": "sha512-uNUnpeDzz1o9HAky47JSTsUN/Ih0A3Az165AAOgAy8XOVzQJPrltUBRzHkScSVJTwRqKLASkie1yZbtNGIcRdA==", "license": "MIT", "engines": { "node": ">=18.0.0" @@ -3578,13 +3578,13 @@ } }, "node_modules/@react-email/components": { - "version": "0.0.25", - "resolved": "https://registry.npmjs.org/@react-email/components/-/components-0.0.25.tgz", - "integrity": "sha512-lnfVVrThEcET5NPoeaXvrz9UxtWpGRcut2a07dLbyKgNbP7vj/cXTI5TuHtanCvhCddFpMDnElNRghDOfPzwUg==", + "version": "0.0.27", + "resolved": "https://registry.npmjs.org/@react-email/components/-/components-0.0.27.tgz", + "integrity": "sha512-4oIEL2m6HrL9GMClgj9EHg2o6ffFvoIB5YMaK+lk+AuICvNHh3TwveYi1xLYH1PZZB7fV83Vml8MWjbnOdrl8w==", "license": "MIT", "dependencies": { "@react-email/body": "0.0.10", - "@react-email/button": "0.0.17", + "@react-email/button": "0.0.18", "@react-email/code-block": "0.0.9", "@react-email/code-inline": "0.0.4", "@react-email/column": "0.0.12", @@ -3595,13 +3595,13 @@ "@react-email/hr": "0.0.10", "@react-email/html": "0.0.10", "@react-email/img": "0.0.10", - "@react-email/link": "0.0.10", + "@react-email/link": "0.0.11", "@react-email/markdown": "0.0.12", "@react-email/preview": "0.0.11", - "@react-email/render": "1.0.1", - "@react-email/row": "0.0.10", - "@react-email/section": "0.0.14", - "@react-email/tailwind": "0.1.0", + "@react-email/render": "1.0.2", + "@react-email/row": "0.0.11", + "@react-email/section": "0.0.15", + "@react-email/tailwind": "1.0.1", "@react-email/text": "0.0.10" }, "engines": { @@ -3693,9 +3693,9 @@ } }, "node_modules/@react-email/link": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/@react-email/link/-/link-0.0.10.tgz", - "integrity": "sha512-tva3wvAWSR10lMJa9fVA09yRn7pbEki0ZZpHE6GD1jKbFhmzt38VgLO9B797/prqoDZdAr4rVK7LJFcdPx3GwA==", + "version": "0.0.11", + "resolved": "https://registry.npmjs.org/@react-email/link/-/link-0.0.11.tgz", + "integrity": "sha512-o1/BgPn2Fi+bN4Nh+P64t4tulaOyPhkBNSpNmiYL1Ar+ilw8q0BmUAqM+lvHy8Qr/4K7BjkgFoc4GoYkoEjOig==", "license": "MIT", "engines": { "node": ">=18.0.0" @@ -3732,9 +3732,9 @@ } }, "node_modules/@react-email/render": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@react-email/render/-/render-1.0.1.tgz", - "integrity": "sha512-W3gTrcmLOVYnG80QuUp22ReIT/xfLsVJ+n7ghSlG2BITB8evNABn1AO2rGQoXuK84zKtDAlxCdm3hRyIpZdGSA==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@react-email/render/-/render-1.0.2.tgz", + "integrity": "sha512-q82eBd39TepzA/xjlm8szqJlrQk/gh7mgtxXMGlJ4dcdx89go1m9YBDpZY98SFy+2r2KAOd5A1mxvUbsPwoATg==", "license": "MIT", "dependencies": { "html-to-text": "9.0.5", @@ -3750,9 +3750,9 @@ } }, "node_modules/@react-email/row": { - "version": "0.0.10", - "resolved": "https://registry.npmjs.org/@react-email/row/-/row-0.0.10.tgz", - "integrity": "sha512-jPyEhG3gsLX+Eb9U+A30fh0gK6hXJwF4ghJ+ZtFQtlKAKqHX+eCpWlqB3Xschd/ARJLod8WAswg0FB+JD9d0/A==", + "version": "0.0.11", + "resolved": "https://registry.npmjs.org/@react-email/row/-/row-0.0.11.tgz", + "integrity": "sha512-ra09h7BMoGa14ds3vh7KVuj1N3astTstEC1YbMdCiHcx/nxylglNaT7qJXU74ZTzyHiGabyiNuyabTS+HLoMCA==", "license": "MIT", "engines": { "node": ">=18.0.0" @@ -3762,9 +3762,9 @@ } }, "node_modules/@react-email/section": { - "version": "0.0.14", - "resolved": "https://registry.npmjs.org/@react-email/section/-/section-0.0.14.tgz", - "integrity": "sha512-+fYWLb4tPU1A/+GE5J1+SEMA7/wR3V30lQ+OR9t2kAJqNrARDbMx0bLnYnR1QL5TiFRz0pCF05SQUobk6gHEDQ==", + "version": "0.0.15", + "resolved": "https://registry.npmjs.org/@react-email/section/-/section-0.0.15.tgz", + "integrity": "sha512-xfM3Qy5eU7fbkwvktlTeQgad7uo+1Z7YVh1aowSZaRBvKbkEXgoH/XssRYQmQL8ZrZGXbEJMujwtf4fsQL6vrg==", "license": "MIT", "engines": { "node": ">=18.0.0" @@ -3774,9 +3774,9 @@ } }, "node_modules/@react-email/tailwind": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@react-email/tailwind/-/tailwind-0.1.0.tgz", - "integrity": "sha512-qysVUEY+M3SKUvu35XDpzn7yokhqFOT3tPU6Mj/pgc62TL5tQFj6msEbBtwoKs2qO3WZvai0DIHdLhaOxBQSow==", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@react-email/tailwind/-/tailwind-1.0.1.tgz", + "integrity": "sha512-CPCIV1u8Voc6CMoYvd/wcgJek0uOsWNMNMUIJjJItb0+NflIeVg3gn49/zyrCqfturx7QIXTykkL82+5V7kKuA==", "license": "MIT", "engines": { "node": ">=18.0.0" diff --git a/package.json b/package.json index 6d3092c3..7973555c 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "@radix-ui/react-slot": "^1.1.0", "@radix-ui/react-toast": "^1.2.2", "@radix-ui/react-tooltip": "^1.1.3", - "@react-email/components": "0.0.25", + "@react-email/components": "0.0.27", "@remix-run/express": "2.13.1", "@remix-run/node": "2.13.1", "@remix-run/react": "2.13.1",