@sap/cds 6.2.3 → 6.3.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 (74) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/apis/connect.d.ts +1 -1
  3. package/apis/cqn.d.ts +1 -1
  4. package/apis/internal/inference.d.ts +14 -0
  5. package/apis/ql.d.ts +40 -36
  6. package/apis/services.d.ts +23 -6
  7. package/bin/build/buildTaskEngine.js +15 -12
  8. package/bin/build/buildTaskHandler.js +3 -3
  9. package/bin/build/constants.js +2 -0
  10. package/bin/build/provider/buildTaskHandlerEdmx.js +1 -1
  11. package/bin/build/provider/buildTaskHandlerFeatureToggles.js +4 -3
  12. package/bin/build/provider/buildTaskHandlerInternal.js +2 -2
  13. package/bin/build/provider/java/index.js +2 -1
  14. package/bin/build/provider/mtx/index.js +2 -1
  15. package/bin/build/provider/mtx/resourcesTarBuilder.js +3 -2
  16. package/bin/build/provider/mtx-extension/index.js +2 -1
  17. package/bin/build/provider/mtx-sidecar/index.js +3 -1
  18. package/bin/build/util.js +2 -2
  19. package/bin/deploy/to-hana/cfUtil.js +46 -62
  20. package/lib/auth/index.js +2 -1
  21. package/lib/auth/jwt-auth.js +64 -3
  22. package/lib/auth/xsuaa-auth.js +2 -3
  23. package/lib/compile/cdsc.js +1 -0
  24. package/lib/compile/etc/_localized.js +1 -0
  25. package/lib/dbs/cds-deploy.js +2 -1
  26. package/lib/env/cds-env.js +14 -49
  27. package/lib/env/cds-requires.js +13 -7
  28. package/lib/env/defaults.js +4 -0
  29. package/lib/i18n/localize.js +11 -8
  30. package/lib/index.js +1 -1
  31. package/lib/log/cds-log.js +2 -2
  32. package/lib/log/format/cf.js +16 -0
  33. package/lib/log/format/kibana.js +15 -2
  34. package/lib/ql/INSERT.js +12 -11
  35. package/lib/ql/Query.js +14 -7
  36. package/lib/ql/UPSERT.js +1 -0
  37. package/lib/ql/Whereable.js +6 -2
  38. package/lib/ql/cds-ql.js +2 -4
  39. package/lib/req/request.js +2 -0
  40. package/lib/srv/bindings.js +1 -0
  41. package/lib/srv/middlewares/cds-context.js +1 -1
  42. package/lib/srv/srv-dispatch.js +1 -0
  43. package/lib/srv/srv-tx.js +3 -3
  44. package/lib/utils/cds-utils.js +75 -30
  45. package/lib/utils/inflect.js +24 -0
  46. package/libx/_runtime/auth/strategies/ias-auth.js +1 -1
  47. package/libx/_runtime/cds-services/adapter/odata-v4/handlers/error.js +9 -1
  48. package/libx/_runtime/cds-services/adapter/odata-v4/handlers/metadata.js +23 -6
  49. package/libx/_runtime/cds-services/adapter/odata-v4/handlers/read.js +1 -0
  50. package/libx/_runtime/cds-services/adapter/odata-v4/okra/odata-commons/validator/ValueValidator.js +27 -15
  51. package/libx/_runtime/cds-services/adapter/odata-v4/utils/readAfterWrite.js +1 -1
  52. package/libx/_runtime/cds-services/services/utils/compareJson.js +11 -10
  53. package/libx/_runtime/cds-services/services/utils/differ.js +6 -4
  54. package/libx/_runtime/common/composition/data.js +29 -40
  55. package/libx/_runtime/common/composition/update.js +6 -19
  56. package/libx/_runtime/common/generic/paging.js +1 -1
  57. package/libx/_runtime/common/utils/resolveView.js +7 -13
  58. package/libx/_runtime/db/utils/generateAliases.js +1 -0
  59. package/libx/_runtime/fiori/generic/before.js +5 -2
  60. package/libx/_runtime/fiori/generic/read.js +11 -4
  61. package/libx/_runtime/hana/execute.js +2 -2
  62. package/libx/_runtime/hana/search2Contains.js +3 -1
  63. package/libx/_runtime/hana/search2cqn4sql.js +1 -0
  64. package/libx/_runtime/messaging/AMQPWebhookMessaging.js +1 -1
  65. package/libx/_runtime/messaging/enterprise-messaging-utils/EMManagement.js +5 -2
  66. package/libx/_runtime/messaging/enterprise-messaging.js +7 -1
  67. package/libx/_runtime/messaging/file-based.js +1 -1
  68. package/libx/_runtime/messaging/message-queuing.js +5 -2
  69. package/libx/_runtime/messaging/outbox/utils.js +1 -1
  70. package/libx/_runtime/messaging/service.js +5 -3
  71. package/libx/odata/cqn2odata.js +4 -1
  72. package/libx/odata/utils.js +8 -7
  73. package/libx/rest/RestAdapter.js +1 -4
  74. package/package.json +1 -1
@@ -197,10 +197,7 @@ const RestAdapter = function (srv) {
197
197
 
198
198
  next(err)
199
199
  })
200
-
201
- if (!cds.env.features.rest_error_handler) {
202
- router.use(error) // FIXME: nope -> call next()
203
- }
200
+ router.use(error) // FIXME: nope -> call next()
204
201
 
205
202
  return router
206
203
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/cds",
3
- "version": "6.2.3",
3
+ "version": "6.3.1",
4
4
  "description": "SAP Cloud Application Programming Model - CDS for Node.js",
5
5
  "homepage": "https://cap.cloud.sap/",
6
6
  "keywords": [