@sap/cds-dk 8.9.1 → 8.9.2

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 CHANGED
@@ -7,6 +7,18 @@ This project adheres to [Semantic Versioning](https://semver.org/).
7
7
 
8
8
  The format is based on [Keep a Changelog](https://keepachangelog.com/).
9
9
 
10
+ ## Version 8.9.2 - 2025-04-16
11
+
12
+ ### Fixed
13
+
14
+ - `cds bind` gives better error messages if the Cloud Foundry org or space are not found.
15
+ - `cds add html5-repo` works in combination with multitenancy when no app router or Work Zone is set up.
16
+
17
+ ### Changed
18
+
19
+ - The Node version in `gen/db/package.json` file generated by `cds build` is now `>=18`, matching to what `@sap/hdi-deploy` specifies.
20
+ - `cds` commands now fail if used in combination with the upcoming `@sap/cds` version 9.
21
+
10
22
  ## Version 8.9.1 - 2025-04-04
11
23
 
12
24
  ### Fixed
package/lib/bind/cf.js CHANGED
@@ -41,7 +41,9 @@ module.exports = new class CFBind extends require('./plugin') {
41
41
  if (org && space) {
42
42
  // org and space can be overwritten by currently logged in org and space
43
43
  const orgObj = await cf.org(org);
44
+ if (!orgObj) throw `org ${bold(org)} not found when resolving service instance ${bold(instance)} in ${bold(this.target.apiEndpoint)}`;
44
45
  const spaceObj = await cf.space(orgObj.guid, space);
46
+ if (!spaceObj) throw `space ${bold(space)} not found in org ${bold(org)} when resolving service instance ${bold(instance)} in ${bold(this.target.apiEndpoint)}`;
45
47
  spaceGuid = spaceObj.guid;
46
48
  orgGuid = orgObj.guid;
47
49
  } else {
@@ -5,7 +5,7 @@
5
5
  "@sap/hdi-deploy": "^5"
6
6
  },
7
7
  "engines": {
8
- "node": "^18 || ^20"
8
+ "node": ">=18"
9
9
  },
10
10
  "scripts": {
11
11
  "start": "node node_modules/@sap/hdi-deploy/deploy.js --use-hdb"
package/lib/index.js CHANGED
@@ -39,7 +39,6 @@ const REQUIRED_CDS_MAJOR = 7, REQUIRED_CDS_MINOR = 2
39
39
  const [major, minor] = cds.version.split('.').map(Number)
40
40
  if (major < REQUIRED_CDS_MAJOR || major === REQUIRED_CDS_MAJOR && minor < REQUIRED_CDS_MINOR) {
41
41
  const [dkVersion] = require('../package.json').version.split('.')
42
-
43
42
  console.error(`
44
43
  This application uses '@sap/cds' version ${major}.${minor}, which is not compatible with the installed '@sap/cds-dk' version ${dkVersion}.
45
44
  You can either:
@@ -49,6 +48,16 @@ if (major < REQUIRED_CDS_MAJOR || major === REQUIRED_CDS_MAJOR && minor < REQUIR
49
48
  process.exit(1)
50
49
  }
51
50
 
51
+ const EXCLUDED_CDS_MAJOR = 9
52
+ if (major >= EXCLUDED_CDS_MAJOR) {
53
+ const [dkVersion] = require('../package.json').version.split('.')
54
+ console.error(`
55
+ This application uses '@sap/cds' version ${major}, which is not compatible with the installed '@sap/cds-dk' version ${dkVersion}.
56
+ Update '@sap/cds-dk' to the latest version.
57
+ `)
58
+ process.exit(1)
59
+ }
60
+
52
61
  cds.extend (cds.constructor) .with (CdsDk)
53
62
 
54
63
  class CdsDkAdd {
@@ -76,7 +76,7 @@ module.exports = class Html5RepoTemplate extends require('../../plugin') {
76
76
  insert: [html5RepoHost, 'name'],
77
77
  into: [appDeployer, 'requires', 'name'],
78
78
  }]
79
- if (hasApprouter || hasWorkzoneStandard) {
79
+ if (hasApprouter || hasWorkzoneStandard || hasMultitenancy) {
80
80
  additions.push(html5Runtime)
81
81
  }
82
82
  if (hasApprouter) {
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@sap/cds-dk",
3
- "version": "8.9.1",
3
+ "version": "8.9.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@sap/cds-dk",
9
- "version": "8.9.1",
9
+ "version": "8.9.2",
10
10
  "license": "SEE LICENSE IN LICENSE",
11
11
  "dependencies": {
12
12
  "@cap-js/asyncapi": "^1.0.0",
13
13
  "@cap-js/openapi": "^1.0.0",
14
- "@sap/cds": ">=7",
14
+ "@sap/cds": "^7 || ^8",
15
15
  "@sap/cds-foss": "^5.0.0",
16
- "@sap/cds-mtxs": ">=1.9.0",
17
- "@sap/eslint-plugin-cds": ">=3.0.1",
16
+ "@sap/cds-mtxs": "^1.9.0 || ^2",
17
+ "@sap/eslint-plugin-cds": "^3.0.1",
18
18
  "@sap/hdi-deploy": "^5",
19
19
  "axios": "^1",
20
20
  "eslint": "^9",
@@ -76,7 +76,7 @@
76
76
  }
77
77
  },
78
78
  "node_modules/@eslint-community/eslint-utils": {
79
- "version": "4.5.1",
79
+ "version": "4.6.0",
80
80
  "license": "MIT",
81
81
  "dependencies": {
82
82
  "eslint-visitor-keys": "^3.4.3"
@@ -109,7 +109,7 @@
109
109
  }
110
110
  },
111
111
  "node_modules/@eslint/config-array": {
112
- "version": "0.19.2",
112
+ "version": "0.20.0",
113
113
  "license": "Apache-2.0",
114
114
  "dependencies": {
115
115
  "@eslint/object-schema": "^2.1.6",
@@ -159,7 +159,7 @@
159
159
  }
160
160
  },
161
161
  "node_modules/@eslint/js": {
162
- "version": "9.23.0",
162
+ "version": "9.24.0",
163
163
  "license": "MIT",
164
164
  "engines": {
165
165
  "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
@@ -245,7 +245,7 @@
245
245
  }
246
246
  },
247
247
  "node_modules/@sap/cds": {
248
- "version": "8.9.1",
248
+ "version": "8.9.2",
249
249
  "license": "SEE LICENSE IN LICENSE",
250
250
  "dependencies": {
251
251
  "@sap/cds-compiler": ">=5.1",
@@ -275,7 +275,7 @@
275
275
  }
276
276
  },
277
277
  "node_modules/@sap/cds-compiler": {
278
- "version": "5.9.0",
278
+ "version": "5.9.2",
279
279
  "license": "SEE LICENSE IN LICENSE",
280
280
  "dependencies": {
281
281
  "antlr4": "4.9.3"
@@ -311,7 +311,7 @@
311
311
  }
312
312
  },
313
313
  "node_modules/@sap/cds-mtxs": {
314
- "version": "2.7.0",
314
+ "version": "2.7.1",
315
315
  "license": "SEE LICENSE IN LICENSE",
316
316
  "dependencies": {
317
317
  "@sap/hdi-deploy": ">=4",
@@ -844,7 +844,7 @@
844
844
  }
845
845
  },
846
846
  "node_modules/dotenv": {
847
- "version": "16.4.7",
847
+ "version": "16.5.0",
848
848
  "license": "BSD-2-Clause",
849
849
  "engines": {
850
850
  "node": ">=12"
@@ -936,16 +936,16 @@
936
936
  }
937
937
  },
938
938
  "node_modules/eslint": {
939
- "version": "9.23.0",
939
+ "version": "9.24.0",
940
940
  "license": "MIT",
941
941
  "dependencies": {
942
942
  "@eslint-community/eslint-utils": "^4.2.0",
943
943
  "@eslint-community/regexpp": "^4.12.1",
944
- "@eslint/config-array": "^0.19.2",
944
+ "@eslint/config-array": "^0.20.0",
945
945
  "@eslint/config-helpers": "^0.2.0",
946
946
  "@eslint/core": "^0.12.0",
947
947
  "@eslint/eslintrc": "^3.3.1",
948
- "@eslint/js": "9.23.0",
948
+ "@eslint/js": "9.24.0",
949
949
  "@eslint/plugin-kit": "^0.2.7",
950
950
  "@humanfs/node": "^0.16.6",
951
951
  "@humanwhocodes/module-importer": "^1.0.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/cds-dk",
3
- "version": "8.9.1",
3
+ "version": "8.9.2",
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,10 +19,10 @@
19
19
  "dependencies": {
20
20
  "@cap-js/asyncapi": "^1.0.0",
21
21
  "@cap-js/openapi": "^1.0.0",
22
- "@sap/cds": ">=7",
22
+ "@sap/cds": "^7 || ^8",
23
23
  "@sap/cds-foss": "^5.0.0",
24
- "@sap/cds-mtxs": ">=1.9.0",
25
- "@sap/eslint-plugin-cds": ">=3.0.1",
24
+ "@sap/cds-mtxs": "^1.9.0 || ^2",
25
+ "@sap/eslint-plugin-cds": "^3.0.1",
26
26
  "@sap/hdi-deploy": "^5",
27
27
  "axios": "^1",
28
28
  "eslint": "^9",