@sap/cds-dk 8.4.2 → 8.5.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 (51) hide show
  1. package/CHANGELOG.md +41 -3
  2. package/bin/cds.js +49 -28
  3. package/bin/debug.js +90 -0
  4. package/bin/repl.js +50 -4
  5. package/bin/watch.js +13 -3
  6. package/lib/bind/userCdsrcJsonStorageProvider.js +0 -19
  7. package/lib/build/buildTaskEngine.js +4 -4
  8. package/lib/build/provider/hana/2migration.js +34 -20
  9. package/lib/build/provider/hana/index.js +74 -41
  10. package/lib/build/provider/internalBuildTaskProvider.js +1 -1
  11. package/lib/build/provider/mtx-extension/index.js +4 -4
  12. package/lib/build/provider/mtx-sidecar/index.js +2 -2
  13. package/lib/build/provider/nodejs/index.js +3 -19
  14. package/lib/build/util.js +41 -17
  15. package/lib/cds.js +10 -2
  16. package/lib/deploy/to-hana/hdiDeployUtil.js +14 -10
  17. package/lib/import/message.js +2 -1
  18. package/lib/import/odata/metadataconverter/MetadataConverter.js +5 -0
  19. package/lib/import/odata/v4parser.js +32 -43
  20. package/lib/init/add.js +26 -0
  21. package/lib/init/constants.js +5 -6
  22. package/lib/init/index.js +17 -25
  23. package/lib/init/merge.js +2 -5
  24. package/lib/init/projectReader.js +76 -9
  25. package/lib/init/registries/mta.js +0 -1
  26. package/lib/init/template/approuter/files/package.json +1 -1
  27. package/lib/init/template/cloud-logging/files/package.json.hbs +1 -12
  28. package/lib/init/template/cloud-logging/files/values.yaml.hbs +16 -0
  29. package/lib/init/template/cloud-logging/index.js +14 -10
  30. package/lib/init/template/data/as-json.js +1 -1
  31. package/lib/init/template/data/index.js +1 -26
  32. package/lib/init/template/esm/files/package.json.hbs +3 -0
  33. package/lib/init/template/esm/index.js +16 -0
  34. package/lib/init/template/handler/files/handler.xs.hbs +56 -0
  35. package/lib/init/template/handler/index.js +84 -9
  36. package/lib/init/template/helm/index.js +4 -1
  37. package/lib/init/template/html5-repo/files/xs-app.json.hbs +1 -0
  38. package/lib/init/template/html5-repo/index.js +2 -0
  39. package/lib/init/template/http/index.js +102 -35
  40. package/lib/init/template/nodejs/files/package.json.hbs +1 -1
  41. package/lib/init/template/sample/files/nodejs/{admin-service.js → admin-service.js.hbs} +8 -1
  42. package/lib/init/template/sample/files/nodejs/{cat-service.js → cat-service.js.hbs} +8 -3
  43. package/lib/init/template/sample/index.js +4 -2
  44. package/lib/init/template/telemetry/files/package.json.hbs +18 -0
  45. package/lib/init/template/telemetry/index.js +8 -2
  46. package/lib/init/template/typescript/files/package.json +2 -2
  47. package/lib/init/template/workzone-standard/index.js +1 -1
  48. package/lib/init/types.d.ts +0 -6
  49. package/lib/watch/node-watch.js +25 -9
  50. package/npm-shrinkwrap.json +63 -48
  51. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@sap/cds-dk",
3
- "version": "8.4.2",
3
+ "version": "8.5.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@sap/cds-dk",
9
- "version": "8.4.2",
9
+ "version": "8.5.1",
10
10
  "license": "SEE LICENSE IN LICENSE",
11
11
  "dependencies": {
12
12
  "@cap-js/asyncapi": "^1.0.0",
@@ -43,7 +43,7 @@
43
43
  }
44
44
  },
45
45
  "node_modules/@cap-js/db-service": {
46
- "version": "1.15.0",
46
+ "version": "1.16.0",
47
47
  "license": "SEE LICENSE",
48
48
  "optional": true,
49
49
  "dependencies": {
@@ -54,7 +54,7 @@
54
54
  }
55
55
  },
