react-email 4.1.0-canary.11 → 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,7 @@
1
1
  # react-email
2
2
 
3
+ ## 4.1.0-canary.12
4
+
3
5
  ## 4.1.0-canary.11
4
6
 
5
7
  ### Patch Changes
@@ -71,6 +73,18 @@
71
73
 
72
74
  - 4a0d4e3: Theme switcher for email template
73
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
+
74
88
  ## 4.0.16
75
89
 
76
90
  ### Patch Changes
package/dev/index.js CHANGED
@@ -15,6 +15,10 @@ const tsx = child_process.spawn(tsxPath, [root, ...process.argv.slice(2)], {
15
15
  stdio: 'inherit',
16
16
  });
17
17
 
18
+ tsx.on('close', (code) => {
19
+ process.exit(code);
20
+ });
21
+
18
22
  process.on('uncaughtExceptionMonitor', () => {
19
23
  tsx.kill();
20
24
  });
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.11",
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
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-email",
3
- "version": "4.1.0-canary.11",
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.0-canary.4"
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
+ `;