@sap/cds-dk 9.1.0 → 9.1.2
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 +22 -0
- package/index.d.ts +3 -0
- package/lib/build/provider/hana/index.js +0 -2
- 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 +26 -23
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,28 @@ 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.2 - 2025-07-24
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- CVE-2025-7783: vulnerability with `form-data` versions <4.0.4.
|
|
14
|
+
- `cds build --for hana` no longer excludes external entities when not in mocking mode.
|
|
15
|
+
|
|
16
|
+
## Version 9.1.1 - 2025-07-10
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- shipping an `index.d.ts` file containing a subset of the dk types now.
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- `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.)
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- `cds deploy --to hana --no-build` now works correctly
|
|
29
|
+
- fixed bug in call from SAP Business Application Studio wizard
|
|
30
|
+
|
|
9
31
|
## Version 9.1.0 - 2025-07-02
|
|
10
32
|
|
|
11
33
|
### 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.2",
|
|
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.2",
|
|
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,21 +65,21 @@
|
|
|
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"
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
"node_modules/@eslint/js": {
|
|
81
|
-
"version": "9.
|
|
82
|
-
"integrity": "sha512-
|
|
81
|
+
"version": "9.31.0",
|
|
82
|
+
"integrity": "sha512-LOm5OVt7D4qiKCqoiPbA7LWmI+tbw1VbTUowBcUMgQSuM6poJufkFkYDcQpo5KfgD39TnNySV26QjOh7VFpSyw==",
|
|
83
83
|
"license": "MIT",
|
|
84
84
|
"peer": true,
|
|
85
85
|
"engines": {
|
|
@@ -157,8 +157,8 @@
|
|
|
157
157
|
}
|
|
158
158
|
},
|
|
159
159
|
"node_modules/@sap/hdi": {
|
|
160
|
-
"version": "4.
|
|
161
|
-
"integrity": "sha512-
|
|
160
|
+
"version": "4.8.0",
|
|
161
|
+
"integrity": "sha512-tkJmY2ffm6mt4/LFwRBihlQkMxNAXa3ngvRe2N/6+qLIsUNdrH/M03S5mkygXq56K+KoVVZYuradajCusMWwsw==",
|
|
162
162
|
"license": "See LICENSE file",
|
|
163
163
|
"dependencies": {
|
|
164
164
|
"async": "^3.2.3"
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
},
|
|
169
169
|
"peerDependencies": {
|
|
170
170
|
"@sap/hana-client": "^2 >= 2.5",
|
|
171
|
-
"hdb": "^0"
|
|
171
|
+
"hdb": "^2 || ^0"
|
|
172
172
|
},
|
|
173
173
|
"peerDependenciesMeta": {
|
|
174
174
|
"@sap/hana-client": {
|
|
@@ -180,11 +180,11 @@
|
|
|
180
180
|
}
|
|
181
181
|
},
|
|
182
182
|
"node_modules/@sap/hdi-deploy": {
|
|
183
|
-
"version": "5.
|
|
184
|
-
"integrity": "sha512-
|
|
183
|
+
"version": "5.5.0",
|
|
184
|
+
"integrity": "sha512-nxamWIBz+D/4wcvgYgxGSJLsyJ1KNtU9X6gfMHiyi/IjozGN/3WdeT11++jy5qeZNkdinuND55RRlRcnsu3W5g==",
|
|
185
185
|
"license": "See LICENSE file",
|
|
186
186
|
"dependencies": {
|
|
187
|
-
"@sap/hdi": "^4.
|
|
187
|
+
"@sap/hdi": "^4.8.0",
|
|
188
188
|
"@sap/xsenv": "^5.2.0",
|
|
189
189
|
"async": "^3.2.6",
|
|
190
190
|
"dotenv": "^16.4.5",
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
},
|
|
197
197
|
"peerDependencies": {
|
|
198
198
|
"@sap/hana-client": "^2 >= 2.6",
|
|
199
|
-
"hdb": "^0"
|
|
199
|
+
"hdb": "^2 || ^0"
|
|
200
200
|
},
|
|
201
201
|
"peerDependenciesMeta": {
|
|
202
202
|
"@sap/hana-client": {
|
|
@@ -261,12 +261,12 @@
|
|
|
261
261
|
"license": "MIT"
|
|
262
262
|
},
|
|
263
263
|
"node_modules/axios": {
|
|
264
|
-
"version": "1.
|
|
265
|
-
"integrity": "sha512
|
|
264
|
+
"version": "1.11.0",
|
|
265
|
+
"integrity": "sha512-1Lx3WLFQWm3ooKDYZD1eXmoGO9fxYQjrycfHFC8P0sCfQVXyROp0p9PFWBehewBOdCwHc+f/b8I0fMto5eSfwA==",
|
|
266
266
|
"license": "MIT",
|
|
267
267
|
"dependencies": {
|
|
268
268
|
"follow-redirects": "^1.15.6",
|
|
269
|
-
"form-data": "^4.0.
|
|
269
|
+
"form-data": "^4.0.4",
|
|
270
270
|
"proxy-from-env": "^1.1.0"
|
|
271
271
|
}
|
|
272
272
|
},
|
|
@@ -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": {
|
|
@@ -805,8 +808,8 @@
|
|
|
805
808
|
}
|
|
806
809
|
},
|
|
807
810
|
"node_modules/form-data": {
|
|
808
|
-
"version": "4.0.
|
|
809
|
-
"integrity": "sha512-
|
|
811
|
+
"version": "4.0.4",
|
|
812
|
+
"integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==",
|
|
810
813
|
"license": "MIT",
|
|
811
814
|
"dependencies": {
|
|
812
815
|
"asynckit": "^0.4.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/cds-dk",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.2",
|
|
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
|
}
|