56
56
  "node_modules/@cap-js/openapi": {
57
- "version": "1.0.7",
57
+ "version": "1.1.0",
58
58
  "license": "SEE LICENSE IN LICENSE",
59
59
  "dependencies": {
60
60
  "pluralize": "^8.0.0"
@@ -109,10 +109,10 @@
109
109
  }
110
110
  },
111
111
  "node_modules/@eslint/config-array": {
112
- "version": "0.18.0",
112
+ "version": "0.19.1",
113
113
  "license": "Apache-2.0",
114
114
  "dependencies": {
115
- "@eslint/object-schema": "^2.1.4",
115
+ "@eslint/object-schema": "^2.1.5",
116
116
  "debug": "^4.3.1",
117
117
  "minimatch": "^3.1.2"
118
118
  },
@@ -121,14 +121,17 @@
121
121
  }
122
122
  },
123
123
  "node_modules/@eslint/core": {
124
- "version": "0.7.0",
124
+ "version": "0.9.1",
125
125
  "license": "Apache-2.0",
126
+ "dependencies": {
127
+ "@types/json-schema": "^7.0.15"
128
+ },
126
129
  "engines": {
127
130
  "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
128
131
  }
129
132
  },
130
133
  "node_modules/@eslint/eslintrc": {
131
- "version": "3.1.0",
134
+ "version": "3.2.0",
132
135
  "license": "MIT",
133
136
  "dependencies": {
134
137
  "ajv": "^6.12.4",
@@ -149,21 +152,21 @@
149
152
  }
150
153
  },
151
154
  "node_modules/@eslint/js": {
152
- "version": "9.14.0",
155
+ "version": "9.16.0",
153
156
  "license": "MIT",
154
157
  "engines": {
155
158
  "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
156
159
  }
157
160
  },
158
161
  "node_modules/@eslint/object-schema": {
159
- "version": "2.1.4",
162
+ "version": "2.1.5",
160
163
  "license": "Apache-2.0",
161
164
  "engines": {
162
165
  "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
163
166
  }
164
167
  },
165
168
  "node_modules/@eslint/plugin-kit": {
166
- "version": "0.2.2",
169
+ "version": "0.2.4",
167
170
  "license": "Apache-2.0",
168
171
  "dependencies": {
169
172
  "levn": "^0.4.1"
@@ -224,7 +227,7 @@
224
227
  }
225
228
  },
226
229
  "node_modules/@sap/cds": {
227
- "version": "8.4.2",
230
+ "version": "8.5.1",
228
231
  "license": "SEE LICENSE IN LICENSE",
229
232
  "dependencies": {
230
233
  "@sap/cds-compiler": ">=5.1",
@@ -250,7 +253,7 @@
250
253
  }
251
254
  },
252
255
  "node_modules/@sap/cds-compiler": {
253
- "version": "5.4.4",
256
+ "version": "5.5.2",
254
257
  "license": "SEE LICENSE IN LICENSE",
255
258
  "dependencies": {
256
259
  "antlr4": "4.9.3"
@@ -265,7 +268,7 @@
265
268
  }
266
269
  },
267
270
  "node_modules/@sap/cds-fiori": {
268
- "version": "1.2.7",
271
+ "version": "1.2.8",
269
272
  "license": "SEE LICENSE IN LICENSE",
270
273
  "peerDependencies": {
271
274
  "@sap/cds": ">=7.6",
@@ -286,7 +289,7 @@
286
289
  }
287
290
  },
