jeasx 1.9.0 → 2.0.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/esbuild.config.js CHANGED
@@ -35,7 +35,7 @@ const buildOptions = [
35
35
  bundle: true,
36
36
  sourcemap: process.sourceMapsEnabled,
37
37
  sourcesContent: false,
38
- outdir: "dist/routes",
38
+ outdir: "dist/server",
39
39
  platform: "neutral",
40
40
  packages: "external",
41
41
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jeasx",
3
- "version": "1.9.0",
3
+ "version": "2.0.0",
4
4
  "description": "Jeasx - the ease of JSX with the power of SSR",
5
5
  "keywords": [
6
6
  "jsx",
@@ -28,10 +28,10 @@
28
28
  "@fastify/formbody": "8.0.2",
29
29
  "@fastify/multipart": "9.2.1",
30
30
  "@fastify/static": "8.2.0",
31
- "@types/node": "22.18.6",
31
+ "@types/node": "22.18.10",
32
32
  "esbuild": "0.25.10",
33
33
  "fastify": "5.6.1",
34
- "jsx-async-runtime": "1.0.4"
34
+ "jsx-async-runtime": "2.0.0"
35
35
  },
36
36
  "scripts": {
37
37
  "build": "esbuild --platform=node --format=esm --sourcemap=linked --sources-content=false --outdir=. serverless.ts"
package/serverless.js CHANGED
@@ -64,7 +64,7 @@ async function handler(request, reply) {
64
64
  }
65
65
  if (module === void 0) {
66
66
  try {
67
- const modulePath = join(CWD, "dist", `routes${route}.js`);
67
+ const modulePath = join(CWD, "dist", `server${route}.js`);
68
68
  if (NODE_ENV_IS_DEVELOPMENT) {
69
69
  if (typeof require === "function") {
70
70
  if (require.cache[modulePath]) {
package/serverless.ts CHANGED
@@ -110,7 +110,7 @@ async function handler(request: FastifyRequest, reply: FastifyReply) {
110
110
  // Module was not loaded yet?
111
111
  if (module === undefined) {
112
112
  try {
113
- const modulePath = join(CWD, "dist", `routes${route}.js`);
113
+ const modulePath = join(CWD, "dist", `server${route}.js`);
114
114
  if (NODE_ENV_IS_DEVELOPMENT) {
115
115
  if (typeof require === "function") {
116
116
  // Bun: Remove module from cache before importing