@sap/cds-dk 9.1.3 → 9.2.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 (78) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/bin/bind.js +2 -0
  3. package/bin/cds.js +2 -0
  4. package/bin/repl.js +4 -2
  5. package/bin/up.js +12 -2
  6. package/bin/util/log.js +8 -1
  7. package/bin/version.js +20 -15
  8. package/lib/bind/shared.js +6 -2
  9. package/lib/build/plugins/helm/files/subcharts/web-application/Chart.yaml +1 -1
  10. package/lib/build/plugins/helm/files/subcharts/web-application/templates/_helpers.tpl +1 -1
  11. package/lib/build/plugins/helm/files/subcharts/web-application/templates/deployment.yaml +8 -0
  12. package/lib/build/plugins/helm/files/subcharts/web-application/templates/virtual-service.yaml +38 -0
  13. package/lib/build/plugins/helm/files/subcharts/web-application/values.schema.json +15 -0
  14. package/lib/build/plugins/helm/files/subcharts/web-application/values.yaml +12 -9
  15. package/lib/build/plugins/helm/index.js +1 -1
  16. package/lib/build/provider/hana/index.js +5 -4
  17. package/lib/build/provider/hana/template/.hdiconfig-all +6 -0
  18. package/lib/compile/to-xsuaa.js +14 -4
  19. package/lib/deploy/to-hana/hana.js +1 -1
  20. package/lib/deploy/to-hana/hdiDeployUtil.js +1 -1
  21. package/lib/init/constants.js +5 -3
  22. package/lib/init/index.js +6 -1
  23. package/lib/init/merge.js +7 -3
  24. package/lib/init/projectReader.js +7 -2
  25. package/lib/init/registries/mta.js +6 -0
  26. package/lib/init/template/ams/files/values.yaml.hbs +5 -0
  27. package/lib/init/template/approuter/files/containerize.yaml.hbs +1 -1
  28. package/lib/init/template/approuter/files/values.yaml.hbs +1 -5
  29. package/lib/init/template/attachments/index.js +1 -1
  30. package/lib/init/template/audit-logging/index.js +1 -1
  31. package/lib/init/template/data/as-json.js +4 -3
  32. package/lib/init/template/data/index.js +1 -0
  33. package/lib/init/template/destination/files/mta.yaml.hbs +1 -20
  34. package/lib/init/template/extension/index.js +1 -1
  35. package/lib/init/template/github-actions/files/cf-github-deploy/action.yaml +48 -0
  36. package/lib/init/template/github-actions/files/cf-setup/action.yaml +53 -0
  37. package/lib/init/template/github-actions/files/kyma-info/action.yaml +37 -0
  38. package/lib/init/template/github-actions/files/kyma-setup/action.yaml +64 -0
  39. package/lib/init/template/github-actions/files/workflows/cf.yaml.hbs +52 -0
  40. package/lib/init/template/github-actions/files/workflows/kyma.yaml.hbs +39 -0
  41. package/lib/init/template/github-actions/files/workflows/test.yaml.hbs +21 -0
  42. package/lib/init/template/github-actions/index.js +69 -0
  43. package/lib/init/template/helm/index.js +5 -1
  44. package/lib/init/template/html5-repo/files/containerize.yaml.hbs +4 -4
  45. package/lib/init/template/html5-repo/files/mta.yaml.hbs +24 -0
  46. package/lib/init/template/html5-repo/files/values.yaml.hbs +2 -1
  47. package/lib/init/template/html5-repo/index.js +9 -3
  48. package/lib/init/template/http/index.js +4 -4
  49. package/lib/init/template/ias/files/package.json.hbs +7 -0
  50. package/lib/init/template/ias/files/values.yaml.hbs +1 -4
  51. package/lib/init/template/ias/index.js +2 -1
  52. package/lib/init/template/kyma/index.js +10 -0
  53. package/lib/init/template/lint/index.js +6 -11
  54. package/lib/init/template/malware-scanner/index.js +1 -1
  55. package/lib/init/template/multitenancy/files/values.yaml.hbs +53 -1
  56. package/lib/init/template/multitenancy/index.js +0 -13
  57. package/lib/init/template/nodejs/files/.vscode/settings.json +2 -2
  58. package/lib/init/template/notifications/index.js +1 -1
  59. package/lib/init/template/pipeline/files/Jenkinsfile +2 -2
  60. package/lib/init/template/pipeline/index.js +1 -1
  61. package/lib/init/template/portal/files/containerize.yaml.hbs +15 -0
  62. package/lib/init/template/portal/files/values.yaml.hbs +1 -1
  63. package/lib/init/template/portal/index.js +9 -1
  64. package/lib/init/template/postgres/index.js +1 -1
  65. package/lib/init/template/sample/index.js +1 -1
  66. package/lib/init/template/test/index.js +1 -1
  67. package/lib/init/template/tiny-sample/index.js +1 -1
  68. package/lib/init/template/typescript/index.js +1 -1
  69. package/lib/init/template/workzone-standard/index.js +13 -4
  70. package/lib/init/template/xsuaa/files/mta.yaml.hbs +8 -0
  71. package/lib/init/template/xsuaa/index.js +11 -0
  72. package/lib/init/template.js +38 -26
  73. package/lib/lint/eslintHelp.json +1 -1
  74. package/lib/util/cf.js +7 -7
  75. package/lib/watch/watched.js +1 -1
  76. package/npm-shrinkwrap.json +24 -24
  77. package/package.json +1 -1
  78. /package/lib/init/template/html5-repo/files/{ui-resources/package.json.hbs → html5-deployer.package.json.hbs} +0 -0
