bazis 0.96.2 → 0.96.3

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
@@ -40,7 +40,7 @@ bunx bazis dev # GET http://127.0.0.1:3000/health
40
40
 
41
41
  ```sh
42
42
  bun add bazis # or a fixed version: bun add bazis@0.96.2
43
- bun add -d typescript @types/bun
43
+ bun add -d typescript@^6 @types/bun # TypeScript 7 is not supported yet
44
44
  ```
45
45
 
46
46
  Then take `tsconfig.json`, `bazis.config.json` and `src/index.ts` from a
@@ -149,7 +149,7 @@ function buildProjectFiles(name: string, dependency: string, frameworkMode: Fram
149
149
  "start": `./bin/${name}`,
150
150
  },
151
151
  dependencies: { bazis: dependency },
152
- devDependencies: { "@types/bun": "1.4.0", typescript: "^5" },
152
+ devDependencies: { "@types/bun": "1.4.0", typescript: "^6" },
153
153
  };
154
154
  const tsconfig = {
155
155
  compilerOptions: {
@@ -232,7 +232,7 @@ export class CodexAppServerClient implements CodexClient {
232
232
  if (method === "account/updated") this.modelCache = undefined;
233
233
  }, () => { this.clearLogin(); this.modelCache = undefined; });
234
234
  const initialized = await client.request("initialize", {
235
- clientInfo: { name: "bazis", title: "Bazis", version: "0.96.2" }, capabilities: { experimentalApi: true },
235
+ clientInfo: { name: "bazis", title: "Bazis", version: "0.96.3" }, capabilities: { experimentalApi: true },
236
236
  }, 15_000, signal);
237
237
  if (resolve(text(initialized.codexHome, 4096)) !== this.paths.home) throw new CodexError("PROTOCOL_ERROR");
238
238
  client.notify("initialized");
@@ -29,7 +29,11 @@ export class Environment {
29
29
  // A missing deployment setting must fail closed. Development is always an
30
30
  // explicit choice made by the dev scripts, never an accidental production
31
31
  // fallback.
32
- const raw = process.env.BAZIS_ENV ?? process.env.NODE_ENV ?? "production";
32
+ // Read through an alias: `bun build` replaces the literal
33
+ // `process.env.NODE_ENV` with "development" at bundle time, which would bake
34
+ // development mode into every compiled binary.
35
+ const env = process.env;
36
+ const raw = env.BAZIS_ENV ?? env.NODE_ENV ?? "production";
33
37
  const name = parseEnvironmentName(raw);
34
38
  return new Environment(name, debugOverride ?? name !== "production");
35
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bazis",
3
- "version": "0.96.2",
3
+ "version": "0.96.3",
4
4
  "description": "Modular backend framework for Bun in TypeScript: DI wired by codegen, HTTP, a PostgreSQL ORM, JWT, WebSocket, agents and a CLI.",
5
5
  "license": "MIT",
6
6
  "author": "Alexander Alenin",
@@ -71,7 +71,7 @@
71
71
  "bun": ">=1.4.0"
72
72
  },
73
73
  "peerDependencies": {
74
- "typescript": "^5.9.3"
74
+ "typescript": "^5.9.3 || ^6.0.0"
75
75
  },
76
76
  "publishConfig": {
77
77
  "access": "public",