tempest.games 0.1.38 → 0.1.40

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/drizzle.config.ts CHANGED
@@ -1,22 +1,27 @@
1
+ import { type } from "arktype"
1
2
  import { defineConfig } from "drizzle-kit"
2
- import { z } from "zod"
3
3
 
4
- const dbCredentials = z
5
- .object({
6
- POSTGRES_HOST: z.string(),
7
- POSTGRES_PORT: z.string().transform((s) => Number.parseInt(s, 10)),
8
- POSTGRES_USER: z.string(),
9
- POSTGRES_PASSWORD: z.string(),
10
- POSTGRES_DATABASE: z.string(),
11
- })
12
- .transform((env) => ({
13
- host: env.POSTGRES_HOST,
14
- port: env.POSTGRES_PORT,
15
- user: env.POSTGRES_USER,
16
- password: env.POSTGRES_PASSWORD,
17
- database: env.POSTGRES_DATABASE,
18
- }))
19
- .parse(process.env)
4
+ const dbEnvType = type({
5
+ POSTGRES_HOST: `string`,
6
+ POSTGRES_PORT: `number`,
7
+ POSTGRES_USER: `string`,
8
+ POSTGRES_PASSWORD: `string`,
9
+ POSTGRES_DATABASE: `string`,
10
+ })
11
+
12
+ const dbEnv = dbEnvType(process.env)
13
+
14
+ if (dbEnv instanceof type.errors) {
15
+ throw new Error(`Invalid db env: ${dbEnv.toString()}`)
16
+ }
17
+
18
+ const dbCredentials = {
19
+ host: dbEnv.POSTGRES_HOST,
20
+ port: dbEnv.POSTGRES_PORT,
21
+ user: dbEnv.POSTGRES_USER,
22
+ password: dbEnv.POSTGRES_PASSWORD,
23
+ database: dbEnv.POSTGRES_DATABASE,
24
+ }
20
25
 
21
26
  export default defineConfig({
22
27
  dialect: `postgresql`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tempest.games",
3
- "version": "0.1.38",
3
+ "version": "0.1.40",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -26,45 +26,44 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "@t3-oss/env-core": "0.12.0",
29
- "cron": "4.1.3",
29
+ "arktype": "2.1.19",
30
+ "cron": "4.1.4",
30
31
  "drizzle-orm": "0.41.0",
31
- "openai": "4.91.1",
32
+ "openai": "4.93.0",
32
33
  "postgres": "3.4.5",
33
34
  "react": "19.1.0",
34
35
  "react-dom": "19.1.0",
35
- "safegen": "0.2.12",
36
+ "safegen": "0.2.15",
36
37
  "socket.io": "4.8.1",
37
38
  "socket.io-client": "4.8.1",
38
- "zod": "3.24.2",
39
- "zod-to-json-schema": "3.24.5",
40
- "atom.io": "0.32.3",
39
+ "atom.io": "0.32.4",
41
40
  "safedeposit": "0.1.0",
42
41
  "treetrunks": "0.1.2"
43
42
  },
44
43
  "devDependencies": {
45
- "@eslint/js": "9.23.0",
46
- "@types/node": "22.13.17",
44
+ "@eslint/js": "9.24.0",
45
+ "@types/node": "22.14.0",
47
46
  "@types/react": "19.1.0",
48
- "@types/react-dom": "19.1.1",
47
+ "@types/react-dom": "19.1.2",
49
48
  "@vitejs/plugin-react-swc": "3.8.1",
50
- "bun-types": "1.2.8",
49
+ "bun-types": "1.2.9",
51
50
  "concurrently": "9.1.2",
52
51
  "cross-env": "7.0.3",
53
- "dotenv": "16.4.7",
52
+ "dotenv": "16.5.0",
54
53
  "dotenv-cli": "8.0.0",
55
54
  "drizzle-kit": "0.30.6",
56
- "eslint": "9.23.0",
55
+ "eslint": "9.24.0",
57
56
  "eslint-plugin-react-refresh": "0.4.19",
58
57
  "globals": "16.0.0",
59
58
  "rimraf": "6.0.1",
60
- "sass-embedded": "1.86.1",
59
+ "sass-embedded": "1.86.3",
61
60
  "tsx": "4.19.3",
62
- "typescript": "5.8.2",
63
- "typescript-eslint": "8.29.0",
64
- "vite": "6.2.4",
61
+ "typescript": "5.8.3",
62
+ "typescript-eslint": "8.29.1",
63
+ "vite": "6.2.6",
65
64
  "vite-tsconfig-paths": "5.1.4",
66
65
  "vitest": "3.1.1",
67
- "flightdeck": "0.2.23",
66
+ "flightdeck": "0.2.24",
68
67
  "varmint": "0.4.7"
69
68
  },
70
69
  "scripts": {