tezx 2.0.0 → 2.0.2

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/README.md CHANGED
@@ -189,7 +189,7 @@ npm run dev
189
189
  `src/index.ts`:
190
190
 
191
191
  ```ts
192
- import { bunAdapter } from "tezx/adapter";
192
+ import { bunAdapter } from "tezx/bun";
193
193
  bunAdapter(app).listen(3000, (message) => {
194
194
  console.log(message);
195
195
  });
@@ -206,7 +206,7 @@ bunAdapter(app).listen(3000, (message) => {
206
206
  `src/index.ts`:
207
207
 
208
208
  ```ts
209
- import { denoAdapter } from "tezx/adapter";
209
+ import { denoAdapter } from "tezx/deno";
210
210
  denoAdapter(app).listen(3000, (message) => {
211
211
  console.log(message);
212
212
  });
package/cjs/deno/env.js CHANGED
@@ -49,7 +49,7 @@ function loadEnv(basePath = "./") {
49
49
  `.env.${process?.env?.NODE_ENV || "development"}.local`,
50
50
  ];
51
51
  for (const envFile of envFiles) {
52
- parseEnvFile(`${basePath}${envFile}`, result);
52
+ parseEnvFile(`${basePath && basePath?.endsWith("/") ? basePath : `${basePath}/`}${envFile}`, result);
53
53
  }
54
54
  return result;
55
55
  }
package/cjs/index.js CHANGED
@@ -7,4 +7,4 @@ var server_js_1 = require("./core/server.js");
7
7
  Object.defineProperty(exports, "TezX", { enumerable: true, get: function () { return server_js_1.TezX; } });
8
8
  var params_js_1 = require("./utils/params.js");
9
9
  Object.defineProperty(exports, "useParams", { enumerable: true, get: function () { return params_js_1.useParams; } });
10
- exports.version = "2.0.0";
10
+ exports.version = "2.0.2";
package/cjs/node/env.js CHANGED
@@ -44,7 +44,7 @@ function loadEnv(basePath = "./") {
44
44
  `.env.${process?.env?.NODE_ENV || "development"}.local`,
45
45
  ];
46
46
  for (const envFile of envFiles) {
47
- parseEnvFile(`${basePath}${envFile}`, result);
47
+ parseEnvFile(`${basePath && basePath?.endsWith("/") ? basePath : `${basePath}/`}${envFile}`, result);
48
48
  }
49
49
  return result;
50
50
  }
package/deno/env.js CHANGED
@@ -46,7 +46,7 @@ export function loadEnv(basePath = "./") {
46
46
  `.env.${process?.env?.NODE_ENV || "development"}.local`,
47
47
  ];
48
48
  for (const envFile of envFiles) {
49
- parseEnvFile(`${basePath}${envFile}`, result);
49
+ parseEnvFile(`${basePath && basePath?.endsWith("/") ? basePath : `${basePath}/`}${envFile}`, result);
50
50
  }
51
51
  return result;
52
52
  }
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export { Router } from "./core/router.js";
2
2
  export { TezX } from "./core/server.js";
3
3
  export { useParams } from "./utils/params.js";
4
- export let version = "2.0.0";
4
+ export let version = "2.0.2";
package/node/env.js CHANGED
@@ -41,7 +41,7 @@ export function loadEnv(basePath = "./") {
41
41
  `.env.${process?.env?.NODE_ENV || "development"}.local`,
42
42
  ];
43
43
  for (const envFile of envFiles) {
44
- parseEnvFile(`${basePath}${envFile}`, result);
44
+ parseEnvFile(`${basePath && basePath?.endsWith("/") ? basePath : `${basePath}/`}${envFile}`, result);
45
45
  }
46
46
  return result;
47
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tezx",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "TezX is a high-performance, lightweight JavaScript framework designed for speed, scalability, and flexibility. It enables efficient routing, middleware management, and static file serving with minimal configuration. Fully compatible with Node.js, Deno, and Bun.",
5
5
  "main": "cjs/index.js",
6
6
  "module": "index.js",