@cap-js/postgres 2.0.6 → 2.1.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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,34 @@
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.1](https://github.com/cap-js/cds-dbs/compare/postgres-v2.1.0...postgres-v2.1.1) (2025-12-15)
8
+
9
+
10
+ ### Fixed
11
+
12
+ * fixed versions in postgres deployer package.json ([#1429](https://github.com/cap-js/cds-dbs/issues/1429)) ([c70ab92](https://github.com/cap-js/cds-dbs/commit/c70ab92a290e90eea64d4f54c25b301e8f3f6a0d))
13
+
14
+
15
+ ### Dependencies
16
+
17
+ * The following workspace dependencies were updated
18
+ * dependencies
19
+ * @cap-js/db-service bumped from ^2.7.0 to ^2.8.0
20
+
21
+ ## [2.1.0](https://github.com/cap-js/cds-dbs/compare/postgres-v2.0.6...postgres-v2.1.0) (2025-11-26)
22
+
23
+
24
+ ### Added
25
+
26
+ * 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))
27
+
28
+
29
+ ### Dependencies
30
+
31
+ * The following workspace dependencies were updated
32
+ * dependencies
33
+ * @cap-js/db-service bumped from ^2.6.0 to ^2.7.0
34
+
7
35
  ## [2.0.6](https://github.com/cap-js/cds-dbs/compare/postgres-v2.0.5...postgres-v2.0.6) (2025-10-23)
8
36
 
9
37
 
package/cds-plugin.js CHANGED
@@ -28,10 +28,11 @@ cds.build?.register?.('postgres', class PostgresBuildPlugin extends cds.build.Pl
28
28
  if (fs.existsSync(path.join(this.task.src, 'package.json'))) {
29
29
  promises.push(this.copy(path.join(this.task.src, 'package.json')).to('package.json'))
30
30
  } else {
31
+ const postgresPackageJson = require('./package.json');
31
32
  const packageJson = {
32
33
  dependencies: {
33
- '@sap/cds': '^9',
34
- '@cap-js/postgres': '^2'
34
+ '@sap/cds': cds.version,
35
+ '@cap-js/postgres': postgresPackageJson.version
35
36
  },
36
37
  scripts: { start: 'cds-deploy' }
37
38
  }
@@ -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.1",
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.8.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
  },