@sap/cds-dk 9.3.1 → 9.3.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 +7 -0
- package/bin/up.js +3 -24
- package/lib/import/odata/v2parser.js +4 -0
- package/lib/init/template/github-actions/index.js +0 -2
- package/lib/init/template/html5-repo/files/mta.yaml.hbs +2 -0
- package/lib/init/template/html5-repo/index.js +0 -3
- package/npm-shrinkwrap.json +10 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,13 @@ 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.3.2 - 2025-09-16
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- `cds add html5-repo` avoids some superfluous configuration combination with `cds add portal`.
|
|
14
|
+
- `cds import` correctly imports OData v2 EDMX files with `Edm.Time` properties having a precision.
|
|
15
|
+
|
|
9
16
|
## Version 9.3.1 - 2025-09-08
|
|
10
17
|
|
|
11
18
|
### Fixed
|
package/bin/up.js
CHANGED
|
@@ -27,9 +27,9 @@ module.exports = Object.assign(up, {
|
|
|
27
27
|
*cds up --to k8s --namespace e2e-tests*
|
|
28
28
|
`})
|
|
29
29
|
|
|
30
|
-
const { execSync
|
|
30
|
+
const { execSync } = require('node:child_process')
|
|
31
31
|
const cds = require('../lib/cds')
|
|
32
|
-
const { highlight
|
|
32
|
+
const { highlight } = require('../lib/util/term')
|
|
33
33
|
const { exists, fs, path, path: { join } } = cds.utils
|
|
34
34
|
const { readProject } = require('../lib/init/projectReader')
|
|
35
35
|
|
|
@@ -45,27 +45,6 @@ const run = cmd => {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
const runDetectingError = async (cmd, errorRegex) => {
|
|
49
|
-
console.log(highlight(cmd))
|
|
50
|
-
return new Promise((resolve, reject) => {
|
|
51
|
-
const child = spawn(cmd, { shell: true, stdio: 'pipe' })
|
|
52
|
-
let out = '';
|
|
53
|
-
['stdout', 'stderr'].forEach(key => {
|
|
54
|
-
child[key].on('data', data => {
|
|
55
|
-
process[key].write(data.toString())
|
|
56
|
-
out += data.toString()
|
|
57
|
-
})
|
|
58
|
-
})
|
|
59
|
-
child.on('close', () => {
|
|
60
|
-
const error = out.match(errorRegex)
|
|
61
|
-
if (error) {
|
|
62
|
-
return reject('Error in command: ' + bold(cmd) + ' → exiting')
|
|
63
|
-
}
|
|
64
|
-
resolve(out)
|
|
65
|
-
})
|
|
66
|
-
})
|
|
67
|
-
}
|
|
68
|
-
|
|
69
48
|
async function up() {
|
|
70
49
|
const project = readProject()
|
|
71
50
|
const { apps, appName, hasApprouter, hasXsuaa, isMonorepoMicroservice } = project
|
|
@@ -121,7 +100,7 @@ async function up() {
|
|
|
121
100
|
const nsKubectl = ns ? `-n ${ns}` : ''
|
|
122
101
|
|
|
123
102
|
run('npm i --package-lock')
|
|
124
|
-
|
|
103
|
+
run('ctz containerize.yaml --log --push')
|
|
125
104
|
let helmUpgrade = `helm upgrade --install ${appName} ./gen/chart ${nsHelm} --wait --wait-for-jobs --timeout=10m`
|
|
126
105
|
if (hasXsuaa) helmUpgrade += ' --set-file xsuaa.jsonParameters=xs-security.json'
|
|
127
106
|
run(helmUpgrade)
|
|
@@ -453,6 +453,10 @@ function _getServiceEntityProperty(
|
|
|
453
453
|
if (cdsDataType === undefined) {
|
|
454
454
|
cdsDataType = edmxncdsdatatype[dataType + "_a"];
|
|
455
455
|
hasInvalidPrecision = true;
|
|
456
|
+
// Additional fallback for Edm.Time with precision
|
|
457
|
+
if (cdsDataType === undefined && dataType === 'Edm.Time') {
|
|
458
|
+
cdsDataType = edmxncdsdatatype[dataType];
|
|
459
|
+
}
|
|
456
460
|
}
|
|
457
461
|
} else if (displayFormat && displayFormat === "Date") {
|
|
458
462
|
cdsDataType = edmxncdsdatatype[dataType + "_f"];
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
const path = require('node:path')
|
|
2
2
|
const { execSync } = require('node:child_process')
|
|
3
|
-
const term = require('../../../util/term')
|
|
4
3
|
const { readProject } = require('../../projectReader')
|
|
5
4
|
const { renderAndCopy } = require('../../template')
|
|
6
5
|
const cds = require('../../../cds')
|
|
7
|
-
const DEBUG = cds.log('add')._debug
|
|
8
6
|
const { exists, copy } = cds.utils
|
|
9
7
|
|
|
10
8
|
module.exports = class GitHubActionTemplate extends require('../../plugin') {
|
|
@@ -46,6 +46,7 @@ modules:
|
|
|
46
46
|
- {{app}}.zip
|
|
47
47
|
target-path: {{#isNodejs}}{{& appPath }}{{/isNodejs}}{{#isJava}}resources{{/isJava}}
|
|
48
48
|
{{/apps}}
|
|
49
|
+
{{#hasWorkzoneStandard}}
|
|
49
50
|
parameters:
|
|
50
51
|
config:
|
|
51
52
|
HTML5Runtime_enabled: true
|
|
@@ -65,6 +66,7 @@ modules:
|
|
|
65
66
|
Authentication: NoAuthentication
|
|
66
67
|
Type: HTTP
|
|
67
68
|
ProxyType: Internet
|
|
69
|
+
{{/hasWorkzoneStandard}}
|
|
68
70
|
|
|
69
71
|
{{#apps}}
|
|
70
72
|
- name: {{strippedAppName}}{{strippedApp}}
|
|
@@ -94,9 +94,6 @@ module.exports = class Html5RepoTemplate extends require('../../plugin') {
|
|
|
94
94
|
relationships.push({
|
|
95
95
|
insert: [html5Runtime, 'name'],
|
|
96
96
|
into: [approuter, 'requires', 'name'],
|
|
97
|
-
}, {
|
|
98
|
-
insert: [html5RepoHost, 'name'],
|
|
99
|
-
into: [approuter, 'requires', 'name'],
|
|
100
97
|
})
|
|
101
98
|
}
|
|
102
99
|
if (hasMultitenancy) {
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/cds-dk",
|
|
3
|
-
"version": "9.3.
|
|
3
|
+
"version": "9.3.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@sap/cds-dk",
|
|
9
|
-
"version": "9.3.
|
|
9
|
+
"version": "9.3.2",
|
|
10
10
|
"license": "SEE LICENSE IN LICENSE",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@cap-js/asyncapi": "^1.0.0",
|
|
@@ -120,8 +120,8 @@
|
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
122
|
"node_modules/@sap/cds-compiler": {
|
|
123
|
-
"version": "6.3.
|
|
124
|
-
"integrity": "sha512-
|
|
123
|
+
"version": "6.3.4",
|
|
124
|
+
"integrity": "sha512-3Ip+PgK0yiZXftAC1Pc5euiz4L56t0vX/a4k8xJwTxD0Ccr6G3AvmEFLju5f96D18nr4lH1djC05BeK9yWUpGg==",
|
|
125
125
|
"license": "SEE LICENSE IN LICENSE",
|
|
126
126
|
"bin": {
|
|
127
127
|
"cdsc": "bin/cdsc.js",
|
|
@@ -261,8 +261,8 @@
|
|
|
261
261
|
"license": "MIT"
|
|
262
262
|
},
|
|
263
263
|
"node_modules/axios": {
|
|
264
|
-
"version": "1.
|
|
265
|
-
"integrity": "sha512-
|
|
264
|
+
"version": "1.12.2",
|
|
265
|
+
"integrity": "sha512-vMJzPewAlRyOgxV2dU0Cuz2O8zzzx9VYtbJOaBgXFeLc4IV/Eg50n4LowmehOOR61S8ZMpc2K5Sa7g6A4jfkUw==",
|
|
266
266
|
"license": "MIT",
|
|
267
267
|
"dependencies": {
|
|
268
268
|
"follow-redirects": "^1.15.6",
|
|
@@ -558,8 +558,8 @@
|
|
|
558
558
|
}
|
|
559
559
|
},
|
|
560
560
|
"node_modules/detect-libc": {
|
|
561
|
-
"version": "2.0
|
|
562
|
-
"integrity": "sha512-
|
|
561
|
+
"version": "2.1.0",
|
|
562
|
+
"integrity": "sha512-vEtk+OcP7VBRtQZ1EJ3bdgzSfBjgnEalLTp5zjJrS+2Z1w2KZly4SBdac/WDU3hhsNAZ9E8SC96ME4Ey8MZ7cg==",
|
|
563
563
|
"license": "Apache-2.0",
|
|
564
564
|
"optional": true,
|
|
565
565
|
"engines": {
|
|
@@ -1665,8 +1665,8 @@
|
|
|
1665
1665
|
}
|
|
1666
1666
|
},
|
|
1667
1667
|
"node_modules/tar-fs": {
|
|
1668
|
-
"version": "2.1.
|
|
1669
|
-
"integrity": "sha512-
|
|
1668
|
+
"version": "2.1.4",
|
|
1669
|
+
"integrity": "sha512-mDAjwmZdh7LTT6pNleZ05Yt65HC3E+NiQzl672vQG38jIrehtJk/J3mNwIg+vShQPcLF/LV7CMnDW6vjj6sfYQ==",
|
|
1670
1670
|
"license": "MIT",
|
|
1671
1671
|
"optional": true,
|
|
1672
1672
|
"dependencies": {
|