@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 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
@@ -0,0 +1,3 @@
1
+ export {
2
+ build
3
+ } from './lib/index.js'
@@ -46,8 +46,6 @@ class HanaBuildPlugin extends InternalBuildPlugin {
46
46
 
47
47
  if (cds.cli.options.mocked) {
48
48
  cds.deploy?.include_external_entities_in?.(model)
49
- } else {
50
- cds.deploy?.exclude_external_entities_in?.(model)
51
49
  }
52
50
 
53
51
  // the order of 1 and 2 is important
@@ -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 // path.join(cds.env.build.target, cds.env.folders.db);
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\n`
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
- \n`
146
+
147
+ `
143
148
 
144
149
  try {
145
150
  cp.execSync('kubectl apply -f -', { input: instance })
@@ -5,7 +5,7 @@ module.exports = {
5
5
  COMMAND_ADD: 'add',
6
6
 
7
7
  JAVA_LTS_VERSIONS: [17, 21],
8
- MAVEN_ARCHETYPE_VERSION: '4.0.2',
8
+ MAVEN_ARCHETYPE_VERSION: '4.1.1',
9
9
 
10
10
  OPTIONS: Object.freeze({
11
11
  COMPLETION: 'completion',
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}} {{password}}` : ''
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) => {
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@cap-js/sqlite": "^2",
17
- "@cap-js/cds-types": "^0.12.0"
17
+ "@cap-js/cds-types": "^0.13.0"
18
18
  },
19
19
  "scripts": {
20
20
  "start": "cds-serve"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "devDependencies": {
3
- "@cap-js/cds-types": "^0.12.0",
3
+ "@cap-js/cds-types": "^0.13.0",
4
4
  "@types/node": "^22.0.0",
5
5
  "tsx": "^4",
6
6
  "typescript": "^5"
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@sap/cds-dk",
3
- "version": "9.1.0",
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.0",
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.1.2",
46
- "integrity": "sha512-wbbEhUaSnQnYSC2029CO8MLAag5k/mJAtu6nyJUYfZbjkfr/JnP9lG5ylHg1dQtjRfAjPds+lxZIo35DHwNsVQ==",
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.1",
69
- "integrity": "sha512-QahmUBueZ5fvzal7WpcUN83EKrtnIxJCtGGGqXmJraeBZY/wDx+NqOGFiiZ9UE05lUSvYtPJw4JJ+d3f5aCy8w==",
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": "^11.0.0"
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.30.1",
82
- "integrity": "sha512-zXhuECFlyep42KZUhWjfvsmXGX39W8K8LFb8AWXM9gSV9dQB+MrJGLKvW6Zw0Ggnbpw0VHTtrhFXYe3Gym18jg==",
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.7.0",
161
- "integrity": "sha512-iA7W3en3QdZBTialmbomB2E6q4mP/b2Z2S2juhyQpbG7jPhc9jcL3S2wMkDv1XF3RJ5bmm6S/QwiSPtuCfI3LQ==",
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.4.2",
184
- "integrity": "sha512-v+u7kEyC5BT5S2ppOacRRBFwTGXVwu7tU83AMM5n/TzBMukdTE58+rMSFjvpm78Uy8ct2K+1W+xFS+Nx96b+6Q==",
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.7.0",
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.10.0",
265
- "integrity": "sha512-/1xYAC4MP/HEG+3duIhFr4ZQXR4sQXOIe+o6sdqzeykGLx6Upp/1p8MHqhINOvGeP7xyNHe7tsiJByc4SSVUxw==",
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.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": "11.10.0",
295
- "integrity": "sha512-EwhOpyXiOEL/lKzHz9AW1msWFNzGc/z+LzeB3/jnFJpxu+th2yqvzsSWas1v9jgs9+xiXJcD5A8CJxAG2TaghQ==",
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.3",
809
- "integrity": "sha512-qsITQPfmvMOSAdeyZ+12I1c+CKSstAFAwu+97zrnWAbIr5u8wfsExUzCesVLC8NgHuRUqNN4Zy6UPWUTRGslcA==",
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.0",
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
  }