@sap/cds-dk 7.8.1 → 7.9.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.
Files changed (90) hide show
  1. package/bin/add.js +28 -7
  2. package/bin/bind.js +64 -21
  3. package/bin/build.js +35 -3
  4. package/bin/cds.js +32 -13
  5. package/bin/compile/index.js +44 -3
  6. package/bin/completion/completionFs.js +61 -0
  7. package/bin/completion/index.js +212 -0
  8. package/bin/completion/scripts/cds-bash.sh +17 -0
  9. package/bin/completion/scripts/cds-ps.ps1 +18 -0
  10. package/bin/completion/scripts/cds-zsh.sh +12 -0
  11. package/bin/help.js +8 -2
  12. package/bin/init.js +34 -4
  13. package/bin/subscribe.js +5 -1
  14. package/bin/watch.js +4 -2
  15. package/lib/bind/KubernetesApiAccessor.js +3 -2
  16. package/lib/bind/bindingResolver.js +3 -2
  17. package/lib/bind/bindingUtil.js +10 -8
  18. package/lib/bind/cfKeyProvider.js +58 -153
  19. package/lib/bind/index.js +46 -36
  20. package/lib/bind/kubernetesCredentialsProvider.js +6 -5
  21. package/lib/bind/userCdsrcJsonStorageProvider.js +25 -3
  22. package/lib/build/buildTaskEngine.js +1 -1
  23. package/lib/build/provider/hana/index.js +1 -1
  24. package/lib/build/provider/hana/template/undeploy.json +3 -1
  25. package/lib/build/provider/nodejs/index.js +1 -1
  26. package/lib/compile/openapi/csdl2openapi.js +4 -0
  27. package/lib/compile/openapi/index.js +5 -0
  28. package/lib/deploy/to-hana/hana.js +25 -7
  29. package/lib/env/schemas/cds-rc.js +29 -2
  30. package/lib/import/odata/v4parser.js +78 -25
  31. package/lib/init/constants.js +2 -1
  32. package/lib/init/index.js +18 -13
  33. package/lib/init/merge.js +1 -0
  34. package/lib/init/mvn.js +8 -47
  35. package/lib/init/plugin.js +0 -4
  36. package/lib/init/projectReader.js +17 -10
  37. package/lib/init/template/approuter/files/values.yaml.hbs +6 -12
  38. package/lib/init/template/approuter/index.js +1 -7
  39. package/lib/init/template/completion/completionSetup.js +184 -0
  40. package/lib/init/template/completion/index.js +22 -0
  41. package/lib/init/template/data/as-csv.js +25 -17
  42. package/lib/init/template/data/as-json.js +115 -30
  43. package/lib/init/template/data/index.js +28 -15
  44. package/lib/init/template/hana/files/undeploy.json +2 -1
  45. package/lib/init/template/helm/files/chart/values.schema.json +1 -1
  46. package/lib/init/template/helm/files/content-deployment/Chart.yaml +0 -2
  47. package/lib/init/template/helm/files/content-deployment/values.schema.json +0 -1
  48. package/lib/init/template/helm/files/service-instance/Chart.yaml +0 -2
  49. package/lib/init/template/helm/files/service-instance/values.schema.json +0 -1
  50. package/lib/init/template/helm/files/web-application/Chart.yaml +1 -3
  51. package/lib/init/template/helm/files/web-application/templates/_helpers.tpl +23 -0
  52. package/lib/init/template/helm/files/web-application/templates/deployment.yaml +3 -29
  53. package/lib/init/template/helm/files/web-application/values.schema.json +17 -2
  54. package/lib/init/template/helm/files/web-application/values.yaml +10 -2
  55. package/lib/init/template/helm-unified-runtime/files/templates/NOTES.txt +2 -0
  56. package/lib/init/template/helm-unified-runtime/files/templates/_deployment_helpers.tpl +10 -2
  57. package/lib/init/template/helm-unified-runtime/files/values.schema.json +1 -1
  58. package/lib/init/template/http/index.js +150 -104
  59. package/lib/init/template/kafka/index.js +6 -0
  60. package/lib/init/template/lint/index.js +12 -13
  61. package/lib/init/template/mta/files/mta.yaml.hbs +1 -1
  62. package/lib/init/template/multitenancy/files/mtxs-configmap-java.yaml +1 -1
  63. package/lib/init/template/multitenancy/files/values.yaml.hbs +0 -5
  64. package/lib/init/template/multitenancy/index.js +13 -5
  65. package/lib/init/template/nodejs/files/.vscode/settings.json +11 -0
  66. package/lib/init/template/nodejs/files/eslint.config.js +13 -0
  67. package/lib/init/template/nodejs/files/package.json.hbs +3 -1
  68. package/lib/init/template/sample/index.js +18 -20
  69. package/lib/init/template/tiny-sample/index.js +1 -2
  70. package/lib/init/template/typer/index.js +2 -2
  71. package/lib/lint/Linter.js +133 -55
  72. package/lib/lint/checks.js +5 -6
  73. package/lib/lint/io.js +119 -10
  74. package/lib/mtx/auth_manager.js +5 -5
  75. package/lib/mtx/params.js +4 -2
  76. package/lib/mtx/settings_manager.js +1 -1
  77. package/lib/mtx/tenant_action.js +12 -2
  78. package/lib/mtx/util/logging.js +10 -4
  79. package/lib/util/axios.js +2 -1
  80. package/lib/util/cf.js +32 -37
  81. package/lib/util/fs.js +1 -1
  82. package/lib/util/git.js +1 -1
  83. package/lib/util/term.js +1 -1
  84. package/{bin → lib/watch}/watched.js +2 -2
  85. package/npm-shrinkwrap.json +317 -293
  86. package/package.json +2 -2
  87. package/lib/init/template/approuter/files/approuter-mtxs-configmap.yaml +0 -19
  88. package/lib/init/template/nodejs/files/.eslintrc +0 -26
  89. /package/lib/init/template/{approuter/files/mtxs-configmap-java.yaml → multitenancy/files/mtxs-configmap-java-approuter.yaml} +0 -0
  90. /package/lib/init/template/{approuter/files/mtxs-configmap-nodejs.yaml → multitenancy/files/mtxs-configmap-nodejs-approuter.yaml} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/cds-dk",
