@sap/cds-dk 8.1.2 → 8.2.0
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 +50 -0
- package/bin/bind.js +44 -11
- package/bin/cds-tsx.js +2 -0
- package/bin/cds.js +5 -3
- package/bin/compile/index.js +2 -1
- package/bin/deploy/index.js +19 -1
- package/bin/import.js +13 -4
- package/bin/init.js +1 -1
- package/bin/version.js +1 -0
- package/bin/watch.js +2 -2
- package/lib/bind/bindingManager.js +1 -1
- package/lib/bind/cfKeyProvider.js +1 -1
- package/lib/build/buildTaskProviderFactory.js +9 -3
- package/lib/build/plugins/helm/files/subcharts/content-deployment/Chart.yaml +1 -1
- package/lib/build/plugins/helm/files/subcharts/content-deployment/values.yaml +1 -1
- package/lib/build/plugins/helm/files/subcharts/service-instance/Chart.yaml +1 -1
- package/lib/build/plugins/helm/files/subcharts/service-instance/values.yaml +1 -1
- package/lib/build/plugins/helm/files/subcharts/web-application/Chart.yaml +1 -1
- package/lib/build/plugins/helm/files/subcharts/web-application/templates/deployment.yaml +2 -2
- package/lib/build/plugins/helm/files/subcharts/web-application/values.yaml +1 -1
- package/lib/build/provider/hana/2migration.js +2 -2
- package/lib/build/provider/nodejs/index.js +5 -4
- package/lib/build/util.js +2 -1
- package/lib/compile/to-mermaid.js +4 -6
- package/lib/import/common.js +16 -18
- package/lib/import/message.js +6 -5
- package/lib/import/odata/index.js +1 -1
- package/lib/import/odata/v2parser.js +18 -17
- package/lib/import/odata/v4parser.js +62 -62
- package/lib/init/constants.js +3 -2
- package/lib/init/mvn.js +43 -6
- package/lib/init/plugin.js +1 -1
- package/lib/init/projectReader.js +1 -1
- package/lib/init/template/approuter/files/containerize.yaml.hbs +5 -0
- package/lib/init/template/cloud-logging/files/mta.yaml.hbs +25 -0
- package/lib/init/template/cloud-logging/files/package.json +14 -0
- package/lib/init/template/cloud-logging/index.js +80 -0
- package/lib/init/template/containerize/files/containerize.yaml.hbs +5 -0
- package/lib/init/template/dynatrace/files/mta.yaml.hbs +24 -0
- package/lib/init/template/dynatrace/files/package.json.hbs +14 -0
- package/lib/init/template/dynatrace/files/sidecar.package.json +0 -0
- package/lib/init/template/dynatrace/index.js +55 -0
- package/lib/init/template/hana/files/containerize.yaml.hbs +5 -0
- package/lib/init/template/hana/files/package.json.hbs +5 -3
- package/lib/init/template/handler/index.js +22 -0
- package/lib/init/template/helm/index.js +5 -1
- package/lib/init/template/html5-repo/index.js +5 -0
- package/lib/init/template/http/index.js +1 -1
- package/lib/init/template/java/index.js +2 -2
- package/lib/init/template/multitenancy/files/containerize.yaml.hbs +5 -0
- package/lib/init/template/portal/files/portal-site/CommonDataModel.json.hbs +2 -2
- package/lib/init/template/portal/files/values.yaml.hbs +43 -0
- package/lib/init/template/portal/index.js +4 -2
- package/lib/init/template/telemetry/index.js +19 -0
- package/lib/init/template/typescript/files/package.json +1 -3
- package/lib/mtx/auth_manager.js +12 -15
- package/lib/mtx/settings_manager.js +1 -1
- package/lib/mtx/util/logging.js +4 -4
- package/lib/util/cf.js +15 -5
- package/lib/util/command.js +3 -3
- package/lib/watch/livereload-server.js +3 -3
- package/lib/watch/node-watch.js +3 -3
- package/npm-shrinkwrap.json +17 -16
- package/package.json +3 -2
- package/readme.md +2 -2
package/lib/watch/node-watch.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const cds = require ('../cds')
|
|
2
|
-
const DEBUG = cds.debug('cli|watch')
|
|
2
|
+
const LOG = cds.log('cli|watch'), DEBUG = cds.debug('cli|watch')
|
|
3
3
|
const { relative } = require('path')
|
|
4
4
|
|
|
5
5
|
module.exports = ({ cwd, script, ext, ignore=RegExp(), env={}, delay=200, options={} })=>{
|
|
@@ -60,7 +60,7 @@ module.exports = ({ cwd, script, ext, ignore=RegExp(), env={}, delay=200, option
|
|
|
60
60
|
return isIn
|
|
61
61
|
}
|
|
62
62
|
const watcher = watch (cwd||process.cwd(),{ recursive:true, filter, delay:0 })
|
|
63
|
-
if (
|
|
63
|
+
if (LOG._debug) watcher.on('close', ()=> DEBUG('⚡️', 'cds watch - file watcher closed'))
|
|
64
64
|
watcher.on('change', restart)
|
|
65
65
|
process.on('shutdown', ()=> watcher.close())
|
|
66
66
|
|
|
@@ -75,7 +75,7 @@ module.exports = ({ cwd, script, ext, ignore=RegExp(), env={}, delay=200, option
|
|
|
75
75
|
else if (input === 'bye' || input.match(/^n$/i)) { _kill (child) }
|
|
76
76
|
else console.log ('?\n')
|
|
77
77
|
})
|
|
78
|
-
if (
|
|
78
|
+
if (LOG._debug) readline.on('close', ()=> DEBUG('⚡️', 'cds watch - readline closed'))
|
|
79
79
|
process.on('shutdown', ()=> readline.close())
|
|
80
80
|
|
|
81
81
|
emitter.restart = restart
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/cds-dk",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.2.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@sap/cds-dk",
|
|
9
|
-
"version": "8.
|
|
9
|
+
"version": "8.2.0",
|
|
10
10
|
"license": "SEE LICENSE IN LICENSE",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@cap-js/asyncapi": "^1.0.0",
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
},
|
|
29
29
|
"bin": {
|
|
30
30
|
"cds": "bin/cds.js",
|
|
31
|
-
"cds-ts": "bin/cds-ts.js"
|
|
31
|
+
"cds-ts": "bin/cds-ts.js",
|
|
32
|
+
"cds-tsx": "bin/cds-tsx.js"
|
|
32
33
|
},
|
|
33
34
|
"optionalDependencies": {
|
|
34
35
|
"@cap-js/sqlite": "^1"
|
|
@@ -105,7 +106,7 @@
|
|
|
105
106
|
}
|
|
106
107
|
},
|
|
107
108
|
"node_modules/@eslint/config-array": {
|
|
108
|
-
"version": "0.
|
|
109
|
+
"version": "0.18.0",
|
|
109
110
|
"license": "Apache-2.0",
|
|
110
111
|
"dependencies": {
|
|
111
112
|
"@eslint/object-schema": "^2.1.4",
|
|
@@ -138,7 +139,7 @@
|
|
|
138
139
|
}
|
|
139
140
|
},
|
|
140
141
|
"node_modules/@eslint/js": {
|
|
141
|
-
"version": "9.9.
|
|
142
|
+
"version": "9.9.1",
|
|
142
143
|
"license": "MIT",
|
|
143
144
|
"engines": {
|
|
144
145
|
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
|
@@ -203,10 +204,10 @@
|
|
|
203
204
|
}
|
|
204
205
|
},
|
|
205
206
|
"node_modules/@sap/cds": {
|
|
206
|
-
"version": "8.
|
|
207
|
+
"version": "8.2.0",
|
|
207
208
|
"license": "SEE LICENSE IN LICENSE",
|
|
208
209
|
"dependencies": {
|
|
209
|
-
"@sap/cds-compiler": ">=5",
|
|
210
|
+
"@sap/cds-compiler": ">=5.1",
|
|
210
211
|
"@sap/cds-fiori": "^1",
|
|
211
212
|
"@sap/cds-foss": "^5.0.0"
|
|
212
213
|
},
|
|
@@ -229,7 +230,7 @@
|
|
|
229
230
|
}
|
|
230
231
|
},
|
|
231
232
|
"node_modules/@sap/cds-compiler": {
|
|
232
|
-
"version": "5.
|
|
233
|
+
"version": "5.2.0",
|
|
233
234
|
"license": "SEE LICENSE IN LICENSE",
|
|
234
235
|
"dependencies": {
|
|
235
236
|
"antlr4": "4.9.3"
|
|
@@ -265,7 +266,7 @@
|
|
|
265
266
|
}
|
|
266
267
|
},
|
|
267
268
|
"node_modules/@sap/cds-mtxs": {
|
|
268
|
-
"version": "2.0
|
|
269
|
+
"version": "2.1.0",
|
|
269
270
|
"license": "SEE LICENSE IN LICENSE",
|
|
270
271
|
"dependencies": {
|
|
271
272
|
"@sap/hdi-deploy": ">=4",
|
|
@@ -449,7 +450,7 @@
|
|
|
449
450
|
"license": "MIT"
|
|
450
451
|
},
|
|
451
452
|
"node_modules/axios": {
|
|
452
|
-
"version": "1.7.
|
|
453
|
+
"version": "1.7.7",
|
|
453
454
|
"license": "MIT",
|
|
454
455
|
"dependencies": {
|
|
455
456
|
"follow-redirects": "^1.15.6",
|
|
@@ -481,7 +482,7 @@
|
|
|
481
482
|
"optional": true
|
|
482
483
|
},
|
|
483
484
|
"node_modules/better-sqlite3": {
|
|
484
|
-
"version": "11.1
|
|
485
|
+
"version": "11.2.1",
|
|
485
486
|
"hasInstallScript": true,
|
|
486
487
|
"license": "MIT",
|
|
487
488
|
"optional": true,
|
|
@@ -869,14 +870,14 @@
|
|
|
869
870
|
}
|
|
870
871
|
},
|
|
871
872
|
"node_modules/eslint": {
|
|
872
|
-
"version": "9.9.
|
|
873
|
+
"version": "9.9.1",
|
|
873
874
|
"license": "MIT",
|
|
874
875
|
"dependencies": {
|
|
875
876
|
"@eslint-community/eslint-utils": "^4.2.0",
|
|
876
877
|
"@eslint-community/regexpp": "^4.11.0",
|
|
877
|
-
"@eslint/config-array": "^0.
|
|
878
|
+
"@eslint/config-array": "^0.18.0",
|
|
878
879
|
"@eslint/eslintrc": "^3.1.0",
|
|
879
|
-
"@eslint/js": "9.9.
|
|
880
|
+
"@eslint/js": "9.9.1",
|
|
880
881
|
"@humanwhocodes/module-importer": "^1.0.1",
|
|
881
882
|
"@humanwhocodes/retry": "^0.3.0",
|
|
882
883
|
"@nodelib/fs.walk": "^1.2.8",
|
|
@@ -1666,7 +1667,7 @@
|
|
|
1666
1667
|
"license": "MIT"
|
|
1667
1668
|
},
|
|
1668
1669
|
"node_modules/node-abi": {
|
|
1669
|
-
"version": "3.
|
|
1670
|
+
"version": "3.67.0",
|
|
1670
1671
|
"license": "MIT",
|
|
1671
1672
|
"optional": true,
|
|
1672
1673
|
"dependencies": {
|
|
@@ -2312,7 +2313,7 @@
|
|
|
2312
2313
|
}
|
|
2313
2314
|
},
|
|
2314
2315
|
"node_modules/uglify-js": {
|
|
2315
|
-
"version": "3.19.
|
|
2316
|
+
"version": "3.19.3",
|
|
2316
2317
|
"license": "BSD-2-Clause",
|
|
2317
2318
|
"optional": true,
|
|
2318
2319
|
"bin": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/cds-dk",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.2.0",
|
|
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": [
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"license": "SEE LICENSE IN LICENSE",
|
|
13
13
|
"bin": {
|
|
14
14
|
"cds": "bin/cds.js",
|
|
15
|
-
"cds-ts": "bin/cds-ts.js"
|
|
15
|
+
"cds-ts": "bin/cds-ts.js",
|
|
16
|
+
"cds-tsx": "bin/cds-tsx.js"
|
|
16
17
|
},
|
|
17
18
|
"main": "lib/index.js",
|
|
18
19
|
"dependencies": {
|
package/readme.md
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
The command line client and development toolkit for the [SAP Cloud Application Programming Model (CAP)](https://cap.cloud.sap/).
|
|
4
4
|
|
|
5
|
-
See the [documentation](https://cap.cloud.sap/docs/
|
|
5
|
+
See the [documentation](https://cap.cloud.sap/docs/tools/) for more details.
|
|
6
6
|
|
|
7
7
|
## How to Obtain Support
|
|
8
8
|
|
|
9
|
-
In case you find a bug, please report an [incident](https://cap.cloud.sap/docs/resources/#
|
|
9
|
+
In case you find a bug, please report an [incident](https://cap.cloud.sap/docs/resources/#support-channels) on SAP Support Portal.
|
|
10
10
|
|
|
11
11
|
## License
|
|
12
12
|
|