@cap-js/postgres 2.0.6 → 2.1.0

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/CHANGELOG.md CHANGED
@@ -4,6 +4,20 @@
4
4
  - The format is based on [Keep a Changelog](http://keepachangelog.com/).
5
5
  - This project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## [2.1.0](https://github.com/cap-js/cds-dbs/compare/postgres-v2.0.6...postgres-v2.1.0) (2025-11-26)
8
+
9
+
10
+ ### Added
11
+
12
+ * show default pool configuration in `env` ([#1422](https://github.com/cap-js/cds-dbs/issues/1422)) ([89b397a](https://github.com/cap-js/cds-dbs/commit/89b397ade2a15be8ce81ed3e8d717fc98f1a8107))
13
+
14
+
15
+ ### Dependencies
16
+
17
+ * The following workspace dependencies were updated
18
+ * dependencies
19
+ * @cap-js/db-service bumped from ^2.6.0 to ^2.7.0
20
+
7
21
  ## [2.0.6](https://github.com/cap-js/cds-dbs/compare/postgres-v2.0.5...postgres-v2.0.6) (2025-10-23)
8
22
 
9
23
 
@@ -19,13 +19,7 @@ class PostgresService extends SQLService {
19
19
 
20
20
  get factory() {
21
21
  return {
22
- options: {
23
- min: 0,
24
- testOnBorrow: true,
25
- acquireTimeoutMillis: 1000,
26
- destroyTimeoutMillis: 1000,
27
- ...this.options.pool,
28
- },
22
+ options: this.options.pool || {},
29
23
  create: async () => {
30
24
  const { credentials: cr = {}, client: clientOptions = {} } = this.options
31
25
  const credentials = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cap-js/postgres",
3
- "version": "2.0.6",
3
+ "version": "2.1.0",
4
4
  "description": "CDS database service for Postgres",
5
5
  "homepage": "https://github.com/cap-js/cds-dbs/tree/main/postgres#cds-database-service-for-postgres",
6
6
  "repository": {
@@ -27,7 +27,7 @@
27
27
  "start": "docker compose -f pg-stack.yml up -d"
28
28
  },
29
29
  "dependencies": {
30
- "@cap-js/db-service": "^2.6.0",
30
+ "@cap-js/db-service": "^2.7.0",
31
31
  "pg": "^8"
32
32
  },
33
33
  "peerDependencies": {
@@ -64,6 +64,13 @@
64
64
  "vcap": {
65
65
  "label": "postgresql-db"
66
66
  },
67
+ "pool": {
68
+ "min": 0,
69
+ "max": 10,
70
+ "testOnBorrow": true,
71
+ "acquireTimeoutMillis": 1000,
72
+ "destroyTimeoutMillis": 1000
73
+ },
67
74
  "schema_evolution": "auto"
68
75
  }
69
76
  },