diff --git a/packages/db/package.json b/packages/db/package.json index 4ef04fc6c..97c20d53f 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -31,7 +31,7 @@ }, "dependencies": { "@vercel/postgres": "^0.10.0", - "drizzle-orm": "^0.34.1", + "drizzle-orm": "^0.35.1", "drizzle-zod": "^0.5.1", "zod": "catalog:" }, @@ -40,7 +40,7 @@ "@acme/prettier-config": "workspace:*", "@acme/tsconfig": "workspace:*", "dotenv-cli": "^7.4.2", - "drizzle-kit": "^0.25.0", + "drizzle-kit": "^0.26.2", "eslint": "catalog:", "prettier": "catalog:", "typescript": "catalog:" diff --git a/packages/db/src/client.ts b/packages/db/src/client.ts index 1a6ba6fe2..e23181ecf 100644 --- a/packages/db/src/client.ts +++ b/packages/db/src/client.ts @@ -3,4 +3,8 @@ import { drizzle } from "drizzle-orm/vercel-postgres"; import * as schema from "./schema"; -export const db = drizzle(sql, { schema, casing: "snake_case" }); +export const db = drizzle({ + client: sql, + schema, + casing: "snake_case", +}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ca648877b..0f64ec12d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -414,11 +414,11 @@ importers: specifier: ^0.10.0 version: 0.10.0(utf-8-validate@6.0.4) drizzle-orm: - specifier: ^0.34.1 - version: 0.34.1(@neondatabase/serverless@0.10.0)(@opentelemetry/api@1.9.0)(@planetscale/database@1.19.0)(@types/pg@8.11.10)(@types/react@18.3.11)(@vercel/postgres@0.10.0(utf-8-validate@6.0.4))(mysql2@3.11.3)(postgres@3.4.4)(react@18.3.1) + specifier: ^0.35.1 + version: 0.35.1(@neondatabase/serverless@0.10.0)(@opentelemetry/api@1.9.0)(@planetscale/database@1.19.0)(@types/pg@8.11.10)(@types/react@18.3.11)(@vercel/postgres@0.10.0(utf-8-validate@6.0.4))(mysql2@3.11.3)(postgres@3.4.4)(react@18.3.1) drizzle-zod: specifier: ^0.5.1 - version: 0.5.1(drizzle-orm@0.34.1(@neondatabase/serverless@0.10.0)(@opentelemetry/api@1.9.0)(@planetscale/database@1.19.0)(@types/pg@8.11.10)(@types/react@18.3.11)(@vercel/postgres@0.10.0(utf-8-validate@6.0.4))(mysql2@3.11.3)(postgres@3.4.4)(react@18.3.1))(zod@3.23.8) + version: 0.5.1(drizzle-orm@0.35.1(@neondatabase/serverless@0.10.0)(@opentelemetry/api@1.9.0)(@planetscale/database@1.19.0)(@types/pg@8.11.10)(@types/react@18.3.11)(@vercel/postgres@0.10.0(utf-8-validate@6.0.4))(mysql2@3.11.3)(postgres@3.4.4)(react@18.3.1))(zod@3.23.8) zod: specifier: 'catalog:' version: 3.23.8 @@ -436,8 +436,8 @@ importers: specifier: ^7.4.2 version: 7.4.2 drizzle-kit: - specifier: ^0.25.0 - version: 0.25.0 + specifier: ^0.26.2 + version: 0.26.2 eslint: specifier: 'catalog:' version: 9.12.0(jiti@2.3.3) @@ -4163,12 +4163,12 @@ packages: resolution: {integrity: sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==} engines: {node: '>=12'} - drizzle-kit@0.25.0: - resolution: {integrity: sha512-Rcf0nYCAKizwjWQCY+d3zytyuTbDb81NcaPor+8NebESlUz1+9W3uGl0+r9FhU4Qal5Zv9j/7neXCSCe7DHzjA==} + drizzle-kit@0.26.2: + resolution: {integrity: sha512-cMq8omEKywjIy5KcqUo6LvEFxkl8/zYHsgYjFVXjmPWWtuW4blcz+YW9+oIhoaALgs2ebRjzXwsJgN9i6P49Dw==} hasBin: true - drizzle-orm@0.34.1: - resolution: {integrity: sha512-t+zCwyWWt8xTqtYV4doE/xYmT7hpv1L8pQ66zddEz+3VWyedBBtctjMAp22mAJPfyWurRQXUJ1nrTtqLq+DqNA==} + drizzle-orm@0.35.1: + resolution: {integrity: sha512-HQxDdYuXlZFuvDPztlUIzrX8TqWa/Ej6uN6L0hkbuGL4slexOUMc3u4nXVU15RQ5QYbk+uLQnR6v1+OIrdCTXQ==} peerDependencies: '@aws-sdk/client-rds-data': '>=3' '@cloudflare/workers-types': '>=3' @@ -12292,7 +12292,7 @@ snapshots: dotenv@16.4.5: {} - drizzle-kit@0.25.0: + drizzle-kit@0.26.2: dependencies: '@drizzle-team/brocli': 0.10.1 '@esbuild-kit/esm-loader': 2.6.5 @@ -12301,7 +12301,7 @@ snapshots: transitivePeerDependencies: - supports-color - drizzle-orm@0.34.1(@neondatabase/serverless@0.10.0)(@opentelemetry/api@1.9.0)(@planetscale/database@1.19.0)(@types/pg@8.11.10)(@types/react@18.3.11)(@vercel/postgres@0.10.0(utf-8-validate@6.0.4))(mysql2@3.11.3)(postgres@3.4.4)(react@18.3.1): + drizzle-orm@0.35.1(@neondatabase/serverless@0.10.0)(@opentelemetry/api@1.9.0)(@planetscale/database@1.19.0)(@types/pg@8.11.10)(@types/react@18.3.11)(@vercel/postgres@0.10.0(utf-8-validate@6.0.4))(mysql2@3.11.3)(postgres@3.4.4)(react@18.3.1): optionalDependencies: '@neondatabase/serverless': 0.10.0 '@opentelemetry/api': 1.9.0 @@ -12313,9 +12313,9 @@ snapshots: postgres: 3.4.4 react: 18.3.1 - drizzle-zod@0.5.1(drizzle-orm@0.34.1(@neondatabase/serverless@0.10.0)(@opentelemetry/api@1.9.0)(@planetscale/database@1.19.0)(@types/pg@8.11.10)(@types/react@18.3.11)(@vercel/postgres@0.10.0(utf-8-validate@6.0.4))(mysql2@3.11.3)(postgres@3.4.4)(react@18.3.1))(zod@3.23.8): + drizzle-zod@0.5.1(drizzle-orm@0.35.1(@neondatabase/serverless@0.10.0)(@opentelemetry/api@1.9.0)(@planetscale/database@1.19.0)(@types/pg@8.11.10)(@types/react@18.3.11)(@vercel/postgres@0.10.0(utf-8-validate@6.0.4))(mysql2@3.11.3)(postgres@3.4.4)(react@18.3.1))(zod@3.23.8): dependencies: - drizzle-orm: 0.34.1(@neondatabase/serverless@0.10.0)(@opentelemetry/api@1.9.0)(@planetscale/database@1.19.0)(@types/pg@8.11.10)(@types/react@18.3.11)(@vercel/postgres@0.10.0(utf-8-validate@6.0.4))(mysql2@3.11.3)(postgres@3.4.4)(react@18.3.1) + drizzle-orm: 0.35.1(@neondatabase/serverless@0.10.0)(@opentelemetry/api@1.9.0)(@planetscale/database@1.19.0)(@types/pg@8.11.10)(@types/react@18.3.11)(@vercel/postgres@0.10.0(utf-8-validate@6.0.4))(mysql2@3.11.3)(postgres@3.4.4)(react@18.3.1) zod: 3.23.8 duplexer@0.1.2: {}