@holo-js/db-postgres 0.3.22 → 0.3.24

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/dist/index.d.ts CHANGED
@@ -25,7 +25,7 @@ interface PostgresAdapterOptions<TConfig extends PoolConfig = PoolConfig> {
25
25
  createPool?: (config?: TConfig) => PostgresPoolLike;
26
26
  }
27
27
  declare class PostgresAdapter<TConfig extends PoolConfig = PoolConfig> implements DriverAdapter {
28
- readonly supportsConcurrentTransactionScopes = true;
28
+ readonly supportsConcurrentTransactionScopes: boolean;
29
29
  private pool?;
30
30
  private readonly directClient?;
31
31
  private readonly createPoolInstance?;
package/dist/index.mjs CHANGED
@@ -51,7 +51,7 @@ function resolveBootstrapTarget(config) {
51
51
  return void 0;
52
52
  }
53
53
  var PostgresAdapter = class {
54
- supportsConcurrentTransactionScopes = true;
54
+ supportsConcurrentTransactionScopes;
55
55
  pool;
56
56
  directClient;
57
57
  createPoolInstance;
@@ -59,6 +59,7 @@ var PostgresAdapter = class {
59
59
  connected;
60
60
  transactionClients;
61
61
  constructor(options = {}) {
62
+ this.supportsConcurrentTransactionScopes = !options.client;
62
63
  this.directClient = options.client;
63
64
  this.pool = options.pool;
64
65
  this.createPoolInstance = options.createPool ?? (options.client || options.pool ? void 0 : (config) => new Pool({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@holo-js/db-postgres",
3
- "version": "0.3.22",
3
+ "version": "0.3.24",
4
4
  "description": "Holo-JS Framework - Postgres database adapter",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -24,13 +24,13 @@
24
24
  "test:integration": "HOLO_POSTGRES_INTEGRATION=1 vitest --run tests/postgres.test.ts"
25
25
  },
26
26
  "peerDependencies": {
27
- "@holo-js/db": "^0.3.22"
27
+ "@holo-js/db": "^0.3.24"
28
28
  },
29
29
  "dependencies": {
30
30
  "pg": "^8.13.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@holo-js/db": "^0.3.22",
33
+ "@holo-js/db": "^0.3.24",
34
34
  "@types/pg": "^8.11.0",
35
35
  "tsup": "^8.3.5",
36
36
  "typescript": "^5.7.2",