react-email 6.0.0 → 6.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/CHANGELOG.md +16 -7
- package/dist/cli/index.mjs +7 -2
- package/package.json +7 -2
- package/src/components/tailwind/e2e/integrations.spec.ts +2 -2
- package/src/components/tailwind/e2e/nextjs/emails/vercel-invite-user.tsx +2 -2
- package/src/components/tailwind/e2e/nextjs/next.config.mjs +0 -1
- package/src/components/tailwind/e2e/nextjs/package.json +2 -3
- package/src/components/tailwind/e2e/nextjs/src/app/page.tsx +1 -1
- package/src/components/tailwind/e2e/vite/emails/vercel-invite-user.tsx +2 -2
- package/src/components/tailwind/e2e/vite/package.json +2 -3
- package/src/components/tailwind/e2e/vite/src/App.tsx +1 -1
- package/vitest.e2e.config.ts +17 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# react-email
|
|
2
2
|
|
|
3
|
+
## 6.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 599b8c5: fix type issues in starter template and in react-email
|
|
8
|
+
|
|
3
9
|
## 6.0.0
|
|
4
10
|
|
|
5
11
|
### Major Changes
|
|
@@ -8,7 +14,7 @@
|
|
|
8
14
|
|
|
9
15
|
All components (previously in `@react-email/components` or individual packages like `@react-email/button`) and rendering utilities (previously in `@react-email/render`) are now exported directly from `react-email`. This unifies the install and import experience into a single package.
|
|
10
16
|
|
|
11
|
-
We're going to deprecate all packages except `@react-email/render` and `@react-email/
|
|
17
|
+
We're going to deprecate all packages except `@react-email/render` and `@react-email/ui`, and they will not be updated anymore.
|
|
12
18
|
|
|
13
19
|
### Breaking change
|
|
14
20
|
|
|
@@ -19,22 +25,25 @@
|
|
|
19
25
|
Having separate packages for components (`@react-email/components`), and the CLI (`react-email`) created unnecessary confusion, and a maintenance burden for us.
|
|
20
26
|
|
|
21
27
|
### How to migrate
|
|
22
|
-
1.
|
|
28
|
+
1. Remove `@react-email/components`:
|
|
23
29
|
|
|
24
30
|
```diff
|
|
25
|
-
|
|
26
|
-
+ npm install react-email @react-email/preview-server
|
|
31
|
+
npm remove @react-email/components
|
|
27
32
|
```
|
|
28
33
|
|
|
29
|
-
2.
|
|
34
|
+
2. Update `react-email`, and move it over to `dependencies`:
|
|
35
|
+
|
|
36
|
+
```diff
|
|
37
|
+
npm install react-email@latest
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
3. **Update your imports**:
|
|
30
41
|
|
|
31
42
|
```diff
|
|
32
43
|
- import { Button, Html, Head, render } from "@react-email/components";
|
|
33
44
|
+ import { Button, Html, Head, render } from "react-email";
|
|
34
45
|
```
|
|
35
46
|
|
|
36
|
-
3. The `@react-email/preview-server` and `@react-email/editor` packages are not included in `react-email`
|
|
37
|
-
|
|
38
47
|
### Patch Changes
|
|
39
48
|
|
|
40
49
|
- a3a15ea: replace deprecated `url.parse()` with WHATWG URL API in the preview dev server.
|
package/dist/cli/index.mjs
CHANGED
|
@@ -6522,15 +6522,17 @@ const getEmailsDirectoryMetadata = async (absolutePathToEmailsDirectory, keepFil
|
|
|
6522
6522
|
//#region package.json
|
|
6523
6523
|
var package_default = {
|
|
6524
6524
|
name: "react-email",
|
|
6525
|
-
version: "6.0.
|
|
6525
|
+
version: "6.0.1",
|
|
6526
6526
|
description: "A live preview of your emails right in your browser.",
|
|
6527
6527
|
bin: { "email": "./dist/cli/index.mjs" },
|
|
6528
6528
|
type: "module",
|
|
6529
|
+
types: "./dist/index.d.mts",
|
|
6529
6530
|
scripts: {
|
|
6530
6531
|
"build": "tsdown",
|
|
6531
6532
|
"build:watch": "tsdown --watch src",
|
|
6532
6533
|
"clean": "rm -rf dist",
|
|
6533
6534
|
"test": "vitest run",
|
|
6535
|
+
"test:e2e": "vitest run --config vitest.e2e.config.ts",
|
|
6534
6536
|
"test:watch": "vitest",
|
|
6535
6537
|
"typecheck": "tsc --noEmit"
|
|
6536
6538
|
},
|
|
@@ -6584,12 +6586,15 @@ var package_default = {
|
|
|
6584
6586
|
"@types/css-tree": "catalog:",
|
|
6585
6587
|
"@types/mime-types": "catalog:",
|
|
6586
6588
|
"@types/prompts": "2.4.9",
|
|
6589
|
+
"@types/shelljs": "0.10.0",
|
|
6587
6590
|
"next": "catalog:",
|
|
6588
6591
|
"react": "catalog:",
|
|
6589
6592
|
"react-dom": "catalog:",
|
|
6593
|
+
"shelljs": "0.10.0",
|
|
6590
6594
|
"shlex": "3.0.0",
|
|
6591
6595
|
"tsx": "catalog:",
|
|
6592
|
-
"typescript": "catalog:"
|
|
6596
|
+
"typescript": "catalog:",
|
|
6597
|
+
"yalc": "catalog:"
|
|
6593
6598
|
}
|
|
6594
6599
|
};
|
|
6595
6600
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-email",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "A live preview of your emails right in your browser.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"email": "./dist/cli/index.mjs"
|
|
7
7
|
},
|
|
8
8
|
"type": "module",
|
|
9
|
+
"types": "./dist/index.d.mts",
|
|
9
10
|
"license": "MIT",
|
|
10
11
|
"exports": {
|
|
11
12
|
"import": {
|
|
@@ -38,7 +39,7 @@
|
|
|
38
39
|
"conf": "^15.0.2",
|
|
39
40
|
"css-tree": "3.2.1",
|
|
40
41
|
"debounce": "^2.0.0",
|
|
41
|
-
"esbuild": "0.
|
|
42
|
+
"esbuild": "0.28.0",
|
|
42
43
|
"glob": "^13.0.6",
|
|
43
44
|
"jiti": "2.4.2",
|
|
44
45
|
"log-symbols": "^7.0.0",
|
|
@@ -60,12 +61,15 @@
|
|
|
60
61
|
"@types/css-tree": "2.3.11",
|
|
61
62
|
"@types/mime-types": "2.1.4",
|
|
62
63
|
"@types/prompts": "2.4.9",
|
|
64
|
+
"@types/shelljs": "0.10.0",
|
|
63
65
|
"next": "16.2.3",
|
|
64
66
|
"react": "19.2.4",
|
|
65
67
|
"react-dom": "19.2.4",
|
|
68
|
+
"shelljs": "0.10.0",
|
|
66
69
|
"shlex": "3.0.0",
|
|
67
70
|
"tsx": "4.21.0",
|
|
68
71
|
"typescript": "5.9.3",
|
|
72
|
+
"yalc": "1.0.0-pre.53",
|
|
69
73
|
"@react-email/render": "2.0.7"
|
|
70
74
|
},
|
|
71
75
|
"scripts": {
|
|
@@ -73,6 +77,7 @@
|
|
|
73
77
|
"build:watch": "tsdown --watch src",
|
|
74
78
|
"clean": "rm -rf dist",
|
|
75
79
|
"test": "vitest run",
|
|
80
|
+
"test:e2e": "vitest run --config vitest.e2e.config.ts",
|
|
76
81
|
"test:watch": "vitest",
|
|
77
82
|
"typecheck": "tsc --noEmit"
|
|
78
83
|
}
|
|
@@ -19,8 +19,8 @@ const $ = (command: string, cwd: string = path.resolve(__dirname, '..')) => {
|
|
|
19
19
|
|
|
20
20
|
describe('integrations', () => {
|
|
21
21
|
beforeAll(() => {
|
|
22
|
-
const packageLocation = path.resolve(__dirname, '
|
|
23
|
-
$('yalc installations clean
|
|
22
|
+
const packageLocation = path.resolve(__dirname, '../../../..');
|
|
23
|
+
$('yalc installations clean react-email', packageLocation);
|
|
24
24
|
$('yalc publish', packageLocation);
|
|
25
25
|
});
|
|
26
26
|
|
|
@@ -6,11 +6,10 @@
|
|
|
6
6
|
"dev": "next dev",
|
|
7
7
|
"build": "next build",
|
|
8
8
|
"start": "next start",
|
|
9
|
-
"preinstall": "yalc add
|
|
9
|
+
"preinstall": "yalc add react-email"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"
|
|
13
|
-
"@react-email/tailwind": "file:.yalc/@react-email/tailwind",
|
|
12
|
+
"react-email": "file:.yalc/react-email",
|
|
14
13
|
"next": "^15",
|
|
15
14
|
"react": "^19",
|
|
16
15
|
"react-dom": "^19"
|
|
@@ -6,12 +6,11 @@
|
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
8
8
|
"build": "vite build",
|
|
9
|
-
"preinstall": "yalc add
|
|
9
|
+
"preinstall": "yalc add react-email",
|
|
10
10
|
"preview": "vite preview"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"
|
|
14
|
-
"@react-email/tailwind": "file:.yalc/@react-email/tailwind",
|
|
13
|
+
"react-email": "file:.yalc/react-email",
|
|
15
14
|
"react": "^19",
|
|
16
15
|
"react-dom": "^19"
|
|
17
16
|
},
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { defineConfig } from 'vitest/config';
|
|
2
|
+
|
|
3
|
+
export default defineConfig({
|
|
4
|
+
test: {
|
|
5
|
+
globals: true,
|
|
6
|
+
environment: 'happy-dom',
|
|
7
|
+
include: ['**/e2e/**/*.{test,spec}.?(c|m)[jt]s?(x)'],
|
|
8
|
+
exclude: ['**/node_modules/**'],
|
|
9
|
+
},
|
|
10
|
+
esbuild: {
|
|
11
|
+
tsconfigRaw: {
|
|
12
|
+
compilerOptions: {
|
|
13
|
+
jsx: 'react-jsx',
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
});
|