3
- "version": "7.8.1",
3
+ "version": "7.9.1",
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": [
@@ -19,7 +19,7 @@
19
19
  "@sap/cds": "^7",
20
20
  "@sap/cds-foss": "^5.0.0",
21
21
  "@sap/cds-mtxs": "^1.9.0",
22
- "@sap/eslint-plugin-cds": "^2.6.0",
22
+ "@sap/eslint-plugin-cds": "^3.0.1",
23
23
  "@sap/hdi-deploy": "^4.8.0",
24
24
  "axios": "^1",
25
25
  "eslint": "^8",
@@ -1,19 +0,0 @@
1
- # Please do not modify this file. This file may be overwritten.
2
-
3
- {{- $deployment := .Values.approuter }}
4
- {{- $ := merge (dict "name" "approuter" "deployment" $deployment) . }}
5
- {{- $approuterUrl := (include "cap.deploymentHostFull" $ )}}
6
-
7
-
8
- {{- $defaultParameters := dict "forwardAuthToken" true }}
9
- {{- $destinations := dict "root" . "defaultParameters" $defaultParameters }}
10
-
11
- apiVersion: v1
12
- kind: ConfigMap
13
- metadata:
14
- name: "{{ .Release.Name }}-approuter-configmap"
15
- namespace: "{{ .Release.Namespace }}"
16
- data:
17
- destinations: >
18
- {{ include "cap.backendDestinations" $destinations }}
19
- TENANT_HOST_PATTERN: {{ printf "^(.*)-%s" $approuterUrl }}
@@ -1,26 +0,0 @@
1
- {
2
- "extends": "eslint:recommended",
3
- "env": {
4
- "es2022": true,
5
- "node": true,
6
- "jest": true,
7
- "mocha": true
8
- },
9
- "globals": {
10
- "SELECT": true,
11
- "INSERT": true,
12
- "UPSERT": true,
13
- "UPDATE": true,
14
- "DELETE": true,
15
- "CREATE": true,
16
- "DROP": true,
17
- "CDL": true,
18
- "CQL": true,
19
- "CXL": true,
20
- "cds": true
21
- },
22
- "rules": {
23
- "no-console": "off",
24
- "require-atomic-updates": "off"
25
- }
26
- }