react-email 5.1.0 → 5.2.0-canary.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
@@ -1,5 +1,13 @@
1
1
  # react-email
2
2
 
3
+ ## 5.2.0-canary.0
4
+
5
+ ## 5.1.1
6
+
7
+ ### Patch Changes
8
+
9
+ - 8b7a660: remove use of devEngines which npm detects
10
+
3
11
  ## 5.1.0
4
12
 
5
13
  ### Minor Changes
package/dev/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # email-dev
2
2
 
3
+ ## 0.0.4
4
+
3
5
  ## 0.0.3
4
6
 
5
7
  ## 0.0.2
package/dev/index.js CHANGED
@@ -11,6 +11,10 @@ const tsxPath = path.resolve(dirname, '../../../node_modules/.bin/tsx');
11
11
 
12
12
  const tsx = child_process.spawn(tsxPath, [root, ...process.argv.slice(2)], {
13
13
  cwd: process.cwd(),
14
+ env: {
15
+ ...process.env,
16
+ NODE_OPTIONS: `${process.env.NODE_OPTIONS ?? ''} --experimental-vm-modules --disable-warning=ExperimentalWarning`,
17
+ },
14
18
  stdio: 'inherit',
15
19
  });
16
20
 
package/dev/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "email-dev",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "bin": "index.js",
5
5
  "private": true,
6
6
  "type": "module",
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env -S node --experimental-vm-modules --disable-warning=ExperimentalWarning
2
2
  import { createRequire } from "node:module";
3
3
  import { program } from "commander";
4
4
  import fs, { existsSync, promises, statSync, unlinkSync, writeFileSync } from "node:fs";
@@ -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.1.0",
90
+ version: "5.2.0-canary.0",
91
91
  description: "A live preview of your emails right in your browser.",
92
92
  bin: { "email": "./dist/index.js" },
93
93
  type: "module",
@@ -106,10 +106,6 @@ var package_default = {
106
106
  },
107
107
  keywords: ["react", "email"],
108
108
  engines: { "node": ">=20.0.0" },
109
- devEngines: { "runtime": {
110
- "name": "node",
111
- "version": ">=22.0.0"
112
- } },
113
109
  dependencies: {
114
110
  "@babel/parser": "^7.27.0",
115
111
  "@babel/traverse": "^7.27.0",
@@ -123,7 +119,7 @@ var package_default = {
123
119
  "log-symbols": "^7.0.0",
124
120
  "mime-types": "^3.0.0",
125
121
  "normalize-path": "^3.0.0",
126
- "nypm": "0.6.0",
122
+ "nypm": "0.6.2",
127
123
  "ora": "^8.0.0",
128
124
  "prompts": "2.4.2",
129
125
  "socket.io": "^4.8.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-email",
3
- "version": "5.1.0",
3
+ "version": "5.2.0-canary.0",
4
4
  "description": "A live preview of your emails right in your browser.",
5
5
  "bin": {
6
6
  "email": "./dist/index.js"
@@ -19,12 +19,6 @@
19
19
  "engines": {
20
20
  "node": ">=20.0.0"
21
21
  },
22
- "devEngines": {
23
- "runtime": {
24
- "name": "node",
25
- "version": ">=22.0.0"
26
- }
27
- },
28
22
  "dependencies": {
29
23
  "@babel/parser": "^7.27.0",
30
24
  "@babel/traverse": "^7.27.0",
@@ -38,7 +32,7 @@
38
32
  "log-symbols": "^7.0.0",
39
33
  "mime-types": "^3.0.0",
40
34
  "normalize-path": "^3.0.0",
41
- "nypm": "0.6.0",
35
+ "nypm": "0.6.2",
42
36
  "ora": "^8.0.0",
43
37
  "prompts": "2.4.2",
44
38
  "socket.io": "^4.8.1",
@@ -53,7 +47,7 @@
53
47
  "react": "19.0.0",
54
48
  "react-dom": "19.0.0",
55
49
  "typescript": "5.8.3",
56
- "@react-email/components": "1.0.2"
50
+ "@react-email/components": "1.0.4-canary.0"
57
51
  },
58
52
  "scripts": {
59
53
  "build": "tsdown",
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env -S node --experimental-vm-modules --disable-warning=ExperimentalWarning
2
2
  import { program } from 'commander';
3
3
  import { build } from './commands/build.js';
4
4
  import { dev } from './commands/dev.js';
@@ -29,39 +29,33 @@ describe('createDependencyGraph()', async () => {
29
29
  return path.resolve(testingDiretctory, relativePath);
30
30
  };
31
31
 
32
- it.sequential(
33
- 'should resolve dependents when there are circular dependencies',
34
- async () => {
35
- expect(resolveDependentsOf(toAbsolute('file-a.ts'))).toEqual([
36
- toAbsolute('file-b.ts'),
37
- toAbsolute('general-importing-file.ts'),
38
- ]);
39
- },
40
- );
32
+ it.sequential('should resolve dependents when there are circular dependencies', async () => {
33
+ expect(resolveDependentsOf(toAbsolute('file-a.ts'))).toEqual([
34
+ toAbsolute('file-b.ts'),
35
+ toAbsolute('general-importing-file.ts'),
36
+ ]);
37
+ });
41
38
 
42
- it.sequential(
43
- 'should have the right initial value for the dependency graph',
44
- () => {
45
- const relativePathDependencyGraph = Object.fromEntries(
46
- Object.entries(dependencyGraph).map(([key, value]) => {
47
- return [
48
- path.relative(testingDiretctory, key),
49
- {
50
- path: path.relative(testingDiretctory, value.path),
51
- dependentPaths: value.dependentPaths.map((p) =>
52
- path.relative(testingDiretctory, p),
53
- ),
54
- dependencyPaths: value.dependencyPaths.map((p) =>
55
- path.relative(testingDiretctory, p),
56
- ),
57
- moduleDependencies: value.moduleDependencies,
58
- },
59
- ];
60
- }),
61
- );
62
- expect(relativePathDependencyGraph).toMatchSnapshot();
63
- },
64
- );
39
+ it.sequential('should have the right initial value for the dependency graph', () => {
40
+ const relativePathDependencyGraph = Object.fromEntries(
41
+ Object.entries(dependencyGraph).map(([key, value]) => {
42
+ return [
43
+ path.relative(testingDiretctory, key),
44
+ {
45
+ path: path.relative(testingDiretctory, value.path),
46
+ dependentPaths: value.dependentPaths.map((p) =>
47
+ path.relative(testingDiretctory, p),
48
+ ),
49
+ dependencyPaths: value.dependencyPaths.map((p) =>
50
+ path.relative(testingDiretctory, p),
51
+ ),
52
+ moduleDependencies: value.moduleDependencies,
53
+ },
54
+ ];
55
+ }),
56
+ );
57
+ expect(relativePathDependencyGraph).toMatchSnapshot();
58
+ });
65
59
 
66
60
  it.sequential('should work when adding a new file', async () => {
67
61
  await fs.writeFile(
@@ -144,9 +144,9 @@ export const startDevServer = async (
144
144
  );
145
145
 
146
146
  const app = next({
147
- // passing in env here does not get the environment variables there
148
147
  dev: false,
149
148
  conf: {
149
+ // passing in env here does not get the environment variables there
150
150
  images: {
151
151
  // This is to avoid the warning with sharp
152
152
  unoptimized: true,