@sap/cds-dk 9.1.0 → 9.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 +15 -0
- package/index.d.ts +3 -0
- package/lib/deploy/to-hana/hana.js +9 -4
- package/lib/init/constants.js +1 -1
- package/lib/init/index.js +4 -1
- package/lib/init/template/http/index.js +1 -1
- package/lib/init/template/nodejs/files/package.json.hbs +1 -1
- package/lib/init/template/typescript/files/package.json +1 -1
- package/npm-shrinkwrap.json +12 -9
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,21 @@ This project adheres to [Semantic Versioning](https://semver.org/).
|
|
|
6
6
|
|
|
7
7
|
The format is based on [Keep a Changelog](https://keepachangelog.com/).
|
|
8
8
|
|
|
9
|
+
## Version 9.1.1 - 2025-07-10
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- shipping an `index.d.ts` file containing a subset of the dk types now.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- `cds add http` now generates auth headers with `:` separators again, as this is the only separator supporting empty passwords with the RestClient extension in VS Code. (For use with IntelliJ, separate username and password with a blank.)
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- `cds deploy --to hana --no-build` now works correctly
|
|
22
|
+
- fixed bug in call from SAP Business Application Studio wizard
|
|
23
|
+
|
|
9
24
|
## Version 9.1.0 - 2025-07-02
|
|
10
25
|
|
|
11
26
|
### Added
|
package/index.d.ts
ADDED
|
@@ -29,7 +29,8 @@ const allowList = [
|
|
|
29
29
|
'--to',
|
|
30
30
|
'--tunnel-address',
|
|
31
31
|
'--vcap-file',
|
|
32
|
-
'--with-mocks'
|
|
32
|
+
'--with-mocks',
|
|
33
|
+
'--no-build'
|
|
33
34
|
]
|
|
34
35
|
|
|
35
36
|
module.exports = new class HanaDeployer {
|
|
@@ -110,7 +111,8 @@ Therefore, specifying the CDS model is not required when calling 'cds deploy'.`;
|
|
|
110
111
|
}
|
|
111
112
|
} else {
|
|
112
113
|
// the primary database is always built and deployed
|
|
113
|
-
const dest = buildResult.dest
|
|
114
|
+
// const dest = buildResult.dest
|
|
115
|
+
const dest = path.join(cds.root, cds.env.build.target, cds.env.folders.db);
|
|
114
116
|
|
|
115
117
|
if (undeployWhitelist) {
|
|
116
118
|
console.log('Writing undeploy.json');
|
|
@@ -130,7 +132,9 @@ metadata:
|
|
|
130
132
|
name: ${appName}-db
|
|
131
133
|
spec:
|
|
132
134
|
serviceOfferingName: hana
|
|
133
|
-
servicePlanName: hdi-shared
|
|
135
|
+
servicePlanName: hdi-shared
|
|
136
|
+
`
|
|
137
|
+
|
|
134
138
|
const binding =
|
|
135
139
|
`apiVersion: services.cloud.sap.com/v1
|
|
136
140
|
kind: ServiceBinding
|
|
@@ -139,7 +143,8 @@ metadata:
|
|
|
139
143
|
spec:
|
|
140
144
|
serviceInstanceName: ${appName}-db
|
|
141
145
|
secretName: ${appName}-db-secret
|
|
142
|
-
|
|
146
|
+
|
|
147
|
+
`
|
|
143
148
|
|
|
144
149
|
try {
|
|
145
150
|
cp.execSync('kubectl apply -f -', { input: instance })
|
package/lib/init/constants.js
CHANGED
package/lib/init/index.js
CHANGED
|
@@ -94,13 +94,16 @@ module.exports = class CDSGenerator {
|
|
|
94
94
|
async stepInit(projectName, options) { // Also used by CAP Generator
|
|
95
95
|
if (options) {
|
|
96
96
|
// called from CAP generator with options
|
|
97
|
+
// cds.cli is not set correctly when called from CAP generator
|
|
98
|
+
// so set defaults here
|
|
97
99
|
cds.cli = {
|
|
98
100
|
command: COMMAND_INIT,
|
|
99
101
|
// keep caller independent from internal names
|
|
100
102
|
options: {
|
|
101
103
|
cwd: options.cwd,
|
|
102
104
|
add: new Set(options.add)
|
|
103
|
-
}
|
|
105
|
+
},
|
|
106
|
+
argv:[]
|
|
104
107
|
}
|
|
105
108
|
|
|
106
109
|
// must be called after above code to ensure cds.cli.options.add is set
|
|
@@ -140,7 +140,7 @@ module.exports = class HttpTemplate extends require('../../plugin') {
|
|
|
140
140
|
requests.push(`@server=${hostname}\n${auth}`)
|
|
141
141
|
}
|
|
142
142
|
varsDefined = true
|
|
143
|
-
const headerAuth = username ? `Authorization: Basic {{username}}
|
|
143
|
+
const headerAuth = username ? `Authorization: Basic {{username}}:{{password}}` : ''
|
|
144
144
|
const headers = headerAuth ? `Content-Type: application/json\n${headerAuth}` : `Content-Type: application/json`
|
|
145
145
|
|
|
146
146
|
service.urlPaths.forEach((urlPath) => {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/cds-dk",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@sap/cds-dk",
|
|
9
|
-
"version": "9.1.
|
|
9
|
+
"version": "9.1.1",
|
|
10
10
|
"license": "SEE LICENSE IN LICENSE",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@cap-js/asyncapi": "^1.0.0",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"node_modules/@cap-js/db-service": {
|
|
45
|
-
"version": "2.
|
|
46
|
-
"integrity": "sha512-
|
|
45
|
+
"version": "2.2.0",
|
|
46
|
+
"integrity": "sha512-C5n8Qy8MwOGWjpXS44CskaEZt8YKrEEs4AtJyBSfJ6+aKMu/ynqpXh0Up4Ql0XX2Frq2PwNU8Ohai/04wxd46g==",
|
|
47
47
|
"devOptional": true,
|
|
48
48
|
"license": "Apache-2.0",
|
|
49
49
|
"dependencies": {
|
|
@@ -65,13 +65,13 @@
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
"node_modules/@cap-js/sqlite": {
|
|
68
|
-
"version": "2.0.
|
|
69
|
-
"integrity": "sha512-
|
|
68
|
+
"version": "2.0.2",
|
|
69
|
+
"integrity": "sha512-oNg2f56sfELshyp0eSmYYwG1lt4Zmc135sLIzS8iykHdRVxxJpTrPj0jx0Y4Hc6sfC9u25LRXVu/ZKqjm9Yu+Q==",
|
|
70
70
|
"license": "Apache-2.0",
|
|
71
71
|
"optional": true,
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"@cap-js/db-service": "^2",
|
|
74
|
-
"better-sqlite3": "^
|
|
74
|
+
"better-sqlite3": "^12.0.0"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"@sap/cds": ">=9"
|
|
@@ -291,14 +291,17 @@
|
|
|
291
291
|
"optional": true
|
|
292
292
|
},
|
|
293
293
|
"node_modules/better-sqlite3": {
|
|
294
|
-
"version": "
|
|
295
|
-
"integrity": "sha512-
|
|
294
|
+
"version": "12.2.0",
|
|
295
|
+
"integrity": "sha512-eGbYq2CT+tos1fBwLQ/tkBt9J5M3JEHjku4hbvQUePCckkvVf14xWj+1m7dGoK81M/fOjFT7yM9UMeKT/+vFLQ==",
|
|
296
296
|
"hasInstallScript": true,
|
|
297
297
|
"license": "MIT",
|
|
298
298
|
"optional": true,
|
|
299
299
|
"dependencies": {
|
|
300
300
|
"bindings": "^1.5.0",
|
|
301
301
|
"prebuild-install": "^7.1.1"
|
|
302
|
+
},
|
|
303
|
+
"engines": {
|
|
304
|
+
"node": "20.x || 22.x || 23.x || 24.x"
|
|
302
305
|
}
|
|
303
306
|
},
|
|
304
307
|
"node_modules/bindings": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/cds-dk",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.1",
|
|
4
4
|
"description": "Command line client and development toolkit for the SAP Cloud Application Programming Model",
|
|
5
5
|
"homepage": "https://cap.cloud.sap/",
|
|
6
6
|
"keywords": [
|
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
"LICENSE",
|
|
43
43
|
"npm-shrinkwrap.json",
|
|
44
44
|
"package.json",
|
|
45
|
-
"readme.md"
|
|
45
|
+
"readme.md",
|
|
46
|
+
"index.d.ts"
|
|
46
47
|
],
|
|
47
48
|
"_hasShrinkwrap": true
|
|
48
49
|
}
|