package/lib/util/cf.js CHANGED
@@ -223,7 +223,7 @@ module.exports = new class CfUtil {
223
223
  async env(app) {
224
224
  const { spaceGuid: space_guids, orgGuid: organization_guids } = await this.target();
225
225
  const apps = await this.curl('/v3/apps', { space_guids, organization_guids, names: app });
226
- if (apps.resources.length < 1) throw `Cannot find app with name '${app}'`
226
+ if (apps.resources.length < 1) throw `cannot find app with name '${app}'`
227
227
  const guid = apps.resources[0].guid;
228
228
  return await this.curl('/v3/apps/' + guid + '/env', { space_guids, organization_guids, names: app });
229
229
  }
@@ -257,15 +257,15 @@ module.exports = new class CfUtil {
257
257
  if (!LOG._debug && serviceInstance?.last_operation?.description) {
258
258
  throw serviceInstance.last_operation.description;
259
259
  }
260
- throw `The returned service reported state '${OPERATION_STATE_FAILED}'.\n${JSON.stringify(serviceInstance, null, 4)}`;
260
+ throw `the returned service reported state '${OPERATION_STATE_FAILED}'.\n${JSON.stringify(serviceInstance, null, 4)}`;
261
261
 
262
262
  default:
263
- console.error(`Unsupported server response state '${serviceInstance?.last_operation?.state}'. Waiting for next response.`);
263
+ console.error(`unsupported server response state '${serviceInstance?.last_operation?.state}' – waiting for next response`);
264
264
  break;
265
265
  }
266
266
  }
267
267
 
268
- throw `Timeout occurred while getting service ${bold(serviceName)}`;
268
+ throw `timeout occurred while getting service ${bold(serviceName)}`;
269
269
  }
270
270
 
271
271
  async getOrCreateService(serviceOfferingName, planName, serviceName, options) {
@@ -275,7 +275,7 @@ module.exports = new class CfUtil {
275
275
  return probeService;
276
276
  }
277
277
 
278
- console.log(`Creating service ${bold(serviceName)} - please be patient...`);
278
+ console.log(`creating service ${bold(serviceName)} - please be patient...`);
279
279
 
280
280
  const target = await this.target();
281
281
 
@@ -287,7 +287,7 @@ module.exports = new class CfUtil {
287
287
  });
288
288
 
289
289
  if (!servicePlan?.resources?.length) {
290
- throw `No service plans found for ${planName} in service offering ${serviceOfferingName}.`;
290
+ throw `no service plans found for ${planName} in service offering ${serviceOfferingName}`;
291
291
  }
292
292
 
293
293
  const body = {
@@ -353,7 +353,7 @@ module.exports = new class CfUtil {
353
353
  throw `The returned binding reported state '${OPERATION_STATE_FAILED}'.\n${JSON.stringify(binding, null, 4)}`;
354
354
 
355
355
  default:
356
- console.error(`Unsupported server response state '${binding?.last_operation?.state}'. Waiting for next response.`);
356
+ console.error(`unsupported server response state '${binding?.last_operation?.state}'. Waiting for next response.`);
357
357
  break;
358
358
  }
359
359
  }
@@ -16,7 +16,7 @@
16
16
 