288
291
  "node_modules/@sap/cds-mtxs": {
289
- "version": "2.3.0",
292
+ "version": "2.4.1",
290
293
  "license": "SEE LICENSE IN LICENSE",
291
294
  "dependencies": {
292
295
  "@sap/hdi-deploy": ">=4",
@@ -466,7 +469,7 @@
466
469
  "license": "MIT"
467
470
  },
468
471
  "node_modules/axios": {
469
- "version": "1.7.7",
472
+ "version": "1.7.9",
470
473
  "license": "MIT",
471
474
  "dependencies": {
472
475
  "follow-redirects": "^1.15.6",
@@ -498,7 +501,7 @@
498
501
  "optional": true
499
502
  },
500
503
  "node_modules/better-sqlite3": {
501
- "version": "11.5.0",
504
+ "version": "11.6.0",
502
505
  "hasInstallScript": true,
503
506
  "license": "MIT",
504
507
  "optional": true,
@@ -618,14 +621,13 @@
618
621
  }
619
622
  },
620
623
  "node_modules/call-bind": {
621
- "version": "1.0.7",
624
+ "version": "1.0.8",
622
625
  "license": "MIT",
623
626
  "dependencies": {
627
+ "call-bind-apply-helpers": "^1.0.0",
624
628
  "es-define-property": "^1.0.0",
625
- "es-errors": "^1.3.0",
626
- "function-bind": "^1.1.2",
627
629
  "get-intrinsic": "^1.2.4",
628
- "set-function-length": "^1.2.1"
630
+ "set-function-length": "^1.2.2"
629
631
  },
630
632
  "engines": {
631
633
  "node": ">= 0.4"
@@ -634,6 +636,17 @@
634
636
  "url": "https://github.com/sponsors/ljharb"
635
637
  }
636
638
  },
639
+ "node_modules/call-bind-apply-helpers": {
640
+ "version": "1.0.0",
641
+ "license": "MIT",
642
+ "dependencies": {
643
+ "es-errors": "^1.3.0",
644
+ "function-bind": "^1.1.2"
645
+ },
646
+ "engines": {
647
+ "node": ">= 0.4"
648
+ }
649
+ },
637
650
  "node_modules/callsites": {
638
651
  "version": "3.1.0",
639
652
  "license": "MIT",
@@ -728,7 +741,7 @@
728
741
  "license": "MIT"
729
742
  },
730
743
  "node_modules/cross-spawn": {
731
- "version": "7.0.5",
744
+ "version": "7.0.6",
732
745
  "license": "MIT",
733
746
  "dependencies": {
734
747
  "path-key": "^3.1.0",
@@ -826,7 +839,7 @@
826
839
  }
827
840
  },
828
841
  "node_modules/dotenv": {
829
- "version": "16.4.5",
842
+ "version": "16.4.7",
830
843
  "license": "BSD-2-Clause",
831
844
  "engines": {
832
845
  "node": ">=12"
@@ -886,24 +899,24 @@
886
899
  }
887
900
  },
888
901
  "node_modules/eslint": {
889
- "version": "9.14.0",
902
+ "version": "9.16.0",
890
903
  "license": "MIT",
891
904
  "dependencies": {
892
905
  "@eslint-community/eslint-utils": "^4.2.0",
893
906
  "@eslint-community/regexpp": "^4.12.1",
894
- "@eslint/config-array": "^0.18.0",
895
- "@eslint/core": "^0.7.0",
896
- "@eslint/eslintrc": "^3.1.0",
897
- "@eslint/js": "9.14.0",
898
- "@eslint/plugin-kit": "^0.2.0",
907
+ "@eslint/config-array": "^0.19.0",
908
+ "@eslint/core": "^0.9.0",
909
+ "@eslint/eslintrc": "^3.2.0",
910
+ "@eslint/js": "9.16.0",
911
+ "@eslint/plugin-kit": "^0.2.3",
899
912
  "@humanfs/node": "^0.16.6",
900
913
  "@humanwhocodes/module-importer": "^1.0.1",
901
- "@humanwhocodes/retry": "^0.4.0",
914
+ "@humanwhocodes/retry": "^0.4.1",
902
915
  "@types/estree": "^1.0.6",
903
916
  "@types/json-schema": "^7.0.15",
904
917
  "ajv": "^6.12.4",
905
918
  "chalk": "^4.0.0",
906
- "cross-spawn": "^7.0.2",
919
+ "cross-spawn": "^7.0.5",
907
920
  "debug": "^4.3.2",
908
921
  "escape-string-regexp": "^4.0.0",
909
922
  "eslint-scope": "^8.2.0",
@@ -922,8 +935,7 @@
922
935
  "lodash.merge": "^4.6.2",
923
936
  "minimatch": "^3.1.2",
924
937
  "natural-compare": "^1.4.0",
925
- "optionator": "^0.9.3",
926
- "text-table": "^0.2.0"
938
+ "optionator": "^0.9.3"
927
939
  },
928
940
  "bin": {
929
941
  "eslint": "bin/eslint.js"
@@ -1032,7 +1044,7 @@
1032
1044
  }
1033
1045
  },
1034
1046
  "node_modules/express": {
1035
- "version": "4.21.1",
1047
+ "version": "4.21.2",
1036
1048
  "license": "MIT",
1037
1049
  "dependencies": {
1038
1050
  "accepts": "~1.3.8",
@@ -1054,7 +1066,7 @@
1054
1066
  "methods": "~1.1.2",
1055
1067
  "on-finished": "2.4.1",
1056
1068
  "parseurl": "~1.3.3",
1057
- "path-to-regexp": "0.1.10",
1069
+ "path-to-regexp": "0.1.12",
1058
1070
  "proxy-addr": "~2.0.7",
1059
1071
  "qs": "6.13.0",
1060
1072
  "range-parser": "~1.2.1",
@@ -1069,6 +1081,10 @@
1069
1081
  },
1070
1082
  "engines": {
1071
1083
  "node": ">= 0.10.0"
1084
+ },
1085
+ "funding": {
1086
+ "type": "opencollective",
1087
+ "url": "https://opencollective.com/express"
1072
1088
  }
1073
1089
  },
1074
1090
  "node_modules/express/node_modules/debug": {
@@ -1179,7 +1195,7 @@
1179
1195
  }
1180
1196
  },
