@sap/cds-dk 8.1.1 → 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.
Files changed (65) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/bin/bind.js +44 -11
  3. package/bin/cds-tsx.js +2 -0
  4. package/bin/cds.js +5 -3
  5. package/bin/compile/index.js +2 -1
  6. package/bin/deploy/index.js +19 -1
  7. package/bin/import.js +13 -4
  8. package/bin/init.js +1 -1
  9. package/bin/version.js +1 -0
  10. package/bin/watch.js +2 -2
  11. package/lib/bind/bindingManager.js +1 -1
  12. package/lib/bind/cfKeyProvider.js +1 -1
  13. package/lib/build/buildTaskProviderFactory.js +9 -3
  14. package/lib/build/plugins/helm/files/subcharts/content-deployment/Chart.yaml +1 -1
  15. package/lib/build/plugins/helm/files/subcharts/content-deployment/values.yaml +1 -1
  16. package/lib/build/plugins/helm/files/subcharts/service-instance/Chart.yaml +1 -1
  17. package/lib/build/plugins/helm/files/subcharts/service-instance/values.yaml +1 -1
  18. package/lib/build/plugins/helm/files/subcharts/web-application/Chart.yaml +1 -1
  19. package/lib/build/plugins/helm/files/subcharts/web-application/templates/deployment.yaml +2 -2
  20. package/lib/build/plugins/helm/files/subcharts/web-application/values.yaml +1 -1
  21. package/lib/build/provider/hana/2migration.js +6 -6
  22. package/lib/build/provider/nodejs/index.js +5 -4
  23. package/lib/build/util.js +2 -1
  24. package/lib/compile/to-mermaid.js +4 -6
  25. package/lib/import/common.js +16 -18
  26. package/lib/import/message.js +6 -5
  27. package/lib/import/odata/index.js +1 -1
  28. package/lib/import/odata/v2parser.js +18 -17
  29. package/lib/import/odata/v4parser.js +62 -62
  30. package/lib/init/constants.js +3 -2
  31. package/lib/init/mvn.js +43 -6
  32. package/lib/init/plugin.js +1 -1
  33. package/lib/init/projectReader.js +1 -1
  34. package/lib/init/template/approuter/files/containerize.yaml.hbs +5 -0
  35. package/lib/init/template/cloud-logging/files/mta.yaml.hbs +25 -0
  36. package/lib/init/template/cloud-logging/files/package.json +14 -0
  37. package/lib/init/template/cloud-logging/index.js +80 -0
  38. package/lib/init/template/containerize/files/containerize.yaml.hbs +5 -0
  39. package/lib/init/template/dynatrace/files/mta.yaml.hbs +24 -0
  40. package/lib/init/template/dynatrace/files/package.json.hbs +14 -0
  41. package/lib/init/template/dynatrace/files/sidecar.package.json +0 -0
  42. package/lib/init/template/dynatrace/index.js +55 -0
  43. package/lib/init/template/hana/files/containerize.yaml.hbs +5 -0
  44. package/lib/init/template/hana/files/package.json.hbs +5 -3
  45. package/lib/init/template/handler/index.js +22 -0
  46. package/lib/init/template/helm/index.js +5 -1
  47. package/lib/init/template/html5-repo/index.js +5 -0
  48. package/lib/init/template/http/index.js +1 -1
  49. package/lib/init/template/java/index.js +2 -2
  50. package/lib/init/template/multitenancy/files/containerize.yaml.hbs +5 -0
  51. package/lib/init/template/portal/files/portal-site/CommonDataModel.json.hbs +2 -2
  52. package/lib/init/template/portal/files/values.yaml.hbs +43 -0
  53. package/lib/init/template/portal/index.js +4 -2
  54. package/lib/init/template/telemetry/index.js +19 -0
  55. package/lib/init/template/typescript/files/package.json +1 -3
  56. package/lib/mtx/auth_manager.js +12 -15
  57. package/lib/mtx/settings_manager.js +5 -2
  58. package/lib/mtx/util/logging.js +4 -4
  59. package/lib/util/cf.js +15 -5
  60. package/lib/util/command.js +3 -3
  61. package/lib/watch/livereload-server.js +3 -3
  62. package/lib/watch/node-watch.js +3 -3
  63. package/npm-shrinkwrap.json +32 -23
  64. package/package.json +3 -2
  65. package/readme.md +2 -2
