@sap/cds-dk 8.2.0 → 8.2.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 +7 -0
- package/bin/cds.js +5 -1
- package/lib/import/common.js +8 -5
- package/npm-shrinkwrap.json +11 -11
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,13 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
7
7
|
|
|
8
8
|
The format is based on [Keep a Changelog](http://keepachangelog.com/).
|
|
9
9
|
|
|
10
|
+
## Version 8.2.1 - 2024-09-05
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Update `@sap/hdi-deploy` to fix CVE-2024-4067 with `micromatch` 4.0.7
|
|
15
|
+
- `cds add` plugins now correctly parse flags (options with `type: 'boolean'`) if not used as the last argument.
|
|
16
|
+
|
|
10
17
|
## Version 8.2.0 - 2024-09-02
|
|
11
18
|
|
|
12
19
|
### Added
|
package/bin/cds.js
CHANGED
|
@@ -60,7 +60,11 @@ const cli = {
|
|
|
60
60
|
cds.cli = { command: 'add' }
|
|
61
61
|
await cds.plugins
|
|
62
62
|
for (const [, Plugin] of cds.add.registered) {
|
|
63
|
-
|
|
63
|
+
const all = Object.entries((new Plugin).options())
|
|
64
|
+
const flags = all.filter(([,f]) => f.type === 'boolean')
|
|
65
|
+
const options = all.filter(([,o]) => o.type !== 'boolean')
|
|
66
|
+
task.options.push(...options.map(([key]) => '--'+key))
|
|
67
|
+
task.flags.push(...flags.map(([key]) => '--'+key))
|
|
64
68
|
}
|
|
65
69
|
}
|
|
66
70
|
const args = this.args(task, argv)
|
package/lib/import/common.js
CHANGED
|
@@ -322,18 +322,21 @@ async function _updatePackageJson(dest, services, kind, cwd, config) {
|
|
|
322
322
|
const package_json = path.resolve(cwd, 'package.json');
|
|
323
323
|
const conf = await exists(package_json) ? require(package_json) : {};
|
|
324
324
|
const requires = ['cds', 'requires'].reduce((p, n) => p[n] || (p[n] = {}), conf);
|
|
325
|
-
if (kind !== 'rest') {
|
|
325
|
+
if (kind !== 'rest' && kind !== 'rfc') {
|
|
326
326
|
kind = (kind === "V2") ? 'odata-v2' : 'odata';
|
|
327
327
|
}
|
|
328
328
|
let package_json_updated = false;
|
|
329
329
|
for (let service of services) {
|
|
330
|
-
//
|
|
330
|
+
// existing service configuration data can be updated, e.g. in case of delta imports
|
|
331
331
|
const model = path.relative(cwd, dest).replace(/\\/g, '/'); // cds env must not be platform specific
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
332
|
+
const serviceConfig = { kind, model, ...config }
|
|
333
|
+
if (!requires[service] || JSON.stringify(serviceConfig) !== JSON.stringify(requires[service])) {
|
|
334
|
+
cds.env.requires[service] = requires[service] = serviceConfig;
|
|
335
|
+
package_json_updated = true;
|
|
336
|
+
}
|
|
335
337
|
}
|
|
336
338
|
if (package_json_updated) {
|
|
339
|
+
await write(package_json, JSON.stringify(conf, null, ' '));
|
|
337
340
|
console.log(`[cds] - updated ./package.json`);
|
|
338
341
|
}
|
|
339
342
|
}
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/cds-dk",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@sap/cds-dk",
|
|
9
|
-
"version": "8.2.
|
|
9
|
+
"version": "8.2.1",
|
|
10
10
|
"license": "SEE LICENSE IN LICENSE",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@cap-js/asyncapi": "^1.0.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"node_modules/@cap-js/db-service": {
|
|
46
|
-
"version": "1.12.
|
|
46
|
+
"version": "1.12.1",
|
|
47
47
|
"license": "SEE LICENSE",
|
|
48
48
|
"optional": true,
|
|
49
49
|
"dependencies": {
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
}
|
|
205
205
|
},
|
|
206
206
|
"node_modules/@sap/cds": {
|
|
207
|
-
"version": "8.2.
|
|
207
|
+
"version": "8.2.1",
|
|
208
208
|
"license": "SEE LICENSE IN LICENSE",
|
|
209
209
|
"dependencies": {
|
|
210
210
|
"@sap/cds-compiler": ">=5.1",
|
|
@@ -314,16 +314,16 @@
|
|
|
314
314
|
}
|
|
315
315
|
},
|
|
316
316
|
"node_modules/@sap/hdi-deploy": {
|
|
317
|
-
"version": "5.2.
|
|
317
|
+
"version": "5.2.2",
|
|
318
318
|
"hasInstallScript": true,
|
|
319
319
|
"license": "See LICENSE file",
|
|
320
320
|
"dependencies": {
|
|
321
321
|
"@sap/hdi": "4.5.2",
|
|
322
322
|
"@sap/xsenv": "5.2.0",
|
|
323
|
-
"async": "3.2.
|
|
323
|
+
"async": "3.2.6",
|
|
324
324
|
"dotenv": "16.4.5",
|
|
325
325
|
"handlebars": "4.7.8",
|
|
326
|
-
"micromatch": "4.0.
|
|
326
|
+
"micromatch": "4.0.8"
|
|
327
327
|
},
|
|
328
328
|
"engines": {
|
|
329
329
|
"node": "^18.0.0 || ^20.0.0"
|
|
@@ -442,7 +442,7 @@
|
|
|
442
442
|
}
|
|
443
443
|
},
|
|
444
444
|
"node_modules/async": {
|
|
445
|
-
"version": "3.2.
|
|
445
|
+
"version": "3.2.6",
|
|
446
446
|
"license": "MIT"
|
|
447
447
|
},
|
|
448
448
|
"node_modules/asynckit": {
|
|
@@ -1173,7 +1173,7 @@
|
|
|
1173
1173
|
"license": "ISC"
|
|
1174
1174
|
},
|
|
1175
1175
|
"node_modules/follow-redirects": {
|
|
1176
|
-
"version": "1.15.
|
|
1176
|
+
"version": "1.15.8",
|
|
1177
1177
|
"funding": [
|
|
1178
1178
|
{
|
|
1179
1179
|
"type": "individual",
|
|
@@ -1565,7 +1565,7 @@
|
|
|
1565
1565
|
}
|
|
1566
1566
|
},
|
|
1567
1567
|
"node_modules/micromatch": {
|
|
1568
|
-
"version": "4.0.
|
|
1568
|
+
"version": "4.0.8",
|
|
1569
1569
|
"license": "MIT",
|
|
1570
1570
|
"dependencies": {
|
|
1571
1571
|
"braces": "^3.0.3",
|
|
@@ -2434,7 +2434,7 @@
|
|
|
2434
2434
|
}
|
|
2435
2435
|
},
|
|
2436
2436
|
"node_modules/yaml": {
|
|
2437
|
-
"version": "2.5.
|
|
2437
|
+
"version": "2.5.1",
|
|
2438
2438
|
"license": "ISC",
|
|
2439
2439
|
"bin": {
|
|
2440
2440
|
"yaml": "bin.mjs"
|