react-email 5.2.3 → 5.2.5

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,17 @@
1
1
  # react-email
2
2
 
3
+ ## 5.2.5
4
+
5
+ ### Patch Changes
6
+
7
+ - 81aea00: revert changes to fix compatibility with alpine
8
+
9
+ ## 5.2.4
10
+
11
+ ### Patch Changes
12
+
13
+ - 26283f9: fix support for alpine
14
+
3
15
  ## 5.2.3
4
16
 
5
17
  ### Patch Changes
package/dist/index.js CHANGED
@@ -87,7 +87,7 @@ const getEmailsDirectoryMetadata = async (absolutePathToEmailsDirectory, keepFil
87
87
  //#region package.json
88
88
  var package_default = {
89
89
  name: "react-email",
90
- version: "5.2.3",
90
+ version: "5.2.5",
91
91
  description: "A live preview of your emails right in your browser.",
92
92
  bin: { "email": "./dist/index.js" },
93
93
  type: "module",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-email",
3
- "version": "5.2.3",
3
+ "version": "5.2.5",
4
4
  "description": "A live preview of your emails right in your browser.",
5
5
  "bin": {
6
6
  "email": "./dist/index.js"
@@ -56,7 +56,72 @@ describe('createDependencyGraph()', async () => {
56
56
  ];
57
57
  }),
58
58
  );
59
- expect(relativePathDependencyGraph).toMatchSnapshot();
59
+ expect(relativePathDependencyGraph).toMatchInlineSnapshot(`
60
+ {
61
+ "../outer.ts": {
62
+ "dependencyPaths": [
63
+ "outer-dependency.ts",
64
+ ],
65
+ "dependentPaths": [
66
+ "general-importing-file.ts",
67
+ ],
68
+ "moduleDependencies": [],
69
+ "path": "../outer.ts",
70
+ },
71
+ "data-to-import.json": {
72
+ "dependencyPaths": [],
73
+ "dependentPaths": [
74
+ "general-importing-file.ts",
75
+ ],
76
+ "moduleDependencies": [],
77
+ "path": "data-to-import.json",
78
+ },
79
+ "file-a.ts": {
80
+ "dependencyPaths": [
81
+ "file-b.ts",
82
+ ],
83
+ "dependentPaths": [
84
+ "file-b.ts",
85
+ "general-importing-file.ts",
86
+ ],
87
+ "moduleDependencies": [],
88
+ "path": "file-a.ts",
89
+ },
90
+ "file-b.ts": {
91
+ "dependencyPaths": [
92
+ "file-a.ts",
93
+ ],
94
+ "dependentPaths": [
95
+ "file-a.ts",
96
+ "general-importing-file.ts",
97
+ ],
98
+ "moduleDependencies": [],
99
+ "path": "file-b.ts",
100
+ },
101
+ "general-importing-file.ts": {
102
+ "dependencyPaths": [
103
+ "../outer.ts",
104
+ "data-to-import.json",
105
+ "file-a.ts",
106
+ "file-b.ts",
107
+ ],
108
+ "dependentPaths": [],
109
+ "moduleDependencies": [
110
+ "node:os",
111
+ "node:path",
112
+ ],
113
+ "path": "general-importing-file.ts",
114
+ },
115
+ "outer-dependency.ts": {
116
+ "dependencyPaths": [],
117
+ "dependentPaths": [
118
+ "../outer.ts",
119
+ ],
120
+ "moduleDependencies": [],
121
+ "path": "outer-dependency.ts",
122
+ },
123
+ }
124
+ `);
60
125
  });
61
126
 
