jeasx 2.9.0 → 2.9.1

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.
Files changed (2) hide show
  1. package/build.js +4 -4
  2. package/package.json +3 -3
package/build.js CHANGED
@@ -5,10 +5,11 @@ import env from "./env.js";
5
5
 
6
6
  env();
7
7
 
8
+ process.env.BUILD_TIME ??= Date.now().toString(36);
9
+
8
10
  const CWD = process.cwd();
9
11
  const CONFIG = (await import(`file://${join(CWD, "jeasx.config.js")}`)).default;
10
12
  const NODE_ENV_IS_DEVELOPMENT = process.env.NODE_ENV === "development";
11
- const BUILD_TIME = `"${process.env.BUILD_TIME || Date.now().toString(36)}"`;
12
13
 
13
14
  const BROWSER_PUBLIC_ENV = Object.keys(process.env)
14
15
  .filter((key) => key.startsWith("BROWSER_PUBLIC_"))
@@ -17,18 +18,17 @@ const BROWSER_PUBLIC_ENV = Object.keys(process.env)
17
18
  env[`process.env.${key}`] = `"${process.env[key]}"`;
18
19
  return env;
19
20
  },
20
- Object({ "process.env.BROWSER_PUBLIC_BUILD_TIME": BUILD_TIME }),
21
+ Object({ "process.env.BROWSER_PUBLIC_BUILD_TIME": `"${process.env.BUILD_TIME}"` }),
21
22
  );
22
23
 
23
24
  /** @type esbuild.BuildOptions */
24
25
  const SERVER_OPTIONS = {
25
26
  entryPoints: ["src/**/[*].*"],
26
- define: { "process.env.BUILD_TIME": BUILD_TIME },
27
+ define: { "process.env.BUILD_TIME": `"${process.env.BUILD_TIME}"` },
27
28
  minify: !NODE_ENV_IS_DEVELOPMENT,
28
29
  logLevel: "info",
29
30
  color: true,
30
31
  bundle: true,
31
- metafile: true,
32
32
  outdir: "dist",
33
33
  publicPath: "/",
34
34
  assetNames: "[dir]/[name]-[hash]",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jeasx",
3
- "version": "2.9.0",
3
+ "version": "2.9.1",
4
4
  "description": "Jeasx - the ease of JSX with the power of SSR",
5
5
  "keywords": [
6
6
  "async",
@@ -30,9 +30,9 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@fastify/send": "4.1.0",
33
- "@types/node": "26.1.1",
33
+ "@types/node": "26.1.2",
34
34
  "esbuild": "0.28.1",
35
- "fastify": "5.10.0",
35
+ "fastify": "5.11.0",
36
36
  "jsx-async-runtime": "2.2.0"
37
37
  },
38
38
  "allowScripts": {