@@ -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 (DEBUG) watcher.on('close', ()=> DEBUG('⚡️', 'cds watch - file watcher closed'))
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 (DEBUG) readline.on('close', ()=> DEBUG('⚡️', 'cds watch - readline closed'))
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
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@sap/cds-dk",
3
- "version": "8.1.1",
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.1.1",
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.17.1",
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.8.0",
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.1.0",
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.1.2",
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.5",
269
+ "version": "2.1.0",
269
270
  "license": "SEE LICENSE IN LICENSE",
270
271
  "dependencies": {
271
272
  "@sap/hdi-deploy": ">=4",
@@ -313,12 +314,12 @@
313
314
  }
314
315
  },
315
316
  "node_modules/@sap/hdi-deploy": {
316
- "version": "5.2.0",
317
+ "version": "5.2.1",
317
318
  "hasInstallScript": true,
318
319
  "license": "See LICENSE file",
319
320
  "dependencies": {
320
321
  "@sap/hdi": "4.5.2",
321
- "@sap/xsenv": "5.1.0",
322
+ "@sap/xsenv": "5.2.0",
322
323
  "async": "3.2.5",
323
324
  "dotenv": "16.4.5",
324
325
  "handlebars": "4.7.8",
@@ -345,10 +346,10 @@
345
346
  "license": "MIT"
346
347
  },
347
348
  "node_modules/@sap/xsenv": {
348
- "version": "5.1.0",
349
+ "version": "5.2.0",
349
350
  "license": "SEE LICENSE IN LICENSE file",
350
351
  "dependencies": {
351
- "debug": "4.3.4",
352
+ "debug": "4.3.5",
352
353
  "node-cache": "^5.1.0",
353
354
  "verror": "1.10.1"
354
355
  },
@@ -449,7 +450,7 @@
449
450
  "license": "MIT"
450
451
  },
451
452
  "node_modules/axios": {
452
- "version": "1.7.3",
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.2",
485
+ "version": "11.2.1",
485
486
  "hasInstallScript": true,
486
487
  "license": "MIT",
487
488
  "optional": true,
@@ -723,7 +724,7 @@
723
724
  }
724
725
  },
725
726
  "node_modules/debug": {
726
- "version": "4.3.4",
727
+ "version": "4.3.5",
727
728
  "license": "MIT",
728
729
  "dependencies": {
729
730
  "ms": "2.1.2"
@@ -869,14 +870,14 @@
869
870
  }
870
871
  },
871
872
  "node_modules/eslint": {
872
- "version": "9.8.0",
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.17.1",
878
+ "@eslint/config-array": "^0.18.0",
878
879
  "@eslint/eslintrc": "^3.1.0",
879
- "@eslint/js": "9.8.0",
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",
@@ -915,6 +916,14 @@
915
916
  },
916
917
  "funding": {
917
918
  "url": "https://eslint.org/donate"
919
+ },
920
+ "peerDependencies": {
921
+ "jiti": "*"
922
+ },
923
+ "peerDependenciesMeta": {
924
+ "jiti": {
925
+ "optional": true
926
+ }
918
927
  }
919
928
  },
920
929
  "node_modules/eslint-scope": {
@@ -1345,7 +1354,7 @@
1345
1354
  }
1346
1355
  },
1347
1356
  "node_modules/hdb": {
1348
- "version": "0.19.8",
1357
+ "version": "0.19.9",
1349
1358
  "license": "Apache-2.0",
1350
1359
  "dependencies": {
1351
1360
  "iconv-lite": "^0.4.18"
@@ -1398,7 +1407,7 @@
1398
1407
  "optional": true
1399
1408
  },
1400
1409
  "node_modules/ignore": {
1401
- "version": "5.3.1",
1410
+ "version": "5.3.2",
1402
1411
  "license": "MIT",
1403
1412
  "engines": {
1404
1413
  "node": ">= 4"
@@ -1658,7 +1667,7 @@
1658
1667
  "license": "MIT"
1659
1668
  },
1660
1669
  "node_modules/node-abi": {
1661
- "version": "3.65.0",
1670
+ "version": "3.67.0",
1662
1671
  "license": "MIT",
1663
1672
  "optional": true,
1664
1673
  "dependencies": {
@@ -2304,7 +2313,7 @@
2304
2313
  }
2305
2314
  },
2306
2315
  "node_modules/uglify-js": {
2307
- "version": "3.19.1",
2316
+ "version": "3.19.3",
2308
2317
  "license": "BSD-2-Clause",
2309
2318
  "optional": true,
2310
2319
  "bin": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/cds-dk",
3
- "version": "8.1.1",
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/get-started/) for more details.
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/#reporting-incidents) on SAP Support Portal.
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