react-email 4.2.12 → 4.3.0
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
package/dev/package.json
CHANGED
package/dist/index.js
CHANGED
|
@@ -86,7 +86,7 @@ const getEmailsDirectoryMetadata = async (absolutePathToEmailsDirectory, keepFil
|
|
|
86
86
|
//#endregion
|
|
87
87
|
//#region package.json
|
|
88
88
|
var name = "react-email";
|
|
89
|
-
var version = "4.
|
|
89
|
+
var version = "4.3.0";
|
|
90
90
|
var description = "A live preview of your emails right in your browser.";
|
|
91
91
|
var bin = { "email": "./dist/index.js" };
|
|
92
92
|
var type = "module";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-email",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "A live preview of your emails right in your browser.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"email": "./dist/index.js"
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"react": "19.0.0",
|
|
47
47
|
"react-dom": "19.0.0",
|
|
48
48
|
"typescript": "5.8.3",
|
|
49
|
-
"@react-email/components": "0.5.
|
|
49
|
+
"@react-email/components": "0.5.6"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "tsdown",
|
|
@@ -7,7 +7,7 @@ vi.mock('@babel/traverse', async () => {
|
|
|
7
7
|
});
|
|
8
8
|
|
|
9
9
|
describe('getImportedModules()', () => {
|
|
10
|
-
it('
|
|
10
|
+
it('works with this test file', async () => {
|
|
11
11
|
const contents = await fs.readFile(import.meta.filename, 'utf8');
|
|
12
12
|
|
|
13
13
|
expect(getImportedModules(contents)).toEqual([
|
|
@@ -16,7 +16,7 @@ describe('getImportedModules()', () => {
|
|
|
16
16
|
]);
|
|
17
17
|
});
|
|
18
18
|
|
|
19
|
-
it('
|
|
19
|
+
it('works with direct exports', () => {
|
|
20
20
|
const contents = `export * from './component-a';
|
|
21
21
|
export { ComponentB } from './component-b';
|
|
22
22
|
|
|
@@ -29,7 +29,7 @@ describe('getImportedModules()', () => {
|
|
|
29
29
|
]);
|
|
30
30
|
});
|
|
31
31
|
|
|
32
|
-
it('
|
|
32
|
+
it('works with regular imports and double quotes', () => {
|
|
33
33
|
const contents = `import {
|
|
34
34
|
Body,
|
|
35
35
|
Button,
|
|
@@ -59,7 +59,7 @@ import * as React from "react";
|
|
|
59
59
|
]);
|
|
60
60
|
});
|
|
61
61
|
|
|
62
|
-
it('
|
|
62
|
+
it('works with regular imports and single quotes', () => {
|
|
63
63
|
const contents = `import {
|
|
64
64
|
Body,
|
|
65
65
|
Button,
|
|
@@ -89,7 +89,7 @@ import * as React from 'react';
|
|
|
89
89
|
]);
|
|
90
90
|
});
|
|
91
91
|
|
|
92
|
-
it('
|
|
92
|
+
it('works with commonjs require with double quotes', () => {
|
|
93
93
|
const contents = `const {
|
|
94
94
|
Body,
|
|
95
95
|
Button,
|
|
@@ -119,7 +119,7 @@ const React = require("react");
|
|
|
119
119
|
]);
|
|
120
120
|
});
|
|
121
121
|
|
|
122
|
-
it('
|
|
122
|
+
it('works with commonjs require with single quotes', () => {
|
|
123
123
|
const contents = `const {
|
|
124
124
|
Body,
|
|
125
125
|
Button,
|