@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.
- package/bin/add.js +28 -7
- package/bin/bind.js +64 -21
- package/bin/build.js +35 -3
- package/bin/cds.js +32 -13
- package/bin/compile/index.js +44 -3
- package/bin/completion/completionFs.js +61 -0
- package/bin/completion/index.js +212 -0
- package/bin/completion/scripts/cds-bash.sh +17 -0
- package/bin/completion/scripts/cds-ps.ps1 +18 -0
- package/bin/completion/scripts/cds-zsh.sh +12 -0
- package/bin/help.js +8 -2
- package/bin/init.js +34 -4
- package/bin/subscribe.js +5 -1
- package/bin/watch.js +4 -2
- package/lib/bind/KubernetesApiAccessor.js +3 -2
- package/lib/bind/bindingResolver.js +3 -2
- package/lib/bind/bindingUtil.js +10 -8
- package/lib/bind/cfKeyProvider.js +58 -153
- package/lib/bind/index.js +46 -36
- package/lib/bind/kubernetesCredentialsProvider.js +6 -5
- package/lib/bind/userCdsrcJsonStorageProvider.js +25 -3
- package/lib/build/buildTaskEngine.js +1 -1
- package/lib/build/provider/hana/index.js +1 -1
- package/lib/build/provider/hana/template/undeploy.json +3 -1
- package/lib/build/provider/nodejs/index.js +1 -1
- package/lib/compile/openapi/csdl2openapi.js +4 -0
- package/lib/compile/openapi/index.js +5 -0
- package/lib/deploy/to-hana/hana.js +25 -7
- package/lib/env/schemas/cds-rc.js +29 -2
- package/lib/import/odata/v4parser.js +78 -25
- package/lib/init/constants.js +2 -1
- package/lib/init/index.js +18 -13
- package/lib/init/merge.js +1 -0
- package/lib/init/mvn.js +8 -47
- package/lib/init/plugin.js +0 -4
- package/lib/init/projectReader.js +17 -10
- package/lib/init/template/approuter/files/values.yaml.hbs +6 -12
- package/lib/init/template/approuter/index.js +1 -7
- package/lib/init/template/completion/completionSetup.js +184 -0
- package/lib/init/template/completion/index.js +22 -0
- package/lib/init/template/data/as-csv.js +25 -17
- package/lib/init/template/data/as-json.js +115 -30
- package/lib/init/template/data/index.js +28 -15
- package/lib/init/template/hana/files/undeploy.json +2 -1
- package/lib/init/template/helm/files/chart/values.schema.json +1 -1
- package/lib/init/template/helm/files/content-deployment/Chart.yaml +0 -2
- package/lib/init/template/helm/files/content-deployment/values.schema.json +0 -1
- package/lib/init/template/helm/files/service-instance/Chart.yaml +0 -2
- package/lib/init/template/helm/files/service-instance/values.schema.json +0 -1
- package/lib/init/template/helm/files/web-application/Chart.yaml +1 -3
- package/lib/init/template/helm/files/web-application/templates/_helpers.tpl +23 -0
- package/lib/init/template/helm/files/web-application/templates/deployment.yaml +3 -29
- package/lib/init/template/helm/files/web-application/values.schema.json +17 -2
- package/lib/init/template/helm/files/web-application/values.yaml +10 -2
- package/lib/init/template/helm-unified-runtime/files/templates/NOTES.txt +2 -0
- package/lib/init/template/helm-unified-runtime/files/templates/_deployment_helpers.tpl +10 -2
- package/lib/init/template/helm-unified-runtime/files/values.schema.json +1 -1
- package/lib/init/template/http/index.js +150 -104
- package/lib/init/template/kafka/index.js +6 -0
- package/lib/init/template/lint/index.js +12 -13
- package/lib/init/template/mta/files/mta.yaml.hbs +1 -1
- package/lib/init/template/multitenancy/files/mtxs-configmap-java.yaml +1 -1
- package/lib/init/template/multitenancy/files/values.yaml.hbs +0 -5
- package/lib/init/template/multitenancy/index.js +13 -5
- package/lib/init/template/nodejs/files/.vscode/settings.json +11 -0
- package/lib/init/template/nodejs/files/eslint.config.js +13 -0
- package/lib/init/template/nodejs/files/package.json.hbs +3 -1
- package/lib/init/template/sample/index.js +18 -20
- package/lib/init/template/tiny-sample/index.js +1 -2
- package/lib/init/template/typer/index.js +2 -2
- package/lib/lint/Linter.js +133 -55
- package/lib/lint/checks.js +5 -6
- package/lib/lint/io.js +119 -10
- package/lib/mtx/auth_manager.js +5 -5
- package/lib/mtx/params.js +4 -2
- package/lib/mtx/settings_manager.js +1 -1
- package/lib/mtx/tenant_action.js +12 -2
- package/lib/mtx/util/logging.js +10 -4
- package/lib/util/axios.js +2 -1
- package/lib/util/cf.js +32 -37
- package/lib/util/fs.js +1 -1
- package/lib/util/git.js +1 -1
- package/lib/util/term.js +1 -1
- package/{bin → lib/watch}/watched.js +2 -2
- package/npm-shrinkwrap.json +317 -293
- package/package.json +2 -2
- package/lib/init/template/approuter/files/approuter-mtxs-configmap.yaml +0 -19
- package/lib/init/template/nodejs/files/.eslintrc +0 -26
- /package/lib/init/template/{approuter/files/mtxs-configmap-java.yaml → multitenancy/files/mtxs-configmap-java-approuter.yaml} +0 -0
- /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.
|
|
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": "^
|
|
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
|
-
}
|
|
File without changes
|