react-email 4.1.0-canary.10 → 4.1.0-canary.12
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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# react-email
|
|
2
2
|
|
|
3
|
+
## 4.1.0-canary.12
|
|
4
|
+
|
|
5
|
+
## 4.1.0-canary.11
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- 19d4b45: fix static file serving security issue with logging
|
|
10
|
+
|
|
3
11
|
## 4.1.0-canary.10
|
|
4
12
|
|
|
5
13
|
## 4.1.0-canary.9
|
|
@@ -65,6 +73,18 @@
|
|
|
65
73
|
|
|
66
74
|
- 4a0d4e3: Theme switcher for email template
|
|
67
75
|
|
|
76
|
+
## 4.0.17
|
|
77
|
+
|
|
78
|
+
### Patch Changes
|
|
79
|
+
|
|
80
|
+
- e352a67: fix `<svg>` not being flagged as incompatible
|
|
81
|
+
- 8f64ebd: fix the forced `color-scheme: dark` for the preview
|
|
82
|
+
- 6de4e9f: fix static file serving security issue with logging
|
|
83
|
+
- b2e96d5: Add support for hot reloading with tsconfig path aliases
|
|
84
|
+
- 6b0cfd6: fix hot reloading with collapsed directories
|
|
85
|
+
- 8c93330: Fix prettier errors causing NextJS serialization error
|
|
86
|
+
- a07eebf: Pre-render email templates on hover
|
|
87
|
+
|
|
68
88
|
## 4.0.16
|
|
69
89
|
|
|
70
90
|
### Patch Changes
|
package/dev/index.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -106,7 +106,7 @@ import prompts from "prompts";
|
|
|
106
106
|
// package.json
|
|
107
107
|
var package_default = {
|
|
108
108
|
name: "react-email",
|
|
109
|
-
version: "4.1.0-canary.
|
|
109
|
+
version: "4.1.0-canary.12",
|
|
110
110
|
description: "A live preview of your emails right in your browser.",
|
|
111
111
|
bin: {
|
|
112
112
|
email: "./dist/index.js"
|
|
@@ -114,8 +114,8 @@ var package_default = {
|
|
|
114
114
|
type: "module",
|
|
115
115
|
scripts: {
|
|
116
116
|
build: "tsup-node",
|
|
117
|
+
"build:watch": "tsup-node --watch src",
|
|
117
118
|
clean: "rm -rf dist",
|
|
118
|
-
dev: "tsup-node --watch src",
|
|
119
119
|
test: "vitest run",
|
|
120
120
|
"test:watch": "vitest"
|
|
121
121
|
},
|
|
@@ -514,7 +514,8 @@ var serveStaticFile = async (res, parsedUrl, staticDirRelativePath) => {
|
|
|
514
514
|
} else {
|
|
515
515
|
const sanitizedFilePath = fileAbsolutePath.replace(/\n|\r/g, "");
|
|
516
516
|
console.error(
|
|
517
|
-
`Could not read file at
|
|
517
|
+
`Could not read file at %s to be served, here's the exception:`,
|
|
518
|
+
sanitizedFilePath,
|
|
518
519
|
exception
|
|
519
520
|
);
|
|
520
521
|
res.statusCode = 500;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-email",
|
|
3
|
-
"version": "4.1.0-canary.
|
|
3
|
+
"version": "4.1.0-canary.12",
|
|
4
4
|
"description": "A live preview of your emails right in your browser.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"email": "./dist/index.js"
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"tsup": "8.4.0",
|
|
50
50
|
"tsx": "4.19.3",
|
|
51
51
|
"typescript": "5.8.3",
|
|
52
|
-
"@react-email/components": "0.1.
|
|
52
|
+
"@react-email/components": "0.1.1"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "tsup-node",
|
|
56
|
+
"build:watch": "tsup-node --watch src",
|
|
56
57
|
"clean": "rm -rf dist",
|
|
57
|
-
"dev": "tsup-node --watch src",
|
|
58
58
|
"test": "vitest run",
|
|
59
59
|
"test:watch": "vitest"
|
|
60
60
|
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
|
|
2
|
+
|
|
3
|
+
exports[`checkImages() 1`] = `
|
|
4
|
+
[
|
|
5
|
+
{
|
|
6
|
+
"checks": [
|
|
7
|
+
{
|
|
8
|
+
"metadata": {
|
|
9
|
+
"alt": undefined,
|
|
10
|
+
},
|
|
11
|
+
"passed": false,
|
|
12
|
+
"type": "accessibility",
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"passed": true,
|
|
16
|
+
"type": "syntax",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"passed": true,
|
|
20
|
+
"type": "security",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"metadata": {
|
|
24
|
+
"fetchStatusCode": 200,
|
|
25
|
+
},
|
|
26
|
+
"passed": true,
|
|
27
|
+
"type": "fetch_attempt",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"metadata": {
|
|
31
|
+
"byteCount": 26808,
|
|
32
|
+
},
|
|
33
|
+
"passed": true,
|
|
34
|
+
"type": "image_size",
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
"codeLocation": {
|
|
38
|
+
"column": 3,
|
|
39
|
+
"line": 2,
|
|
40
|
+
},
|
|
41
|
+
"source": "https://resend.com/static/brand/resend-icon-white.png",
|
|
42
|
+
"status": "warning",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"checks": [
|
|
46
|
+
{
|
|
47
|
+
"metadata": {
|
|
48
|
+
"alt": "codepen challenges",
|
|
49
|
+
},
|
|
50
|
+
"passed": true,
|
|
51
|
+
"type": "accessibility",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"passed": true,
|
|
55
|
+
"type": "syntax",
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"passed": true,
|
|
59
|
+
"type": "security",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"metadata": {
|
|
63
|
+
"fetchStatusCode": 200,
|
|
64
|
+
},
|
|
65
|
+
"passed": true,
|
|
66
|
+
"type": "fetch_attempt",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"metadata": {
|
|
70
|
+
"byteCount": 111922,
|
|
71
|
+
},
|
|
72
|
+
"passed": true,
|
|
73
|
+
"type": "image_size",
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
"codeLocation": {
|
|
77
|
+
"column": 3,
|
|
78
|
+
"line": 3,
|
|
79
|
+
},
|
|
80
|
+
"source": "/static/codepen-challengers.png",
|
|
81
|
+
"status": "success",
|
|
82
|
+
},
|
|
83
|
+
]
|
|
84
|
+
`;
|
|
@@ -38,7 +38,8 @@ export const serveStaticFile = async (
|
|
|
38
38
|
} else {
|
|
39
39
|
const sanitizedFilePath = fileAbsolutePath.replace(/\n|\r/g, '');
|
|
40
40
|
console.error(
|
|
41
|
-
`Could not read file at
|
|
41
|
+
`Could not read file at %s to be served, here's the exception:`,
|
|
42
|
+
sanitizedFilePath,
|
|
42
43
|
exception,
|
|
43
44
|
);
|
|
44
45
|
|