@cap-js/postgres 1.2.1 → 1.3.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 +8 -2
- package/README.md +28 -1
- package/cds-plugin.js +4 -0
- package/package.json +9 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,17 @@
|
|
|
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
|
+
### Version 1.3.0 - 2023-10-06
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- `cds build` is now natively supported in `@cap-js/postgres`. Thus, a `cds build` will automatically generate deployment artifacts for Postgres-enabled projects.
|
|
12
|
+
|
|
7
13
|
## Version 1.2.1 - 2023-09-08
|
|
8
14
|
|
|
9
15
|
### Changed
|
|
10
16
|
|
|
11
|
-
- Bump minimum required version of `@cap-js/db-service`
|
|
17
|
+
- Bump minimum required version of `@cap-js/db-service`
|
|
12
18
|
|
|
13
19
|
## Version 1.2.0 - 2023-09-06
|
|
14
20
|
|
|
@@ -49,7 +55,7 @@
|
|
|
49
55
|
|
|
50
56
|
### Changed
|
|
51
57
|
|
|
52
|
-
- Updated minimum required version of `@cap-js/db-service`
|
|
58
|
+
- Updated minimum required version of `@cap-js/db-service`
|
|
53
59
|
|
|
54
60
|
## Version 1.0.0 - 2023-06-23
|
|
55
61
|
|
package/README.md
CHANGED
|
@@ -1,7 +1,34 @@
|
|
|
1
1
|
# CDS database service for Postgres
|
|
2
2
|
|
|
3
3
|
Welcome to the new Postgres database service for [SAP Cloud Application Programming Model](https://cap.cloud.sap) Node.js, based on new, streamlined database architecture and [*pg* driver](https://www.npmjs.com/package/pg) .
|
|
4
|
-
|
|
4
|
+
|
|
5
|
+
## Setup
|
|
6
|
+
|
|
7
|
+
In general, all you need to do is to install one of the database packages, as follows:
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
npm add @cap-js/postgres
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Learn more about setup and usage in the [respective database guide](https://cap.cloud.sap/docs/guides/databases-postgres).
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## Support
|
|
18
|
+
|
|
19
|
+
This project is open to feature requests/suggestions, bug reports etc. via [GitHub issues](https://github.com/cap-js/cds-dbs/issues).
|
|
20
|
+
|
|
21
|
+
## Contribution
|
|
22
|
+
|
|
23
|
+
Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our [Contribution Guidelines](CONTRIBUTING.md).
|
|
24
|
+
|
|
25
|
+
## Code of Conduct
|
|
26
|
+
|
|
27
|
+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone. By participating in this project, you agree to abide by its [Code of Conduct](CODE_OF_CONDUCT.md) at all times.
|
|
28
|
+
|
|
29
|
+
## Licensing
|
|
30
|
+
|
|
31
|
+
Copyright 2023 SAP SE or an SAP affiliate company and cds-dbs contributors. Please see our [LICENSE](LICENSE) for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available [via the REUSE tool](https://api.reuse.software/info/github.com/cap-js/cds-dbs).
|
|
5
32
|
|
|
6
33
|
## migration guide from `cds-pg` to `@cap-js/postgres`
|
|
7
34
|
|
package/cds-plugin.js
CHANGED
|
@@ -3,3 +3,7 @@ const cds = require('@sap/cds/lib')
|
|
|
3
3
|
if (!cds.env.fiori.lean_draft) {
|
|
4
4
|
throw new Error('"@cap-js/postgres" only works if cds.fiori.lean_draft is enabled. Please adapt your configuration.')
|
|
5
5
|
}
|
|
6
|
+
|
|
7
|
+
if (cds.cli.command === 'build') {
|
|
8
|
+
module.exports = require('./build')
|
|
9
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cap-js/postgres",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.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": {
|
|
@@ -31,11 +31,17 @@
|
|
|
31
31
|
"start": "docker-compose -f pg-stack.yml up -d"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@cap-js/db-service": "^1.
|
|
34
|
+
"@cap-js/db-service": "^1.3.0",
|
|
35
35
|
"pg": "^8"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@sap/cds": ">=7"
|
|
38
|
+
"@sap/cds": ">=7",
|
|
39
|
+
"@sap/cds-dk": ">=7"
|
|
40
|
+
},
|
|
41
|
+
"peerDependenciesMeta": {
|
|
42
|
+
"cds-dk": {
|
|
43
|
+
"optional": true
|
|
44
|
+
}
|
|
39
45
|
},
|
|
40
46
|
"cds": {
|
|
41
47
|
"requires": {
|