1181
1197
  "node_modules/flatted": {
1182
- "version": "3.3.1",
1198
+ "version": "3.3.2",
1183
1199
  "license": "ISC"
1184
1200
  },
1185
1201
  "node_modules/follow-redirects": {
@@ -1288,10 +1304,10 @@
1288
1304
  }
1289
1305
  },
1290
1306
  "node_modules/gopd": {
1291
- "version": "1.0.1",
1307
+ "version": "1.2.0",
1292
1308
  "license": "MIT",
1293
- "dependencies": {
1294
- "get-intrinsic": "^1.1.3"
1309
+ "engines": {
1310
+ "node": ">= 0.4"
1295
1311
  },
1296
1312
  "funding": {
1297
1313
  "url": "https://github.com/sponsors/ljharb"
@@ -1334,8 +1350,11 @@
1334
1350
  }
1335
1351
  },
1336
1352
  "node_modules/has-proto": {
1337
- "version": "1.0.3",
1353
+ "version": "1.1.0",
1338
1354
  "license": "MIT",
1355
+ "dependencies": {
1356
+ "call-bind": "^1.0.7"
1357
+ },
1339
1358
  "engines": {
1340
1359
  "node": ">= 0.4"
1341
1360
  },
@@ -1344,7 +1363,7 @@
1344
1363
  }
1345
1364
  },
1346
1365
  "node_modules/has-symbols": {
1347
- "version": "1.0.3",
1366
+ "version": "1.1.0",
1348
1367
  "license": "MIT",
1349
1368
  "engines": {
1350
1369
  "node": ">= 0.4"
@@ -1364,7 +1383,7 @@
1364
1383
  }
1365
1384
  },
1366
1385
  "node_modules/hdb": {
1367
- "version": "0.19.10",
1386
+ "version": "0.19.11",
1368
1387
  "license": "Apache-2.0",
1369
1388
  "dependencies": {
1370
1389
  "iconv-lite": "^0.4.18"
@@ -1801,7 +1820,7 @@
1801
1820
  }
1802
1821
  },
1803
1822
  "node_modules/path-to-regexp": {
1804
- "version": "0.1.10",
1823
+ "version": "0.1.12",
1805
1824
  "license": "MIT"
1806
1825
  },
1807
1826
  "node_modules/picomatch": {
@@ -2211,10 +2230,6 @@
2211
2230
  "node": ">=6"
2212
2231
  }
2213
2232
  },
2214
- "node_modules/text-table": {
2215
- "version": "0.2.0",
2216
- "license": "MIT"
2217
- },
2218
2233
  "node_modules/to-regex-range": {
2219
2234
  "version": "5.0.1",
2220
2235
  "license": "MIT",
@@ -2386,7 +2401,7 @@
2386
2401
  }
2387
2402
  },
2388
2403
  "node_modules/yaml": {
2389
- "version": "2.6.0",
2404
+ "version": "2.6.1",
2390
2405
  "license": "ISC",
2391
2406
  "bin": {
2392
2407
  "yaml": "bin.mjs"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/cds-dk",
3
- "version": "8.4.2",
3
+ "version": "8.5.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": [