feat: release design system engine, studio and component contracts

This commit is contained in:
Clintchiz committed 2026-10-19 13:09:03 +05:30
1 parent ff1065fb27
commit 3943b946d6
693 files changed
+175546 -3894

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@wrnexus/db",
"version": "0.8.23",
"version": "0.8.24",
"private": true,
"type": "module",
"main": "./src/index.ts",
+14 -4
View File
@@ -51,10 +51,20 @@ function runnerFor(client: BunSqlClient, dialect: Dialect): TxHandle {
export function bunSql(url: string, dialect: Dialect): Driver {
const max = Number(process.env.WRN_DB_POOL_MAX || 10);
const idleTimeout = Number(process.env.WRN_DB_IDLE_TIMEOUT || 30);
if (!Number.isInteger(max) || max < 1 || max > 100 || !Number.isInteger(idleTimeout) || idleTimeout < 0)
throw new Error('Invalid WRN_DB_POOL_MAX or WRN_DB_IDLE_TIMEOUT');
const Ctor = (Bun as unknown as { SQL: new (u: {url:string;max:number;idleTimeout:number}) => BunSqlClient }).SQL;
const client = new Ctor({url,max,idleTimeout});
if (
!Number.isInteger(max) ||
max < 1 ||
max > 100 ||
!Number.isInteger(idleTimeout) ||
idleTimeout < 0
)
throw new Error("Invalid WRN_DB_POOL_MAX or WRN_DB_IDLE_TIMEOUT");
const Ctor = (
Bun as unknown as {
SQL: new (u: { url: string; max: number; idleTimeout: number }) => BunSqlClient;
}
).SQL;
const client = new Ctor({ url, max, idleTimeout });
const runner = runnerFor(client, dialect);
return {
dialect,