17
17
  try {
18
18
  await bootstrap
19
- if (!cds.service.providers.length) return _no_services_found()
19
+ if (cds.service.providers.length === 0) return _no_services_found()
20
20
  } catch (e) { switch (e.code) {
21
21
  case 'NO_SERVICES_FOUND': return _no_services_found(e)
22
22
  case 'MODEL_NOT_FOUND': return _no_models_found(e)
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@sap/cds-dk",
3
- "version": "9.1.2",
3
+ "version": "9.2.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@sap/cds-dk",
9
- "version": "9.1.2",
9
+ "version": "9.2.1",
10
10
  "license": "SEE LICENSE IN LICENSE",
11
11
  "dependencies": {
12
12
  "@cap-js/asyncapi": "^1.0.0",
@@ -42,8 +42,8 @@
42
42
  }
43
43
  },
44
44
  "node_modules/@cap-js/db-service": {
45
- "version": "2.2.0",
46
- "integrity": "sha512-C5n8Qy8MwOGWjpXS44CskaEZt8YKrEEs4AtJyBSfJ6+aKMu/ynqpXh0Up4Ql0XX2Frq2PwNU8Ohai/04wxd46g==",
45
+ "version": "2.3.0",
46
+ "integrity": "sha512-KkYrnI05bx0PvwP5jxEUos8UQ+XYPucUMQt3i0muQXWJw3rEkWvEArvOwCYjTNnjzHqtVQfpPXsy1+ehkHUrWg==",
47
47
  "devOptional": true,
48
48
  "license": "Apache-2.0",
49
49
  "dependencies": {
@@ -78,8 +78,8 @@
78
78
  }
79
79
  },
80
80
  "node_modules/@eslint/js": {
81
- "version": "9.31.0",
82
- "integrity": "sha512-LOm5OVt7D4qiKCqoiPbA7LWmI+tbw1VbTUowBcUMgQSuM6poJufkFkYDcQpo5KfgD39TnNySV26QjOh7VFpSyw==",
81
+ "version": "9.33.0",
82
+ "integrity": "sha512-5K1/mKhWaMfreBGJTwval43JJmkip0RmM+3+IuqupeSKNC/Th2Kc7ucaq5ovTSra/OOKB9c58CGSz3QMVbWt0A==",
83
83
  "license": "MIT",
84
84
  "peer": true,
85
85
  "engines": {
@@ -90,8 +90,8 @@
90
90
  }
91
91
  },
92
92
  "node_modules/@sap/cds": {
93
- "version": "9.1.0",
94
- "integrity": "sha512-i5bAVbFzi1uN11O4U6SdPKzYDDxc+YDSWMiqt1ryxT0WYrrehJPg5pJQjy4AH1EgRIqa3eqK2RfmHS6SgkBOyg==",
93
+ "version": "9.2.1",
94
+ "integrity": "sha512-0zjjZGlBvcJMyVj48hTs6Q22/w9hNnJR6O88rGoEj4R87uaP4uM5gFLf3PDnPDUwkAeveVHgJRnWPqDGqIMgvA==",
95
95
  "license": "SEE LICENSE IN LICENSE",
96
96
  "dependencies": {
97
97
  "@sap/cds-compiler": "^6",
@@ -99,7 +99,7 @@
99
99
  "js-yaml": "^4.1.0"
100
100
  },
101
101
  "bin": {
102
- "cds-deploy": "lib/dbs/cds-deploy.js",
102
+ "cds-deploy": "bin/deploy.js",
103
103
  "cds-serve": "bin/serve.js"
104
104
  },
105
105
  "engines": {
@@ -120,8 +120,8 @@
120
120
  }
121
121
  },
122
122
  "node_modules/@sap/cds-compiler": {
123
- "version": "6.1.0",
124
- "integrity": "sha512-s71fsxDZKqHn2xvoqoNst54K/BkBzCpiU+8xc0t3nMDXmsLzSC3VfygZGwGAZD8fkxUnXh8oL2XLHWKWcvcdNg==",
123
+ "version": "6.2.2",
124
+ "integrity": "sha512-LqRNfBsWnEJpXVJ6/v52VqAdelWoETLbECMPcy7BfoHE63DGBpKA/ZIgoH11t7vUm7GYQDcSfR7ryy02Q/fP7A==",
125
125
  "license": "SEE LICENSE IN LICENSE",
126
126
  "bin": {
127
127
  "cdsc": "bin/cdsc.js",
@@ -142,8 +142,8 @@
142
142
  }
143
143
  },
144
144
  "node_modules/@sap/cds-mtxs": {
145
- "version": "3.1.0",
146
- "integrity": "sha512-ifE6RdiqIYz8OXOQYlEy0BYSHYN18T0d5kjSejX8svYsRyq//YsdxjybCFzOE3lgbHzfKsmAoe+ANx+99mhOwg==",
145
+ "version": "3.2.0",
146
+ "integrity": "sha512-8X+fK0rsnOaKZpettVAXuzCJT9MRebpuzN1JjNEWPiYVafvIjXIQc2diYgq8rtzhfdFWk6QNlZUjMM7jLgNfsw==",
147
147
  "license": "SEE LICENSE IN LICENSE",
148
148
  "dependencies": {
149
149
  "@sap/hdi-deploy": "^5"
@@ -157,8 +157,8 @@
157
157
  }
158
158
  },
159
159
  "node_modules/@sap/hdi": {
160
- "version": "4.7.0",
161
- "integrity": "sha512-iA7W3en3QdZBTialmbomB2E6q4mP/b2Z2S2juhyQpbG7jPhc9jcL3S2wMkDv1XF3RJ5bmm6S/QwiSPtuCfI3LQ==",
160
+ "version": "4.8.0",
161
+ "integrity": "sha512-tkJmY2ffm6mt4/LFwRBihlQkMxNAXa3ngvRe2N/6+qLIsUNdrH/M03S5mkygXq56K+KoVVZYuradajCusMWwsw==",
162
162
  "license": "See LICENSE file",
163
163
  "dependencies": {
164
164
  "async": "^3.2.3"
@@ -168,7 +168,7 @@
168
168
  },
169
169
  "peerDependencies": {
170
170
  "@sap/hana-client": "^2 >= 2.5",
171
- "hdb": "^0"
171
+ "hdb": "^2 || ^0"
172
172
  },
173
173
  "peerDependenciesMeta": {
174
174
  "@sap/hana-client": {
@@ -180,11 +180,11 @@
180
180
  }
181
181
  },
182
182
  "node_modules/@sap/hdi-deploy": {
183
- "version": "5.4.2",
184
- "integrity": "sha512-v+u7kEyC5BT5S2ppOacRRBFwTGXVwu7tU83AMM5n/TzBMukdTE58+rMSFjvpm78Uy8ct2K+1W+xFS+Nx96b+6Q==",
183
+ "version": "5.5.0",
184
+ "integrity": "sha512-nxamWIBz+D/4wcvgYgxGSJLsyJ1KNtU9X6gfMHiyi/IjozGN/3WdeT11++jy5qeZNkdinuND55RRlRcnsu3W5g==",
185
185
  "license": "See LICENSE file",
186
186
  "dependencies": {
187
- "@sap/hdi": "^4.7.0",
187
+ "@sap/hdi": "^4.8.0",
188
188
  "@sap/xsenv": "^5.2.0",
189
189
  "async": "^3.2.6",
190
190
  "dotenv": "^16.4.5",
@@ -196,7 +196,7 @@
196
196
  },
197
197
  "peerDependencies": {
198
198
  "@sap/hana-client": "^2 >= 2.6",
199
- "hdb": "^0"
199
+ "hdb": "^2 || ^0"
200
200
  },
201
201
  "peerDependenciesMeta": {
202
202
  "@sap/hana-client": {
@@ -789,8 +789,8 @@
789
789
  "license": "MIT"
790
790
  },
791
791
  "node_modules/follow-redirects": {
792
- "version": "1.15.9",
793
- "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==",
792
+ "version": "1.15.11",
793
+ "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==",
794
794
  "funding": [
795
795
  {
796
796
  "type": "individual",
@@ -1833,8 +1833,8 @@
1833
1833
  }
1834
1834
  },
1835
1835
  "node_modules/yaml": {
1836
- "version": "2.8.0",
1837
- "integrity": "sha512-4lLa/EcQCB0cJkyts+FpIRx5G/llPxfP6VQU5KByHEhLxY3IJCH0f0Hy1MHI8sClTvsIb8qwRJ6R/ZdlDJ/leQ==",
1836
+ "version": "2.8.1",
1837
+ "integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==",
1838
1838
  "license": "ISC",
1839
1839
  "bin": {
1840
1840
  "yaml": "bin.mjs"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/cds-dk",
3
- "version": "9.1.3",
3
+ "version": "9.2.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": [