From d2d515b4af5c3574e9e261f331b42dbb196d4238 Mon Sep 17 00:00:00 2001 From: Dotta Date: Sat, 14 Nov 2026 07:07:10 -0600 Subject: [PATCH] fix(db): bundle the reviewed PostgreSQL driver for npm consumers --- doc/DATABASE.md | 9 +++++++++ packages/db/package.json | 5 +++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/doc/DATABASE.md b/doc/DATABASE.md index fc54cebf220..57009f0ef5b 100644 --- a/doc/DATABASE.md +++ b/doc/DATABASE.md @@ -1,5 +1,14 @@ # Database +### Published PostgreSQL driver + +`@paperclipai/db` bundles its exact reviewed `postgres` version. The normal +`scripts/prepare-bundled-package.mjs` staging step applies the tracked driver +patch before packing the package. This delivers the same connection lifecycle +and queue fixes to npm consumers that the workspace receives through pnpm. +When updating the driver, update its exact version and tracked patch together, +then verify the staged and normally installed driver payloads. + ### Better Auth 1.7.16 upgrade Better Auth 1.7.3 and later identify accounts by `provider_id` and `account_id`. diff --git a/packages/db/package.json b/packages/db/package.json index 8b041ed6c69..18714a40a34 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -35,7 +35,8 @@ "dist" ], "bundleDependencies": [ - "embedded-postgres" + "embedded-postgres", + "postgres" ], "scripts": { "check:migrations": "tsx src/check-migration-numbering.ts && tsx src/check-migration-safety.ts && tsx scripts/migration-compatibility.ts --check", @@ -51,7 +52,7 @@ "@paperclipai/shared": "workspace:*", "drizzle-orm": "^0.45.2", "embedded-postgres": "^18.1.0-beta.16", - "postgres": "^3.4.9" + "postgres": "3.4.9" }, "devDependencies": { "@types/node": "^24.0.0",