@protobase/cli 0.111.0 → 0.111.1

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.
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "0.111.0";
2
+ var version = "0.111.1";
3
3
  //#endregion
4
4
  export { version };
@@ -23,10 +23,10 @@ const gateBackgroundWork = (pool, slots) => {
23
23
  throw error;
24
24
  });
25
25
  const release = client.release;
26
- client.release = () => {
27
- release.call(client);
26
+ client.release = ((error) => {
27
+ release.call(client, error);
28
28
  free();
29
- };
29
+ });
30
30
  return client;
31
31
  };
32
32
  return {
@@ -2,8 +2,8 @@ import { gateBackgroundWork } from "./background-gate.js";
2
2
  import { connectLong } from "./long-connect.js";
3
3
  import { connectOrBusy } from "./pool-wait.js";
4
4
  import { readDbConnections, wantsLongQueries } from "@protobase/server";
5
- import { appPool, longQueryPool } from "@protobase/server/internal";
6
- import { Kysely, PostgresDialect } from "kysely";
5
+ import { appDialect, appPool, longQueryPool } from "@protobase/server/internal";
6
+ import { Kysely } from "kysely";
7
7
  //#region src/project/pg-db.ts
8
8
  const createPgDb = (pg, url, max = readDbConnections(process.env)) => openAppDatabase(pg, url, max).db;
9
9
  /** Kysely over the app's pool, as `createPgDb` makes it. */
@@ -19,7 +19,7 @@ const openAppDatabase = (pg, url, max = readDbConnections(process.env)) => {
19
19
  await Promise.all([pool.end(), long.end()]);
20
20
  }
21
21
  };
22
- return { db: new Kysely({ dialect: new PostgresDialect({ pool: gateBackgroundWork(routed, Math.max(1, max - 1)) }) }) };
22
+ return { db: new Kysely({ dialect: appDialect(gateBackgroundWork(routed, Math.max(1, max - 1))) }) };
23
23
  };
24
24
  //#endregion
25
25
  export { createPgDb, openAppDatabase };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/cli",
3
- "version": "0.111.0",
3
+ "version": "0.111.1",
4
4
  "description": "The protobase command: scaffold, doctor, dev, build and serve a Protobase project.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -43,13 +43,13 @@
43
43
  "dependencies": {
44
44
  "@better-auth/core": "^1.7.12",
45
45
  "@hono/node-server": "^2.1.3",
46
- "@protobase/config": "0.111.0",
47
- "@protobase/layout": "0.111.0",
48
- "@protobase/query": "0.111.0",
49
- "@protobase/schema": "0.111.0",
50
- "@protobase/server": "0.111.0",
51
- "@protobase/ui": "0.111.0",
52
- "@protobase/workflows": "0.111.0",
46
+ "@protobase/config": "0.111.1",
47
+ "@protobase/layout": "0.111.1",
48
+ "@protobase/query": "0.111.1",
49
+ "@protobase/schema": "0.111.1",
50
+ "@protobase/server": "0.111.1",
51
+ "@protobase/ui": "0.111.1",
52
+ "@protobase/workflows": "0.111.1",
53
53
  "@react-email/render": "^2.1.0",
54
54
  "@scalar/hono-api-reference": "^0.12.10",
55
55
  "@sentry/vite-plugin": "^11.10.0",