react-email 6.9.5 → 6.10.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,15 @@
1
1
  # react-email
2
2
 
3
+ ## 6.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e9939f0: Upgrade `chokidar` to v5, which ships with npm provenance, so installs under pnpm's `trustPolicy: no-downgrade` no longer fail. The CLI now needs Node 20.19 or newer.
8
+
9
+ ### Patch Changes
10
+
11
+ - 1b45ed0: The dev server now refuses to start on Node older than 20.19, which matches the package's declared minimum, and names the installed version in the error.
12
+
3
13
  ## 6.9.5
4
14
 
5
15
  ### Patch Changes
@@ -6533,7 +6533,7 @@ const getTracingRootDir = async (usersProjectLocation) => {
6533
6533
  //#region package.json
6534
6534
  var package_default = {
6535
6535
  name: "react-email",
6536
- version: "6.9.5",
6536
+ version: "6.10.0",
6537
6537
  description: "A live preview of your emails right in your browser.",
6538
6538
  bin: { "email": "./dist/cli/index.mjs" },
6539
6539
  type: "module",
@@ -6565,7 +6565,7 @@ var package_default = {
6565
6565
  "directory": "packages/react-email"
6566
6566
  },
6567
6567
  keywords: ["react", "email"],
6568
- engines: { "node": ">=20.0.0" },
6568
+ engines: { "node": ">=20.19.0" },
6569
6569
  peerDependencies: {
6570
6570
  "react": "^18.0 || ^19.0 || ^19.0.0-rc",
6571
6571
  "react-dom": "^18.0 || ^19.0 || ^19.0.0-rc"
@@ -6574,7 +6574,7 @@ var package_default = {
6574
6574
  "@babel/parser": "catalog:",
6575
6575
  "@babel/traverse": "catalog:",
6576
6576
  "@react-email/render": "workspace:>=2.1.0",
6577
- "chokidar": "^4.0.3",
6577
+ "chokidar": "^5.0.0",
6578
6578
  "commander": "catalog:",
6579
6579
  "conf": "^15.0.2",
6580
6580
  "css-tree": "3.2.1",
@@ -7229,10 +7229,6 @@ const conf = new Conf({
7229
7229
  });
7230
7230
  //#endregion
7231
7231
  //#region src/cli/utils/style-text.ts
7232
- /**
7233
- * Centralized fallback for Node versions (<20.12.0) without util.styleText.
7234
- * Returns the original text when styleText is unavailable.
7235
- */
7236
7232
  const styleText = nodeUtil.styleText ? nodeUtil.styleText : (_, text) => text;
7237
7233
  //#endregion
7238
7234
  //#region src/cli/utils/preview/get-env-variables-for-preview-app.ts
@@ -7299,9 +7295,9 @@ const safeAsyncServerListen = (server, port) => {
7299
7295
  });
7300
7296
  };
7301
7297
  const startDevServer = async (emailsDirRelativePath, staticBaseDirRelativePath, port, compatibilityClients) => {
7302
- const [majorNodeVersion] = process.versions.node.split(".");
7303
- if (majorNodeVersion && Number.parseInt(majorNodeVersion, 10) < 20) {
7304
- console.error(` ${logSymbols.error} Node ${majorNodeVersion} is not supported. Please upgrade to Node 20 or higher.`);
7298
+ const [major = 0, minor = 0] = process.versions.node.split(".").map(Number);
7299
+ if (major < 20 || major === 20 && minor < 19) {
7300
+ console.error(` ${logSymbols.error} Node ${process.versions.node} is not supported. Please upgrade to Node 20.19 or higher.`);
7305
7301
  process.exit(1);
7306
7302
  }
7307
7303
  const previewServerLocation = await getUiLocation();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-email",
3
- "version": "6.9.5",
3
+ "version": "6.10.0",
4
4
  "description": "A live preview of your emails right in your browser.",
5
5
  "bin": {
6
6
  "email": "./dist/cli/index.mjs"
@@ -29,7 +29,7 @@
29
29
  "email"
30
30
  ],
31
31
  "engines": {
32
- "node": ">=20.0.0"
32
+ "node": ">=20.19.0"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "react": "^18.0 || ^19.0 || ^19.0.0-rc",
@@ -39,7 +39,7 @@
39
39
  "@babel/parser": "7.29.2",
40
40
  "@babel/traverse": "7.29.0",
41
41
  "@react-email/render": ">=2.1.0",
42
- "chokidar": "^4.0.3",
42
+ "chokidar": "^5.0.0",
43
43
  "commander": "^13.0.0",
44
44
  "conf": "^15.0.2",
45
45
  "css-tree": "3.2.1",