62
127
  it.sequential('should work when adding a new file', async () => {
@@ -1,5 +1,29 @@
1
1
  import { tree } from './tree.js';
2
2
 
3
3
  test('tree(__dirname, 2)', async () => {
4
- expect(await tree(__dirname, 2)).toMatchSnapshot();
4
+ expect(await tree(__dirname, 2)).toMatchInlineSnapshot(`
5
+ "utils
6
+ ├── esbuild
7
+ │ ├── escape-string-for-regex.ts
8
+ │ └── renderring-utilities-exporter.ts
9
+ ├── preview
10
+ │ ├── hot-reloading
11
+ │ ├── get-env-variables-for-preview-app.ts
12
+ │ ├── index.ts
13
+ │ ├── serve-static-file.ts
14
+ │ └── start-dev-server.ts
15
+ ├── types
16
+ │ ├── hot-reload-change.ts
17
+ │ └── hot-reload-event.ts
18
+ ├── conf.ts
19
+ ├── get-emails-directory-metadata.spec.ts
20
+ ├── get-emails-directory-metadata.ts
21
+ ├── get-preview-server-location.ts
22
+ ├── index.ts
23
+ ├── packageJson.ts
24
+ ├── register-spinner-autostopping.ts
25
+ ├── style-text.ts
26
+ ├── tree.spec.ts
27
+ └── tree.ts"
28
+ `);
5
29
  });
@@ -1,29 +0,0 @@
1
- // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
-
3
- exports[`tree(__dirname, 2) 1`] = `
4
- "utils
5
- ├── __snapshots__
6
- │ └── tree.spec.ts.snap
7
- ├── esbuild
8
- │ ├── escape-string-for-regex.ts
9
- │ └── renderring-utilities-exporter.ts
10
- ├── preview
11
- │ ├── hot-reloading
12
- │ ├── get-env-variables-for-preview-app.ts
13
- │ ├── index.ts
14
- │ ├── serve-static-file.ts
15
- │ └── start-dev-server.ts
16
- ├── types
17
- │ ├── hot-reload-change.ts
18
- │ └── hot-reload-event.ts
19
- ├── conf.ts
20
- ├── get-emails-directory-metadata.spec.ts
21
- ├── get-emails-directory-metadata.ts
22
- ├── get-preview-server-location.ts
23
- ├── index.ts
24
- ├── packageJson.ts
25
- ├── register-spinner-autostopping.ts
26
- ├── style-text.ts
27
- ├── tree.spec.ts
28
- └── tree.ts"
29
- `;
@@ -1,68 +0,0 @@
1
- // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
-
3
- exports[`createDependencyGraph() > should have the right initial value for the dependency graph 1`] = `
4
- {
5
- "../outer.ts": {
6
- "dependencyPaths": [
7
- "outer-dependency.ts",
8
- ],
9
- "dependentPaths": [
10
- "general-importing-file.ts",
11
- ],
12
- "moduleDependencies": [],
13
- "path": "../outer.ts",
14
- },
15
- "data-to-import.json": {
16
- "dependencyPaths": [],
17
- "dependentPaths": [
18
- "general-importing-file.ts",
19
- ],
20
- "moduleDependencies": [],
21
- "path": "data-to-import.json",
22
- },
23
- "file-a.ts": {
24
- "dependencyPaths": [
25
- "file-b.ts",
26
- ],
27
- "dependentPaths": [
28
- "file-b.ts",
29
- "general-importing-file.ts",
30
- ],
31
- "moduleDependencies": [],
32
- "path": "file-a.ts",
33
- },
34
- "file-b.ts": {
35
- "dependencyPaths": [
36
- "file-a.ts",
37
- ],
38
- "dependentPaths": [
39
- "file-a.ts",
40
- "general-importing-file.ts",
41
- ],
42
- "moduleDependencies": [],
43
- "path": "file-b.ts",
44
- },
45
- "general-importing-file.ts": {
46
- "dependencyPaths": [
47
- "../outer.ts",
48
- "data-to-import.json",
49
- "file-a.ts",
50
- "file-b.ts",
51
- ],
52
- "dependentPaths": [],
53
- "moduleDependencies": [
54
- "node:os",
55
- "node:path",
56
- ],
57
- "path": "general-importing-file.ts",
58
- },
59
- "outer-dependency.ts": {
60
- "dependencyPaths": [],
61
- "dependentPaths": [
62
- "../outer.ts",
63
- ],
64
- "moduleDependencies": [],
65
- "path": "outer-dependency.ts",
66
- },
67
- }
68
- `;